/* ============================================================
   tirupati.css — Page-specific styles for tirupathi.html
   Requires: style.css loaded first
   ============================================================ */


/* ============================================================
   1. PAGE BACKGROUND
   ============================================================ */
body {
    background: url("../images/tirupatipage_bg.webp") center / cover fixed no-repeat;
}


/* ============================================================
   2. PACKAGE FILTER TABS
   ============================================================ */
.pkg-filters {
    display        : flex;
    flex-wrap      : wrap;
    gap            : 10px;
    justify-content: center;
    margin-bottom  : 36px;
}

.pkg-filter {
    padding        : 8px 18px;
    border-radius  : 30px;
    border         : 1.5px solid rgba(212,175,55,0.35);
    background     : rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
    font-size      : 13px;
    font-family    : 'Poppins', sans-serif;
    font-weight    : 500;
    color          : var(--text-dark);
    cursor         : pointer;
    transition     : 0.25s;
}

.pkg-filter:hover {
    border-color: var(--primary-gold);
    color       : var(--primary-gold);
}

.pkg-filter.active {
    background  : var(--primary-gold);
    border-color: var(--primary-gold);
    color       : #fff;
    box-shadow  : 0 4px 14px rgba(212,175,55,0.3);
}


/* ============================================================
   3. PACKAGE TAG BADGE
   ============================================================ */
.pkg-tag {
    display      : inline-block;
    font-size    : 11px;
    font-weight  : 500;
    padding      : 3px 10px;
    border-radius: 20px;
    margin-bottom: 5px;
    background   : rgba(212,175,55,0.12);
    color        : var(--primary-gold);
}

