:root {
    --paper: #f6f3ea;
    --paper-deep: #efe9d8;
    --ink: #23261f;
    --ink-soft: #565947;
    --pine: #1f3a30;
    --pine-mid: #345545;
    --brass: #9c6b2e;
    --brass-deep: #7c5322;
    --line: #ddd5bd;
    --line-strong: #c7bc9c;
    --card: #fffdf8;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    padding-bottom: 2.5rem;
}

a { color: inherit; }

/* ---------- Page menu: nav + filters, sits under the banner ---------- */

.page-menu {
    background-color: var(--paper-deep);
    border-bottom: 1px solid var(--line);
}

/* ---------- Brand bar: site wordmark, part of the top banner on every page ---------- */

.brand-bar {
    background-color: var(--pine);
    padding: 0.4rem 1.5rem;
}

.brand-bar-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.brand-bar-link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.02rem;
    text-decoration: none;
    color: #eef2ea;
    display: inline-flex;
    align-items: center;
}

.brand-bar-logo {
    display: block;
    height: 48px;
    width: auto;
}

/* ---------- Page menu: site-page navigation only (Routes / Trail Prep Guide) ---------- */

.page-menu-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background-color: var(--card);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 0.35rem 0.4rem 0.35rem 0.9rem;
}

.nav-search input[type="text"] {
    border: none;
    outline: none;
    background: none;
    font-family: var(--font-body);
    font-size: 0.84rem;
    color: var(--ink);
    width: 180px;
}

.nav-search input[type="text"]::placeholder { color: var(--ink-soft); }

.nav-search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background-color: var(--pine);
    color: #f4f7f1;
    cursor: pointer;
    font-size: 0.85rem;
    flex-shrink: 0;
    padding: 0;
}

.nav-search-submit:hover { background-color: var(--pine-mid); }

@media (max-width: 560px) {
    .nav-search { width: 100%; order: 3; }
    .nav-search input[type="text"] { width: 100%; }
}

.nav-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nav-pill {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink-soft);
    background-color: transparent;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-pill:hover { background-color: rgba(31,58,48,0.08); color: var(--pine); }

.nav-pill.is-current {
    background-color: var(--pine);
    color: #f4f7f1;
}

/* ---------- Gallery toolbar: filters, scoped to the trail gallery on the homepage ---------- */

.gallery-toolbar {
    margin: 1.75rem 0 1.1rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
}

.filter-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pills-label {
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-right: 0.15rem;
}

.filter-pill {
    background-color: var(--card);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-pill:hover { border-color: var(--line-strong); color: var(--pine); }

.filter-pill.active {
    background-color: var(--brass);
    border-color: var(--brass);
    color: #fffdf8;
}

/* ---------- Header ---------- */

header {
    position: relative;
    background-color: var(--pine);
    color: #eef2ea;
    padding: 2.25rem 1.5rem 2.5rem 1.5rem;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background-image:
        repeating-radial-gradient(circle at 18% 30%, transparent 0, transparent 38px, rgba(238,242,234,0.5) 39px, transparent 40px),
        repeating-radial-gradient(circle at 85% 70%, transparent 0, transparent 52px, rgba(238,242,234,0.5) 53px, transparent 54px);
    pointer-events: none;
}

.header-content {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.header-logo-link {
    display: block;
    flex-shrink: 0;
}

.header-logo {
    display: block;
    height: 230px;
    width: auto;
}

.header-text {
    flex: 1;
    min-width: 0;
}

@media (max-width: 900px) {
    .header-logo {
        height: 170px;
    }
    .header-content {
        gap: 1.5rem;
    }
}

@media (max-width: 560px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .header-logo {
        height: 130px;
    }
}

.header-eyebrow {
    font-size: 0.85rem;
    color: #cfe0d4;
    font-style: italic;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
}

h1 {
    font-family: var(--font-display);
    font-size: 2.15rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 0.6rem;
    max-width: 20ch;
}

header p.lede {
    font-size: 1rem;
    color: #d6e2d9;
    max-width: 46ch;
    margin-bottom: 1.5rem;
}

.search-container {
    max-width: 460px;
    border-bottom: 1.5px solid rgba(238,242,234,0.45);
    padding-bottom: 0.4rem;
    transition: border-color 0.2s ease;
}

.search-container:focus-within { border-color: #eef2ea; }

.search-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: #a9c2b0;
    margin-bottom: 0.3rem;
}

#search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #f4f7f1;
    padding: 0.1rem 0;
}

#search-input::placeholder { color: #9fb6a5; }

/* ---------- Main / filters ---------- */

.main-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Tour grid ---------- */

.intro-copy {
    font-size: 0.92rem;
    color: var(--ink-soft);
    max-width: 68ch;
    margin: 1.5rem 0 0;
}

.tours-grid { margin-top: 1.75rem; }

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.25rem;
}

