@import url('branding.css');

/* ================= HERO ================= */
.tour-hero {
    position: relative;
    min-height: clamp(520px, 82vh, 860px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(120px, 12vw, 160px) 0 clamp(64px, 8vw, 88px);
    background-color: #000;
    background-image: var(--tour-hero-image, none);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.tour-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.42) 30%,
            rgba(0, 0, 0, 0.72) 72%,
            rgba(0, 0, 0, 0.92) 100%
        );
    z-index: -2;
}

.tour-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, rgba(245, 196, 0, 0.14), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(245, 196, 0, 0.08), transparent 38%);
    z-index: -1;
    pointer-events: none;
}

.tour-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    justify-content: center;
}

.tour-hero-content {
    width: min(100%, 940px);
    padding: clamp(24px, 4vw, 40px);
    color: #fff;
}

.tour-hero .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0 auto 18px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #f5c400;
    border: 1px solid #f5c400;
    color: #111111;
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(245, 196, 0, 0.18);
}

.tour-hero h1 {
    margin: 0 auto 18px;
    max-width: 11ch;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 2rem + 4vw, 5.9rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.tour-hero h1 .text-yellow,
.tour-hero h1 .highlight,
.tour-hero h1 span {
    color: #f5c400;
}

.tour-hero p {
    margin: 0 auto 28px;
    max-width: 58ch;
    font-size: clamp(1rem, 0.96rem + 0.22vw, 1.12rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.tour-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
}

.tour-meta span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 700;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.tour-meta span:nth-child(1),
.tour-meta span:nth-child(2) {
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.08);
    color: #111111;
}

.tour-meta span:nth-child(1) i,
.tour-meta span:nth-child(2) i {
    color: #111111;
}

.tour-meta .price {
    background: #f5c400;
    border: 1px solid #f5c400;
    color: #111111;
    box-shadow: 0 10px 26px rgba(245, 196, 0, 0.22);
}

.tour-meta .price i {
    color: #111111;
}

.tour-hero-content::after {
    content: "";
    display: block;
    width: 92px;
    height: 3px;
    margin: 28px auto 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(245, 196, 0, 0.08) 0%,
        rgba(245, 196, 0, 1) 50%,
        rgba(245, 196, 0, 0.08) 100%
    );
}

/* ================= PAGE BODY ================= */
.tour-section {
    padding: clamp(36px, 5vw, 60px) 0 clamp(70px, 8vw, 110px);
}

.tour-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.7fr);
    gap: clamp(22px, 3vw, 34px);
    align-items: start;
}

.tour-main,
.tour-sidebar {
    min-width: 0;
}

.tour-main {
    display: grid;
    gap: 24px;
}

.tour-sidebar {
    display: grid;
    gap: 22px;
}

.tour-sidebar .sticky {
    position: sticky;
    top: calc(var(--header-height, 90px) + 24px);
    display: grid;
    gap: 20px;
}

/* ================= CARD OVERRIDES ================= */
.tour-page .card {
    padding: 24px 24px 32px;
    border-radius: 22px;
    box-shadow:
        0 2px 10px rgba(22, 18, 8, 0.04),
        0 18px 40px rgba(22, 18, 8, 0.06);
}

.tour-page .card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 24px rgba(22, 18, 8, 0.08),
        0 22px 50px rgba(22, 18, 8, 0.10);
    border-color: rgba(17, 17, 17, 0.12);
}

.tour-page .card > h2,
.tour-page .card > h3 {
    margin-bottom: 18px;
}

.tour-page .card h2 {
    position: relative;
    padding-bottom: 12px;
    font-size: clamp(1.8rem, 1.2rem + 1vw, 2.45rem);
}

.tour-page .card h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 72px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f5c400 0%, rgba(245, 196, 0, 0.18) 100%);
}

.tour-page .card h3 {
    font-size: clamp(1.25rem, 1rem + 0.55vw, 1.7rem);
}

.tour-main > .card:first-child p {
    color: #524d46;
    line-height: 1.9;
}

