/* 3 Pyramids — single trip page */

/* Shared tour cards */
/* ==========================================================
   CURATED
   ========================================================== */
/* =========================================================
   SECTION
========================================================= */

.pyr-curated {
    --pc-bg: #f8f5ef;
    --pc-card: #fffdf9;
    --pc-dark: #16232d;
    --pc-text: #4f5658;
    --pc-muted: #7b7b76;
    --pc-bronze: #a77a4c;
    --pc-bronze-light: #c79d70;
    --pc-line: rgba(22, 35, 45, .10);

    --pc-serif:
        Georgia,
        "Times New Roman",
        serif;

    --pc-sans:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    position: relative;
    width: 100%;
    overflow: hidden;

    padding:
        clamp(90px, 8vw, 135px)
        0
        clamp(95px, 9vw, 145px);

    background: var(--pc-bg);

    color: var(--pc-dark);

    font-family: var(--pc-sans);
}


/* subtle atmosphere */

.pyr-curated::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    left: -260px;
    bottom: -320px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(178, 137, 89, .08),
            rgba(178, 137, 89, 0) 68%
        );

    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.pyr-curated__inner {
    position: relative;
    z-index: 1;

    width:
        min(
            1400px,
            calc(100% - 64px)
        );

    margin-inline: auto;
}


/* =========================================================
   HEADER
========================================================= */

.pyr-curated__header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(310px, .55fr)
        auto;

    gap:
        clamp(
            30px,
            4vw,
            65px
        );

    align-items: end;

    margin-bottom:
        clamp(
            45px,
            5vw,
            68px
        );
}


/* eyebrow */

.pyr-curated__eyebrow {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 18px;

    color: var(--pc-bronze);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .25em;

    text-transform: uppercase;
}


.pyr-curated__eyebrow::after {
    content: "";

    width: 66px;
    height: 1px;

    background:
        rgba(167, 122, 76, .52);
}


/* H2 */

.pyr-curated__title {
    margin: 0;

    color: var(--pc-dark);

    font-family: var(--pc-serif);

    font-size:
        clamp(
            52px,
            5vw,
            80px
        );

    font-weight: 400;

    line-height: .95;

    letter-spacing: -.04em;
}


/* intro */

.pyr-curated__intro {
    max-width: 430px;

    margin: 0 0 6px;

    color: #656966;

    font-size: 14px;

    line-height: 1.75;
}


/* all tours */

.pyr-curated__all {
    display: inline-flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 7px;

    padding-bottom: 8px;

    border-bottom:
        1px
        solid
        rgba(167, 122, 76, .40);

    color: var(--pc-bronze);

    text-decoration: none;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .19em;

    text-transform: uppercase;

    white-space: nowrap;

    transition:
        gap .2s ease,
        color .2s ease;
}


.pyr-curated__all:hover {
    gap: 20px;

    color: #785331;
}


/* =========================================================
   TOUR GRID
========================================================= */

.pyr-curated__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap:
        clamp(
            18px,
            2vw,
            28px
        );
}


/* =========================================================
   TOUR CARD
========================================================= */

.pyr-tour {
    position: relative;

    min-width: 0;

    overflow: hidden;

    border:
        1px
        solid
        rgba(21, 32, 39, .075);

    border-radius: 28px;

    background: var(--pc-card);

    box-shadow:
        0 22px 65px
        rgba(39, 32, 25, .065);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


.pyr-tour:hover {
    transform: translateY(-7px);

    box-shadow:
        0 32px 75px
        rgba(39, 32, 25, .11);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.pyr-tour__media {
    position: relative;

    width: 100%;

    aspect-ratio: 1.18 / 1;

    margin: 0;

    overflow: hidden;

    background: #ded6c8;
}


.pyr-tour__media::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(9, 14, 17, 0) 55%,
            rgba(9, 14, 17, .19) 100%
        );
}


.pyr-tour__media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform
        .8s
        cubic-bezier(.18,.75,.2,1);
}


.pyr-tour:hover
.pyr-tour__media img {
    transform: scale(1.045);
}


/* image positions */

.pyr-tour--giza
.pyr-tour__media img {
    object-position: center 52%;
}