.tour-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--card);
    text-decoration: none;
    transition: border-color 0.18s ease;
}

.tour-card:hover { border-color: var(--line-strong); }

.tour-image-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    background-color: var(--paper-deep);
}

.tour-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.02);
    transition: transform 0.4s ease;
}

.tour-card:hover .tour-image-wrapper img { transform: scale(1.035); }

.tour-flag {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    color: #fbf8f0;
    background-color: var(--pine);
    padding: 0.32rem 0.7rem;
    border-radius: 2px;
    letter-spacing: 0.01em;
}

.tour-flag-alt { background-color: var(--brass-deep); }
.tour-flag-winter { background-color: var(--pine-mid); }

.tour-content {
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.25rem 1.35rem;
    flex-grow: 1;
}

.tour-meta { display: flex; gap: 1rem; margin-bottom: 0.55rem; font-size: 0.76rem; }
.badge-difficulty { color: var(--brass-deep); font-weight: 600; }
.badge-duration { color: var(--ink-soft); }
.badge-difficulty::after {
    content: "";
    display: inline-block;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--line-strong);
    margin-left: 1.1rem;
    vertical-align: middle;
}

.tour-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.tour-location { font-size: 0.8rem; color: var(--brass-deep); margin-bottom: 0.55rem; font-weight: 500; }
.tour-description { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1rem; flex-grow: 1; }
.tour-action { margin-top: auto; }

.btn {
    display: block;
    width: 100%;
    text-align: center;
    background: none;
    color: var(--pine);
    border: 1px solid var(--pine);
    padding: 0.55rem 1rem;
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease;
    cursor: pointer;
}

.btn:hover { background-color: var(--pine); color: #f4f7f1; }

.btn-brass {
    width: auto;
    display: inline-block;
    border-color: var(--brass);
    color: var(--brass-deep);
    white-space: nowrap;
}

.btn-brass:hover { background-color: var(--brass); color: #fffdf8; }

.no-results {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    display: none;
    border-top: 1px solid var(--line);
}

.btn-fallback {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--ink-soft);
    text-decoration: none;
}

.btn-fallback:hover { color: var(--pine); text-decoration: underline; }

/* ---------- Guide teaser on homepage ---------- */

.teasers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0 1rem;
}

.guide-teaser {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 1.75rem;
    background-color: var(--paper-deep);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.guide-teaser-text { max-width: 46ch; }
.guide-teaser-text .teaser-eyebrow {
    font-size: 0.85rem;
    color: var(--brass-deep);
    font-style: italic;
    font-family: var(--font-display);
    margin-bottom: 0.4rem;
}
.guide-teaser-text h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.35rem;
    margin: 0.2rem 0 0.5rem;
}
.guide-teaser-text p:last-child { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
    max-width: 1080px;
    margin: 3rem auto 0;
    padding: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
    color: var(--ink-soft);
}

/* ---------- Detail page ---------- */

.detail-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background-color: var(--paper-deep);
}

.detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.breadcrumb {
    max-width: 1080px;
    margin: 1.25rem auto 0;
    padding: 0 1.5rem;
    font-size: 0.82rem;
    color: var(--ink-soft);
}

.breadcrumb a { color: var(--pine); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.detail-layout {
    max-width: 1080px;
    margin: 1.25rem auto 0;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
    align-items: start;
}

.detail-main .detail-location {
    font-size: 0.85rem;
    color: var(--brass-deep);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.detail-main h1 {
    max-width: none;
    font-size: 2rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
    padding: 0.9rem 0;
    margin-bottom: 1.4rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.detail-meta-row strong { color: var(--ink); font-weight: 600; display: block; font-size: 0.72rem; text-transform: none; }

.detail-body p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.2rem; max-width: 68ch; }

.detail-section-heading {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.15rem;
    margin: 1.75rem 0 0.75rem;
}

.detail-highlights { list-style: none; margin-bottom: 1.5rem; }
.detail-highlights li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    color: var(--ink-soft);
    margin-bottom: 0.55rem;
    max-width: 60ch;
}
.detail-highlights li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }

