/* Luxury Glamping Treks page: local visual tokens and the established editorial foundation. */
.glamping-page {
    --glamping-red: #b90201;
    --glamping-red-bright: #f10100;
    --glamping-ink: #171717;
    --glamping-copy: #5d5d5d;
    --glamping-line: #e8e8e4;
    --glamping-paper: #f7f7f5;
    --glamping-warm: #fffaf5;
    color: var(--glamping-copy);
    background: #fff;
}

/* The page uses the brand accent for text selection. */
.glamping-page ::selection {
    color: #fff;
    background: var(--glamping-red);
}

/* Keyboard focus remains visible on every interactive element. */
.glamping-page :where(a, button, input, textarea):focus-visible {
    outline: 3px solid rgba(185, 2, 1, 0.28);
    outline-offset: 3px;
}

/* Long-form chapters share one generous but consistent vertical rhythm. */
.glamping-page .welcome-section {
    padding: clamp(64px, 7vw, 104px) 0;
    scroll-margin-top: 68px;
}

/* All section titles keep the requested 2.4rem scale without width restrictions. */
.glamping-page h2 {
    max-width: none;
    margin: 0 0 24px;
    color: var(--glamping-ink);
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.08;
    text-wrap: balance;
}

/* Secondary headings create a clear tier below the fixed section scale. */
.glamping-page h3 {
    margin: 0;
    color: var(--glamping-ink);
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}

/* Supplied body copy keeps a comfortable reading measure and line height. */
.glamping-page p,
.glamping-page li {
    font-size: 1rem;
    line-height: 1.78;
}

/* Consecutive source paragraphs use a compact reading gap. */
.glamping-page p + p {
    margin-top: 1.1rem;
}

/* In-copy links use a clear underline and the established red accent. */
.glamping-page p a {
    color: var(--glamping-red);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* The shared hero uses a glamping-specific crop while preserving its exact component classes. */
.glamping-page .tour-category-hero {
    min-height: 660px;
    height: 84svh;
}

/* The starry-night hero crop keeps the illuminated camp visible. */
.glamping-page .tour-category-hero-image {
    object-position: center 72%;
}

/* The long hero heading remains legible without overwhelming the viewport. */
.glamping-page .tour-category-hero-title {
    max-width: 15ch;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    letter-spacing: -0.035em;
    line-height: 0.98;
}

/* Sticky chapter navigation keeps the long page easy to scan. */
.glamping-nav {
    position: sticky;
    top: 0;
    z-index: 35;
    border-bottom: 1px solid var(--glamping-line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px rgba(23, 23, 23, 0.06);
}

/* Navigation links remain on one line and can scroll horizontally on small screens. */
.glamping-nav .welcome-nav-list {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-color: var(--glamping-red) var(--glamping-paper);
    scrollbar-width: thin;
}

/* The opening chapter balances the complete source text with a strong destination image. */
.glamping-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: clamp(42px, 7vw, 92px);
    align-items: center;
}

/* The introduction retains a readable line length for its dense original copy. */
.glamping-intro-copy {
    max-width: 760px;
}

/* The opening photograph uses the universal 7px radius. */
.glamping-intro-media {
    min-height: 620px;
    margin: 0;
    overflow: hidden;
    border-radius: 7px;
    background: var(--glamping-paper);
}

/* Opening photography fills the tall editorial frame. */
.glamping-intro-media img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    display: block;
    object-fit: cover;
}

/* The large Your Way chapter uses relevant photography under a semitransparent overlay. */
.glamping-your-way {
    padding-top: 0 !important;
}

/* The immersive panel replaces a flat dark block with Machu Picchu photography and overlay. */
.glamping-your-way-panel {
    overflow: hidden;
    border-radius: 7px;
    background-color: var(--glamping-ink);
    background-image:
        linear-gradient(rgba(8, 11, 15, 0.84), rgba(8, 11, 15, 0.84)),
        url("../images/luxury-machu-picchu-tours/hero-desktop.jpg");
    background-position: center;
    background-size: cover;
}

/* The overlay copy receives sufficient space without becoming a full-width wall of text. */
.glamping-your-way-copy {
    max-width: 900px;
    padding: clamp(36px, 7vw, 84px);
    color: rgba(255, 255, 255, 0.86);
}

/* The reversed heading remains readable over the semitransparent image overlay. */
.glamping-your-way-copy h2 {
    color: #fff;
}

/* The difference chapter pairs its complete source copy with trekking photography. */
.glamping-difference-grid {
    display: grid;
    grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(42px, 7vw, 92px);
    align-items: center;
}

/* Difference photography follows the same 7px visual language. */
.glamping-difference-media {
    min-height: 660px;
    margin: 0;
    overflow: hidden;
    border-radius: 7px;
    background: var(--glamping-paper);
}