.pyr-tour--cairo
.pyr-tour__media img {
    object-position: center center;
}

.pyr-tour--saqqara
.pyr-tour__media img {
    object-position: center 48%;
}


/* =========================================================
   IMAGE CHIPS
========================================================= */

.pyr-tour__chips {
    position: absolute;

    top: 18px;
    left: 18px;

    z-index: 2;

    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}


.pyr-tour__chip {
    display: inline-flex;
    align-items: center;

    min-height: 30px;

    padding:
        0
        11px;

    border:
        1px
        solid
        rgba(255,255,255,.45);

    border-radius: 999px;

    background:
        rgba(14, 19, 22, .27);

    color: #fff;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .13em;

    text-transform: uppercase;

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}


/* =========================================================
   CARD BODY
========================================================= */

.pyr-tour__body {
    padding:
        28px
        28px
        24px;
}


/* destination */

.pyr-tour__destination {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 13px;

    color: var(--pc-bronze);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .17em;

    text-transform: uppercase;
}


.pyr-tour__destination::before {
    content: "";

    width: 25px;
    height: 1px;

    background: var(--pc-bronze);
}


/* title */

.pyr-tour__title {
    margin: 0;

    color: var(--pc-dark);

    font-family: var(--pc-serif);

    font-size:
        clamp(
            29px,
            2.4vw,
            39px
        );

    font-weight: 400;

    line-height: 1.03;

    letter-spacing: -.025em;
}


.pyr-tour__title a {
    color: inherit;

    text-decoration: none;
}


/* Route */

.pyr-tour__route {
    margin:
        12px
        0
        0;

    color: #5f6564;

    font-size: 12px;
    line-height: 1.55;
}


/* Description */

.pyr-tour__description {
    margin:
        17px
        0
        0;

    color: #737572;

    font-size: 12.5px;
    line-height: 1.7;
}


/* =========================================================
   META
========================================================= */

.pyr-tour__meta {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;

    margin-top: 25px;

    padding:
        19px
        0;

    border-top:
        1px
        solid
        var(--pc-line);

    border-bottom:
        1px
        solid
        var(--pc-line);
}


.pyr-tour__meta-item {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 7px;

    color: #6b6d69;

    font-size: 11px;

    white-space: nowrap;
}


.pyr-tour__meta-item svg {
    width: 17px;
    height: 17px;

    flex: 0 0 auto;

    color: var(--pc-bronze);
}


/* =========================================================
   PRICE / CTA
========================================================= */

.pyr-tour__footer {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 20px;

    padding-top: 21px;
}


.pyr-tour__price-small {
    display: block;

    margin-bottom: 3px;

    color: #8a8177;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .20em;

    text-transform: uppercase;
}


.pyr-tour__price {
    display: flex;
    align-items: baseline;

    gap: 5px;

    color: var(--pc-dark);
}


.pyr-tour__price strong {
    font-family: var(--pc-serif);

    font-size: 34px;
    font-weight: 500;

    line-height: 1;
}


.pyr-tour__price span {
    color: #8a8278;

    font-size: 11px;
}


/* Circle CTA */

.pyr-tour__cta {
    width: 57px;
    height: 57px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #b88d5d,
            #987044
        );

    color: #fff;

    text-decoration: none;

    font-size: 21px;

    box-shadow:
        0 12px 25px
        rgba(151, 106, 60, .18);

    transition:
        transform .22s ease,
        box-shadow .22s ease;
}


.pyr-tour__cta:hover {
    transform:
        translate(
            3px,
            -3px
        );

    box-shadow:
        0 16px 31px
        rgba(151, 106, 60, .28);
}


/* =========================================================
   BOTTOM EDITORIAL STRIP
========================================================= */

.pyr-curated__note {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 20px;

    margin-top:
        clamp(
            35px,
            4vw,
            55px
        );

    color: #8a8177;

    font-family: var(--pc-serif);

    font-size: 14px;
    font-style: italic;

    text-align: center;
}