.booking-panel {
    position: sticky;
    top: 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.35rem;
}

.booking-heading { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; margin-bottom: 0.3rem; }
.booking-subtext { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 1rem; }
.booking-subtext a { color: var(--pine); }
#gyg-widget-container { min-height: 80px; margin-bottom: 1rem; }

.affiliate-note {
    font-size: 0.72rem;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
    padding-top: 0.85rem;
    margin-top: 0.4rem;
}

/* ---------- Guide page ---------- */

.guide-layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.guide-nav {
    position: sticky;
    top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 1.5rem 0;
}

.guide-nav-link {
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--ink-soft);
    padding: 0.5rem 0.75rem;
    border-left: 2px solid transparent;
    border-radius: 2px;
}

.guide-nav-link:hover { color: var(--pine); background-color: var(--paper-deep); }

.guide-nav-link.is-active {
    color: var(--brass-deep);
    border-left-color: var(--brass);
    font-weight: 600;
    background-color: var(--paper-deep);
}

.guide-section {
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 5.5rem;
}

.guide-section:last-child { border-bottom: none; }

.guide-section h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    margin-bottom: 0.9rem;
}

.guide-section h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    margin: 1.25rem 0 0.5rem;
}

.guide-section p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.9rem; max-width: 68ch; }

.guide-section ul, .guide-section ol {
    margin: 0 0 1rem 1.2rem;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.guide-section li { margin-bottom: 0.45rem; max-width: 62ch; }

.guide-callout {
    background-color: var(--paper-deep);
    border-left: 3px solid var(--brass);
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
    border-radius: 0 2px 2px 0;
    margin: 1rem 0 1.4rem;
    max-width: 62ch;
}

.guide-callout strong { color: var(--ink); }

.gear-placeholder {
    border: 1px dashed var(--line-strong);
    border-radius: 4px;
    padding: 1rem 1.1rem;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin: 1rem 0 1.4rem;
    max-width: 62ch;
}

/* ---------- Product recommendation cards (Amazon etc.) ---------- */

.product-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0 0.5rem;
    max-width: 62ch;
    background-color: var(--card);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease;
}

.product-card:hover { border-color: var(--line-strong); }

.product-card-image {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 2px;
    flex-shrink: 0;
    background-color: var(--paper-deep);
}

.product-card-body { flex-grow: 1; }

.product-card-title {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.3rem;
}

.product-card-desc {
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-bottom: 0.5rem;
}

.product-card-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brass-deep);
}

.affiliate-disclosure {
    font-size: 0.72rem;
    color: var(--ink-soft);
    font-style: italic;
    margin: 0.5rem 0 1.4rem;
    max-width: 62ch;
}

/* ---------- Trail photo gallery ---------- */

.trail-gallery { margin: 1.75rem 0; }

.gallery-viewport {
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-thumb {
    flex: 0 0 calc((100% - 5 * 0.6rem) / 6);
    scroll-snap-align: start;
}

.gallery-thumb img,
.gallery-thumb-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    border: 1px solid var(--line);
}

.gallery-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    background-color: var(--paper-deep);
    border-style: dashed;
    border-color: var(--line-strong);
    color: var(--ink-soft);
    font-size: 0.62rem;
    text-align: center;
    padding: 0.4rem;
    line-height: 1.25;
}