/* Difference photography fills its portrait-led frame. */
.glamping-difference-media img {
    width: 100%;
    height: 100%;
    min-height: 660px;
    display: block;
    object-fit: cover;
}

/* The reasons chapter uses a warm field to separate decision-making content. */
.glamping-why {
    background: var(--glamping-warm);
}

/* Four original reasons are arranged as two balanced editorial columns. */
.glamping-reason-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(40px, 7vw, 88px);
}

/* Each reason is separated by horizontal rules instead of side borders or decorative cards. */
.glamping-reason {
    padding: 32px 0;
    border-bottom: 1px solid var(--glamping-line);
}

/* Reason copy keeps its heading close to the first paragraph. */
.glamping-reason p:first-of-type {
    margin-top: 14px;
}

/* The signature trek collection returns to a neutral reading surface. */
.glamping-signatures {
    background: #fff;
}

/* The shared heading copy stays readable while retaining the exact source text. */
.glamping-signatures .welcome-section-heading p,
.glamping-similar .welcome-section-heading p,
.glamping-signature-intro {
    max-width: 900px;
}

/* The exact signature-trek introduction retains the shared heading rhythm when links are interactive. */
.glamping-signature-intro {
    margin: 0;
}

/* Signature features stack as substantial image-and-copy chapters. */
.glamping-signature-list {
    display: grid;
    gap: 28px;
    margin-top: 42px;
}

/* Each signature trek is a reusable two-column feature with the universal radius. */
.glamping-signature-trek {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    overflow: hidden;
    border-radius: 7px;
    background: var(--glamping-paper);
}

/* Alternating signature rows create a measured editorial rhythm. */
.glamping-signature-trek:nth-child(even) .glamping-signature-media {
    order: 2;
}

/* Signature media resets its default figure margin. */
.glamping-signature-media {
    min-height: 390px;
    margin: 0;
    overflow: hidden;
}

/* Signature trek images fill the complete media side. */
.glamping-signature-media img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    display: block;
    object-fit: cover;
    transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Signature imagery responds gently when its chapter receives interaction. */
.glamping-signature-trek:hover .glamping-signature-media img,
.glamping-signature-trek:focus-within .glamping-signature-media img {
    transform: scale(1.035);
}

/* Signature source copy receives a generous but bounded inset. */
.glamping-signature-copy {
    align-self: center;
    padding: clamp(28px, 5vw, 58px);
}

/* Signature paragraphs sit close to their route title. */
.glamping-signature-copy p:first-of-type {
    margin-top: 18px;
}

/* Similar tours sit on a quiet surface for quick comparison. */
.glamping-similar {
    background: var(--glamping-paper);
}

/* The reusable tour cards use an even three-column collection layout. */
.glamping-tour-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 42px;
}

/* Shared tour-card components keep every corner aligned to the 7px rule. */
.glamping-tour-grid .tour-best-card,
.glamping-tour-grid .tour-best-card-media,
.glamping-tour-grid .tour-best-card-image,
.glamping-tour-grid .tour-best-card-badge,
.glamping-tour-grid .tour-best-card-button,
.glamping-tour-grid .tour-best-card-feature-icon {
    border-radius: 7px;
}

/* Price numerals align cleanly between comparable tour cards. */
.glamping-tour-grid .tour-best-card-price-total {
    font-variant-numeric: tabular-nums;
}

/* The planning chapter uses a warm field around form and contact details. */
.glamping-plan {
    background: var(--glamping-warm);
}

/* Planning form and operational contact details remain side by side on wide screens. */
.glamping-plan-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: clamp(36px, 7vw, 82px);
    align-items: start;
}

/* The reusable form is presented on a clear white surface. */
.glamping-plan-form {
    padding: clamp(28px, 4vw, 48px);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 18px 54px rgba(23, 23, 23, 0.08);
}

/* Planning form fields follow one compact vertical rhythm. */
.glamping-plan-form .treks-machu-form {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

/* Date and traveler fields share the available row on wider screens. */
.glamping-plan-form .treks-machu-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

/* Form labels remain visually attached to their controls. */
.glamping-plan-form .treks-machu-form-field {
    display: grid;
    gap: 8px;
}

/* Labels use a compact action scale without oversized tracking. */
.glamping-plan-form .treks-machu-form-field label {
    color: var(--glamping-ink);
    font-size: 0.82rem;
    font-weight: 800;
}

/* Inputs use clear outlines and the required 7px radius. */
.glamping-plan-form input,
.glamping-plan-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--glamping-line);
    border-radius: 7px;
    color: var(--glamping-ink);
    background: #fff;
    caret-color: var(--glamping-red);
}

