/* Powder Finder 2026 product shell
   Shared presentation only. Data freshness, scoring, and resort-link logic live elsewhere. */

:root {
    --pf-night: #070c13;
    --pf-night-raised: #0d1621;
    --pf-ink: #111d2a;
    --pf-slate: #64788d;
    --pf-mist: #a9bac9;
    --pf-ice: #edf7fc;
    --pf-snow: #f8fbfd;
    --pf-blue: #63c9f4;
    --pf-blue-strong: #269ed4;
    --pf-blue-soft: rgba(99, 201, 244, 0.14);
    --pf-line-dark: rgba(207, 231, 243, 0.14);
    --pf-line-light: #d9e7ef;
    --pf-shadow: 0 22px 70px rgba(3, 11, 18, 0.22);
    --pf-radius: 18px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.page-home,
body.page-dashboard {
    background: var(--pf-night);
    color: var(--pf-snow);
}

body.page-resorts,
body.page-resort {
    background: var(--pf-snow);
    color: var(--pf-ink);
}

body.page-home .header,
body.page-dashboard > header {
    background: rgba(7, 12, 19, 0.9);
    border-color: var(--pf-line-dark);
    box-shadow: none;
}

body.page-home .header {
    height: 72px;
}

body.page-home .header-container,
body.page-resort .header-container,
body.page-resorts .header-container {
    max-width: 1320px;
}

body.page-home .logo-main,
body.page-resort .logo-main,
body.page-resorts .logo-main,
body.page-dashboard .logo-main {
    font-family: var(--font-serif, Georgia, serif);
    letter-spacing: -0.045em;
}

body.page-home .logo-tagline,
body.page-resort .logo-tagline,
body.page-resorts .logo-tagline,
body.page-dashboard .logo-tagline {
    color: var(--pf-blue);
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

body.page-home .nav-link:hover,
body.page-home .nav-link-cta,
body.page-resort .nav-link:hover,
body.page-resort .nav-link-cta,
body.page-resorts .nav-link:hover,
body.page-resorts .nav-link-cta {
    color: var(--pf-blue);
}

body.page-home .season-badge {
    border: 1px solid var(--pf-line-dark);
    background: rgba(255, 255, 255, 0.04);
    color: var(--pf-mist);
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    letter-spacing: 0.12em;
}

/* Home: Storm Board */
body.page-home .hero {
    margin-top: 72px;
    min-height: 660px;
    background-position: center 36%;
    border-bottom: 1px solid var(--pf-line-dark);
}

body.page-home .hero::before {
    background:
        linear-gradient(90deg, rgba(5, 10, 16, 0.96) 0%, rgba(6, 12, 19, 0.76) 48%, rgba(6, 12, 19, 0.6) 100%),
        linear-gradient(0deg, rgba(7, 12, 19, 0.82) 0%, transparent 44%);
}

body.page-home .hero-container {
    max-width: 1320px;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 5rem;
    padding: 5.5rem 2rem 4rem;
}

body.page-home .hero-content {
    max-width: 760px;
    padding-right: 0;
}

body.page-home .hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--pf-blue);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.page-home .hero-subtitle::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--pf-blue);
}

body.page-home .hero-title {
    max-width: 760px;
    margin-bottom: 1.2rem;
    font-family: var(--font-serif);
    font-size: clamp(3.6rem, 7vw, 6.2rem);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

body.page-home .hero-subheadline {
    max-width: 640px;
    margin-bottom: 1.8rem;
    color: rgba(237, 247, 252, 0.76);
    font-size: 1.03rem;
    line-height: 1.65;
    text-shadow: none;
}

.storm-search {
    position: relative;
    display: flex;
    width: min(100%, 650px);
    min-height: 58px;
    margin-bottom: 1.1rem;
    background: rgba(6, 13, 20, 0.76);
    border: 1px solid rgba(207, 231, 243, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.storm-search:focus-within {
    border-color: var(--pf-blue);
    box-shadow: 0 0 0 4px var(--pf-blue-soft), 0 18px 40px rgba(0, 0, 0, 0.22);
}

.storm-search input {
    min-width: 0;
    flex: 1;
    padding: 0 1.15rem;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--pf-snow);
    font: 500 0.95rem var(--font-sans);
}

.storm-search input::placeholder {
    color: rgba(237, 247, 252, 0.46);
}

.storm-search button {
    min-width: 104px;
    padding: 0 1.25rem;
    border: 0;
    background: var(--pf-blue);
    color: #041019;
    font: 750 0.86rem var(--font-sans);
    cursor: pointer;
}

.storm-search button:hover {
    background: #8bdcff;
}

body.page-home .hero-cta-group {
    display: flex;
}

body.page-home .hero-cta-microcopy {
    max-width: 650px;
    margin: 0;
    color: rgba(237, 247, 252, 0.5);
    text-align: left;
    text-shadow: none;
}

body.page-home .top-resort-card {
    max-width: none;
    padding: 1.4rem;
    background: rgba(7, 14, 22, 0.82);
    border: 1px solid rgba(207, 231, 243, 0.22);
    border-radius: 16px;
    box-shadow: var(--pf-shadow);
    color: var(--pf-snow);
}

body.page-home .top-resort-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 201, 244, 0.66);
}

