/* 3 Pyramids — Tours page */

/* Shared tour cards (from the homepage "Curated" section) */
/* ==========================================================
   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;
    }

}


/* ==========================================================
   TOURS PAGE
   ========================================================== */
.p3t { background: var(--p3-ivory-warm); color: var(--p3-text); font-family: var(--p3-sans); }
.p3t *, .p3t *::before, .p3t *::after { box-sizing: border-box; }
.p3t__wrap { width: min(var(--p3-container), calc(100% - (2 * var(--p3-gutter)))); margin-inline: auto; }
.p3t__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; }
.p3t__eyebrow::before { content: ""; flex: 0 0 44px; height: 1px; background: currentColor; }

.p3t-hero { padding: clamp(140px, 16vw, 190px) 0 clamp(30px, 4vw, 44px); }
.p3t-hero h1 { max-width: 900px; margin: 0; color: var(--p3-dark); font-family: var(--p3-serif); font-size: var(--p3-h1); font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.p3t-hero h1 em { color: var(--p3-bronze); font-style: italic; }
.p3t-hero__intro { max-width: 660px; margin: 22px 0 0; color: var(--p3-muted); font-size: 17px; line-height: 1.65; }

.p3t-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--p3-line); }
.p3t-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.p3t .p3t-pill, .p3t .p3t-pill:hover, .p3t .p3t-pill:focus { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin: 0; padding: 0 18px; border: 1px solid var(--p3-line); border-radius: 999px; background: #fff; color: var(--p3-dark); font-family: var(--p3-sans); font-size: 14px; font-weight: 400; line-height: 1.2; text-transform: none; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.p3t .p3t-pill:hover { border-color: var(--p3-gold); }
.p3t .p3t-pill.is-active { border-color: var(--p3-dark); background: var(--p3-dark); color: #fff; }
.p3t .p3t-pill:focus-visible { outline: 2px solid var(--p3-gold-light); outline-offset: 3px; }
.p3t-pill span { font-size: 12px; opacity: .6; }
.p3t-count { margin: 0; color: var(--p3-muted); font-size: var(--p3-small); }

.p3t .p3t-list { padding-top: clamp(10px, 2vw, 24px); background: transparent; }
.p3t .pyr-tour[hidden] { display: none !important; }
.p3t .pyr-tour__title { margin-top: 0; }

.p3t-banner { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px; padding: clamp(28px, 4vw, 52px); border-radius: var(--p3-r-md); background: var(--p3-dark); color: #fff; }
.p3t-banner h2 { margin: 0; color: #fff; font-family: var(--p3-serif); font-size: clamp(28px, 3vw, 42px); font-weight: 400; line-height: 1.05; letter-spacing: -.03em; }
.p3t-banner p { max-width: 560px; margin: 12px 0 0; color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.6; }
.p3t .p3t-btn, .p3t .p3t-btn:hover, .p3t .p3t-btn:focus { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 26px; 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; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease; }
.p3t .p3t-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, .26); }

.p3t-about { padding: var(--p3-section) 0; border-top: 1px solid var(--p3-line); background: var(--p3-ivory); }
.p3t-about__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.p3t-about 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; }
.p3t-about__text p { margin: 0 0 18px; color: var(--p3-muted); font-size: 16px; line-height: 1.75; }
.p3t-about__text p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
	.p3t-banner { grid-template-columns: minmax(0, 1fr); }
	.p3t .p3t-btn { width: 100%; white-space: normal; }
	.p3t-about__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
	.p3t-pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--p3-gutter)); padding: 2px var(--p3-gutter) 6px; scrollbar-width: none; }
	.p3t-pills::-webkit-scrollbar { display: none; }
	.p3t .p3t-pill { flex: 0 0 auto; min-height: 44px; font-size: 13px; }
}

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

/* Equal-height tour cards: footer always at the bottom */
.p3t .pyr-tour { display: flex; flex-direction: column; }
.p3t .pyr-tour__body { flex: 1 1 auto; display: flex; flex-direction: column; }
.p3t .pyr-tour__footer { margin-top: auto; }
