﻿:root {
    --red: #C8102E;
    --navy: #0B1F3A;
    --text: #12213a;
    --muted: #65728a;
    --bg: #f7f9fc;
    --border: #dce3ed;
    --shadow: 0 12px 32px rgba(15, 31, 58, 0.08);
    --green: #176b3a;
    --gold: #ffc400;
}

.packages-main-wrapper {
    background-color: var(--bg);
    padding: 40px 0 90px;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--text);
}

/*.packages-main-wrapper .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 20px;
        }*/

/* Filter Tabs */
.filters-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 45px;
    padding-bottom: 5px;
}

.filter-btn {
    border: 1.5px solid var(--navy);
    background: #ffffff;
    color: var(--navy);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 13.5px;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
}

    .filter-btn:hover,
    .filter-btn.active {
        background: var(--red) !important;
        border-color: var(--red) !important;
        color: #ffffff !important;
        box-shadow: 0 8px 18px rgba(200, 16, 46, 0.22);
    }

/* Category Sections */
.category-section {
    margin-bottom: 60px;
    transition: all 0.3s ease;
}

    .category-section.hidden {
        display: none !important;
    }

.category-head {
    margin-bottom: 24px;
}

.category-title {
    margin: 0 0 6px;
    font-size: 28px;
    color: var(--navy);
    font-weight: 900;
    position: relative;
}

    .category-title::after {
        content: "";
        display: block;
        width: 50px;
        height: 4px;
        background: var(--red);
        border-radius: 4px;
        margin-top: 8px;
    }

.category-sub {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14.5px;
}

/* Card Grid Layout */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.pkg-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #edf0f5;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .pkg-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 40px rgba(15, 31, 58, 0.14);
    }

.pkg-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #dfe6ef;
}

    .pkg-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease;
    }

.pkg-card:hover .pkg-image img {
    transform: scale(1.06);
}

.pkg-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    background: #ffffff;
    color: var(--red);
    font-size: 11px;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.pkg-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pkg-kicker {
    color: var(--red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pkg-body h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--navy);
    line-height: 1.3;
}

.pkg-route {
    font-size: 13px;
    color: var(--muted);
    min-height: 38px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.pkg-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 20px;
    padding-top: 12px;
    border-top: 1px solid #f1f4f8;
}

.pkg-duration {
    font-weight: 800;
    font-size: 13.5px;
    color: var(--navy);
}

.pkg-price {
    color: var(--red);
    font-size: 22px;
    font-weight: 900;
}

.btn-view {
    display: block;
    text-align: center;
    border: 1.5px solid var(--red);
    color: var(--red);
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
}

    .btn-view:hover {
        background: var(--red);
        color: #ffffff !important;
    }

.pkg-card.coming-soon-card {
    border: 2px dashed #d5deea;
    background: #ffffff;
    box-shadow: none;
}

    .pkg-card.coming-soon-card:hover {
        transform: none;
        border-color: var(--red);
    }

.pkg-image.placeholder-img {
    background: linear-gradient(135deg, #eef2f7 0%, #dbe4ef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 38px;
    color: #9cb2cb;
}

.btn-disabled {
    border-color: #cbd5e1 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
    pointer-events: none;
    background: transparent !important;
}

/* Detail View */
#packageDetailView {
    display: none;
}

    #packageDetailView.active {
        display: block;
    }

.btn-back-link {
    border: 0;
    background: none;
    color: var(--red);
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .btn-back-link:hover {
        text-decoration: underline;
    }

.detail-top-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 28px;
}

    .detail-top-card h2 {
        margin: 0 0 10px;
        font-size: 30px;
        color: var(--navy);
        font-weight: 900;
    }

    .detail-top-card p {
        color: var(--muted);
        margin: 0 0 18px;
        font-size: 15px;
        line-height: 1.5;
    }

.detail-meta-tags {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy);
    border-top: 1px solid #f1f4f8;
    padding-top: 15px;
}

    .detail-meta-tags span b {
        color: var(--red);
    }

.detail-layout-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 28px;
}

/* Itinerary Timeline */
.itinerary-container {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

    .itinerary-container h3 {
        font-size: 22px;
        font-weight: 900;
        color: var(--navy);
        margin: 0 0 24px;
        border-bottom: 2px solid #f1f4f8;
        padding-bottom: 12px;
    }

.day-box {
    position: relative;
    padding-left: 28px;
    margin-bottom: 30px;
    border-left: 2px dashed #cbd5e1;
}

    .day-box:last-child {
        margin-bottom: 0;
        border-left: 2px solid transparent;
    }

.day-bullet {
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--red);
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--red);
}

.day-header {
    margin-bottom: 12px;
}

.day-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 4px;
}