body.page-home .resort-card-label,
body.page-home .resort-card-location,
body.page-home .resort-card-updated,
body.page-home .resort-stat .stat-label {
    color: var(--pf-mist);
}

body.page-home .resort-card-name,
body.page-home .resort-stat .stat-value {
    color: var(--pf-snow);
}

body.page-home .resort-card-name {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    letter-spacing: -0.035em;
}

body.page-home .resort-card-stats {
    border-color: var(--pf-line-dark);
}

body.page-home .resort-card-score {
    background: var(--pf-blue-soft);
    border: 1px solid rgba(99, 201, 244, 0.32);
}

body.page-home .score-label,
body.page-home .score-value {
    color: var(--pf-blue);
}

body.page-home .resort-card-description {
    display: none;
}

body.page-home .resort-card-cta {
    background: var(--pf-blue);
    color: #06131c;
}

.powder-board {
    background: var(--pf-night);
    border-bottom: 1px solid var(--pf-line-dark);
}

.powder-board .container {
    max-width: 1320px;
}

.powder-board-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.powder-board-kicker,
.browse-kicker,
.resort-proof-kicker,
.dashboard-kicker {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--pf-blue);
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.powder-board .section-title {
    margin: 0;
    font-weight: 500;
}

.board-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.board-sort span,
.browse-chip {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--pf-line-dark);
    border-radius: 999px;
    color: var(--pf-mist);
    font-size: 0.76rem;
    font-weight: 650;
}

.board-sort span:first-child,
.browse-chip.is-active {
    background: var(--pf-blue-soft);
    border-color: rgba(99, 201, 244, 0.4);
    color: var(--pf-blue);
}

body.page-home .spotlight-grid {
    counter-reset: powder-rank;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
}

body.page-home .spotlight-card {
    counter-increment: powder-rank;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) minmax(330px, 0.75fr);
    align-items: center;
    min-height: 138px;
    padding: 1.2rem 4rem 1.2rem 1rem;
    overflow: hidden;
    background-color: #101c28;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--pf-line-dark);
    border-left: 1px solid var(--pf-line-dark);
    border-radius: 14px;
    isolation: isolate;
}

body.page-home .spotlight-card:nth-child(1) { background-image: linear-gradient(90deg, rgba(5, 11, 17, 0.94), rgba(5, 11, 17, 0.7)), url('/static/images/heroes/japan-hokkaido.jpg'); }
body.page-home .spotlight-card:nth-child(2) { background-image: linear-gradient(90deg, rgba(5, 11, 17, 0.94), rgba(5, 11, 17, 0.7)), url('/static/images/heroes/utah.jpg'); }
body.page-home .spotlight-card:nth-child(3) { background-image: linear-gradient(90deg, rgba(5, 11, 17, 0.94), rgba(5, 11, 17, 0.7)), url('/static/images/heroes/wyoming.jpg'); }
body.page-home .spotlight-card:nth-child(4) { background-image: linear-gradient(90deg, rgba(5, 11, 17, 0.94), rgba(5, 11, 17, 0.7)), url('/static/images/heroes/french-alps.jpg'); }

body.page-home .spotlight-card::before {
    content: counter(powder-rank, decimal-leading-zero);
    position: static;
    grid-column: 1;
    align-self: center;
    color: rgba(237, 247, 252, 0.45);
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 1;
}

body.page-home .spotlight-card::after {
    right: 1.4rem;
    bottom: auto;
    color: var(--pf-blue);
    opacity: 0.7;
    transform: none;
}

body.page-home .spotlight-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 201, 244, 0.55);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

body.page-home .spotlight-header {
    grid-column: 2;
    margin: 0;
    align-items: center;
}

body.page-home .spotlight-name {
    color: var(--pf-snow);
    font-size: 1.45rem;
}

body.page-home .spotlight-location,
body.page-home .condition-label {
    color: var(--pf-mist);
}

body.page-home .spotlight-score,
body.page-home .spotlight-card.powder-good .spotlight-score,
body.page-home .spotlight-card.powder-great .spotlight-score,
body.page-home .spotlight-card.powder-epic .spotlight-score {
    margin-right: 1rem;
    color: var(--pf-blue);
    font-size: 2.25rem;
}

body.page-home .spotlight-conditions {
    grid-column: 3;
    margin: 0;
    padding: 0 0 0 2rem;
    border: 0;
    border-left: 1px solid var(--pf-line-dark);
}