.gallery-thumb-placeholder svg { width: 20px; height: 20px; opacity: 0.55; }

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background-color: var(--card);
    color: var(--pine);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(35, 38, 31, 0.12);
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.gallery-arrow:hover { background-color: var(--pine); color: #f4f7f1; }
.gallery-arrow:disabled { opacity: 0.3; cursor: default; }
.gallery-arrow:disabled:hover { background-color: var(--card); color: var(--pine); }
.gallery-arrow-prev { left: -14px; }
.gallery-arrow-next { right: -14px; }

@media (max-width: 780px) {
    .gallery-thumb { flex-basis: calc((100% - 2 * 0.6rem) / 3); }
}

@media (max-width: 480px) {
    .gallery-thumb { flex-basis: calc((100% - 1 * 0.6rem) / 2); }
    .gallery-arrow-prev { left: -6px; }
    .gallery-arrow-next { right: -6px; }
}

/* ---------- Product recommendation cards (Amazon etc.) ---------- */

.product-card-image-placeholder {
    width: 72px;
    height: 96px;
    flex-shrink: 0;
    border: 1px dashed var(--line-strong);
    border-radius: 2px;
    background-color: var(--paper-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
}

.product-card-image-placeholder svg { width: 22px; height: 22px; opacity: 0.55; }

/* ---------- Gear checklist page ---------- */

.checklist-cta {
    max-width: 1080px;
    margin: 3rem auto 2rem;
    padding: 0 1.5rem;
}

.checklist-cta-box {
    background-color: var(--pine);
    color: #eef2ea;
    border-radius: 10px;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.checklist-cta-icon {
    font-size: 2.25rem;
    line-height: 1;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(238, 242, 234, 0.1);
    border-radius: 50%;
}

.checklist-cta-text {
    flex: 1;
    min-width: 220px;
}

.checklist-cta-text h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.checklist-cta-text p {
    font-size: 0.9rem;
    color: #d6e2d9;
    max-width: 46ch;
}

.checklist-cta .btn-brass {
    flex-shrink: 0;
    background-color: var(--brass);
    color: #fffdf8;
    border-color: var(--brass);
    padding: 0.75rem 1.4rem;
    font-size: 0.9rem;
}

.checklist-cta .btn-brass:hover {
    background-color: var(--brass-deep);
    border-color: var(--brass-deep);
    color: #fffdf8;
}

@media (max-width: 560px) {
    .checklist-cta-box {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .checklist-cta .btn-brass {
        width: 100%;
        text-align: center;
    }
}

.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;
}

.checklist-progress {
    max-width: 1080px;
    margin: 1.5rem auto 0;
    padding: 0 1.5rem;
}

.checklist-progress-bar {
    position: relative;
    height: 8px;
    background-color: var(--paper-deep);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.checklist-progress-fill {
    position: absolute;
    inset: 0;
    width: 0%;
    background-color: var(--brass);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.checklist-progress-label {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.checklist-progress-label button {
    background: none;
    border: none;
    color: var(--pine);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-left: 0.75rem;
}

.checklist-layout {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.checklist-category {
    border: 1px solid var(--line);
    border-radius: 4px;
    background-color: var(--card);
    padding: 1.25rem 1.4rem;
}

.checklist-category h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

.checklist-items { list-style: none; }

.checklist-items li { margin-bottom: 0.6rem; }

.checklist-items label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
    cursor: pointer;
    line-height: 1.4;
}

.checklist-items input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
    accent-color: var(--pine);
    flex-shrink: 0;
    cursor: pointer;
}

.checklist-items input[type="checkbox"]:checked ~ span.item-text {
    color: var(--ink);
    text-decoration: line-through;
    text-decoration-color: var(--line-strong);
}

.badge-multiday {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--brass-deep);
    background-color: var(--paper-deep);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.08rem 0.5rem;
    vertical-align: middle;
}

.checklist-note {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem 2rem;
    font-size: 0.8rem;
    color: var(--ink-soft);
    max-width: 68ch;
}

@media print {
    .brand-bar, .page-menu, .checklist-progress,
    .site-footer, .checklist-cta, .teasers-grid { display: none !important; }
    header { background: none !important; color: var(--ink) !important; padding: 0.5rem 0 1rem !important; }
    header::before { display: none !important; }
    .header-eyebrow, .lede { color: var(--ink-soft) !important; }
    h1 { color: var(--ink) !important; }
    .checklist-layout { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; padding: 0.5rem 0; }
    .checklist-category { border: none; padding: 0; break-inside: avoid; }
    body { padding-bottom: 0; }
}



/* ---------- YouTube video embeds ---------- */

.video-embed { margin: 1rem 0 1.75rem; max-width: 62ch; }

.video-embed-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--paper-deep);
    border: 1px solid var(--line);
}

.video-embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed-caption {
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-top: 0.5rem;
}

.video-embed-caption a { color: var(--pine); text-decoration: underline; }

@media (max-width: 780px) {
    .detail-layout, .guide-layout { grid-template-columns: 1fr; }
    .guide-nav { position: static; flex-direction: row; overflow-x: auto; padding: 1rem 0; }
}

@media (max-width: 720px) {
    header { padding: 1.75rem 1.25rem 2.25rem 1.25rem; }
    h1 { font-size: 1.75rem; }
    .tours-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .checklist-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .tours-grid { grid-template-columns: 1fr; }
}


/* ---------- Gear shop ---------- */

.gear-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gear-intro {
    font-size: 0.92rem;
    color: var(--ink-soft);
    max-width: 68ch;
    margin: 1.75rem 0 0;
}

.gear-intro + .gear-intro { margin-top: 0.8rem; }

.gear-category { margin-top: 2.25rem; }

.gear-category-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.3rem 1.5rem;
    padding: 0.1rem 0 0.55rem 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid var(--pine-mid);
}

.gear-category--poles .gear-category-head { border-left-color: var(--pine-mid); }
.gear-category--socks .gear-category-head { border-left-color: var(--brass); }
.gear-category--water .gear-category-head { border-left-color: var(--pine); }

.gear-category-head h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.25rem;
}

