/* =============================================================
   sn0w | DIRECTORY STYLES
   Maps, Resorts and Gear — consolidated without selector changes.
   ============================================================= */


/* =============================================================
   MAPS — SHARED DIRECTORY FOUNDATION
   Source: map-directory
   ============================================================= */
/* sn0w / Maps directory. Shared shell lives in maps.css and masthead.css. */
.maps-page { min-height: 100dvh; }
.maps-content {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    padding: clamp(11rem, 19vh, 15rem) clamp(1.5rem, 4vw, 5rem) 7rem;
    color: #fff;
}
.maps-intro { max-width: 72rem; margin-bottom: 2.5rem; }
.maps-eyebrow, .maps-section-label, .maps-world-label {
    color: #d7bc77;
    font: 700 .72rem/1.4 Arial, Helvetica, sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.maps-eyebrow { margin: 0 0 .75rem; }
.maps-intro h1 { margin: 0 0 .75rem; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.05; }
.maps-intro > p:not(.maps-eyebrow) { max-width: 43rem; margin: 0; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.6; }
.maps-intro .maps-summary { margin-top: 1rem !important; font-size: .85rem !important; color: #c9c9c9; letter-spacing: .03em; }

/* Charcoal, rather than navy; gold remains the accent. */
.maps-world {
    display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
    padding: 1.35rem 1.6rem; margin-bottom: 1.5rem;
    border: 1px solid rgba(215,188,119,.5);
    background: rgba(38,38,38,.85);
    border-radius: 10px;
}
.maps-world a { color: #fff; font-size: 1.3rem; font-weight: 700; text-decoration: none; }
.maps-world a:hover, .maps-world a:focus-visible { color: #f0cf7b; }
.maps-directory { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.3rem; align-items: start; }
.maps-continent {
    min-width: 0;
    border: 1px solid rgba(255,255,255,.19);
    background: rgba(39,39,39,.88);
    border-radius: 10px;
    overflow: hidden;
}
.maps-continent-heading, .maps-country-heading {
    display: flex;
    align-items: center;
    gap: .9rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.maps-continent-heading::-webkit-details-marker, .maps-country-heading::-webkit-details-marker { display: none; }
.maps-continent-heading { padding: 1.35rem 1.5rem; }
.maps-continent-heading:hover, .maps-continent-heading:focus-visible,
.maps-country-heading:hover, .maps-country-heading:focus-visible { background: rgba(255,255,255,.065); }
.maps-continent-heading:focus-visible, .maps-country-heading:focus-visible { outline: 2px solid #d7bc77; outline-offset: -2px; }
.maps-disclosure {
    flex: 0 0 .55rem;
    width: .55rem; height: .55rem;
    border-right: 2px solid #d7bc77;
    border-bottom: 2px solid #d7bc77;
    transform: rotate(-45deg);
    transition: transform .15s ease;
}
.maps-continent[open] > .maps-continent-heading > .maps-disclosure,
.maps-country[open] > .maps-country-heading > .maps-disclosure { transform: rotate(45deg); }
.maps-heading-text { min-width: 0; flex: 1; }
.maps-section-label { display: block; margin-bottom: .4rem; }
.maps-continent-title { display: block; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.2; font-weight: 700; }
.maps-count { margin-left: auto; white-space: nowrap; color: #c6c6c6; font-size: .8rem; }
.maps-continent-body { padding: 0 1.5rem 1.4rem; border-top: 1px solid rgba(215,188,119,.35); }
.maps-open-map { display: inline-block; margin: .9rem 0 .5rem; color: #e7ce8b; font-size: .87rem; font-weight: 700; text-decoration: none; }
.maps-open-map:hover, .maps-open-map:focus-visible { color: #fff; text-decoration: underline; }
.maps-countries { display: grid; }
.maps-country { border-bottom: 1px solid rgba(255,255,255,.12); }
.maps-country:last-child { border-bottom: 0; }
.maps-country-heading { padding: .9rem .3rem; font-size: 1rem; font-weight: 700; }
.maps-country-name { flex: 1; }
.maps-region-count, .maps-ambiguous { color: #bcbcbc; font-size: .73rem; font-weight: 400; }
.maps-country-body { padding: 0 .3rem .9rem 1.6rem; }
/* Plain, readable region lists instead of a wall of buttons. */
.maps-regions {
    display: block;
    list-style: disc outside;
    margin: .45rem 0 .1rem;
    padding: 0 0 0 1.4rem;
}
.maps-regions li {
    display: list-item;
    break-inside: avoid;
    padding: .18rem 0;
    color: #a9a9a9;
    font-size: .9rem;
    line-height: 1.55;
}
.maps-regions a {
    color: #dedede;
    text-decoration: none;
    text-underline-offset: .2em;
}
.maps-regions a:hover, .maps-regions a:focus-visible {
    color: #f0cf7b;
    text-decoration: underline;
}
.maps-regions span { color: #a4a4a4; }
.maps-empty-continent, .maps-empty { color: #d0d0d0; }
.maps-note { margin: 2rem 0 0; max-width: 48rem; color: #c5c5c5; font-size: .82rem; line-height: 1.6; }
@media (max-width: 700px) {
    .maps-content { padding-top: 11rem; }
    .maps-continent-heading { padding: 1.1rem; }
    .maps-continent-body { padding: 0 1.1rem 1.1rem; }
    .maps-world { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .maps-disclosure { transition: none; } }

/* The Maps title and introduction now live in the fixed shared stripe. */
.maps-content {
    padding-top: calc(var(--sn0w-content-start, 9.625rem) + 1.5rem);
}
.maps-content > .maps-summary {
    margin: 0 0 1.5rem;
    color: #c9c9c9;
    font-size: .85rem;
    letter-spacing: .03em;
}
@media (max-width: 700px) {
    .maps-content { padding-top: calc(var(--sn0w-content-start, 9.625rem) + 1.25rem); }
}


/* =============================================================
   RESORTS — DIRECTORY EXTENSIONS
   Source: resort-directory
   ============================================================= */
/* Resorts index: small, scoped additions to existing Maps directory design. */
.resorts-index-page .resort-directory-country-body { padding-top: 0.7rem; }
.resorts-index-page .resort-directory-region + .resort-directory-region { margin-top: 1.25rem; }
.resorts-index-page .resort-directory-region-title {
  margin: 0 0 0.65rem; padding: 0 0 0.4rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: #cbbd89;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.resorts-index-page .resort-directory-list {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,260px),1fr));
  gap: .65rem; list-style: none; padding: 0; margin: 0;
}
.resorts-index-page .resort-directory-link {
  display: flex; align-items: center; gap: .85rem;
  padding: .7rem .85rem; min-height: 72px;
  border: 1px solid rgba(255,255,255,.13); border-radius: .55rem;
  background: rgba(8,19,31,.56); text-decoration: none; color: #f3f5f8;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.resorts-index-page .resort-directory-link:hover,
.resorts-index-page .resort-directory-link:focus-visible {
  background: rgba(33,58,75,.85); border-color: rgba(209,184,115,.76);
  transform: translateY(-1px); outline-offset: 2px;
}
.resorts-index-page .resort-directory-logo {
  flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center;
  background: rgba(255,255,255,.94); border-radius: .38rem; overflow: hidden;
}
.resorts-index-page .resort-directory-logo img { display:block; width: 100%; height:100%; object-fit: contain; padding: 4px; box-sizing: border-box; }
.resorts-index-page .resort-directory-logo img[hidden],
.resorts-index-page .resort-directory-monogram[hidden] { display: none; }
.resorts-index-page .resort-directory-monogram { color: #24384a; font-weight: 800; font-size: 1.4rem; }
.resorts-index-page .resort-directory-name { flex: 1; font-size: .96rem; font-weight: 600; line-height: 1.3; }
.resorts-index-page .resort-directory-arrow { color: #cbbd89; font-size: 1.1rem; }
@media(max-width:600px) {
  .resorts-index-page .resort-directory-list { grid-template-columns: 1fr; }
  .resorts-index-page .resort-directory-link { min-height: 64px; }
}


/* =============================================================
   GEAR — PRODUCT DIRECTORY
   Source: product-directory
   ============================================================= */
/* sn0w / Gear directory — graphite palette, right-side category navigation.
   The shared masthead and stripe remain in masthead.css. */
.products-page { min-height: 100dvh; }
.products-content { position: relative; z-index: 1; width: 100%; box-sizing: border-box; padding: calc(var(--sn0w-stripe-top, 6.75rem) + var(--sn0w-stripe-height, 3.5rem) + 1.5rem) clamp(1.5rem, 4vw, 5rem) 10rem; color: #fff; }
.products-status { margin: 0; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.6; }
.gear-eyebrow { color: #d4b56a; font-size: .72rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 750; margin: 0 0 .65rem; }
.gear-intro { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.gear-intro h2 { font-size: clamp(2.2rem, 4vw, 4.5rem); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 .75rem; }
.gear-intro p:not(.gear-eyebrow), .gear-result-count { color: #c0c0c0; margin: 0; line-height: 1.6; }
.gear-total { margin: 0; text-align: right; white-space: nowrap; }
.gear-total strong { display: block; font-size: 2.4rem; line-height: 1.1; }
.gear-total span { color: #c0c0c0; font-size: .8rem; }
/* Top-level departments occupy the shared charcoal stripe; detailed categories stay in the sidebar. */
.products-page .sn0w-section-stripe { display: flex; align-items: stretch; min-width: 0; }
.gear-departments { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; max-width: 100%; gap: .2rem; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; white-space: nowrap; }
.products-page .sn0w-section-stripe .gear-departments { align-self: stretch; margin-left: .75rem; }
.gear-department { display: inline-flex; align-items: center; flex: 0 0 auto; padding: 0 .9rem; border-bottom: 0; color: #999; text-decoration: none; font-weight: 550; font-size: .76rem; letter-spacing: .025em; text-transform: uppercase; transition: color .15s ease, transform .15s ease; transform-origin: center; }
.gear-department:hover, .gear-department:focus-visible { color: #fff; transform: translateY(-1px) scale(1.25); }
.gear-department:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.gear-department.is-active { color: #fff; font-weight: 800; }
/* Fallback if an older masthead lacks a stripe. */
.products-content > .gear-departments { margin: 0 0 1.5rem; min-height: 3.25rem; background: #222; }
.gear-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 15rem); align-items: start; gap: clamp(1.5rem, 3vw, 3rem); }
.gear-sidebar { grid-column: 2; grid-row: 1; padding: 1.3rem; background: rgba(32,32,32,.92); border: 1px solid rgba(180,180,180,.22); border-radius: 12px; }
.gear-sidebar h3 { margin: 0 0 1rem; font-size: 1rem; }
.gear-category-all, .gear-category-parent, .gear-category-child { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; color: #d0d0d0; text-decoration: none; padding: .45rem .55rem; border-radius: 5px; font-size: .9rem; }
.gear-category-all { font-weight: 700; }
.gear-category-group { margin-top: 1rem; }
.gear-category-parent { color: white; font-weight: 750; }
.gear-category-child { font-size: .82rem; padding-left: 1rem; }
.gear-category-child small, .gear-category-all span { color: #aaa; }
.gear-sidebar a:hover, .gear-sidebar a.is-current { background: rgba(200,175,115,.18); color: #fff; }
.gear-main { grid-column: 1; grid-row: 1; min-width: 0; }
.gear-results-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1.2rem; }
.gear-results-heading h3 { margin: 0 0 .2rem; font-size: clamp(1.6rem, 2.5vw, 2.4rem); }
.gear-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; margin-bottom: 1.4rem; padding: 1rem; border-radius: 10px; background: rgba(32,32,32,.92); border: 1px solid rgba(180,180,180,.22); }
.gear-filters label { display: flex; flex: 1 1 125px; min-width: 0; flex-direction: column; gap: .4rem; color: #c2c2c2; font-size: .75rem; font-weight: 650; }
.gear-filters select { width: 100%; min-width: 0; font-size: .86rem; }
.gear-filters button { background: #555; border: 0; border-radius: 6px; padding: .73rem 1.1rem; color: white; font-weight: 750; cursor: pointer; }
.gear-filters button:hover { background: #666; }
.gear-reset { color: #d8c18a; font-size: .8rem; padding: .7rem .2rem; text-decoration: underline; }
.gear-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gear-product { overflow: hidden; min-width: 0; border: 1px solid rgba(180,180,180,.22); border-radius: 12px; background: rgba(35,35,35,.94); }
.gear-product-art { position: relative; aspect-ratio: 4/3; display: flex; justify-content: center; align-items: center; background: linear-gradient(145deg, #3b3b3b, #242424); }
.gear-product-art img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: contain; background: #f1f5f9; }
.gear-product-placeholder { opacity: .26; font-size: 1.9rem; font-weight: 850; letter-spacing: -.075em; }
.gear-product-info { padding: 1rem; }
.gear-product-brand { text-transform: uppercase; color: #d2b66d; font-size: .72rem; font-weight: 750; letter-spacing: .07em; margin: 0 0 .35rem; }
.gear-product-info h4 { margin: 0 0 .5rem; font-size: 1.05rem; line-height: 1.3; }
.gear-product-meta { color: #bbb; font-size: .8rem; margin: 0 0 .55rem; }
.gear-product-price { font-weight: 700; margin: .6rem 0 0; }
.gear-product-link { display: inline-block; color: #d9c58c; font-size: .81rem; margin-top: .85rem; text-decoration: none; }
.gear-product-link:hover { text-decoration: underline; }
.gear-empty { border: 1px dashed #666; border-radius: 12px; text-align: center; padding: 3rem 1rem; }
.gear-empty h4 { margin: 0 0 .5rem; }
.gear-empty p { color: #bdbdbd; margin: 0; }
.gear-pagination { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: 2rem; font-size: .88rem; }
.gear-pagination a { color: #d9c58c; text-decoration: none; }
.gear-pagination a:hover { text-decoration: underline; }
@media (max-width: 1050px) { .gear-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .gear-intro { align-items: start; } .gear-layout { grid-template-columns: 1fr; } .gear-sidebar { display: block; grid-column: 1; grid-row: 2; } .gear-main { grid-column: 1; grid-row: 1; } .gear-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) { .gear-intro { display: block; } .gear-total { text-align: left; margin-top: 1rem; } .gear-product-grid { grid-template-columns: 1fr; } }

/* Filter result tally sits immediately below the controls. */
.gear-main > .gear-result-count { margin: -.45rem 0 1.35rem; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { .gear-department { transition: none; } .gear-department:hover, .gear-department:focus-visible { transform: none; } }