body.page-home .condition-value {
    color: var(--pf-snow);
}

body.page-home .forecast-badge {
    top: 0.8rem;
    right: 0.9rem;
    left: auto;
    background: rgba(99, 201, 244, 0.16);
    border: 1px solid rgba(99, 201, 244, 0.35);
    color: var(--pf-blue);
    box-shadow: none;
}

body.page-home .region-links-section,
body.page-home .science-section {
    background: #0a111a;
}

body.page-home .region-links-section {
    margin: 0;
    padding: 5rem 0;
}

body.page-home .region-grid {
    display: grid;
    max-width: 1320px;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin: 0 auto;
    padding: 0 2rem;
}

body.page-home .region-card {
    display: flex;
    min-height: 122px;
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--pf-line-dark);
    border-color: var(--pf-line-dark);
    border-radius: 14px;
    color: var(--pf-snow);
    text-align: left;
    text-decoration: none;
    transition: 180ms ease;
}

body.page-home .region-card:hover {
    background: var(--pf-blue-soft);
    border-color: rgba(99, 201, 244, 0.4);
}

body.page-home .region-count-label {
    display: block;
    color: var(--pf-mist);
    font-size: 0.7rem;
    font-weight: 600;
}

body.page-home .region-name-label {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

body.page-home .browse-all-link {
    margin-top: 2rem;
    text-align: center;
}

body.page-home .browse-all-link a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    color: var(--pf-blue);
    border: 1px solid rgba(99, 201, 244, 0.3);
    border-radius: 999px;
    border-color: rgba(99, 201, 244, 0.3);
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
}

body.page-home .science-section {
    border-top: 1px solid var(--pf-line-dark);
}

body.page-home .science-card {
    border: 1px solid var(--pf-line-dark);
    border-left: 2px solid var(--pf-blue);
    background: rgba(255, 255, 255, 0.025);
}

body.page-home .science-number,
body.page-home .section-line,
body.page-home .footer-social-link,
body.page-home .footer-links a:hover {
    color: var(--pf-blue);
}

body.page-home .section-line {
    background: var(--pf-blue);
}

body.page-home .stats-section {
    display: none;
}

body.page-home .testimonials-section {
    display: none;
}

/* Browse: a visual mountain atlas while retaining canonical country links. */
body.page-resorts .header,
body.page-resort .header {
    background: rgba(248, 251, 253, 0.92);
    border-color: var(--pf-line-light);
    box-shadow: none;
}

body.page-resorts .page-content {
    max-width: 1384px;
    padding: 2rem 2rem 5rem;
}

body.page-resorts .page-title,
body.page-resort .section-title {
    letter-spacing: -0.045em;
}

.browse-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    min-height: 485px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(99, 201, 244, 0.11), transparent 32%),
        var(--pf-night);
    border: 1px solid rgba(207, 231, 243, 0.12);
    border-radius: 26px;
    box-shadow: 0 28px 80px rgba(9, 25, 37, 0.16);
    color: var(--pf-snow);
}

.browse-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.8rem 4rem;
}

.browse-hero .breadcrumbs {
    margin-bottom: 2.2rem;
    color: rgba(237, 247, 252, 0.5);
}

.browse-hero .breadcrumbs a,
.browse-hero .breadcrumbs .current {
    color: inherit;
}

.browse-hero .breadcrumbs a:hover {
    color: var(--pf-blue);
}

.browse-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--pf-blue-strong);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.browse-hero .browse-kicker {
    color: var(--pf-blue);
}

.browse-kicker::before {
    content: '';
    width: 26px;
    height: 1px;
    background: currentColor;
}

.browse-hero .page-title {
    max-width: 680px;
    margin: 0.8rem 0 1.2rem;
    color: var(--pf-snow);
    font-size: clamp(3.8rem, 6.2vw, 6rem);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.browse-hero .page-subtitle {
    max-width: 610px;
    margin: 0;
    color: rgba(237, 247, 252, 0.68);
    font-size: 1rem;
    line-height: 1.7;
}

.browse-facts {
    display: flex;
    gap: 0;
    margin-top: 2.4rem;
}

.browse-fact {
    display: grid;
    min-width: 118px;
    gap: 0.2rem;
    padding-right: 1.5rem;
    border-right: 1px solid var(--pf-line-dark);
}

.browse-fact + .browse-fact {
    padding-left: 1.5rem;
}

.browse-fact:last-child {
    border-right: 0;
}

.browse-fact strong {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1;
}

.browse-fact span {
    color: var(--pf-mist);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.browse-hero-visual {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background:
        linear-gradient(90deg, var(--pf-night) 0%, rgba(7, 12, 19, 0.2) 42%, rgba(7, 12, 19, 0.14) 100%),
        linear-gradient(0deg, rgba(7, 12, 19, 0.8), transparent 55%),
        url('/static/images/heroes/bc-whistler.jpg') center / cover;
}

.browse-hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 78% 18%, transparent 0 35px, rgba(237, 247, 252, 0.14) 36px 37px, transparent 38px 70px, rgba(237, 247, 252, 0.1) 71px 72px, transparent 73px),
        linear-gradient(135deg, transparent 48%, rgba(237, 247, 252, 0.08) 49%, transparent 50%);
    opacity: 0.8;
}

