/* 
   ==========================================================================
   COMMON TOUR PACKAGE - UNIFIED STYLES (PREMIUM THEME)
   ========================================================================== 
*/

:root {
    /* Main Palette */
    --tour-teal: #00D1FF;
    --tour-teal-dark: #00A3C9;
    --tour-text: #1A3A52;
    --tour-gray: #7A8D9A;
    --tour-light: #F8FAFC;
    --tour-white: #FFFFFF;
    --tour-border: #E2E8F0;
    --tour-green: #2ecc71;
    --tour-gold: #D4AF37;
    --tour-gold-dark: #C9A227;
    --tour-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --tour-transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Global Reset & Helpers --- */
.tour-package-page {
    font-family: 'DM Sans', sans-serif !important;
    color: var(--tour-text);
    background-color: var(--tour-light);
    overflow-x: hidden;
}

.tour-package-page h1,
.tour-package-page h2,
.tour-package-page h3,
.tour-package-page h4,
.tour-package-page h5 {
    font-family: 'DM Sans', sans-serif !important;
    color: var(--tour-text);
}

/* --- Hero Section --- */
.tour-hero {
    position: relative;
    height: 500px;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    color: var(--tour-white);
    overflow: hidden;
}

.tour-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-tagline {
    display: inline-block;
    background: rgba(0, 209, 255, 0.2);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tour-white);
    margin-bottom: 25px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-title .main-text {
    display: block;
    color: var(--tour-white);
}

.hero-title em {
    color: var(--tour-teal);
    font-style: normal;
}

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    max-width: 900px;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-btn {
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--tour-transition);
    text-decoration: none;
    display: inline-block;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--tour-gold), var(--tour-gold-dark));
    color: var(--tour-white);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
    border: none;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
    color: var(--tour-white);
}

.hero-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--tour-white);
    backdrop-filter: blur(10px);
}

.hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: var(--tour-white);
}

/* --- Stats Bar --- */
.stats-bar {
    background: var(--tour-white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: -40px auto 60px;
    position: relative;
    z-index: 10;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--tour-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-info .label {
    display: block;
    font-size: 11px;
    color: var(--tour-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.stat-info .value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--tour-text);
}

/* --- Suitable For Section --- */
.suitable-section {
    padding: 60px 0;
}

.suitable-card {
    background: var(--tour-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.suitable-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suitable-list li {
    position: relative;
    padding-left: 20px;
    color: var(--tour-text);
    font-weight: 500;
}

.suitable-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--tour-teal);
    font-weight: 900;
}

.suitable-list li span {
    font-weight: 700;
}

/* --- About Tour Section --- */
.about-tour-section {
    padding: 40px 0;
}

.about-tour-card {
    background: var(--tour-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.underlined-title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 40px !important;
}

.underlined-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 150px;
    height: 4px;
    background: var(--tour-teal);
    border-radius: 2px;
}

.key-highlights-list {
    list-style: none;
    padding: 0;
}

.key-highlights-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    color: var(--tour-gray);
    font-size: 15px;
    line-height: 1.6;
}

.key-highlights-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--tour-teal);
    border-radius: 1px;
}

/* --- Pricing Section --- */
.pricing-tour-section {
    padding: 60px 0;
    text-align: center;
}

.pricing-tables-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-inline: auto;
}

.tour-pricing-table-card {
    width: 100%;
    background: var(--tour-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    margin-inline: auto;
    border: 1px solid var(--tour-border);
}

.tour-table-title {
    background: transparent;
    padding: 20px 15px;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: var(--tour-text);
    text-align: center;
}

.tour-table-responsive {
    width: 100%;
    /* Removed overflow-x: auto to prevent scrollbar as requested */
}

.tour-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    /* Removed min-width to avoid horizontal scrolling as requested */
}

.tour-table th {
    background: #000;
    color: #fff;
    font-size: 9.5px;
    padding: 12px 4px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid var(--tour-border);
    white-space: nowrap;
}

