/* Brasilll 002 interactive layer */

.explore-intro { padding-bottom: 28px; }
.explore-filter-shell { position: relative; z-index: 2; }
.explore-filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
    gap: 34px;
    align-items: start;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow);
}
.explore-filter-panel .eyebrow { margin-bottom: 7px; }
.explore-filter-help { margin: 0; color: var(--muted); }
.explore-filter-actions { display: flex; gap: 12px; align-items: flex-start; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.filter-chip,
.filter-reset {
    border: 1px solid var(--line);
    background: rgba(255,255,255,.72);
    color: var(--ink);
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 780;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.filter-chip:hover,
.filter-reset:hover { transform: translateY(-1px); }
.filter-chip[aria-pressed="true"] { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.filter-reset { color: var(--muted); white-space: nowrap; }
.explore-results-section { padding-top: 34px; }
.explore-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.explore-list-heading .eyebrow { margin: 0; }
.explore-count { color: var(--muted); font-size: .82rem; font-weight: 750; }
.explore-empty {
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(214,107,74,.10);
    border: 1px solid rgba(214,107,74,.18);
    color: #6a4c40;
}
.explore-card[hidden], .map-marker[hidden] { display: none !important; }

.matcher-hero { padding-bottom: 32px; }
.matcher-hero p:last-child { max-width: 850px; }
.matcher-section { padding-top: 30px; }
.matcher-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 34px; align-items: start; }
.matcher-form { display: grid; gap: 16px; }
.matcher-question {
    margin: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}
.matcher-question legend { width: 100%; padding: 0; }
.matcher-question legend strong {
    display: inline;
    font-family: Georgia, serif;
    font-size: clamp(1.45rem, 2.5vw, 2.05rem);
    line-height: 1.05;
    letter-spacing: -.025em;
}
.matcher-question legend small {
    margin-left: 8px;
    color: var(--muted);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.matcher-step {
    display: block;
    margin-bottom: 8px;
    color: var(--green);
    font-size: .7rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.matcher-help { margin: 8px 0 18px; color: var(--muted); }
.matcher-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.matcher-options-interests { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.matcher-months { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.matcher-option { position: relative; cursor: pointer; }
.matcher-option input { position: absolute; opacity: 0; pointer-events: none; }
.matcher-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(246,240,229,.48);
    text-align: center;
    font-weight: 760;
    font-size: .9rem;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.matcher-option:hover span { transform: translateY(-1px); border-color: rgba(11,79,58,.35); }
.matcher-option input:focus-visible + span { outline: 3px solid rgba(43,119,168,.22); outline-offset: 2px; }
.matcher-option input:checked + span { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.matcher-months .matcher-option span { min-height: 42px; padding-inline: 6px; font-size: .78rem; }
.matcher-months .month-flexible { grid-column: span 2; }
.matcher-submit-row { padding: 20px 0 0; }
.matcher-submit { border: 0; cursor: pointer; font-size: 1rem; }
.matcher-error { margin: 0 0 12px; color: #9a402f; font-weight: 720; }
.matcher-sidecard {
    position: sticky;
    top: 104px;
    min-height: 360px;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--forest-dark);
    color: var(--paper);
    overflow: hidden;
}
.matcher-sidecard::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    right: -80px;
    top: -70px;
    background: var(--sun);
    opacity: .95;
}
.matcher-sidecard > * { position: relative; z-index: 1; }
.matcher-sidecard-mark { display: block; color: var(--sun); font-family: Georgia, serif; font-size: 5.5rem; line-height: .8; margin-bottom: 80px; }
.matcher-sidecard strong { display: block; font-family: Georgia, serif; font-size: 2.3rem; line-height: 1; }
.matcher-sidecard p { margin: 14px 0 0; color: rgba(255,255,255,.68); }

.matcher-results-section { background: var(--paper); }
.matcher-results-heading { align-items: end; }
.matcher-results { display: grid; gap: 14px; }
.matcher-result-card {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--cream);
    overflow: hidden;
}
.matcher-result-winner { border-color: rgba(35,139,87,.35); box-shadow: var(--shadow); }
.matcher-result-image { position: relative; min-height: 280px; background: #dbe6df; }
.matcher-result-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.matcher-result-image .photo-credit { position: absolute; left: 10px; bottom: 10px; }
.matcher-result-copy { padding: 25px 28px; position: relative; }
.matcher-result-topline { display: flex; align-items: center; gap: 9px; }
.match-rank { font-weight: 900; color: var(--muted); }
.match-verdict { padding: 5px 9px; border-radius: 999px; font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.match-verdict.strong { background: rgba(35,139,87,.15); color: #17663f; }
.match-verdict.good { background: rgba(242,200,75,.28); color: #745b11; }
.match-verdict.compromise { background: rgba(43,119,168,.13); color: #245f84; }
.match-verdict.weak { background: rgba(214,107,74,.13); color: #984a34; }
.matcher-result-copy h3 { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.3rem); line-height: .95; margin: 14px 0 9px; }
.matcher-result-copy > p { margin: 0; color: var(--muted); max-width: 650px; }
.match-score { position: absolute; right: 28px; top: 24px; text-align: right; }
.match-score strong { display: block; font-family: Georgia, serif; font-size: 2.4rem; line-height: .9; color: var(--forest); }
.match-score span { display: block; margin-top: 5px; font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.match-reasons { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.match-reasons small { width: 100%; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.match-reasons span { padding: 6px 9px; border-radius: 999px; background: rgba(23,51,42,.07); font-size: .76rem; }
.matcher-result-footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: .84rem; }
.matcher-result-footer span { color: var(--muted); }
.matcher-result-footer a { color: var(--forest); font-weight: 850; text-decoration: none; }
.matcher-change-actions { justify-content: center; }
.matcher-change-actions button { cursor: pointer; }

@media (max-width: 1050px) {
    .explore-filter-panel { grid-template-columns: 1fr; gap: 16px; }
    .matcher-layout { grid-template-columns: 1fr; }
    .matcher-sidecard { position: relative; top: auto; min-height: 250px; }
    .matcher-sidecard-mark { margin-bottom: 42px; }
    .matcher-options-interests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .matcher-months { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .explore-filter-actions { display: block; }
    .filter-reset { margin-top: 10px; }
    .explore-list-heading { display: block; }
    .explore-count { display: block; margin-top: 7px; }
    .matcher-question { padding: 22px 18px; }
    .matcher-options, .matcher-options-interests { grid-template-columns: 1fr 1fr; }
    .matcher-months { grid-template-columns: repeat(4, 1fr); }
    .matcher-result-card { grid-template-columns: 1fr; }
    .matcher-result-image { min-height: 220px; }
    .match-score { position: static; text-align: left; margin-top: 16px; }
    .matcher-result-footer { display: grid; }
}

@media (max-width: 480px) {
    .matcher-options, .matcher-options-interests { grid-template-columns: 1fr; }
    .matcher-months { grid-template-columns: repeat(3, 1fr); }
    .matcher-months .month-flexible { grid-column: span 3; }
}
