﻿
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #f8f9fa;
    --dark: #212529;
}

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}



#galleryModal .carousel-item img {
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    object-fit: contain;
    background-color: #000; /* Black background for padding */
    margin: 0;
    display: block;
}


#galleryModal .modal-body {
    padding: 0 !important;
    margin: 0 !important;
}

.carousel-inner,
.carousel-item {
    margin: 0 !important;
    padding: 0 !important;
}



.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    width: 1200px;
    max-width: 1200px !important;
}

.modal-body {
    overflow-y: auto;
    max-height: 60vh;
    max-width: 1200px !important;
}

.modal-xl {
    max-width: 1200px !important;
}

.modal-body input,
.modal-body textarea {
    font-size: 1rem;
}

.modal-body .form-label {
    font-weight: 500;
    white-space: nowrap;
}

.modal-header, .modal-footer {
    border: none;
}



.sticky-right {
    position: sticky;
    top: 200px; /* Adjust based on your navbar height */
    z-index: 10;
}

.modal-xl {
    max-width: 95vw !important;
    width: 95vw !important;
}

.trip-header {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0 60px;
    text-align: center;
    margin-bottom: 40px;
}

.trip-title {
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

    .trip-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: var(--accent);
        border-radius: 2px;
    }

.trip-badge {
    font-size: 0.95rem;
    padding: 8px 20px;
    margin: 0 6px 10px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.6); /* semi-transparent dark */
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px); /* subtle blur effect */
    transition: background 0.3s ease, transform 0.3s ease;
}

    .trip-badge:hover {
        background: rgba(0, 0, 0, 0.75);
        transform: translateY(-2px);
    }

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1050;
}

    .image-overlay img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease;
    }

    .image-overlay.show {
        opacity: 1;
        pointer-events: auto;
    }


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

.modal.show {
    pointer-events: auto !important;
    opacity: 1 !important;
    z-index: 1055; /* default Bootstrap modal z-index */
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .gallery-item:first-child {
        grid-column: span 2;
        height: 300px;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .gallery-item:hover img {
        transform: scale(1.05);
    }

    .gallery-item:hover:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.2);
    }

.section-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* 👇 Add this */
    position: relative;
    overflow: hidden; /* keeps ribbon edges clean */
}


    .section-card .p-3.text-white {
        background: linear-gradient(135deg, #006d44, #20c997);
        box-shadow: 0 4px 15px rgba(0, 109, 68, 0.4);
        position: relative;
    }

        .section-card .p-3.text-white::after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 4px;
            background: #20c997;
            border-radius: 10px;
        }

    .section-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    }

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
    color: var(--primary);
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 70px;
        height: 4px;
        background: var(--accent);
        border-radius: 2px;
    }

.itinerary-btn {
    background: var(--accent);
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .itinerary-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    }

