﻿.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.hero-content h1 {
    font-size: 34px;
    line-height: 1.1;
    margin: 10px 0 6px;
}

.hero-content .sub {
    color: var(--muted);
    max-width: 56ch;
    margin-top: 4px;
}

.highlight {
    color: var(--accent-700);
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.hero-thumbs {
    position: relative;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    padding: 12px;
}

    .hero-thumbs .thumb {
        overflow: hidden;
        border-radius: 14px;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        margin-bottom: 12px;
    }

        .hero-thumbs .thumb:last-child {
            margin-bottom: 0;
        }

    .hero-thumbs img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        display: block;
    }

    .hero-thumbs .meta {
        font-size: 12px;
        color: var(--muted);
    }

    .hero-thumbs p {
        margin: 2px 10px 10px;
    }

.chip {
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--ink);
    font-size: 13px;
    cursor: pointer;
}

    .chip.active {
        background: var(--accent);
        border-color: var(--accent);
        color: #ffffff;
    }

.results-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

#filters {
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

    #filters h3 {
        margin-top: 0;
        margin-bottom: 12px;
        font-size: 18px;
    }

.filter-header {
    border-bottom: 1px solid var(--line);
    width: 100%
}

.field {
    margin-bottom: 16px;
}

    .field label {
        display: block;
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 6px;
    }

    .field input[type="text"],
    .field select {
        width: 100%;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid #cbd5e1;
        font-size: 14px;
    }

#practice-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#incentives .check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 6px;
}

.clear {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

#match-count {
    margin-top: 8px;
    font-size: 14px;
    color: #475569;
}

.results-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

    .results-hd h3 {
        margin: 0;
    }

    .results-hd select {
        padding: 8px 10px;
        border-radius: 10px;
        border: 1px solid #cbd5e1;
        font-size: 14px;
    }

#cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.card {
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

    .card .img-wrap {
        position: relative;
    }

    .card img {
        display: block;
        width: 100%;
        height: 160px;
        object-fit: cover;
    }

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: var(--radius-pill);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    color: black;
    line-height: inherit;
    font-weight: normal;
}

.card-body {
    padding: 12px 14px 14px;
}

    .card-body h4 {
        margin: 2px 0 0;
        font-size: 16px;
    }

.org {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.summary {
    margin-top: 6px;
    font-size: 14px;
    color: #475569;
}

.incentives {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.incentive {
    background: #f1f5f9;
    border-radius: var(--radius-pill);
    border: 1px solid #e2e8f0;
    padding: 4px 8px;
    font-size: 12px;
    color: #334155;
}

.card-foot {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.amount {
    font-size: 14px;
}

@media (min-width: 768px) {
    .hero {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .hero-thumbs {
        padding: 12px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

        .hero-thumbs .thumb {
            margin-bottom: 0;
        }

    .results-layout {
        grid-template-columns: 320px 1fr;
        align-items: flex-start;
    }

    #cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    #cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.drawer {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 40;
}

    .drawer.open {
        display: block;
    }

.drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100%;
    height: 100%;
    background: #fff;
    border-left: 1px solid #ddd;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 9999;
    overflow: auto;
}

@keyframes drawer-in {
    to {
        transform: translateX(0);
    }
}

.drawer-meta {
    font-size: 12px;
    color: var(--muted);
}

.drawer-title {
    font-size: 18px;
    font-weight: 700;
}

.drawer-body {
    padding: 1rem;
    overflow-y: auto;
    overflow: auto;
}

    .drawer-body img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 14px;
        margin-bottom: 10px;
    }

    .drawer-body .info {
        margin-bottom: 10px;
        font-size: 14px;
    }

.drawer-summary {
    color: #475569;
    font-size: 14px;
}

#drawer-region .drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    transition: opacity .25s;
    z-index: 998;
}

#drawer-region.open .drawer-backdrop {
    opacity: 1;
}

#drawer-region.open .drawer-panel {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}