.pkg-tag.tag-popular { background: var(--primary-gold); color: #fff; }
.pkg-tag.tag-premium { background: linear-gradient(135deg, #b8860b, #d4af37); color: #fff; }

.pkg-duration {
    font-size  : 12px;
    color      : var(--text-light);
    margin-left: 8px;
}


/* ============================================================
   4. HERO (tirupati page overrides)
   ============================================================ */
.hero-container {
    display    : flex;
    align-items: center;
    gap        : 50px;
}

/* carousel height for tirupati page — do NOT override img styles */
.carousel {
    height       : 440px;
    border-radius: 20px;
}


/* ============================================================
   5. PACKAGES — DETAILED CARDS GRID
   ============================================================ */
.package-detailed {
    display              : grid;
    grid-template-columns: repeat(3, 1fr);
    gap                  : 28px;
}
@media (max-width: 768px) {

    .package-detailed {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .package-full-card {
        width: 100%;
    }
}

.package-full-card {
    border-radius  : 18px;
    overflow       : hidden;
    background     : rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    border         : 1px solid rgba(0,0,0,0.04);
    transition     : 0.35s ease;
}

.package-full-card:hover {
    transform : translateY(-10px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.package-top { display: block; }

.package-top img {
    width          : 100%;
    aspect-ratio   : 16 / 9;
    object-fit     : cover;
    object-position: center center;
    display        : block;
}

.package-top div { padding: 16px 18px 10px; }

.package-full-card h3 {
    font-size    : 18px;
    margin-bottom: 5px;
}

.package-desc {
    font-size: 13px;
    color    : var(--text-light);
}

.package-full-card ul {
    padding: 0 20px;
    margin : 12px 0;
}

.package-full-card li {
    font-size    : 13px;
    margin-bottom: 4px;
}

.price-row { padding: 0 20px; margin-bottom: 12px; }

.package-full-card .old-price {
    text-decoration: line-through;
    font-size      : 12px;
    color          : #999;
}

.package-full-card .new-price {
    color      : var(--primary-gold);
    font-weight: 600;
    font-size  : 16px;
}

.package-full-card .btn {
    display   : block;
    width     : 80%;
    margin    : 10px auto 18px;
    text-align: center;
}

.highlight {
    border    : 1.5px solid var(--primary-gold);
    box-shadow: 0 10px 30px rgba(212,175,55,0.12);
}


/* ============================================================
   6. SUGGESTED TRIPS GRID
   ============================================================ */
.trips-grid {
    display              : grid;
    grid-template-columns: repeat(3, 1fr);
    gap                  : 25px;
}

.trip-card {
    padding        : 25px;
    border-radius  : 18px;
    background     : rgba(255,255,255,0.55);
    backdrop-filter: blur(12px);
    border         : 1px solid rgba(255,255,255,0.3);
    display        : flex;
    flex-direction : column;
    position       : relative;
    transition     : 0.35s ease;
}

.trip-card:hover {
    transform : translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08), 0 0 20px rgba(212,175,55,0.15);
}

.trip-card h3 {
    font-size    : 18px;
    margin-bottom: 8px;
}

.trip-card p {
    font-size    : 14px;
    color        : var(--text-light);
    margin-bottom: 12px;
}

.trip-card .btn {
    display      : block;
    margin       : 10px auto 0;
    padding      : 8px 16px;
    font-size    : 13px;
    border-radius: 6px;
    box-shadow   : 0 4px 12px rgba(212,175,55,0.2);
    width        : fit-content;
}

.trip-card.highlight {
    border    : 1px solid rgba(212,175,55,0.3);
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(255,255,255,0.7));
}

.custom-trip-box {
    text-align : center;
    margin-top : 30px;
    font-size  : 15px;
    color      : var(--text-dark);
}


/* ============================================================
   7. PLACES TO VISIT — AUTO-SCROLL STRIP
   ============================================================ */
.places-wrapper {
    overflow  : hidden;
    position  : relative;
    margin-top: 40px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    mask-image        : linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.places-track {
    display  : flex;
    gap      : 20px;
    animation: scrollRight 28s linear infinite;
}

.places-track:hover { animation-play-state: paused; }

@keyframes scrollRight {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.place-card {
    min-width      : 240px;
    max-width      : 250px;
    border-radius  : 14px;
    overflow       : hidden;
    background     : rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
    border         : 1px solid rgba(255,255,255,0.4);
    transition     : 0.35s ease;
}

.place-card:hover {
    transform : translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.place-card img {
    width     : 100%;
    height    : 140px;
    object-fit: cover;
    display   : block;
}

.place-info { padding: 12px; }

.place-info h3 {
    font-size    : 15px;
    margin-bottom: 4px;
}

.place-info p {
    font-size  : 12px;
    color      : var(--text-light);
    line-height: 1.4;
}


/* ============================================================
   8. CTA (tirupati page)
   ============================================================ */
.cta { text-align: center; }


/* ============================================================
   9. PACKAGE CHOOSER MODAL
   ============================================================ */
.pkg-modal-overlay {
    position       : fixed;
    inset          : 0;
    background     : rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    z-index        : 1000;
    display        : flex;
    align-items    : center;
    justify-content: center;
    padding        : 20px;
}

.pkg-modal-box {
    background   : #fff;
    border-radius: 22px;
    width        : 100%;
    max-width    : 520px;
    max-height   : 80vh;
    overflow-y   : auto;
    box-shadow   : 0 30px 80px rgba(0,0,0,0.25);
    animation    : modalPop 0.3s ease;
}

@keyframes modalPop {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.pkg-modal-header {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    padding        : 22px 24px 16px;
    border-bottom  : 1px solid rgba(212,175,55,0.15);
    position       : sticky;
    top            : 0;
    background     : #fff;
    z-index        : 1;
}

.pkg-modal-header h3 {
    font-size: 18px;
    margin   : 0;
}

.pkg-modal-close {
    width        : 34px;
    height       : 34px;
    border-radius: 50%;
    border       : none;
    background   : #f5f5f5;
    font-size    : 14px;
    cursor       : pointer;
    display      : flex;
    align-items  : center;
    justify-content: center;
    transition   : 0.2s;
}

.pkg-modal-close:hover { background: #ffe4e4; color: #c0392b; }

.pkg-modal-list {
    padding       : 12px 16px;
    display       : flex;
    flex-direction: column;
    gap           : 8px;
}

.modal-pkg-row {
    display        : flex;
    justify-content: space-between;
    align-items    : center;
    gap            : 16px;
    padding        : 14px 16px;
    border-radius  : 14px;
    border         : 1px solid rgba(212,175,55,0.15);
    background     : rgba(255,255,255,0.8);
    transition     : 0.25s;
    text-decoration: none;
    color          : var(--text-dark);
}

.modal-pkg-row:hover {
    background  : rgba(212,175,55,0.07);
    border-color: rgba(212,175,55,0.4);
    transform   : translateX(4px);
}

.modal-pkg-info {
    display       : flex;
    flex-direction: column;
    gap           : 3px;
    flex          : 1;
}

.modal-pkg-tag {
    font-size     : 10px;
    font-weight   : 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color         : var(--primary-gold);
}

.modal-pkg-tag.tag-popular { color: #c67c00; }
.modal-pkg-tag.tag-premium { color: #8a5c00; }

.modal-pkg-info strong {
    font-size  : 14px;
    font-weight: 600;
    line-height: 1.3;
}

.modal-pkg-route {
    font-size: 12px;
    color    : var(--text-light);
}

.modal-pkg-right {
    display       : flex;
    flex-direction: column;
    align-items   : flex-end;
    gap           : 2px;
    flex-shrink   : 0;
}

.modal-pkg-price {
    font-size  : 16px;
    font-weight: 700;
    color      : var(--primary-gold);
}

.modal-pkg-duration {
    font-size: 11px;
    color    : var(--text-light);
}

.pkg-modal-skip {
    display   : block;
    text-align: center;
    padding   : 14px;
    font-size : 13px;
    color     : var(--text-light);
    border-top: 1px solid rgba(0,0,0,0.06);
    transition: 0.2s;
}

.pkg-modal-skip:hover { color: var(--primary-gold); }


@media (max-width: 768px) {

    /* Hero — carousel top, text left-aligned below */
    .hero-container {
        flex-direction: column-reverse;
        align-items   : flex-start;
        text-align    : left;
        gap           : 18px;
    }

    .hero-right { width: 100%; }

    .carousel {
        height       : 220px;
        border-radius: 14px;
    }

    /* Package filter tabs */
    .pkg-filters { gap: 8px; }

    .pkg-filter {
        padding  : 6px 14px;
        font-size: 12px;
    }

    /* ── PACKAGE CARDS: single column, vertical, premium ── */
    .package-detailed {
        grid-template-columns: 1fr;
        gap                  : 20px;
        padding              : 0 2px;
    }

    .package-full-card {
        border-radius  : 18px;
        background     : rgba(255,255,255,0.92);
        backdrop-filter: blur(10px);
        overflow       : hidden;
        box-shadow     : 0 8px 28px rgba(0,0,0,0.08);
        border         : 1px solid rgba(212,175,55,0.12);
        display        : flex;
        flex-direction : column;
    }

    /* Image fills full width, taller on mobile */
    .package-top { display: block; }

    .package-top img {
        width        : 100%;
        aspect-ratio : 16 / 8;
        object-fit   : cover;
        display      : block;
        border-radius: 0;
    }

    .package-top div {
        padding: 16px 16px 10px;
    }

    .package-full-card h3 {
        font-size    : 17px;
        font-weight  : 600;
        line-height  : 1.3;
        margin-bottom: 4px;
    }

    .package-desc { font-size: 13px; color: var(--text-light); }

    .package-full-card ul {
        padding: 0 16px;
        margin : 8px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        list-style: none;
    }

    .package-full-card li {
        font-size    : 12px;
        padding      : 4px 10px;
        background   : rgba(212,175,55,0.1);
        border-radius: 20px;
        color        : var(--text-dark);
        border       : 1px solid rgba(212,175,55,0.2);
    }

    .price-row {
        padding      : 10px 16px 0;
        margin-bottom: 14px;
        display      : flex;
        align-items  : center;
        justify-content: space-between;
    }

    .package-full-card .old-price { font-size: 11px; }
    .package-full-card .new-price { font-size: 16px; font-weight: 700; }

    .package-full-card .btn {
        display      : block;
        width        : calc(100% - 32px);
        margin       : 0 16px 16px;
        padding      : 11px;
        font-size    : 13px;
        font-weight  : 600;
        border-radius: 10px;
        text-align   : center;
    }

    /* Trips — single column */
    .trips-grid {
        display       : flex;
        flex-direction: column;
        gap           : 14px;
    }

    .trip-card {
        padding      : 16px 16px 14px;
        border-radius: 12px;
        background   : rgba(255,255,255,0.85);
        box-shadow   : 0 6px 18px rgba(0,0,0,0.06);
    }

    .trip-card::before {
        content      : "";
        position     : absolute;
        left         : 0;
        top          : 0;
        height       : 100%;
        width        : 3px;
        background   : var(--primary-gold);
        border-radius: 3px 0 0 3px;
        opacity      : 0.7;
    }

    .trip-card h3 { font-size: 15px; margin-bottom: 4px; }
    .trip-card p  { font-size: 12px; margin-bottom: 12px; line-height: 1.4; }

    .trip-card .btn {
        width        : auto;
        padding      : 7px 14px;
        font-size    : 12px;
        border-radius: 6px;
        align-self   : flex-start;
        display      : inline-block;
        margin       : 0 auto;
    }

    .trip-card.highlight {
        border    : 1px solid var(--primary-gold);
        box-shadow: 0 8px 22px rgba(212,175,55,0.18);
    }

    .custom-trip-box {
        margin-top   : 20px;
        font-size    : 13px;
        padding      : 14px;
        border-radius: 10px;
        background   : rgba(255,255,255,0.7);
    }

    /* Places scroll strip */
    .place-card     { min-width: 220px; }
    .place-card img { height: 150px; }
    .places-track { animation: scrollRight 15s linear infinite; }

    /* Package chooser modal */
    .pkg-modal-overlay {
        align-items: flex-end;
        padding    : 0;
    }

    .pkg-modal-box {
        max-height   : 90vh;
        border-radius: 18px 18px 0 0;
    }
}

.packages .container {
    max-width: 1340px;
}

.package-detailed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.package-full-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 22px;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(212,175,55,0.16);
    box-shadow: 0 16px 44px rgba(35,28,10,0.08);
}

.package-full-card:hover {
    box-shadow: 0 24px 58px rgba(35,28,10,0.13);
}

.package-top {
    position: relative;
}

.package-top img {
    aspect-ratio: 16 / 10;
    object-position: center;
}

.package-image-duration {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(16,13,6,0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.package-top div {
    padding: 18px 20px 8px;
}

.package-full-card h3 {
    font-size: 19px;
    line-height: 1.32;
}

.package-summary {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-light);
}

.package-full-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 20px;
    margin: 14px 0 16px;
    list-style: none;
}

.package-full-card li {
    margin: 0;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.18);
    font-size: 12px;
    line-height: 1.35;
}

.price-row {
    margin-top: auto;
    padding: 0 20px 14px;
}

.price-box {
    gap: 9px;
}

.package-full-card .new-price {
    font-size: 23px;
    font-weight: 800;
    color: #1f6b34;
}

.package-full-card .old-price {
    font-size: 14px;
}

.package-card-actions {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 10px;
    padding: 0 20px 20px;
}

.package-card-actions .btn {
    width: 100%;
    margin: 0;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13px;
}

.trips-grid {
    gap: 28px;
}

.trip-card {
    border-radius: 20px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(212,175,55,0.14);
    box-shadow: 0 14px 36px rgba(29,24,11,0.07);
}

.places-wrapper {
    margin-inline: -20px;
}

.place-card {
    min-width: 270px;
    max-width: 270px;
    border-radius: 18px;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(212,175,55,0.12);
    box-shadow: 0 12px 32px rgba(27,22,9,0.08);
}

.place-card img {
    height: 165px;
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .packages .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .pkg-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 2px 2px 10px;
        margin-bottom: 24px;
        scrollbar-width: none;
    }

    .pkg-filters::-webkit-scrollbar {
        display: none;
    }

    .pkg-filter {
        flex: 0 0 auto;
        border-radius: 999px;
    }

    .package-detailed {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0;
    }

    .package-full-card {
        border-radius: 20px;
        box-shadow: 0 14px 38px rgba(29,24,11,0.1);
    }

    .package-top img {
        aspect-ratio: 16 / 9;
    }

    .package-image-duration {
        top: 10px;
        right: 10px;
        font-size: 10px;
    }

    .package-top div {
        padding: 14px 14px 7px;
    }

    .package-full-card h3 {
        font-size: 16px;
    }

    .package-summary {
        font-size: 12px;
        line-height: 1.55;
    }

    .package-full-card ul {
        padding: 0 14px;
        margin: 10px 0 13px;
        gap: 6px;
    }

    .price-row {
        padding: 0 14px 12px;
    }

    .package-card-actions {
        grid-template-columns: 1fr 1fr;
        padding: 0 14px 14px;
        gap: 8px;
    }

    .package-card-actions .btn {
        padding: 10px 8px;
        font-size: 12px;
        border-radius: 11px;
    }

    .places-wrapper {
        margin-inline: -14px;
    }

    .place-card {
        min-width: 230px;
        max-width: 230px;
    }
}

.package-full-card .new-price {
    color: #17130a;
    text-shadow: none;
}