.day-subtitle {
    font-size: 12px;
    color: var(--red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.day-content-group {
    background: var(--bg);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

    .day-content-group h4 {
        font-size: 13.5px;
        font-weight: 800;
        color: var(--navy);
        margin: 0 0 8px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .day-content-group ul {
        margin: 0;
        padding-left: 18px;
        color: #334155;
        font-size: 13.5px;
        line-height: 1.6;
    }

.day-schedule-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 6px;
}

    .day-schedule-text strong {
        color: var(--navy);
    }

/* Sidebar Stack */
.sidebar-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Total Package Cost Card */
.cost-box {
    background: var(--navy);
    color: #ffffff;
    border-radius: 18px;
    padding: 26px 20px 22px;
    text-align: center;
    box-shadow: var(--shadow);
}

    .cost-box small {
        display: block;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        font-size: 13px;
        font-weight: 800;
        color: #ffffff;
        margin-bottom: 20px;
    }

    .cost-box strong {
        display: block;
        font-size: 42px;
        color: var(--gold);
        margin: 4px 0 0px;
        font-weight: 900;
        letter-spacing: -0.5px;
        margin-bottom: 20px;
    }

    .cost-box .cost-unit {
        font-size: 15px;
        font-weight: 800;
        color: #ffffff;
        margin-bottom: 18px;
        display: block;
    }

.cost-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-enquire-card {
    background: #ffffff;
    color: var(--red);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    padding: 12px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-enquire-card:hover {
        background: #f1f5f9;
    }

.btn-book-card {
    background: var(--red);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    padding: 12px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-book-card:hover {
        background: #a50d24;
    }

/* Bottom Clarification Notice Box */
.clarify-info-box {
    background: #fff5e9;
    border: 1px solid #f0d2aa;
    padding: 14px 16px;
    border-radius: 10px;
    color: #76502a;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.side-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

    .side-card h3 {
        font-size: 18px;
        font-weight: 900;
        color: var(--navy);
        margin: 0 0 16px;
        border-bottom: 2px solid #f1f4f8;
        padding-bottom: 10px;
    }

.highlight-group {
    margin-bottom: 16px;
}

    .highlight-group:last-child {
        margin-bottom: 0;
    }

    .highlight-group h4 {
        font-size: 12px;
        font-weight: 900;
        color: var(--red);
        text-transform: uppercase;
        margin: 0 0 6px;
        letter-spacing: 0.5px;
    }

    .highlight-group p,
    .highlight-group ul {
        font-size: 13.5px;
        color: #334155;
        margin: 0;
        line-height: 1.5;
        padding-left: 16px;
    }

    .highlight-group p {
        padding-left: 0;
    }

.side-card.inc-card h3 {
    color: var(--green);
}

.side-card.exc-card h3 {
    color: var(--red);
}

.side-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.8;
    color: #334155;
    font-size: 13.5px;
}

/* modal popup  css start*/
.modal-backdrop-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

    .modal-backdrop-fixed.show {
        display: flex;
    }

.modal-dialog-box {
    background: #ffffff;
    border-radius: 14px;
    max-width: 480px;
    width: 100%;
    overflow: visible; /* Prevents cutting off dropdown options */
    padding: 20px 18px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    font-family: 'Montserrat', Arial, sans-serif;
    margin: auto;
    box-sizing: border-box;
}

.modal-close-icon {
    position: absolute;
    right: 14px;
    top: 14px;
    border: 0;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: #000;
    font-weight: 900;
    line-height: 1;
    z-index: 10;
}

.modal-dialog-box h2 {
    font-size: 18px;
    font-weight: 900;
    color: var(--navy);
    margin: 0 25px 2px 0;
}

.modal-dialog-box .modal-pkg-sub {
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    margin: 0 0 10px;
}

.form-row {
    margin-bottom: 3px;
}

    .form-row label {
        display: block;
        font-weight: 800;
        font-size: 12px;
        color: var(--navy);
        margin-bottom: 3px;
    }

.form-input-control {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #dce3ed;
    border-radius: 6px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 12.5px;
    box-sizing: border-box;
    outline: none;
    background-color: #fff;
}

    .form-input-control:focus {
        border-color: var(--navy);
    }

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-modal-submit {
    display: block;
    width: 100%;
    background: var(--red);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s ease;
}

    .btn-modal-submit:hover {
        background: #a50d24;
    }

.secure-notice {
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--green);
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
}

.required-star {
    color: var(--red);
    font-weight: 900;
    margin-left: 3px;
}

/* modal popup  css end*/

@media (max-width: 991px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .detail-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .filters-wrap {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .filter-btn {
        white-space: nowrap;
    }

    .grid-cards {
        grid-template-columns: 1fr;
    }

    .pkg-image {
        height: 200px;
    }
}
