/* ==========================================================================
   Machu Picchu Private Tours: page tokens and global surface behavior
   ========================================================================== */

/* The page extends the established Andean editorial palette with 7px corners. */
.private-tours-page {
    --private-ink: #171717;
    --private-copy: #4f4f4f;
    --private-muted: #6a6a6a;
    --private-red: #f10100;
    --private-red-dark: #b90201;
    --private-line: #deded9;
    --private-soft: #f7f7f5;
    --private-warm: #fffaf5;
    --private-radius: 7px;
    overflow: clip;
    background: #ffffff;
    color: var(--private-copy);
}

/* Every in-page destination clears the sticky chapter navigation. */
.private-tours-page section[id] {
    scroll-margin-top: 78px;
}

/* All level-two titles follow the agreed fixed scale without a width cap. */
.private-tours-page h2,
.private-tours-page .welcome-section-heading h2 {
    width: 100%;
    max-width: none;
    margin-bottom: 1.35rem;
    color: var(--private-ink);
    font-size: 2.4rem;
    letter-spacing: -0.025em;
    line-height: 1.08;
    text-wrap: balance;
}

/* Section spacing follows the shared desktop rhythm. */
.private-tours-page .welcome-section {
    padding: 4.5rem 0;
}

/* Page links use a visible underline and the accessible deep brand red. */
.private-tours-page p a {
    color: var(--private-red-dark);
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Keyboard focus remains visible on every interactive control. */
.private-tours-page a:focus-visible,
.private-tours-page button:focus-visible {
    border-radius: var(--private-radius);
    outline: 3px solid rgba(241, 1, 0, 0.35);
    outline-offset: 3px;
}

/* Selection color and caret-adjacent surfaces remain within the brand world. */
.private-tours-page ::selection {
    background: var(--private-red);
    color: #ffffff;
}

/* Figures reset their browser margin so editorial columns align precisely. */
.private-tours-page figure {
    margin: 0;
}

/* Long-form paragraphs use a calm measure and consistent reading rhythm. */
.private-tours-prose {
    max-width: 74ch;
}

/* Source paragraphs retain full text while staying comfortable to scan. */
.private-tours-prose p {
    margin: 0 0 1.15rem;
    color: var(--private-copy);
    font-size: 1rem;
    line-height: 1.78;
}

/* The final paragraph closes each long-form block without surplus space. */
.private-tours-prose p:last-child {
    margin-bottom: 0;
}

/* Light prose derives secondary contrast from white instead of neutral gray. */
.private-tours-prose.is-light p {
    color: rgba(255, 255, 255, 0.88);
}

/* ==========================================================================
   Shared hero and sticky chapter navigation
   ========================================================================== */

/* The shared hero retains the same cinematic scale as related tour pages. */
.private-tours-page .tour-category-hero {
    min-height: 620px;
    height: clamp(620px, calc(100svh - 69px), 790px);
}

/* Hero images keep the citadel and surrounding Andes in view. */
.private-tours-page .tour-category-hero-image {
    object-position: center 52%;
}

/* The hero title is prominent without becoming oversized. */
.private-tours-page .tour-category-hero-title {
    max-width: 13ch;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(2.65rem, 5.2vw, 4.25rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 0.98;
    text-wrap: balance;
}

/* Hero slider controls meet the minimum touch target without changing the shared component. */
.private-tours-page .tour-category-hero-nav-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: var(--private-radius);
}

/* The chapter navigation remains above content and below the site header. */
.private-tours-nav {
    z-index: 30;
    border-bottom: 1px solid var(--private-line);
    background: rgba(255, 255, 255, 0.98);
}

/* ==========================================================================
   Introduction and source overview
   ========================================================================== */

/* The introduction pairs documentary photography with the complete source copy. */
.private-tours-intro-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: clamp(2.75rem, 6vw, 6rem);
}

/* The introduction image stays visible while the longer copy advances. */
.private-tours-intro-media {
    position: sticky;
    top: 104px;
    min-height: 620px;
    overflow: hidden;
    border-radius: var(--private-radius);
    background: var(--private-soft);
}

/* The introduction photo fills its editorial frame without distortion. */
.private-tours-intro-media img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
}

/* ==========================================================================
   Image-backed expertise story
   ========================================================================== */

/* The expertise section replaces a flat color field with relevant photography. */
.private-tours-photo-story {
    position: relative;
    isolation: isolate;
    min-height: 680px;
    padding: clamp(5rem, 9vw, 8.5rem) 0;
    background-image: var(--private-story-image);
    background-position: center;
    background-size: cover;
}