.browse-hero-visual-copy {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    left: 3rem;
    display: grid;
    gap: 0.35rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(237, 247, 252, 0.28);
}

.browse-visual-kicker {
    color: var(--pf-blue);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.browse-hero-visual-copy strong {
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
}

.browse-hero-visual-copy > span:last-child {
    color: rgba(237, 247, 252, 0.68);
    font-size: 0.78rem;
}

.browse-directory {
    padding-top: 4.5rem;
}

.browse-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
    margin-bottom: 1.6rem;
}

.browse-directory-title {
    margin: 0.4rem 0 0;
    color: var(--pf-ink);
    font-family: var(--font-serif);
    font-size: clamp(2.3rem, 4vw, 3.6rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
}

.browse-view-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--pf-line-light);
    border-radius: 999px;
    color: var(--pf-slate);
    font-size: 0.78rem;
    font-weight: 750;
    transition: 180ms ease;
}

.browse-view-link:hover {
    background: var(--pf-ink);
    border-color: var(--pf-ink);
    color: var(--pf-snow);
}

.browse-tools {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 230px;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.7rem;
    background: #fff;
    border: 1px solid var(--pf-line-light);
    border-radius: 16px;
    box-shadow: 0 16px 44px rgba(9, 25, 37, 0.07);
}

.browse-search-wrap {
    position: relative;
}

.browse-search-icon {
    position: absolute;
    z-index: 1;
    left: 1.05rem;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: var(--pf-slate);
    pointer-events: none;
}

.browse-search-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.browse-search,
.browse-sort {
    width: 100%;
    min-height: 54px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--pf-snow);
    color: var(--pf-ink);
    font: 600 0.88rem var(--font-sans);
    outline: 0;
}

.browse-search {
    padding: 0 1rem 0 3rem;
}

.browse-sort-wrap {
    position: relative;
    display: block;
}

.browse-sort-wrap > span {
    position: absolute;
    z-index: 1;
    top: 0.55rem;
    left: 0.9rem;
    color: var(--pf-slate);
    font-size: 0.58rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    pointer-events: none;
    text-transform: uppercase;
}

.browse-sort {
    min-width: 190px;
    padding: 1rem 2.5rem 0 0.9rem;
}

.browse-search:focus,
.browse-sort:focus {
    border-color: var(--pf-blue-strong);
    box-shadow: 0 0 0 4px var(--pf-blue-soft);
}

.browse-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.browse-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.browse-chip {
    border-color: var(--pf-line-light);
    background: transparent;
    color: var(--pf-slate);
    cursor: pointer;
    transition: 180ms ease;
}

.browse-chip:hover {
    border-color: #a8c8d9;
    color: var(--pf-ink);
}

.browse-chip.is-active {
    background: var(--pf-ink);
    border-color: var(--pf-ink);
    color: var(--pf-snow);
}

.browse-result-count {
    color: var(--pf-slate);
    font-size: 0.78rem;
    font-weight: 650;
    white-space: nowrap;
}

body.page-resorts .country-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

body.page-resorts .country-card {
    position: relative;
    display: block;
    min-height: 290px;
    padding: 0;
    overflow: hidden;
    background: #10202d;
    border: 1px solid rgba(9, 25, 37, 0.12);
    border-radius: 17px;
    box-shadow: none;
    isolation: isolate;
}

.country-card-visual {
    position: absolute;
    z-index: -2;
    inset: 0;
    background: url('/static/images/heroes/generic-powder-1.jpg') center / cover;
    transition: transform 450ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.country-card-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4, 10, 15, 0.34) 0%, rgba(4, 10, 15, 0.08) 38%, rgba(4, 10, 15, 0.88) 100%),
        linear-gradient(90deg, rgba(4, 10, 15, 0.24), transparent 70%);
}