/* Set specific widths to ensure all tables look identical */
.tour-table th:nth-child(1),
.tour-table td:nth-child(1) {
    width: 15%;
}

/* Hotels */
.tour-table th:nth-child(2),
.tour-table td:nth-child(2) {
    width: 15%;
}

/* Room Cost */
.tour-table th:nth-child(3),
.tour-table td:nth-child(3) {
    width: 23%;
}

/* Vehicle Cost */
.tour-table th:nth-child(4),
.tour-table td:nth-child(4) {
    width: 23%;
}

/* Total Cost */
.tour-table th:nth-child(5),
.tour-table td:nth-child(5) {
    width: 24%;
}

/* Per Person */

.tour-table td {
    padding: 12px 4px;
    border: 1px solid var(--tour-border);
    font-size: 11.5px;
    color: var(--tour-text);
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.tour-table td.tier-name {
    font-weight: 700;
    color: var(--tour-text);
    text-align: center;
    padding-left: 4px;
}

.per-person-gold {
    color: var(--tour-text);
    /* Changed to match standard color in image, but with weight */
    font-weight: 800;
}

.btn-book-big {
    background: linear-gradient(to right, #D4AF37, #F2D06B, #D4AF37);
    color: white !important;
    padding: 14px 45px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 40px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-book-big:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
}

/* --- Itinerary Tabs --- */
.itinerary-tabs-section {
    padding: 60px 0;
}

.itinerary-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    background: #f1f3f5;
    padding: 8px;
    border-radius: 50px;
    width: fit-content;
    margin-inline: auto;
}

.tab-nav-item {
    padding: 10px 25px;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    color: var(--tour-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    letter-spacing: 0.5px;
}

.tab-nav-item.active {
    background: var(--tour-white);
    color: var(--tour-text);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: tourFadeIn 0.5s;
}

@keyframes tourFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.itinerary-content-card {
    background: var(--tour-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
}

.itinerary-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.itinerary-info h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
}

.itinerary-info p {
    color: var(--tour-gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.itinerary-images-mini {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.itinerary-images-mini img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 16/9;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* --- Captivating Moments (Gallery) --- */
.captivating-section {
    padding: 60px 0;
    overflow: hidden;
}

.captivating-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    height: 300px;
}

.moment-item {
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.moment-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.moment-item:hover img {
    transform: scale(1.1);
}

/* --- Inclusions Section --- */
.tour-inclusions-section {
    padding: 60px 0;
}

.tour-inclusions-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.tour-inc-card {
    padding: 40px;
    border-radius: 20px;
}

.tour-inc-yes {
    background: #f0f7ff;
}

.tour-inc-no {
    background: #fff8f8;
}

.tour-inc-card h3 {
    margin-bottom: 25px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.tour-inc-yes h3 {
    color: var(--tour-teal);
}

.tour-inc-no h3 {
    color: #FF4D4D;
}

.tour-inc-list {
    list-style: none;
    padding: 0;
}

.tour-inc-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--tour-gray);
    font-size: 15px;
}

.tour-inc-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: 900;
}

.tour-inc-yes li::before {
    color: var(--tour-teal);
}

.tour-inc-no li::before {
    color: #FF4D4D;
}

/* --- Map CTA Section --- */
.map-cta-container {
    height: 500px;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 60px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-bg {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {

    .pricing-tables-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .itinerary-grid,
    .tour-inclusions-wrapper {
        grid-template-columns: 1fr;
    }

    .tour-hero {
        height: 400px;
    }

    .stats-bar {
        margin: -30px 20px 40px;
        padding: 20px;
    }

    .stat-item {
        min-width: 45%;
    }

    .captivating-grid {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        gap: 15px;
    }

    .moment-item {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .tour-hero {
        height: auto !important;
        min-height: 400px !important;
        padding: 80px 20px !important;
    }

    .hero-title {
        font-size: 32px !important;
    }

    .hero-desc {
        font-size: 16px !important;
    }

    .hero-actions {
        flex-direction: column !important;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-btn {
        width: 100% !important;
        text-align: center;
    }

    .stats-bar {
        justify-content: flex-start;
    }

    .stat-item {
        min-width: 100%;
    }

    .btn-book-big {
        padding: 12px 35px;
        width: auto;
        min-width: 200px;
        font-size: 14px;
    }

    .itinerary-content-card,
    .suitable-card,
    .about-tour-card {
        padding: 25px;
    }

    .itinerary-info h2 {
        font-size: 22px;
    }

    .captivating-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Booking Popup (Modal) --- */
.tour-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 20px;
}

.tour-modal-content {
    background-color: var(--tour-white);
    margin: 2% auto;
    padding: 35px;
    border-radius: 20px;
    width: 100%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalSlideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalSlideDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.tour-modal-close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 24px;
    font-weight: 300;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.tour-modal-close:hover {
    color: var(--tour-text);
}

.tour-modal-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--tour-text);
    letter-spacing: -0.5px;
}

.tour-popup-form .form-group {
    margin-bottom: 18px;
}

.tour-popup-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--tour-text);
}

.tour-popup-form .required {
    color: #ef4444;
}

.tour-popup-form input[type="text"],
.tour-popup-form input[type="email"],
.tour-popup-form input[type="number"],
.tour-popup-form input[type="date"],
.tour-popup-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: var(--tour-text);
    background: #ffffff;
    transition: all 0.2s;
}

.tour-popup-form input::placeholder {
    color: #94a3b8;
}

.tour-popup-form input:focus,
.tour-popup-form textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #fff;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    transition: all 0.2s;
}

.radio-container:hover input~.radio-checkmark {
    border-color: #3b82f6;
}

.radio-container input:checked~.radio-checkmark {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-container input:checked~.radio-checkmark:after {
    display: block;
}

.radio-container .radio-checkmark:after {
    top: 4px;
    left: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: white;
}

.dynamic-tour-label {
    display: block;
    font-weight: 700 !important;
    margin-top: 15px;
    font-size: 16px !important;
    color: var(--tour-text);
}

.btn-submit-tour {
    width: 100%;
    padding: 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 15px;
}

.btn-submit-tour:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.btn-submit-tour:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .tour-modal-content {
        margin: 5% auto;
        padding: 25px;
        width: 100%;
    }

    .tour-modal-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .radio-group {
        flex-direction: column;
        gap: 12px;
    }
}

/* --- Responsive Table Adjustments --- */
@media (max-width: 768px) {
    .tour-table-responsive {
        border: none;
    }

    .tour-table thead {
        display: none;
    }

    .tour-table, 
    .tour-table tbody, 
    .tour-table tr, 
    .tour-table td {
        display: block;
        width: 100% !important;
    }

    .tour-table tr {
        margin-bottom: 20px;
        background: #fff;
        border: 1px solid var(--tour-border);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    }

    .tour-table td {
        text-align: right;
        padding: 12px 15px;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        border-bottom: 1px solid #f1f5f9;
        font-size: 13px;
        white-space: normal;
    }

    .tour-table td:last-child {
        border-bottom: none;
        background: rgba(212, 175, 55, 0.05);
    }

    .tour-table td::before {
        font-weight: 700;
        text-transform: uppercase;
        font-size: 10px;
        color: var(--tour-gray);
        letter-spacing: 0.05em;
        text-align: left;
    }

    /* Assign Labels based on column index */
    .tour-table td:nth-of-type(1)::before { content: "HOTELS"; }
    .tour-table td:nth-of-type(2)::before { content: "ROOM COST"; }
    .tour-table td:nth-of-type(3)::before { content: "VEHICLE COST"; }
    .tour-table td:nth-of-type(4)::before { content: "TOTAL COST"; }
    .tour-table td:nth-of-type(5)::before { content: "PER PERSON"; }

    .tour-table td.tier-name {
        background: var(--tour-light);
        color: var(--tour-text);
        font-weight: 800;
        font-size: 14px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .per-person-gold {
        color: var(--tour-gold-dark) !important;
        font-size: 15px;
    }
}