.pyr-curated__note::before,
.pyr-curated__note::after {
    content: "";

    width: min(100px, 8vw);
    height: 1px;

    background:
        rgba(167, 122, 76, .30);
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.pyr-tour a:focus-visible,
.pyr-curated__all:focus-visible {
    outline:
        2px
        solid
        var(--pc-bronze);

    outline-offset: 4px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .pyr-curated__inner {
        width:
            calc(100% - 40px);
    }


    .pyr-curated__header {
        grid-template-columns:
            1fr
            auto;

        gap: 30px;
    }


    .pyr-curated__intro {
        grid-column: 1;

        max-width: 650px;
    }


    .pyr-curated__all {
        grid-column: 2;
        grid-row: 1 / 3;
    }


    .pyr-tour__body {
        padding:
            24px
            22px
            22px;
    }


    .pyr-tour__meta {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .pyr-curated {
        padding:
            78px
            0
            88px;
    }


    .pyr-curated__inner {
        width:
            calc(100% - 28px);
    }


    /* header */

    .pyr-curated__header {
        display: block;

        margin-bottom: 36px;
    }


    .pyr-curated__eyebrow {
        margin-bottom: 16px;

        font-size: 11px;
    }


    .pyr-curated__eyebrow::after {
        width: 45px;
    }


    .pyr-curated__title {
        font-size:
            clamp(
                44px,
                12vw,
                60px
            );
    }


    .pyr-curated__intro {
        margin-top: 20px;

        max-width: 520px;

        font-size: 13px;
    }


    .pyr-curated__all {
        margin-top: 22px;
        margin-bottom: 0;
    }


    /* grid */

    .pyr-curated__grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .pyr-tour {
        border-radius: 23px;
    }


    .pyr-tour__media {
        aspect-ratio: 1.22 / 1;
    }


    .pyr-tour__body {
        padding:
            24px
            21px
            22px;
    }


    .pyr-tour__title {
        font-size:
            clamp(
                30px,
                8vw,
                39px
            );
    }


    .pyr-tour__meta {
        grid-template-columns:
            repeat(3, minmax(0,1fr));

        gap: 6px;
    }


    .pyr-tour__meta-item {
        font-size: 11px;
    }


    .pyr-tour__description {
        font-size: 12px;
    }


    .pyr-tour__cta {
        width: 52px;
        height: 52px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .pyr-tour__meta {
        grid-template-columns: 1fr;
    }


    .pyr-tour__media {
        aspect-ratio: 1.08 / 1;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pyr-curated *,
    .pyr-curated *::before,
    .pyr-curated *::after {
        transition: none !important;
    }

}


.p3tr .pyr-tour { display: flex; flex-direction: column; }
.p3tr .pyr-tour__body { flex: 1 1 auto; display: flex; flex-direction: column; }
.p3tr .pyr-tour__footer { margin-top: auto; }

body.single-trip { background: var(--p3-ivory-warm); }
body .site-main.p3x { width: 100%; max-width: none; margin: 0; padding: 0; }

/* Breadcrumb */
.p3tr-crumbs { width: min(var(--p3-container), calc(100% - (2 * var(--p3-gutter)))); margin: 0 auto; padding: 132px 0 14px; }
.p3tr-crumbs ol { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; color: var(--p3-muted); font-family: var(--p3-sans); font-size: 12px; }
.p3tr-crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.p3tr-crumbs a { color: var(--p3-bronze); text-decoration: none; }
.p3tr-crumbs li[aria-current] { color: var(--p3-dark); }

/* ==========================================================
   TRIP PAGE
   ========================================================== */
.p3x { color: var(--p3-text); font-family: var(--p3-sans); }
.p3x *, .p3x *::before, .p3x *::after { box-sizing: border-box; }
.p3x__wrap { width: min(var(--p3-container), calc(100% - (2 * var(--p3-gutter)))); margin-inline: auto; }
.p3x__eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; color: var(--p3-bronze); font-size: var(--p3-eyebrow); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.p3x__eyebrow::before { content: ""; flex: 0 0 44px; height: 1px; background: currentColor; }
.p3x h1, .p3x h2, .p3x h3 { color: var(--p3-dark); font-family: var(--p3-serif); font-weight: 400; }
.p3x-muted { margin: -6px 0 18px; color: var(--p3-muted); font-size: 14px; }

/* Top */
.p3x-top { padding: 8px 0 26px; }
.p3x-top__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.p3x-top h1 { max-width: 900px; margin: 0; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.035em; }
.p3x-top__price { text-align: right; }
.p3x-top__price small { display: block; color: var(--p3-muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.p3x-top__price strong { color: var(--p3-dark); font-family: var(--p3-serif); font-size: 40px; font-weight: 400; line-height: 1; }
.p3x-top__price span { display: block; color: var(--p3-muted); font-size: 13px; }
.p3x-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--p3-dark); font-size: 14px; }
.p3x-meta li { display: inline-flex; align-items: center; gap: 8px; }
.p3x-meta svg { width: 17px; height: 17px; color: var(--p3-bronze); }
.p3x-meta__note { padding: 6px 12px; border: 1px solid rgba(177, 125, 72, .3); border-radius: 999px; color: var(--p3-bronze); font-size: 12px; font-weight: 600; }

/* Gallery */
.p3x-gallery { padding-bottom: clamp(30px, 4vw, 48px); }
.p3x-gallery__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: clamp(320px, 42vw, 560px); }
.p3x-gallery__grid--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.p3x-gallery__grid--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.p3x-gallery__grid--3 { grid-template-columns: 2fr 1fr; }
.p3x-gallery__grid--4 { grid-template-columns: 2fr 1fr 1fr; }
.p3x .p3x-gallery__item { position: relative; display: block; width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: #e9e1d4; cursor: zoom-in; }
.p3x .p3x-gallery__item:first-child { grid-row: 1 / -1; border-radius: 24px; }
.p3x-gallery__grid--4 .p3x-gallery__item:nth-child(4) { grid-column: 2 / -1; }
.p3x-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.18, .75, .2, 1); }
.p3x-gallery__item:hover img { transform: scale(1.03); }
.p3x-gallery__more { position: absolute; right: 12px; bottom: 12px; padding: 8px 14px; border-radius: 999px; background: rgba(248, 245, 239, .94); color: var(--p3-dark); font-size: 13px; font-weight: 600; }

/* Layout */
.p3x-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: var(--p3-section); }

/* Facts */
.p3x-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 12px; padding: 0; border: 1px solid var(--p3-line); border-radius: var(--p3-r-md); background: #fffdf9; overflow: hidden; }
.p3x-facts > div { padding: 18px 20px; border-right: 1px solid var(--p3-line); border-bottom: 1px solid var(--p3-line); margin: -1px -1px 0 0; }
.p3x-facts dt { margin: 0 0 6px; color: var(--p3-bronze); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.p3x-facts dd { margin: 0; color: var(--p3-dark); font-size: 15px; line-height: 1.4; }

/* Blocks */
.p3x-block { padding: clamp(34px, 4vw, 52px) 0 0; }
.p3x-block + .p3x-block { margin-top: clamp(34px, 4vw, 52px); border-top: 1px solid var(--p3-line); }
.p3x-block h2 { margin: 0 0 20px; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.03em; }
.p3x-text p, .p3x-text li { color: var(--p3-text); font-size: 16px; line-height: 1.75; }
.p3x-text p { margin: 0 0 14px; }
.p3x-text p:last-child { margin-bottom: 0; }
.p3x-text a { color: var(--p3-bronze); }

.p3x-checks, .p3x-crosses { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.p3x-checks li, .p3x-crosses li { position: relative; padding-left: 32px; color: var(--p3-text); font-size: 15px; line-height: 1.6; }
.p3x-checks li::before, .p3x-crosses li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; }
.p3x-checks li::before { border: 1px solid rgba(177, 125, 72, .45); background: rgba(177, 125, 72, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a67545' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.p3x-crosses li::before { border: 1px solid var(--p3-line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23697174' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 11px no-repeat; }
.p3x-incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.p3x-incl h3 { margin: 0 0 14px; font-size: 22px; }

/* Itinerary */
.p3x-steps { position: relative; margin: 0; padding: 0; list-style: none; }
.p3x-steps::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 21px; width: 1px; background: rgba(177, 125, 72, .3); }
.p3x-steps li { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-bottom: 26px; }
.p3x-steps li:last-child { padding-bottom: 0; }
.p3x-steps__num { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(177, 125, 72, .4); border-radius: 50%; background: var(--p3-ivory-warm); color: var(--p3-bronze); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.p3x-steps h3 { margin: 9px 0 6px; font-size: 22px; line-height: 1.2; }

/* Prices */
.p3x-prices { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--p3-r-sm); background: #fffdf9; box-shadow: 0 0 0 1px var(--p3-line); }
.p3x-prices th, .p3x-prices td { padding: 14px 18px; border-bottom: 1px solid var(--p3-line); text-align: left; font-size: 15px; }
.p3x-prices th { color: var(--p3-bronze); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.p3x-prices td:last-child { color: var(--p3-dark); font-family: var(--p3-serif); font-size: 19px; }
.p3x-prices tr:last-child td { border-bottom: 0; }

/* FAQ */
.p3x-faq { border-bottom: 1px solid var(--p3-line); }
.p3x-faq details { border-top: 1px solid var(--p3-line); }
.p3x-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; color: var(--p3-dark); font-family: var(--p3-serif); font-size: 19px; line-height: 1.3; list-style: none; cursor: pointer; }
.p3x-faq summary::-webkit-details-marker { display: none; }
.p3x-faq summary::after { content: "+"; flex: 0 0 auto; color: var(--p3-bronze); font-family: var(--p3-sans); font-size: 22px; }
.p3x-faq details[open] summary::after { content: "–"; }
.p3x-faq .p3x-text { padding: 0 0 22px; }

/* Booking card */
.p3x-side { position: sticky; top: 120px; }
.p3x-book { margin: 0; padding: 26px; border: 1px solid var(--p3-line); border-radius: var(--p3-r-md); background: #fffdf9; box-shadow: var(--p3-shadow); }
.p3x-book__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--p3-line); }
.p3x-book__head small { display: block; color: var(--p3-muted); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.p3x-book__head strong { color: var(--p3-dark); font-family: var(--p3-serif); font-size: 36px; font-weight: 400; line-height: 1.05; }
.p3x-book__head span { margin-left: 6px; color: var(--p3-muted); font-size: 13px; }
.p3x-book__tag { margin: 4px 0 0; padding: 6px 10px; border-radius: 999px; background: rgba(177, 125, 72, .1); color: var(--p3-bronze); font-size: 11px; font-weight: 700; white-space: nowrap; }
.p3x-book__step { padding-top: 18px; }
.p3x-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.p3x .p3x-field label { margin: 0; color: var(--p3-dark); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.p3x .p3x-field input, .p3x .p3x-field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--p3-line); border-radius: 13px; background: #fff; color: var(--p3-dark); font-family: inherit; font-size: 15px; }
.p3x .p3x-field textarea { min-height: 90px; resize: vertical; }
.p3x .p3x-field input:focus, .p3x .p3x-field textarea:focus, .p3x .p3x-stepper input:focus { outline: none; border-color: var(--p3-gold); box-shadow: 0 0 0 3px rgba(177, 125, 72, .16); }
.p3x .p3x-field.is-invalid input { border-color: #c0573f; }
.p3x-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--p3-line); }
.p3x-count strong { display: block; color: var(--p3-dark); font-size: 15px; font-weight: 600; }
.p3x-count small { color: var(--p3-muted); font-size: 12px; }
.p3x-stepper { display: flex; align-items: center; gap: 6px; }
.p3x .p3x-stepper button, .p3x .p3x-stepper button:hover, .p3x .p3x-stepper button:focus { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--p3-line); border-radius: 50%; background: #fff; color: var(--p3-dark); font-size: 18px; line-height: 1; cursor: pointer; }
.p3x .p3x-stepper button:hover { border-color: var(--p3-gold); }
.p3x .p3x-stepper input { width: 44px; min-height: 38px; padding: 0; border: 0; background: transparent; color: var(--p3-dark); font-size: 16px; font-weight: 600; text-align: center; -moz-appearance: textfield; }
.p3x-stepper input::-webkit-outer-spin-button, .p3x-stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.p3x-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; margin: 16px 0 4px; }
.p3x-total span { color: var(--p3-dark); font-size: 14px; font-weight: 600; }
.p3x-total strong { color: var(--p3-dark); font-family: var(--p3-serif); font-size: 28px; font-weight: 400; }
.p3x-total small { grid-column: 1 / -1; color: var(--p3-muted); font-size: 12px; }
.p3x .p3x-btn, .p3x .p3x-btn:hover, .p3x .p3x-btn:focus { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; margin-top: 16px; padding: 0 22px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #d1a16c, #a87440); color: #11191e; font-family: var(--p3-serif); font-size: 17px; font-weight: 400; line-height: 1.2; text-decoration: none; text-transform: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.p3x .p3x-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(55, 36, 18, .2); }
.p3x .p3x-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.p3x .p3x-back, .p3x .p3x-back:hover, .p3x .p3x-back:focus { margin: 0 0 12px; padding: 0; border: 0; background: none; color: var(--p3-bronze); font-family: var(--p3-sans); font-size: 13px; cursor: pointer; }
.p3x-book__summary { margin: 0 0 16px; padding: 12px 14px; border-radius: 13px; background: var(--p3-ivory-warm); color: var(--p3-dark); font-size: 13px; line-height: 1.55; }
.p3x-msg { margin: 14px 0 0; font-size: 14px; line-height: 1.55; }
.p3x-msg:empty { display: none; }
.p3x-msg.is-ok { padding: 14px; border-radius: 13px; background: #eef5ec; color: #2f5d34; }
.p3x-msg.is-err { color: #b0442f; }
.p3x .p3x-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: var(--p3-dark); font-size: 14px; text-decoration: none; }
.p3x .p3x-wa svg { width: 18px; height: 18px; color: #25a35a; }
.p3x .p3x-wa:hover { color: var(--p3-bronze); }
.p3x-trust { display: grid; gap: 8px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--p3-line); list-style: none; }
.p3x-trust li { position: relative; padding-left: 22px; color: var(--p3-muted); font-size: 13px; }
.p3x-trust li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--p3-gold); }
.p3x-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.p3x-bar { display: none; }

/* Lightbox */
.p3x-lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(8, 12, 15, .96); }
.p3x-lightbox::backdrop { background: rgba(8, 12, 15, .96); }
.p3x-lightbox img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 60px 70px; object-fit: contain; }
.p3x .p3x-lightbox button, .p3x .p3x-lightbox button:hover, .p3x .p3x-lightbox button:focus { position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.p3x-lightbox__close { top: 16px; right: 16px; }
.p3x-lightbox__nav--prev { top: 50%; left: 14px; transform: translateY(-50%); }
.p3x-lightbox__nav--next { top: 50%; right: 14px; transform: translateY(-50%); }
.p3x-lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; margin: 0; color: rgba(255, 255, 255, .7); font-size: 13px; text-align: center; }
body:has(.p3x-lightbox[open]) .p3-global-header { z-index: 10 !important; }