.itinerary-card {
    background: var(--light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid var(--secondary);
}

.day-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.day-number {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.day-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    color: var(--primary);
}

.detail-item {
    display: flex;
    margin-bottom: 20px;
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: var(--secondary);
    font-size: 20px;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin: 15px 0;
}



.discount-badge {
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 1.1rem;
    display: inline-block;
    margin-left: 15px;
}

.original-price {
    text-decoration: line-through;
    color: #777;
    font-size: 1.5rem;
}

.btn-book {
    background: linear-gradient(135deg, teal, #20c997);
    color: white;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    width: 100%;
    margin-top: 5px;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
}

    .btn-book:hover {
        background: linear-gradient(135deg, #13294B, teal);
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }

    .btn-book::after {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: rgba(255,255,255,0.3);
        transform: skewX(-25deg);
        transition: left 0.7s;
    }

    .btn-book:hover::after {
        left: 125%;
    }

.btn-outline-plan {
    background: transparent;
    border: 2px solid teal;
    color: teal;
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s ease;
}

    .btn-outline-plan:hover {
        background: teal;
        color: #fff;
        box-shadow: 0 6px 18px rgba(0, 128, 128, 0.4);
        transform: translateY(-3px);
    }



.price-highlight {
    font-size: 2.8rem;
    font-weight: 900;
    color: #006d44;
    background: linear-gradient(90deg, #20c997, #006d44);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 3px 8px rgba(0,0,0,0.1);
}


.tab-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}









/* ===== Custom Tabs (Updated for Responsive Dynamic Tabs) ===== */
/* ===== Responsive Tabs (Clean and Non-Overlapping) ===== */

.tabs-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* Arrows (Visible on Mobile, Hidden on Desktop) */
.tab-scroll-left,
.tab-scroll-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1f3d70;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

    .tab-scroll-left:hover,
    .tab-scroll-right:hover {
        background: #2980b9;
    }

.tab-scroll-left {
    left: 5px;
}

.tab-scroll-right {
    right: 5px;
}

/* Tabs container */
.custom-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    margin-bottom: 20px;
    scroll-behavior: smooth;
}

/* Individual tab button */
.tab-btn {
    background: #fff;
    border: 1px solid #007c80;
    border-radius: 25px; /* slightly smaller pill */
    color: #3498db;
    padding: 6px 15px; /* more horizontal breathing room */
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

    .tab-btn.active {
        background: #007c80;
        color: #fff;
        box-shadow: 0 4px 10px rgba(52,152,219,0.3);
    }

    .tab-btn:hover {
        background: linear-gradient(90deg, #20c997, #007c80);
        color: #fff;
        border-color: #007c80;
        transform: translateY(-2px);
    }


/* Desktop: Centered clean tabs, hide arrows */
@media (min-width: 769px) {
    .custom-tabs {
        justify-content: center;
        overflow: visible;
        padding: 0;
    }

    .tab-scroll-left,
    .tab-scroll-right {
        display: none !important;
    }
}

/* Mobile: Horizontal scroll with arrows */
@media (max-width: 768px) {
    .custom-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 45px; /* space for arrows */
        border-bottom: none;
    }

        .custom-tabs::-webkit-scrollbar {
            display: none;
        }

    .tabs-wrapper {
        padding: 0;
    }

    .tab-btn {
        scroll-snap-align: center;
    }



    .timeline-dot {
        display: none !important;
    }


    .itinerary-visual::before {
        display: none !important;
    }

    .tab-scroll-left {
        left: -10px; /* 👈 move arrow outside */
    }

    .tab-scroll-right {
        right: -10px; /* 👈 move arrow outside */
    }
    /* adjust padding to leave space for arrows */
    .custom-tabs {
        padding: 0 50px 0 50px;
        scroll-snap-type: x mandatory;
    }
}




.book-sticky-top {
    top: 90px !important;
}



.tab-section {
    display: none;
}

    .tab-section:not(.d-none) {
        display: block;
    }








.itinerary-visual {
    position: relative;
    margin: 40px auto;
    padding: 20px 0;
    width: 100%;
}

    .itinerary-visual::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        width: 2px; /* thinner */
        height: 100%;
        border-left: 2px dashed #007c80; /* Bootstrap blue or your theme color */
        transform: translateX(-50%);
        z-index: 1;
    }

.itinerary-day {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    align-items: center; /* align text and image vertically */
    gap: 40px; /* more breathing room */
    margin-bottom: 0px; /* more spacing between days */
}

.timeline-dot {
    width: 14px;
    height: 14px;
    background: #007c80; /* match line color */
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.day-info {
    padding: 10px 20px;
}

.day-image {
    text-align: center;
    padding: 10px 20px;
}

    .day-image img {
        width: 100%;
        max-width: 300px; /* control size */
        height: auto; /* keep aspect ratio */
        object-fit: cover;
        border-radius: 8px; /* rectangle with slightly rounded corners */
        border: none; /* remove circular border */
        box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* optional for nice effect */
    }

.day-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.day-description {
    background: none; /* remove box look */
    border-left: none; /* cleaner design */
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* Odd days → text left, image right */
.itinerary-day.odd .day-info {
    text-align: left; /* Align text inside */
    justify-self: end; /* Push whole block toward timeline */
}

/* Even days → text right side, aligned to timeline */
.itinerary-day.even .day-info {
    text-align: left;
    justify-self: start; /* Keep flush to timeline */
}

/* Even days → text right, image left */
.itinerary-day.even .day-info {
    text-align: left;
}

.itinerary-day.even .day-image {
    text-align: right;
}

/* Mobile view */
@media (max-width: 768px) {
    .itinerary-day {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .day-info {
        order: 2;
        text-align: center !important;
    }

    .day-image {
        order: 1;
        text-align: center !important;
    }

    .itinerary-visual::before {
        left: 20px;
    }

    .timeline-dot {
        margin-left: 20px;
    }
}




@media (max-width: 768px) {
    .trip-header {
        padding: 70px 0 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item:first-child {
        grid-column: span 1;
        height: 250px;
    }

    .price-tag {
        font-size: 2rem;
    }
}

.blink-text {
    animation: blinker 1s linear infinite;
}

/* Custom wide and short modal */
#requestModal .modal-dialog {
    max-width: 100%;
    width: 100%;
    margin: 0.5rem auto;
}

#requestModal .modal-content {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
}

.highlight-note {
    background-color: #647261; /* Light blue tint */
    border-left: 4px solid #006d44; /* Blue accent */
    color: white;
    padding: 10px 15px;
    font-size: 0.95rem;
    margin-top: 5px; /* Small top margin */
    margin-bottom: 20px; /* Larger bottom margin */
    border-radius: 6px;
}

.ribbon {
    width: 120px;
    height: 120px;
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

    .ribbon span {
        position: absolute;
        display: block;
        width: 170px;
        padding: 6px 0;
        background: linear-gradient(135deg, #ff4d4d, #e60000);
        color: #fff;
        font-size: 0.85rem;
        font-weight: bold;
        text-align: center;
        transform: rotate(45deg);
        top: 25px;
        right: -45px;
        box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    }



@keyframes blinker {
    50% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .sticky-below-navbar {
        top: 70px; /* shorter nav on mobile */
    }
}

@media (min-width: 769px) {
    .sticky-below-navbar {
        top: 100px;
    }
}













@media (max-width: 768px) {
    #galleryModal {
        display: none !important;
    }
}

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    touch-action: none; /* Prevent scroll interference */
    transition: background-color 0.3s ease;
}

    .fullscreen-overlay img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        transition: transform 0.2s ease;
        user-select: none;
        touch-action: none;
    }


/* ===== Fix modal trip form layout on mobile ===== */
@media (max-width: 768px) {
    #requestModal .modal-content {
        border-radius: 15px;
        width: 95vw !important;
        margin: 0 auto;
    }

    #requestModal .modal-body {
        padding: 1rem !important;
        overflow-x: hidden !important;
    }
        /* Stack label above input */
        #requestModal .modal-body .col-md-4 {
            display: block !important;
            width: 100% !important;
            margin-bottom: 1rem !important;
        }

        #requestModal .modal-body .form-label {
            width: 100% !important;
            display: block !important;
            margin-bottom: 5px !important;
            text-align: left !important;
            font-weight: 600;
        }
        /* Full width inputs */
        #requestModal .modal-body input,
        #requestModal .modal-body textarea,
        #requestModal .modal-body select {
            width: 100% !important;
            max-width: 100% !important;
            font-size: 1rem !important;
            padding: 10px 14px !important;
        }
    /* Fix radio section */
    #requestModal .form-check-inline {
        margin-right: 1rem;
    }
    /* Buttons full width */
    #requestModal .modal-footer button {
        width: 100% !important;
        font-size: 1.1rem;
        padding: 12px;
    }
}