.country-card[data-country='usa'] .country-card-visual { background-image: url('/static/images/heroes/utah.jpg'); }
.country-card[data-country='canada'] .country-card-visual { background-image: url('/static/images/heroes/bc-whistler.jpg'); }
.country-card[data-country='japan'] .country-card-visual { background-image: url('/static/images/heroes/japan-hokkaido.jpg'); }
.country-card[data-country='france'] .country-card-visual { background-image: url('/static/images/heroes/french-alps.jpg'); }
.country-card[data-country='switzerland'] .country-card-visual { background-image: url('/static/images/heroes/swiss-alps.jpg'); }
.country-card[data-country='austria'] .country-card-visual { background-image: url('/static/images/heroes/austrian-alps.jpg'); }
.country-card[data-country='italy'] .country-card-visual { background-image: url('/static/images/heroes/italian-dolomites.jpg'); }
.country-card[data-country='norway'] .country-card-visual,
.country-card[data-country='sweden'] .country-card-visual,
.country-card[data-country='finland'] .country-card-visual { background-image: url('/static/images/heroes/scandinavia.jpg'); }
.country-card[data-country='spain'] .country-card-visual,
.country-card[data-country='andorra'] .country-card-visual { background-image: url('/static/images/heroes/spain-pyrenees.jpg'); }
.country-card[data-country='new zealand'] .country-card-visual { background-image: url('/static/images/heroes/new-zealand.jpg'); }
.country-card[data-country='australia'] .country-card-visual { background-image: url('/static/images/heroes/australia.jpg'); }
.country-card[data-country='chile'] .country-card-visual { background-image: url('/static/images/heroes/chile.jpg'); }
.country-card[data-country='argentina'] .country-card-visual { background-image: url('/static/images/heroes/argentina.jpg'); }

.country-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.15rem;
}