/* Placeholder text keeps accessible contrast. */
.glamping-plan-form input::placeholder,
.glamping-plan-form textarea::placeholder {
    color: #666;
    opacity: 1;
}

/* Active fields use the single brand interaction cue. */
.glamping-plan-form input:focus,
.glamping-plan-form textarea:focus {
    border-color: var(--glamping-red);
    outline: 3px solid rgba(185, 2, 1, 0.12);
}

/* The form submit button remains clear and touch-friendly. */
.glamping-plan-form .treks-machu-form-submit {
    min-height: 50px;
    justify-self: start;
    padding: 0.8rem 1.7rem;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--glamping-red-bright);
    font-weight: 800;
    transition: background-color 180ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* The submit action provides a restrained authored movement. */
.glamping-plan-form .treks-machu-form-submit:hover,
.glamping-plan-form .treks-machu-form-submit:focus-visible {
    background: var(--glamping-red);
    transform: translateY(-2px);
}

/* Form status messages use full outlines and never a left-side rail. */
.glamping-form-notice {
    padding: 14px 16px;
    margin-top: 22px;
    border: 1px solid var(--glamping-line);
    border-radius: 7px;
    color: var(--glamping-ink);
    background: var(--glamping-paper);
}

/* Error feedback uses the brand red while preserving readable contrast. */
.glamping-form-notice.is-error {
    border-color: rgba(185, 2, 1, 0.4);
    color: var(--glamping-red);
}

/* The reusable contact card combines photography and operational details. */
.glamping-contact-card {
    overflow: hidden;
    border-radius: 7px;
    color: rgba(255, 255, 255, 0.86);
    background: var(--glamping-ink);
}

/* Contact photography uses a useful landscape crop above the details. */
.glamping-contact-card > img {
    width: 100%;
    height: 320px;
    display: block;
    object-fit: cover;
}

/* Contact details receive enough space for all original numbers and addresses. */
.glamping-contact-copy {
    padding: clamp(26px, 4vw, 42px);
}

/* Operational contact heading stays compact and visible. */
.glamping-contact-copy h3 {
    color: #fff;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.35;
}

/* Contact copy keeps a comfortable gap from its heading. */
.glamping-contact-copy p {
    margin: 16px 0 0;
}

/* Email and site links remain clearly visible on the dark panel. */
.glamping-contact-copy a {
    color: #fff;
}

@media (max-width: 1199.98px) {
    /* Large tablets compare related tours in two columns. */
    .glamping-tour-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    /* Tablet layouts stack the long-form editorial splits into one column. */
    .glamping-intro-grid,
    .glamping-difference-grid,
    .glamping-plan-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Tablet images shorten while retaining a substantial destination crop. */
    .glamping-intro-media,
    .glamping-intro-media img,
    .glamping-difference-media,
    .glamping-difference-media img {
        min-height: 480px;
    }

    /* Signature features stack image above copy for natural reading order. */
    .glamping-signature-trek {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Alternating rows restore image-first order when stacked. */
    .glamping-signature-trek:nth-child(even) .glamping-signature-media {
        order: 0;
    }
}

@media (max-width: 767.98px) {
    /* Mobile hero keeps the shared cinematic component within a practical height. */
    .glamping-page .tour-category-hero {
        min-height: 620px;
        height: 84svh;
    }

    /* Mobile hero title fits the viewport while staying dominant. */
    .glamping-page .tour-category-hero-title {
        max-width: 12ch;
    }

    /* Mobile sections retain clear separation without excessive empty space. */
    .glamping-page .welcome-section {
        padding: 64px 0;
    }

    /* Reasons become one clear reading column on phones. */
    .glamping-reason-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Mobile editorial images use a practical viewport-relative height. */
    .glamping-intro-media,
    .glamping-intro-media img,
    .glamping-difference-media,
    .glamping-difference-media img {
        min-height: 390px;
    }

    /* Similar tours become one decision column on phones. */
    .glamping-tour-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Single-column tour cards stay centered at a comfortable maximum width. */
    .glamping-tour-grid .tour-best-card {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    /* Mobile planning fields stack for comfortable touch input. */
    .glamping-plan-form .treks-machu-form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Mobile submit action fills the form width. */
    .glamping-plan-form .treks-machu-form-submit {
        width: 100%;
    }
}

@media (max-width: 420px) {
    /* Small-phone tour card actions stack without horizontal overflow. */
    .glamping-tour-grid .tour-best-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    /* Small-phone tour buttons fill the card width. */
    .glamping-tour-grid .tour-best-card-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* Reduced-motion users receive immediate transitions across the page. */
    .glamping-page *,
    .glamping-page *::before,
    .glamping-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