/* ==========================================================
   AFTER CONTENT: related + CTA
   ========================================================== */
.p3tr { color: var(--p3-text); font-family: var(--p3-sans); }
.p3tr *, .p3tr *::before, .p3tr *::after { box-sizing: border-box; }
.p3tr__wrap { width: min(var(--p3-container), calc(100% - (2 * var(--p3-gutter)))); margin-inline: auto; }
.p3tr__eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; color: var(--p3-bronze); font-size: var(--p3-eyebrow); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.p3tr__eyebrow::before { content: ""; flex: 0 0 44px; height: 1px; background: currentColor; }
.p3tr__eyebrow--light { justify-content: center; color: var(--p3-gold-light); }
.p3tr h2 { margin: 0; color: var(--p3-dark); font-family: var(--p3-serif); font-size: var(--p3-h2); font-weight: 400; line-height: 1; letter-spacing: -.035em; }

.p3tr-related { padding: var(--p3-section) 0 0; border-top: 1px solid var(--p3-line); background: var(--p3-ivory); }
.p3tr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; }
.p3tr .p3tr-link { color: var(--p3-bronze); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; }
.p3tr .p3tr-list { background: transparent; }

.p3tr-cta { padding: var(--p3-section) 0; background: var(--p3-dark); color: #fff; text-align: center; }
.p3tr-cta h2 { max-width: 760px; margin-inline: auto; color: #fff; }
.p3tr-cta h2 em { color: var(--p3-gold-light); font-style: italic; }
.p3tr-cta p { max-width: 560px; margin: 18px auto 0; color: rgba(255, 255, 255, .72); font-size: 16px; line-height: 1.7; }
.p3tr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.p3tr .p3tr-btn, .p3tr .p3tr-btn:hover, .p3tr .p3tr-btn:focus { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 26px; border: 1px solid transparent; border-radius: 16px; background: linear-gradient(135deg, #d1a16c, #a87440); color: #11191e; font-family: var(--p3-serif); font-size: 17px; line-height: 1.2; text-decoration: none; transition: transform .2s ease; }
.p3tr .p3tr-btn:hover { transform: translateY(-2px); }
.p3tr .p3tr-btn--ghost, .p3tr .p3tr-btn--ghost:hover, .p3tr .p3tr-btn--ghost:focus { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #fff; }


@media (max-width: 1100px) {
	.p3x-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 900px) {
	.p3tr-crumbs { padding-top: 98px; }
	.p3x-layout { grid-template-columns: minmax(0, 1fr); }
	.p3x-side { position: static; }
	.p3x-top__price { display: none; }
	.p3x-gallery__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
	.p3x .p3x-gallery__item { aspect-ratio: 1 / 1; height: auto; }
	.p3x .p3x-gallery__item:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
	.p3x-gallery__grid--4 .p3x-gallery__item:nth-child(4) { grid-column: auto; }
	.p3x-gallery__item:nth-child(n + 4) { display: none; }
	.p3x-gallery__item:nth-child(3) .p3x-gallery__more { display: none; }
	.p3x-incl { grid-template-columns: minmax(0, 1fr); }
	.p3x-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 99990; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border: 1px solid rgba(23, 35, 43, .1); border-radius: 18px; background: rgba(248, 245, 239, .97); box-shadow: 0 18px 50px rgba(28, 25, 21, .2); transition: transform .3s ease; }
	.p3x-bar.is-hidden { transform: translateY(150%); }
	.p3x-bar > div { flex: 1 1 auto; color: var(--p3-dark); line-height: 1.1; }
	.p3x-bar small { display: block; color: var(--p3-muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
	.p3x-bar strong { font-family: var(--p3-serif); font-size: 24px; font-weight: 400; }
	.p3x .p3x-bar .p3x-btn { width: auto; min-height: 50px; margin: 0; }
	body.single-trip .p3-footer { padding-bottom: 80px; }
	.p3x-lightbox img { padding: 60px 10px; }
}

@media (max-width: 600px) {
	.p3x-book { padding: 20px; }
	.p3x-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	.p3x *, .p3tr * { transition: none !important; }
}

/* Long trip content with Read more */
.p3x-more__body.is-collapsed { position: relative; max-height: 380px; overflow: hidden; }
.p3x-more__body.is-collapsed::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 140px; background: linear-gradient(to bottom, rgba(247, 243, 235, 0), #f7f3eb 85%); pointer-events: none; }
.p3x-more__body h2 { margin: 28px 0 12px; font-size: clamp(22px, 2.4vw, 28px); }
.p3x-more__body h3 { margin: 22px 0 10px; font-size: 20px; }
.p3x-more__body img { max-width: 100%; height: auto; border-radius: 16px; }
.p3x-more__toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin-top: 16px; padding: 0 22px; border: 1px solid rgba(177, 125, 72, .45); border-radius: 999px; background: transparent; color: var(--p3-dark); font-family: var(--p3-serif); font-size: 16px; cursor: pointer; }
.p3x-more__toggle:hover { border-color: var(--p3-bronze); color: var(--p3-bronze); }
.p3x-more__toggle svg { width: 18px; height: 18px; transition: transform .2s ease; }
.p3x-more__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.p3x-more__toggle[hidden] { display: none; }
@media (max-width: 767px) { .p3x-more__body.is-collapsed { max-height: 300px; } }