.country-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.page-resorts .country-count {
    padding: 0.42rem 0.7rem;
    background: rgba(7, 12, 19, 0.46);
    border: 1px solid rgba(237, 247, 252, 0.22);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.country-arrow {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    background: rgba(7, 12, 19, 0.46);
    border: 1px solid rgba(237, 247, 252, 0.22);
    border-radius: 50%;
    color: #fff;
    font-size: 0.9rem;
    transition: 180ms ease;
    backdrop-filter: blur(10px);
}

.country-card-label {
    display: grid;
    gap: 0.35rem;
}

body.page-resorts .country-name {
    color: #fff;
    font-size: clamp(1.75rem, 2.4vw, 2.3rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.country-action {
    color: rgba(237, 247, 252, 0.72);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

body.page-resorts .country-card:hover {
    transform: translateY(-4px);
    border-color: rgba(38, 158, 212, 0.45);
    box-shadow: 0 20px 46px rgba(9, 25, 37, 0.18);
}

body.page-resorts .country-card:hover .country-card-visual {
    transform: scale(1.055);
}

body.page-resorts .country-card:hover .country-arrow {
    background: var(--pf-blue);
    border-color: var(--pf-blue);
    color: var(--pf-night);
    transform: rotate(8deg);
}

.country-card[hidden] {
    display: none;
}

.browse-empty {
    display: none;
    min-height: 280px;
    place-content: center;
    justify-items: center;
    gap: 0.45rem;
    padding: 4rem 1rem;
    border: 1px dashed #bdd0db;
    border-radius: 18px;
    text-align: center;
    color: var(--pf-slate);
}

.browse-empty strong {
    color: var(--pf-ink);
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 500;
}

.browse-empty-mark {
    font-size: 2rem;
}

.browse-empty.is-visible {
    display: grid;
}

/* Resort: the evidence and decision page. */
body.page-resort .hero {
    min-height: 570px;
    margin-top: 80px;
    background-position: center 42%;
}

body.page-resort .hero::before {
    background: linear-gradient(90deg, rgba(5, 11, 17, 0.88), rgba(5, 11, 17, 0.44));
}

body.page-resort .hero-container {
    max-width: 1320px;
    grid-template-columns: minmax(0, 1fr) 420px;
}

body.page-resort .hero-title {
    max-width: 820px;
    font-family: var(--font-serif);
    font-size: clamp(3.1rem, 6vw, 5.6rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

body.page-resort .hero-card {
    background: rgba(7, 14, 22, 0.84);
    border-color: rgba(207, 231, 243, 0.25);
    box-shadow: var(--pf-shadow);
}

body.page-resort .score-ring-fill,
body.page-resort .score-ring-fill.epic {
    stroke: var(--pf-blue);
}

body.page-resort .live-dot {
    background: var(--pf-blue);
}

html[data-evidence-state='forecast'] body.page-resort .live-dot {
    background: #d9ba70;
}

html[data-evidence-state='unavailable'] body.page-resort .live-dot {
    background: var(--pf-slate);
    box-shadow: none;
}

body.page-resort .live-text,
body.page-resort .hero-kicker {
    color: var(--pf-blue);
}

.resort-decision-rail {
    position: relative;
    z-index: 90;
    background: #0a141f;
    border-top: 1px solid var(--pf-line-dark);
    border-bottom: 1px solid var(--pf-line-dark);
    color: var(--pf-snow);
}

.resort-decision-inner {
    display: flex;
    max-width: 1320px;
    min-height: 112px;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.resort-trust-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    flex: 1;
}

.resort-trust-item {
    position: relative;
    display: grid;
    align-content: center;
    gap: 0.2rem;
    padding: 1.25rem 1.5rem;
    border-left: 1px solid var(--pf-line-dark);
}

.resort-trust-item:last-child {
    border-right: 1px solid var(--pf-line-dark);
}

.resort-trust-item::before {
    content: '';
    position: absolute;
    top: 1.35rem;
    left: 0.65rem;
    width: 5px;
    height: 5px;
    background: var(--pf-slate);
    border-radius: 50%;
}

.resort-trust-item.is-ready::before {
    background: var(--pf-blue);
    box-shadow: 0 0 0 4px rgba(99, 201, 244, 0.1);
}

.resort-trust-item.is-seasonal::before {
    background: #d9ba70;
}

.resort-trust-label {
    color: var(--pf-mist);
    font-size: 0.61rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.resort-trust-item strong {
    color: var(--pf-snow);
    font-size: 0.82rem;
    font-weight: 700;
}

.resort-trust-item > span:last-child {
    color: rgba(169, 186, 201, 0.68);
    font-size: 0.68rem;
}

.resort-quick-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.resort-action-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 0.9rem;
    background: transparent;
    border: 1px solid rgba(207, 231, 243, 0.2);
    border-radius: 999px;
    color: var(--pf-snow);
    cursor: pointer;
    font: 700 0.75rem var(--font-sans);
    transition: 180ms ease;
}

.resort-action-button:hover,
.resort-action-button:focus-visible {
    border-color: var(--pf-blue);
    color: var(--pf-blue);
    outline: none;
}

.resort-action-primary,
.resort-action-button.is-saved {
    background: var(--pf-blue);
    border-color: var(--pf-blue);
    color: #06111a;
}

.resort-action-primary:hover,
.resort-action-primary:focus-visible,
.resort-action-button.is-saved:hover,
.resort-action-button.is-saved:focus-visible {
    background: #8bd7f6;
    color: #06111a;
}

.resort-planning-banner {
    display: flex;
    max-width: 1256px;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 2rem auto 0;
    padding: 1.4rem 1.5rem;
    background: #edf6fa;
    border: 1px solid #cfe3ed;
    border-radius: 16px;
    color: var(--pf-ink);
}

.resort-planning-banner > div {
    display: grid;
    gap: 0.25rem;
}

.resort-planning-kicker {
    color: #1378a4;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.resort-planning-banner strong {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
}

.resort-planning-banner p {
    margin: 0;
    color: var(--pf-slate);
    font-size: 0.78rem;
}

.resort-planning-banner a {
    flex: 0 0 auto;
    color: #1378a4;
    font-size: 0.75rem;
    font-weight: 750;
}

.qr-arrival-banner {
    position: fixed;
    z-index: 1100;
    top: 96px;
    left: 50%;
    display: flex;
    width: min(720px, calc(100% - 2rem));
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    transform: translateX(-50%);
    background: rgba(7, 17, 26, 0.94);
    border: 1px solid rgba(99, 201, 244, 0.36);
    border-radius: 15px;
    box-shadow: 0 20px 70px rgba(3, 11, 18, 0.35);
    color: var(--pf-snow);
    backdrop-filter: blur(18px);
}

.qr-arrival-banner[hidden] {
    display: none;
}

.qr-arrival-banner > div:first-child {
    display: grid;
    gap: 0.15rem;
}

.qr-arrival-kicker {
    color: var(--pf-blue);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.qr-arrival-banner strong {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
}

.qr-arrival-banner > div:first-child > span:last-child {
    color: var(--pf-mist);
    font-size: 0.72rem;
}

.qr-arrival-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.qr-arrival-actions a {
    color: var(--pf-blue);
    font-size: 0.72rem;
    font-weight: 750;
    white-space: nowrap;
}

.qr-arrival-actions button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--pf-line-dark);
    border-radius: 50%;
    color: var(--pf-snow);
    cursor: pointer;
    font-size: 1.1rem;
}

.resort-mobile-dock {
    display: none;
}

.resort-subnav {
    position: sticky;
    top: 80px;
    z-index: 80;
    background: rgba(248, 251, 253, 0.94);
    border-bottom: 1px solid var(--pf-line-light);
    backdrop-filter: blur(18px);
}

.resort-subnav-inner {
    display: flex;
    max-width: 1320px;
    margin: 0 auto;
    overflow-x: auto;
    padding: 0 2rem;
    scrollbar-width: none;
}

.resort-subnav a {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 2px solid transparent;
    color: var(--pf-slate);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.resort-subnav a:first-child,
.resort-subnav a:hover {
    border-color: var(--pf-blue-strong);
    color: var(--pf-ink);
}

body.page-resort .section .container {
    max-width: 1320px;
}

body.page-resort .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.score-proof {
    background: #0a111a;
    color: var(--pf-snow);
}

.score-proof .section-title {
    color: var(--pf-snow);
}

.score-proof .section-intro {
    color: var(--pf-mist);
}

.score-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.score-proof-card {
    min-height: 154px;
    padding: 1.3rem;
    border: 1px solid var(--pf-line-dark);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.score-proof-label {
    margin-bottom: 1.1rem;
    color: var(--pf-mist);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.score-proof-value {
    color: var(--pf-snow);
    font-family: var(--font-serif);
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.score-proof-note {
    margin-top: 0.3rem;
    color: var(--pf-mist);
    font-size: 0.78rem;
}

body.page-resort .condition-card,
body.page-resort .forecast-day,
body.page-resort .detail-card,
body.page-resort .nearby-card {
    border-color: var(--pf-line-light);
    box-shadow: none;
}

body.page-resort .condition-card:hover,
body.page-resort .nearby-card:hover {
    border-color: rgba(38, 158, 212, 0.4);
}

body.page-resort .section-line {
    background: var(--pf-blue-strong);
}

/* Dashboard: board first, map second. */
body.page-dashboard > header {
    border-bottom: 1px solid var(--pf-line-dark);
}

body.page-dashboard .logo-tagline {
    color: var(--pf-blue);
}

body.page-dashboard .btn-primary {
    background: var(--pf-blue);
    border-color: var(--pf-blue);
    color: #07111a;
}

body.page-dashboard .btn:hover {
    background: #8bdcff;
    border-color: #8bdcff;
    color: #07111a;
}

.dashboard-briefing {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3.5rem 20px 1rem;
}

.dashboard-briefing-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.dashboard-briefing h1 {
    max-width: 760px;
    color: var(--pf-snow);
    font-family: var(--font-serif);
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.055em;
}

.dashboard-briefing p {
    max-width: 620px;
    margin-top: 0.85rem;
    color: var(--pf-mist);
}

.dashboard-saved-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(99, 201, 244, 0.34);
    border-radius: 999px;
    color: var(--pf-blue);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 750;
    white-space: nowrap;
}

body.page-dashboard > .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1400px;
}

body.page-dashboard .resort-grid-container {
    order: 1;
    height: auto;
    min-height: 300px;
    overflow: visible;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--pf-line-dark);
    border-radius: var(--pf-radius);
}

body.page-dashboard .dashboard-grid {
    order: 2;
}

body.page-dashboard .resort-grid-container h2 {
    color: var(--pf-snow);
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.04em;
}

body.page-dashboard .filter-tab.active {
    background: var(--pf-blue);
    border-color: var(--pf-blue);
    color: #07111a;
}

body.page-dashboard .dashboard-grid,
body.page-dashboard #map,
body.page-dashboard .card {
    border-color: var(--pf-line-dark);
}

body.page-dashboard .mobile-bottom-nav-item.active,
body.page-dashboard .mobile-bottom-nav-item:active {
    color: var(--pf-blue);
}

@media (max-width: 1024px) {
    body.page-home .hero-container,
    body.page-resort .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    body.page-home .hero-content {
        max-width: none;
    }

    body.page-home .top-resort-card,
    body.page-resort .hero-card {
        max-width: 620px;
    }

    .resort-decision-inner {
        flex-direction: column;
        gap: 0;
        padding-bottom: 1rem;
    }

    .resort-quick-actions {
        padding-top: 1rem;
    }

    body.page-home .spotlight-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    body.page-home .spotlight-conditions {
        grid-column: 2;
        margin-top: 1rem;
        padding: 1rem 0 0;
        border-left: 0;
        border-top: 1px solid var(--pf-line-dark);
    }

    body.page-resorts .country-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .browse-hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    }

    .browse-hero-copy {
        padding: 3.2rem 2.8rem;
    }

    .browse-hero .page-title {
        font-size: clamp(3.7rem, 7vw, 4.8rem);
    }

    .score-proof-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body.page-home .header,
    body.page-resort .header,
    body.page-resorts .header {
        height: 60px;
    }

    body.page-home .header-container,
    body.page-resort .header-container,
    body.page-resorts .header-container {
        height: 100%;
        padding: 0 1rem;
        flex-direction: row;
    }

    body.page-resort .theme-toggle,
    body.page-resorts .theme-toggle {
        display: none;
    }

    body.page-resort .header-nav,
    body.page-resorts .header-nav {
        gap: 0.8rem;
    }

    body.page-resort .header-nav > .nav-link:first-child,
    body.page-resorts .header-nav > .nav-link:first-child {
        display: none;
    }

    body.page-resorts .page-content {
        padding: 0.8rem 0.75rem 3.5rem;
    }

    .browse-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 20px;
    }

    .browse-hero-copy {
        padding: 2.4rem 1.25rem 2.1rem;
    }

    .browse-hero .breadcrumbs {
        margin-bottom: 1.7rem;
    }

    .browse-hero .page-title {
        margin-top: 0.7rem;
        font-size: clamp(3.2rem, 15vw, 4rem);
    }

    .browse-hero .page-subtitle {
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .browse-facts {
        margin-top: 1.8rem;
    }

    .browse-fact {
        min-width: 0;
        flex: 1;
        padding-right: 0.75rem;
    }

    .browse-fact + .browse-fact {
        padding-left: 0.75rem;
    }

    .browse-fact strong {
        font-size: 1.5rem;
    }

    .browse-fact span {
        font-size: 0.56rem;
    }

    .browse-hero-visual {
        min-height: 220px;
        background-position: center 42%;
    }

    .browse-hero-visual-copy {
        right: 1rem;
        bottom: 1rem;
        left: 1rem;
    }

    .browse-directory {
        padding-top: 3rem;
    }

    .browse-directory-title {
        font-size: 2.6rem;
    }

    .browse-view-link {
        min-height: 42px;
    }

    body.page-home .hero {
        margin-top: 60px;
        min-height: auto;
        padding: 0;
    }

    body.page-home .hero-container {
        padding: 3.5rem 1rem 2rem;
    }

    body.page-home .hero-title {
        font-size: clamp(3rem, 15vw, 4.2rem);
    }

    body.page-home .hero-visual {
        height: auto;
    }

    .storm-search {
        min-height: 54px;
    }

    .storm-search button {
        min-width: 84px;
    }

    .powder-board-header,
    .browse-heading,
    .browse-filter-row,
    .dashboard-briefing-row {
        align-items: flex-start;
        flex-direction: column;
    }

    body.page-home .spotlight-card {
        grid-template-columns: 34px minmax(0, 1fr);
        min-height: 190px;
        padding: 1rem 2.8rem 1rem 0.8rem;
    }

    body.page-home .spotlight-header {
        align-items: flex-start;
    }

    body.page-home .spotlight-score {
        font-size: 1.8rem;
    }

    body.page-home .spotlight-conditions {
        gap: 0.65rem;
    }

    body.page-home .region-grid,
    body.page-resorts .country-grid,
    .score-proof-grid {
        grid-template-columns: 1fr;
    }

    body.page-home .region-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
        padding: 0 1rem;
    }

    body.page-home .region-card {
        min-height: 108px;
    }

    .browse-tools {
        grid-template-columns: 1fr;
        padding: 0.55rem;
    }

    .browse-sort {
        min-width: 0;
    }

    .browse-result-count {
        white-space: normal;
    }

    body.page-resorts .country-card {
        min-height: 275px;
    }

    body.page-resort .hero {
        margin-top: 60px;
        min-height: auto;
    }

    body.page-resort .hero-title {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .resort-decision-inner {
        padding: 0 0.75rem 1rem;
    }

    .resort-trust-list {
        grid-template-columns: 1fr;
    }

    .resort-trust-item {
        min-height: 82px;
        padding: 1rem 1.4rem;
        border-right: 1px solid var(--pf-line-dark);
        border-bottom: 1px solid var(--pf-line-dark);
    }

    .resort-trust-item::before {
        top: 1.15rem;
        left: 0.55rem;
    }

    .resort-quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .resort-planning-banner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
        margin: 1rem 0.75rem 0;
    }

    .qr-arrival-banner {
        top: 72px;
        align-items: flex-start;
        padding: 0.9rem;
    }

    .qr-arrival-actions a {
        display: none;
    }

    .resort-mobile-dock {
        position: fixed;
        z-index: 950;
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
        padding: 0.55rem;
        background: rgba(7, 17, 26, 0.94);
        border: 1px solid rgba(207, 231, 243, 0.22);
        border-radius: 16px;
        box-shadow: 0 18px 54px rgba(3, 11, 18, 0.35);
        backdrop-filter: blur(18px);
    }

    .resort-mobile-dock a,
    .resort-mobile-dock button {
        display: inline-flex;
        min-height: 46px;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid rgba(207, 231, 243, 0.18);
        border-radius: 11px;
        color: var(--pf-snow);
        font: 750 0.76rem var(--font-sans);
        text-decoration: none;
    }

    .resort-mobile-dock button {
        background: var(--pf-blue);
        border-color: var(--pf-blue);
        color: #07111a;
    }

    body.page-resort {
        padding-bottom: 78px;
    }

    .resort-subnav {
        top: 60px;
    }

    .resort-subnav-inner {
        padding: 0 0.5rem;
    }

    .dashboard-briefing {
        padding-top: 2.4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-home .spotlight-card,
    body.page-home .top-resort-card,
    body.page-resorts .country-card {
        transition: none;
    }

    .country-card-visual {
        transition: none;
    }

    body.page-resort .weather-fx {
        display: none;
    }

    .resort-action-button {
        transition: none;
    }
}