/* ================= GALLERY ================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.gallery a {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #efe9db;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    min-height: 260px;
}

.gallery a:nth-child(6n + 1),
.gallery a:nth-child(6n + 4),
.gallery a:nth-child(6n + 5) {
    grid-column: span 7;
}

.gallery a:nth-child(6n + 2),
.gallery a:nth-child(6n + 3),
.gallery a:nth-child(6n + 6) {
    grid-column: span 5;
}

.gallery a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.18) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    z-index: 1;
}

.gallery a::after {
    content: "\\F52A";
    font-family: "bootstrap-icons";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity var(--transition-smooth),
        transform var(--transition-smooth);
    z-index: 2;
}

.gallery a:hover::before,
.gallery a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.gallery img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 700ms cubic-bezier(.16, 1, .3, 1);
}

.gallery a:hover img {
    transform: scale(1.04);
}

/* ================= ITINERARY ================= */
.day {
    position: relative;
    padding-left: 88px;
}

.day + .day {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.day span {
    position: absolute;
    top: 2px;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f7d54a 0%, #f5c400 100%);
    border: 1px solid rgba(221, 176, 0, 0.35);
    box-shadow:
        0 8px 18px rgba(245, 196, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #6f5600;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.day h4 {
    margin: 0 0 10px;
    color: #171717;
    font-size: clamp(1.08rem, 1rem + 0.3vw, 1.28rem);
    line-height: 1.3;
    font-weight: 700;
}

.day p {
    margin: 0;
    color: #5a544b;
    font-size: 0.98rem;
    line-height: 1.85;
    max-width: 68ch;
}

.day:hover h4 {
    color: #111111;
}

.day:hover span {
    transform: translateY(-1px);
    box-shadow:
        0 12px 24px rgba(245, 196, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: all 0.3s ease;
}

/* optional subtle vertical rhythm */
.day::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 42px;
    bottom: -32px;
    width: 1px;
    background: linear-gradient(
        180deg,
        rgba(245, 196, 0, 0.24) 0%,
        rgba(17, 17, 17, 0.06) 100%
    );
}

.day:last-child::after {
    display: none;
}

@media (max-width: 767px) {
    .day {
        padding-left: 0;
    }

    .day + .day {
        margin-top: 24px;
        padding-top: 24px;
    }

    .day span {
        position: static;
        margin-bottom: 12px;
    }

    .day::after {
        display: none;
    }

    .day h4 {
        font-size: 1.08rem;
    }

    .day p {
        font-size: 0.96rem;
        line-height: 1.78;
    }
}

/* ================= INFO GRID ================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.info-grid .card ul,
.tour-sidebar .card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-grid .card li,
.tour-sidebar .card li {
    position: relative;
    padding-left: 24px;
    color: #4f4a43;
    line-height: 1.75;
}

.info-grid .card li + li,
.tour-sidebar .card li + li {
    margin-top: 12px;
}

/* ================= BOOKING CARD ================= */
.booking {
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(247,242,232,0.95) 100%);
}

.booking h3 {
    margin-bottom: 14px;
    color: #111;
    font-size: clamp(2rem, 1.4rem + 1.2vw, 2.8rem);
}

.booking ul {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.booking li {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 0 0 24px !important;
    border-bottom: 1px dashed rgba(17, 17, 17, 0.08);
    font-weight: 600;
}

.booking li:last-child {
    border-bottom: none;
}

.booking li::before {
    top: 50% !important;
    transform: translateY(-50%);
}

.booking .btn {
    width: 100%;
    min-height: 52px;
}

.booking .btn + .btn {
    margin-top: 12px;
}

.booking .btn.primary {
    background: var(--color-primary, #f5c400);
    color: #111;
    border: 1px solid var(--color-primary, #f5c400);
    box-shadow: 0 12px 26px rgba(245, 196, 0, 0.22);
}

.booking .btn.primary:hover {
    background: var(--color-primary-hover, #ddb000);
    border-color: var(--color-primary-hover, #ddb000);
    color: #111;
    transform: translateY(-1px);
}

.booking .btn.outline {
    background: transparent;
    border: 1px solid #000;
    color: #171717;
}

.booking .btn.outline:hover {
    background: rgba(245, 196, 0, 0.08);
    border-color: rgba(245, 196, 0, 0.22);
    color: #111;
}

/* ================= SUPPORT PANEL ================= */
.tour-support {
    padding: 32px 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, #161616 0%, #101010 100%);
    color: #f7f1e7;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.14);
    text-align: center;
}

.tour-support__icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #f5c400 0%, #dcae00 100%);
    color: #111111;
    font-size: 2.1rem;
}

.tour-support__icon i {
    line-height: 1;
}

.tour-support__kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #f1cc4a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tour-support__head {
    margin-bottom: 18px;
}

.tour-support__title {
    margin: 0 0 10px;
    color: #fff8ec;
    font-size: clamp(2rem, 1.4rem + 1.2vw, 2.8rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.tour-support__line {
    margin: 0;
    color: rgba(255, 245, 230, 0.78);
    font-size: 0.98rem;
    line-height: 1.7;
}

.tour-support__panel {
    margin-top: 20px;
    padding: 10px;
    border-radius: 18px;
    background: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tour-support__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 20px;
    color: #111111;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tour-support__number i {
    font-size: 1.5rem;
    line-height: 1;
}

/* ================= GLIGHTBOX / MODAL FEEL ================= */
.glightbox-clean .gslide-description,
.glightbox-modern .gslide-description {
    color: #f4efe4;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1199px) {
    .tour-grid {
        grid-template-columns: minmax(0, 1fr) 340px;
    }

    .tour-hero h1 {
        max-width: 12ch;
    }
}

@media (max-width: 991px) {
    .tour-hero {
        min-height: 620px;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .tour-hero-content {
        width: 100%;
        padding: 24px;
    }

    .tour-hero h1 {
        max-width: 100%;
        font-size: clamp(2.4rem, 1.9rem + 3vw, 4.1rem);
    }

    .tour-grid {
        grid-template-columns: 1fr;
    }

    .tour-sidebar .sticky {
        position: static;
        top: auto;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .tour-support {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    .tour-hero {
        min-height: 480px;
        align-items: flex-end;
        padding-top: 108px;
        padding-bottom: 48px;
    }

    .tour-hero-content {
        max-width: 100%;
        padding: 20px 16px;
    }

    .tour-hero h1 {
        max-width: 100%;
        font-size: clamp(2.35rem, 1.8rem + 4vw, 3.5rem);
    }

    .tour-hero .badge {
        margin-bottom: 14px;
        padding: 9px 14px;
        min-height: 38px;
    }

    .tour-hero p {
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .tour-meta {
        gap: 10px;
    }

    .tour-meta span {
        width: 100%;
        min-height: 46px;
        padding: 11px 14px;
        justify-content: center;
        text-align: center;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery a,
    .gallery a:nth-child(6n + 1),
    .gallery a:nth-child(6n + 2),
    .gallery a:nth-child(6n + 3),
    .gallery a:nth-child(6n + 4),
    .gallery a:nth-child(6n + 5),
    .gallery a:nth-child(6n + 6) {
        grid-column: span 1;
    }

    .day {
        padding-left: 0;
    }

    .day span {
        position: static;
        margin-bottom: 10px;
    }

    .tour-page .card,
    .tour-support {
        border-radius: 18px;
    }

    .tour-support__panel {
        padding: 16px;
    }
}

@media (max-width: 575px) {
    .tour-section {
        padding-top: 26px;
        padding-bottom: 64px;
    }

    .tour-hero {
        min-height: 440px;
        padding-top: 108px;
        padding-bottom: 42px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery img {
        aspect-ratio: 5 / 4;
    }

    .tour-page .card,
    .tour-support {
        padding: 20px;
    }

    .tour-support__panel {
        padding: 14px;
    }

    .tour-support__title {
        font-size: clamp(1.45rem, 1.1rem + 1.4vw, 1.9rem);
        line-height: 1.08;
    }

    .tour-support__number i {
        font-size: 1rem;
    }
}