/* --- Country & Phone Input Styling --- */
.phone-input-container {
    display: flex;
    border: 1px solid #dce1e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    background: white;
}

    .phone-input-container:focus-within {
        border-color: #3498db;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    }

.country-code-select {
    position: relative;
    min-width: 95px;
    height: 36px !important; /* 👈 match phone input height */

    background-color: #f8f9fa;
    border-right: 1px solid #dce1e6;
    border-radius: 8px 0 0 8px;
    margin-right: -1px; /* 👈 ensures perfect touch with phone box */
}

.selected-country {
    padding: 6px 10px 6px; /* 👈 was 12px 14px */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s;
}


    .selected-country:hover {
        background-color: #edf2f7;
    }

.selected-country-content {
    display: flex;
    align-items: center;
}

.selected-flag {
    margin-right: 10px;
    font-size: 20px;
}

.selected-code {
    font-weight: 500;
    font-size: 13px; /* 👈 reduced from 15px */
    color: #2d3748;
}

.dropdown-arrow {
    font-size: 10px;
    color: #718096;
    transition: transform 0.3s;
    margin-left: 8px;
}

.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px !important; /* 👈 wider dropdown */
    min-width: 220px !important;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    margin-top: 5px;
    overflow: hidden;
}

    .country-dropdown.show {
        display: block;
        animation: fadeIn 0.2s ease-out;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-container {
    padding: 10px;
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
}

.search-box {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 14px;
}

    .search-box:focus {
        outline: none;
        border-color: #3498db;
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    }

.country-list {
    max-height: 250px;
    overflow-y: auto;
}

    .country-list::-webkit-scrollbar {
        width: 6px;
    }

    .country-list::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 3px;
    }

.country-item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

    .country-item:hover {
        background-color: #edf2f7;
    }

.country-flag {
    margin-right: 10px;
    font-size: 18px;
}

.country-name {
    flex: 1;
    font-size: 14px;
    color: #2d3748;
}

.country-code {
    color: #718096;
    font-weight: 500;
    font-size: 13px;
}

.phone-number-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 15px;
    outline: none;
    background: transparent;
    border-radius: 0 8px 8px 0; /* right rounded corner */
}

    .phone-number-input::placeholder {
        color: #a0aec0;
    }

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    display: none;
}

.digit-counter {
    color: #718096;
    font-size: 12px;
    text-align: right;
    margin-top: 5px;
}

    .digit-counter.error {
        color: #e74c3c;
    }

@media (max-width: 480px) {
    .phone-input-container {
        flex-direction: column;
    }

    .country-code-select {
        position: relative;
        min-width: 95px; /* 👈 smaller width */
        background-color: #f8f9fa;
        border-right: 1px solid #dce1e6;
        border-radius: 8px 0 0 8px;
    }
}

#successPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #008080;
    padding: 25px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.25);
    text-align: center;
    z-index: 999999; /* 🔥 higher than modal */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    #successPopup.show {
        opacity: 1;
        visibility: visible;
    }




/* ===== FINAL OVERRIDE FOR MOBILE TABS ===== */
@media (max-width: 768px) {

    .custom-tabs {
        display: flex !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        width: 100%;
        padding: 0 60px !important;
        scroll-snap-type: x mandatory;
    }

    .tab-btn {
        flex: 0 0 100% !important; /* EXACT ONE TAB per VIEW */
        min-width: 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        scroll-snap-align: center !important;
        margin: 0 !important;
    }

    .tab-scroll-left,
    .tab-scroll-right {
        display: flex !important;
        top: 45%;
        z-index: 999;
    }
}