/* The semi-transparent overlay preserves image context and text contrast. */
.private-tours-photo-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(10, 10, 10, 0.66);
}

/* Strong overlay variant supports longer editorial copy over photography. */
.private-tours-photo-overlay.is-strong {
    background: rgba(10, 10, 10, 0.82);
}

/* Expertise copy occupies a readable column within the panoramic scene. */
.private-tours-photo-content {
    display: grid;
    grid-template-columns: minmax(0, 760px);
    align-content: center;
    min-height: 430px;
}

/* Dark-theme headings reverse cleanly over the photo overlay. */
.private-tours-photo-content .welcome-section-heading h2,
.private-tours-advantages .welcome-section-heading h2 {
    color: #ffffff;
}

/* ==========================================================================
   Highlights and luxury service features
   ========================================================================== */

/* Highlights use an asymmetric editorial split rather than a card wall. */
.private-tours-highlights-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}

/* The highlights photograph receives the common corner treatment. */
.private-tours-highlights-media {
    height: 680px;
    overflow: hidden;
    border-radius: var(--private-radius);
    background: var(--private-soft);
}

/* The highlights photograph maintains a portrait crop on wide screens. */
.private-tours-highlights-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Highlight facts remain open and borderless with compact icon alignment. */
.private-tours-highlight-list {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Each highlight is separated by a quiet horizontal rule, never a left border. */
.private-tours-highlight-list li {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--private-line);
    color: var(--private-copy);
    line-height: 1.65;
}

/* Check icons use the deep red for sufficient contrast on white. */
.private-tours-highlight-list i {
    padding-top: 0.32rem;
    color: var(--private-red-dark);
}

/* The luxury feature section sits on a warm editorial paper surface. */
.private-tours-features {
    background: var(--private-warm);
}

/* Feature rows keep the text primary and avoid repetitive card containers. */
.private-tours-feature-list {
    margin-top: 2.5rem;
    border-top: 1px solid var(--private-line);
}

/* Each service feature aligns its heading with its full source explanation. */
.private-tours-feature {
    display: grid;
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(2rem, 6vw, 6rem);
    padding: 2rem 0;
    border-bottom: 1px solid var(--private-line);
}

/* Feature titles use a restrained tertiary display scale. */
.private-tours-feature h3 {
    margin: 0;
    color: var(--private-ink);
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Feature explanations preserve the supplied wording at a readable measure. */
.private-tours-feature p {
    max-width: 76ch;
    margin: 0;
    color: var(--private-copy);
    line-height: 1.75;
}

/* ==========================================================================
   Trending shared tour cards
   ========================================================================== */

/* The trending collection uses a quiet neutral field behind shared cards. */
.private-tours-trending {
    background: var(--private-soft);
}

/* Section introductions keep full source copy within a comfortable measure. */
.private-tours-section-intro {
    max-width: 920px;
    margin: 0 auto clamp(2.75rem, 5vw, 4rem);
    text-align: center;
}

/* Section supporting copy is centered without becoming too wide. */
.private-tours-section-intro > p {
    max-width: 76ch;
    margin: 0 auto;
    color: var(--private-copy);
    line-height: 1.75;
}

/* Six shared tour cards form three balanced desktop columns. */
.private-tours-trending-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* Shared tour card corners are normalized to the project-wide radius. */
.private-tours-trending-grid .tour-best-card,
.private-tours-trending-grid .tour-best-card-media,
.private-tours-trending-grid .tour-best-card-image,
.private-tours-trending-grid .tour-best-card-button {
    border-radius: var(--private-radius);
}

/* ==========================================================================
   Image-backed Peru Summit advantages
   ========================================================================== */

/* The long advantages section gains photographic depth beneath a strong overlay. */
.private-tours-advantages {
    position: relative;
    isolation: isolate;
    padding: clamp(5rem, 8vw, 8rem) 0;
    background-image: var(--private-advantages-image);
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* Advantages intro maintains a measured line length against the image. */
.private-tours-advantages-intro {
    max-width: 860px;
    margin-bottom: 3rem;
}

/* Advantages lead copy uses a white-derived secondary tone. */
.private-tours-advantages-intro > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Advantage statements form two editorial columns without boxed cards. */
.private-tours-advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(3rem, 7vw, 7rem);
}

/* Each advantage uses only a horizontal divider for rhythm. */
.private-tours-advantage {
    padding: 1.55rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

/* Advantage headings remain clear but subordinate to the section heading. */
.private-tours-advantage h3 {
    margin: 0 0 0.65rem;
    color: #ffffff;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.25;
}

/* Advantage descriptions retain full source content with high contrast. */
.private-tours-advantage p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

/* The local operator note is a compact brand band rather than a large hero field. */
.private-tours-local-note {
    padding: 2rem 0;
    background: var(--private-red-dark);
    color: #ffffff;
}

/* Operator note paragraphs remain compact and legible. */
.private-tours-local-note p {
    margin: 0.35rem 0;
    color: #ffffff;
    line-height: 1.6;
}

/* Note links inherit white to maintain contrast on the red surface. */
.private-tours-local-note p a {
    color: #ffffff;
}

/* ==========================================================================
   Detailed private-tour catalogue
   ========================================================================== */

/* The catalogue returns to white so the substantial route details can breathe. */
.private-tours-catalogue {
    background: #ffffff;
}

/* Detailed private routes form three columns at large breakpoints. */
.private-route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.5rem;
}

/* Route cards use a single border treatment and the shared 7px radius. */
.private-route-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--private-line);
    border-radius: var(--private-radius);
    background: #ffffff;
}