.gear-category-note {
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.85rem;
}

.gear-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.18s ease;
}

.gear-card:hover { border-color: var(--line-strong); }

.gear-card-media {
    display: block;
    flex: 0 0 108px;
    width: 108px;
    background-color: #fff;
    border-right: 1px solid var(--line);
}

.gear-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 108px;
    object-fit: contain;
    padding: 0.5rem;
    background-color: #fff;
}

.gear-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
    padding: 0.7rem 0.85rem 0.75rem;
}

.gear-card-use {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--brass-deep);
    margin-bottom: 0.15rem;
}

.gear-card-title {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.gear-card-need {
    font-size: 0.79rem;
    line-height: 1.35;
    color: var(--ink-soft);
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gear-details { margin-bottom: 0.5rem; }

.gear-details summary {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.gear-details summary::-webkit-details-marker { display: none; }

.gear-details summary::before {
    content: "+";
    display: inline-block;
    width: 1em;
    color: var(--brass-deep);
}

.gear-details[open] summary::before { content: "\u2212"; }

.gear-specs {
    font-size: 0.74rem;
    margin: 0.4rem 0 0.2rem;
}

.gear-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid var(--line);
}

.gear-spec-row dt { color: var(--ink-soft); flex-shrink: 0; }
.gear-spec-row dd { color: var(--ink); font-weight: 500; text-align: right; }

.gear-card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.gear-price {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.gear-price-label { font-size: 0.68rem; color: var(--ink-soft); }

.gear-price-value {
    font-family: var(--font-display);
    font-size: 0.92rem;
    color: var(--ink);
}

.btn-amazon {
    display: inline-block;
    width: auto;
    text-align: center;
    padding: 0.4rem 0.75rem;
    font-size: 0.76rem;
    background-color: var(--brass);
    border: 1px solid var(--brass);
    color: #fffdf8;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.btn-amazon:hover {
    background-color: var(--brass-deep);
    border-color: var(--brass-deep);
}

.gear-disclosure {
    max-width: 68ch;
    margin: 2.75rem 0 0;
    padding: 1rem 1.15rem;
    background-color: var(--paper-deep);
    border-left: 3px solid var(--brass);
    border-radius: 0 2px 2px 0;
    font-size: 0.78rem;
    color: var(--ink-soft);
}

.gear-disclosure p + p { margin-top: 0.5rem; }
.gear-disclosure strong { color: var(--ink); }

@media (max-width: 480px) {
    .gear-grid { grid-template-columns: 1fr; }
    .gear-card { flex-direction: column; }
    .gear-card-media { width: 100%; border-right: none; border-bottom: 1px solid var(--line); }
    .gear-card-media img { height: 150px; }
}

/* Keyboard focus, site-wide */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 2px;
}

/* Gear shop: category filter bar */

.gear-toolbar {
    margin: 1.6rem 0 0.4rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
}

.gear-category[hidden] { display: none; }

.gear-count {
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-top: 0.6rem;
}