/* Route media establishes a consistent image ratio across varied source photos. */
.private-route-card-media {
    display: block;
    overflow: hidden;
    aspect-ratio: 7 / 5;
    background: var(--private-soft);
}

/* Route images fill the card frame and animate only on deliberate interaction. */
.private-route-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover and focus reveal a subtle photographic zoom. */
.private-route-card:hover .private-route-card-media img,
.private-route-card:focus-within .private-route-card-media img {
    transform: scale(1.035);
}

/* Route copy expands so actions align along each grid row. */
.private-route-card-body {
    display: flex;
    padding: 1.35rem;
    flex: 1 1 auto;
    flex-direction: column;
}

/* Route titles are intentionally H3-sized to avoid exaggerated catalogue headings. */
.private-route-card h3 {
    margin: 0 0 1rem;
    color: var(--private-ink);
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 1.32rem;
    font-weight: 500;
    line-height: 1.25;
}

/* Route title links remain clean until hover while retaining a focus indicator. */
.private-route-card h3 a {
    color: inherit;
    text-decoration: none;
}

/* Route detail paragraphs preserve the exact source lines. */
.private-route-card-details p {
    margin: 0 0 0.72rem;
    color: var(--private-copy);
    font-size: 0.92rem;
    line-height: 1.58;
}

/* Price lines receive modest emphasis without changing their wording. */
.private-route-card-details p:last-child {
    margin-bottom: 1.2rem;
    color: var(--private-ink);
    font-weight: 800;
}

/* The route action anchors to the card base for predictable scanning. */
.private-route-card-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.55rem;
    margin-top: auto;
    color: var(--private-red-dark);
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

/* The route arrow moves slightly to signal the linked destination. */
.private-route-card-link i {
    transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Route action hover gives a restrained directional response. */
.private-route-card-link:hover i,
.private-route-card-link:focus-visible i {
    transform: translateX(4px);
}

/* ==========================================================================
   Two-column FAQ accordion
   ========================================================================== */

/* The FAQ section sits on a warm neutral surface for clear chapter separation. */
.private-tours-faq {
    background: var(--private-warm);
}

/* Independent accordion columns preserve the requested two-column layout. */
.private-faq-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Each accordion column keeps a compact vertical rhythm. */
.private-faq-column {
    display: grid;
    gap: 0.75rem;
}

/* FAQ items use one clear border and the common 7px radius. */
.private-faq-item {
    overflow: hidden;
    border: 1px solid var(--private-line);
    border-radius: var(--private-radius);
    background: #ffffff;
}

/* Bootstrap buttons inherit the editorial type and remove default blue states. */
.private-faq-button.accordion-button {
    min-height: 74px;
    padding: 1.15rem 3.25rem 1.15rem 1.25rem;
    border: 0;
    border-radius: var(--private-radius);
    background: #ffffff;
    color: var(--private-ink);
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: none;
}

/* Open questions use the warm surface and deep red cue. */
.private-faq-button.accordion-button:not(.collapsed) {
    background: var(--private-soft);
    color: var(--private-red-dark);
    box-shadow: none;
}

/* Bootstrap's indicator receives the theme red when expanded. */
.private-faq-button.accordion-button:not(.collapsed)::after {
    filter: saturate(1.3);
}

/* Collapse height follows a smooth Bootstrap-like ease. */
.private-faq-item .collapsing {
    transition: height 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* FAQ answers are separated horizontally and never use a left border. */
.private-faq-answer {
    padding: 1.2rem 1.25rem 1.35rem;
    border-top: 1px solid var(--private-line);
}

/* FAQ answer copy closes cleanly within the expanded panel. */
.private-faq-answer p {
    margin: 0;
    color: var(--private-copy);
    line-height: 1.72;
}

/* Source reference links remain visible and actionable inside expanded answers. */
.private-faq-answer a {
    color: var(--private-red-dark);
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ==========================================================================
   Image-backed quote request and source video
   ========================================================================== */

/* The quote request replaces a large flat field with Machu Picchu photography. */
.private-tours-quote {
    position: relative;
    isolation: isolate;
    min-height: 430px;
    background-image: var(--private-quote-image);
    background-position: center;
    background-size: cover;
}

/* The quote content centers vertically within the photographic band. */
.private-tours-quote-content {
    display: flex;
    min-height: 430px;
    align-items: center;
}

/* The complete request copy becomes the visual conclusion of the journey. */
.private-tours-quote p {
    max-width: 930px;
    margin: 0;
    color: #ffffff;
    font-family: "Metromedium", "Roboto", sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.35rem);
    line-height: 1.35;
    text-wrap: balance;
}

/* The quote link remains bright and clearly interactive over the overlay. */
.private-tours-quote p a {
    color: #ffffff;
}

/* The source video receives breathing room without adding new copy. */
.private-tours-video {
    background: #ffffff;
}

/* The shared video facade is constrained to an editorial cinema width. */
.private-tours-video .tour-video-section {
    max-width: 1120px;
    margin: 0 auto;
}

/* All shared video corners stay aligned with the project radius. */
.private-tours-video .tour-video-facade,
.private-tours-video .tour-video-poster,
.private-tours-video .tour-video-mask,
.private-tours-video .tour-video-play-button,
.private-tours-video iframe {
    border-radius: var(--private-radius);
}

/* ==========================================================================
   Responsive composition
   ========================================================================== */

/* Tablet widths reduce three-column collections to two columns. */
@media (max-width: 991.98px) {
    .private-tours-page .tour-category-hero {
        min-height: 570px;
        height: 72svh;
    }

    .private-tours-intro-grid,
    .private-tours-highlights-grid {
        grid-template-columns: 1fr;
    }

    .private-tours-intro-media {
        position: static;
        min-height: 480px;
    }

    .private-tours-intro-media img {
        min-height: 480px;
    }

    .private-tours-highlights-media {
        height: 520px;
    }

    .private-tours-trending-grid,
    .private-route-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .private-tours-advantages {
        background-attachment: scroll;
    }
}

/* Mobile widths stack reading, cards and accordions into one clear column. */
@media (max-width: 767.98px) {
    .private-tours-page .welcome-section {
        padding: 3rem 0;
    }

    .private-tours-page h2,
    .private-tours-page .welcome-section-heading h2 {
        font-size: 2.4rem;
        line-height: 1.1;
    }

    .private-tours-page .tour-category-hero {
        min-height: 540px;
        height: 72svh;
    }

    .private-tours-page .tour-category-hero-title {
        max-width: 11ch;
        font-size: clamp(2.35rem, 11vw, 3.25rem);
    }

    .private-tours-intro-media,
    .private-tours-intro-media img {
        min-height: 380px;
    }

    .private-tours-photo-story {
        min-height: 0;
        padding: 4rem 0;
    }

    .private-tours-photo-content {
        min-height: 0;
    }

    .private-tours-highlights-media {
        height: 430px;
    }

    .private-tours-feature {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .private-tours-trending-grid,
    .private-route-grid,
    .private-tours-advantages-grid,
    .private-faq-columns {
        grid-template-columns: 1fr;
    }

    .private-faq-columns {
        gap: 0.75rem;
    }

    .private-tours-quote,
    .private-tours-quote-content {
        min-height: 390px;
    }
}

/* Compact phones keep fixed H2 sizing while preventing word overflow. */
@media (max-width: 399.98px) {
    .private-tours-page h2,
    .private-tours-page .welcome-section-heading h2 {
        overflow-wrap: anywhere;
    }

    .private-route-card-body {
        padding: 1.15rem;
    }
}

/* Reduced-motion users receive immediate state changes and no image zoom. */
@media (prefers-reduced-motion: reduce) {
    .private-route-card-media img,
    .private-route-card-link i,
    .private-faq-item .collapsing {
        transition: none;
    }
}
