/* ==========================================================================
   RAJ TOURS - COMPONENTS STYLESHEET
   Hero Popup Offer Banner, Booking Modal, Price Calculator, Itinerary,
   Lightbox & Mobile Navigation Drawer
   ========================================================================== */

/* ==========================================================================
   1. HERO BANNER POPUP OFFER MODAL (Exact Requirement)
   ========================================================================== */
.hero-offer-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 14, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.hero-offer-popup-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.hero-offer-popup-container {
    background: linear-gradient(145deg, #07172e 0%, #040d1a 100%);
    border: 2px solid var(--gold-border-glow);
    border-radius: var(--radius-xl);
    max-width: 940px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(223, 183, 108, 0.35);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-offer-popup-backdrop.active .hero-offer-popup-container {
    transform: scale(1) translateY(0);
}

.popup-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(14, 34, 63, 0.8);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 10;
    transition: var(--transition);
}

.popup-close-btn:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #f87171;
    transform: rotate(90deg);
}

[data-theme="light"] .popup-close-btn {
    background: #ffffff;
    color: #09172c;
    border-color: rgba(166, 121, 38, 0.4);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Modal Internal Grid */
.popup-inner-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    min-height: 520px;
}

.popup-media-col {
    position: relative;
    background: #000;
    overflow: hidden;
    border-top-left-radius: var(--radius-xl);
    border-bottom-left-radius: var(--radius-xl);
    min-height: 340px;
}

.popup-flyer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.popup-media-badge-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(4, 11, 22, 0.9);
    border: 1px solid var(--gold-border);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}

.popup-media-badge-overlay .tag {
    color: var(--gold-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.popup-media-badge-overlay .highlight {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2px;
}

.popup-content-col {
    padding: 36px 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.popup-badge-pill {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    box-shadow: var(--festive-ruby-glow);
    margin-bottom: 12px;
}

.popup-title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 6px;
    color: var(--text-heading);
}

.popup-subtitle {
    font-size: 0.86rem;
    color: var(--gold-light);
    margin-bottom: 18px;
    font-weight: 600;
}

/* Dual Pricing Box in Popup */
.popup-pricing-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.popup-pricing-card {
    background: rgba(14, 34, 63, 0.7);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    position: relative;
}

.popup-pricing-card.featured {
    border-color: var(--gold-border-glow);
    background: rgba(223, 183, 108, 0.08);
}

.popup-price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.popup-price-val {
    font-family: 'Cinzel', serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1.1;
}

.popup-price-unit {
    font-size: 0.68rem;
    color: var(--text-secondary);
}

/* 4 Free Experiences In Popup */
.popup-free-experiences-box {
    background: rgba(8, 20, 38, 0.75);
    border: 1px dashed var(--gold-border);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 18px;
}

.popup-free-heading {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.popup-free-items-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.popup-free-item {
    font-size: 0.74rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.popup-free-item i {
    color: var(--gold-light);
    font-size: 0.8rem;
}

/* Countdown Bar in Popup */
.popup-countdown-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 20px;
}

.countdown-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: #f87171;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.countdown-timer-digits {
    display: flex;
    gap: 8px;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    color: var(--text-heading);
    font-size: 0.95rem;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(4, 11, 22, 0.8);
    border: 1px solid var(--gold-border);
    border-radius: 4px;
    padding: 2px 6px;
    min-width: 32px;
}

.countdown-unit small {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.55rem;
    color: var(--gold-light);
    text-transform: uppercase;
}

/* Popup Action Buttons */
.popup-actions-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 10px;
}

.btn-popup-inquire {
    background: var(--gold-gradient);
    color: var(--bg-darkest);
    border: none;
    padding: 12px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-popup-inquire:hover {
    box-shadow: 0 4px 20px rgba(223, 183, 108, 0.5);
    transform: translateY(-2px);
}

.btn-popup-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-popup-whatsapp:hover {
    background: #1eb956;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
    transform: translateY(-2px);
}

/* ==========================================================================
   2. BOOKING & INQUIRY MODAL
   ========================================================================== */
.booking-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 14, 0.9);
    backdrop-filter: blur(14px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s;
}

.booking-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.booking-modal-card {
    background: linear-gradient(150deg, #091a33 0%, #040c19 100%);
    border: 1.5px solid var(--gold-border-glow);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 650px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 36px 32px;
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    transform: scale(0.94);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-modal-backdrop.active .booking-modal-card {
    transform: scale(1);
}

.modal-header-block {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header-block h3 {
    font-size: 1.8rem;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.modal-header-block p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Form Styling */
.luxury-form-group {
    margin-bottom: 18px;
}

.luxury-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.luxury-form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.luxury-input, .luxury-select, .luxury-textarea {
    width: 100%;
    background: rgba(14, 34, 63, 0.7);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.92rem;
    transition: var(--transition);
}

.luxury-input:focus, .luxury-select:focus, .luxury-textarea:focus {
    outline: none;
    border-color: var(--gold-light);
    box-shadow: 0 0 16px rgba(223, 183, 108, 0.3);
    background: rgba(19, 43, 79, 0.85);
}

.luxury-select option {
    background: #091a33;
    color: #ffffff;
}

.form-submit-btn {
    width: 100%;
    background: var(--gold-gradient);
    color: var(--bg-darkest);
    border: none;
    padding: 14px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(223, 183, 108, 0.4);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(223, 183, 108, 0.6);
}

/* ==========================================================================
   3. INTERACTIVE TOUR PRICE CALCULATOR
   ========================================================================== */
.calculator-box {
    background: var(--bg-card);
    border: 1.5px solid var(--gold-border-glow);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-card);
}

.calc-grid-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.calc-counter-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    background: var(--bg-chip);
    overflow: hidden;
}

.calc-counter-btn {
    width: 44px;
    height: 44px;
    background: rgba(223, 183, 108, 0.15);
    border: none;
    color: var(--gold-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.calc-counter-btn:hover {
    background: var(--gold-primary);
    color: var(--bg-darkest);
}

.calc-counter-val {
    flex: 1;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-heading);
}

.calc-result-summary {
    background: var(--bg-banner);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.calc-breakdown-info span {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.calc-final-price {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1;
}

.calc-final-price small {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   4. DAY-BY-DAY ACCORDION ITINERARY
   ========================================================================== */
.itinerary-timeline {
    position: relative;
    padding-left: 32px;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 11px;
    width: 2px;
    background: linear-gradient(180deg, var(--gold-primary) 0%, rgba(223, 183, 108, 0.2) 100%);
}

.itinerary-day-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.itinerary-day-card:hover {
    border-color: var(--gold-border-glow);
}

.itinerary-day-bullet {
    position: absolute;
    top: 24px;
    left: -32px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gold-gradient);
    border: 3px solid var(--bg-darkest);
    box-shadow: 0 0 10px rgba(223, 183, 108, 0.7);
    z-index: 2;
}

.itinerary-header-toggle {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: var(--bg-card);
    user-select: none;
}

.itinerary-day-title-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.day-badge {
    background: var(--gold-gradient);
    color: #040c19 !important;
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.itinerary-day-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
}

.itinerary-toggle-icon {
    color: var(--gold-light);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.itinerary-day-card.active .itinerary-toggle-icon {
    transform: rotate(180deg);
}

.itinerary-body-content {
    padding: 0 24px 24px;
    display: none;
    border-top: 1px solid rgba(223, 183, 108, 0.12);
}

.itinerary-day-card.active .itinerary-body-content {
    display: block;
    padding-top: 18px;
}

.itinerary-body-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.itinerary-highlights-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.itinerary-highlight-chip {
    background: var(--bg-chip);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-full);
    padding: 3px 10px;
    font-size: 0.75rem;
    color: var(--text-chip);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   5. LIGHTBOX MODAL FOR GALLERY
   ========================================================================== */
.gallery-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 14, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.gallery-lightbox-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-card {
    max-width: 1000px;
    width: 100%;
    background: #091a33;
    border: 1.5px solid var(--gold-border-glow);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9);
}

.lightbox-img-wrap {
    max-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.lightbox-img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
}

.lightbox-caption-bar {
    padding: 20px 24px;
    background: rgba(6, 15, 30, 0.95);
    border-top: 1px solid var(--gold-border);
}

.lightbox-caption-title {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.lightbox-caption-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   6. MOBILE NAVIGATION DRAWER & BACKDROP
   ========================================================================== */
.mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 14, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: #060f1e;
    border-left: 1.5px solid var(--gold-border-glow);
    z-index: 999;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.8);
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gold-border);
}

.mobile-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.mobile-drawer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.mobile-drawer-links a:hover, .mobile-drawer-links a.active {
    color: var(--gold-light);
}

/* ==========================================================================
   7. TOAST NOTIFICATION
   ========================================================================== */
.raj-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.raj-toast {
    background: rgba(8, 20, 38, 0.95);
    border: 1px solid var(--gold-border-glow);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    color: #ffffff;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--gold-glow);
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.raj-toast.show {
    transform: translateX(0);
}

.raj-toast i {
    color: var(--gold-light);
    font-size: 1.1rem;
}

/* ==========================================================================
   8. AI CHATBOT CONCIERGE WIDGET
   ========================================================================== */
.ai-chatbot-widget {
    position: fixed;
    bottom: 28px;
    right: 104px; /* Next to WhatsApp button */
    z-index: 1001;
}

.ai-chat-trigger-btn {
    background: var(--gold-gradient);
    color: var(--bg-darkest);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 10px 30px rgba(223, 183, 108, 0.5), 0 0 20px rgba(223, 183, 108, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.ai-chat-trigger-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 14px 40px rgba(223, 183, 108, 0.7);
}

.ai-trigger-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-darkest);
    animation: pulseBadge 2s infinite;
}

/* Chatbox Window */
.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 28px;
    width: 390px;
    max-width: calc(100vw - 40px);
    height: 560px;
    max-height: calc(100vh - 120px);
    background: var(--bg-glass-modal);
    border: 2px solid var(--gold-border-glow);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), var(--gold-glow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10002;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s, visibility 0.35s;
}

.ai-chat-window.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Header */
.ai-chat-header {
    background: linear-gradient(135deg, #091a33 0%, #040c19 100%);
    border-bottom: 1.5px solid var(--gold-border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-theme="light"] .ai-chat-header {
    background: linear-gradient(135deg, #f4ede1 0%, #e9decb 100%);
}

.ai-bot-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-bot-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gold-gradient);
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--bg-darkest);
    box-shadow: var(--shadow-gold);
}

.ai-bot-name {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

[data-theme="light"] .ai-bot-name {
    color: #0c192c;
}

.ai-bot-status {
    font-size: 0.72rem;
    color: var(--emerald-green);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.ai-bot-status::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald-green);
    box-shadow: 0 0 8px var(--emerald-green);
}

.ai-chat-close-btn {
    background: transparent;
    border: none;
    color: var(--gold-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.ai-chat-close-btn:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

/* Chat Messages Scroll Area */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-msg {
    display: flex;
    gap: 10px;
    max-width: 86%;
}

.ai-msg.bot {
    align-self: flex-start;
}

.ai-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-msg-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.88rem;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.ai-msg.bot .ai-msg-bubble {
    background: rgba(14, 34, 63, 0.75);
    border: 1px solid var(--gold-border);
    color: var(--text-primary);
    border-top-left-radius: 4px;
}

[data-theme="light"] .ai-msg.bot .ai-msg-bubble {
    background: #ffffff;
    border-color: rgba(166, 121, 38, 0.25);
    color: #0f1d32;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.ai-msg.user .ai-msg-bubble {
    background: var(--gold-gradient);
    color: #040c19;
    font-weight: 600;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(223, 183, 108, 0.3);
}

/* Quick Question Chips */
.ai-quick-chips-wrapper {
    padding: 6px 16px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.ai-quick-chips-wrapper::-webkit-scrollbar {
    display: none;
}

.ai-quick-chip {
    background: rgba(14, 34, 63, 0.8);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
}

[data-theme="light"] .ai-quick-chip {
    background: #ffffff;
    color: #a67926;
    border-color: rgba(166, 121, 38, 0.3);
}

.ai-quick-chip:hover {
    background: var(--gold-gradient);
    color: var(--bg-darkest);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

/* Typing Indicator */
.ai-typing-indicator {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: rgba(14, 34, 63, 0.75);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-full);
    width: fit-content;
    margin-left: 20px;
    margin-bottom: 10px;
}

.ai-typing-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-light);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* Chat Input Bar */
.ai-chat-input-bar {
    padding: 12px 16px;
    background: rgba(6, 15, 30, 0.95);
    border-top: 1px solid var(--gold-border);
    display: flex;
    gap: 8px;
    align-items: center;
}

[data-theme="light"] .ai-chat-input-bar {
    background: #f7f3ec;
    border-color: rgba(166, 121, 38, 0.25);
}

.ai-chat-input {
    flex: 1;
    background: rgba(14, 34, 63, 0.7);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    font-size: 0.88rem;
    color: #ffffff;
    outline: none;
    transition: var(--transition);
}

[data-theme="light"] .ai-chat-input {
    background: #ffffff;
    color: #0f1d32;
    border-color: rgba(166, 121, 38, 0.35);
}

.ai-chat-input:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 12px rgba(223, 183, 108, 0.3);
}

.ai-chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold-gradient);
    border: none;
    color: var(--bg-darkest);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.ai-chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   9. 3D & 360° VIRTUAL TOUR SHOWCASE STYLES
   ========================================================================== */
.virtual-tour-section {
    padding: 90px 0;
    background: radial-gradient(circle at 50% 30%, rgba(14, 34, 63, 0.5) 0%, var(--bg-darkest) 100%);
    position: relative;
}

.virtual-viewer-box {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid var(--gold-border-glow);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), var(--gold-glow);
    height: 520px;
    background: #000;
}

.virtual-viewer-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out;
    cursor: grab;
    user-select: none;
}

.virtual-viewer-canvas:active {
    cursor: grabbing;
}

/* 360 Interactive Hotspots */
.virtual-hotspot-pin {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold-gradient);
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-darkest);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(223, 183, 108, 0.8);
    animation: pulseHotspot 2s infinite;
    z-index: 10;
    transition: var(--transition);
}

.virtual-hotspot-pin:hover {
    transform: scale(1.2);
}

.hotspot-tooltip {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(4, 11, 22, 0.95);
    border: 1px solid var(--gold-border-glow);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.virtual-hotspot-pin:hover .hotspot-tooltip {
    opacity: 1;
}

@keyframes pulseHotspot {
    0%, 100% { box-shadow: 0 0 10px rgba(223, 183, 108, 0.6), 0 0 0 0 rgba(223, 183, 108, 0.4); }
    50% { box-shadow: 0 0 25px rgba(223, 183, 108, 0.9), 0 0 0 12px rgba(223, 183, 108, 0); }
}

/* 360 Scene Selector Overlay */
.virtual-scene-nav {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(4, 11, 22, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-full);
    padding: 6px 12px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

[data-theme="light"] .virtual-scene-nav {
    background: rgba(255, 255, 255, 0.9);
}

.scene-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.scene-btn.active, .scene-btn:hover {
    background: var(--gold-gradient);
    color: var(--bg-darkest);
    box-shadow: 0 4px 12px rgba(223, 183, 108, 0.35);
}

/* Viewer Controls (Zoom / Drag Hint) */
.virtual-controls-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.ctrl-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(4, 11, 22, 0.85);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.ctrl-btn:hover {
    background: var(--gold-primary);
    color: var(--bg-darkest);
}

.viewer-hint-pill {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(4, 11, 22, 0.85);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 20;
}

/* ==========================================================================
   Responsive Overhaul for Components (Tablets & Mobile Phones)
   ========================================================================== */
@media (max-width: 868px) {
    /* Hero Offer Popup Modal */
    .hero-offer-popup-backdrop {
        padding: 12px;
    }

    .hero-offer-popup-container {
        width: 100%;
        max-height: 94vh;
        border-radius: var(--radius-lg);
    }

    .popup-inner-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .popup-media-col {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        min-height: 200px;
        height: 200px;
    }

    .popup-content-col {
        padding: 24px 20px 22px;
    }

    .popup-title {
        font-size: 1.45rem;
    }

    .popup-close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    /* Interactive Tour Price Calculator */
    .calc-grid-controls {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .calculator-box {
        padding: 24px 18px;
    }

    .calc-result-summary {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
    }

    .calc-result-summary > div:last-child {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .calc-result-summary .btn-card-whatsapp,
    .calc-result-summary .btn-luxury-gold {
        width: 100%;
        justify-content: center;
    }

    /* 360° Virtual Panorama Viewer */
    .virtual-viewer-box {
        height: 380px;
        border-radius: var(--radius-lg);
    }

    .virtual-scene-nav {
        bottom: 12px;
        width: 94%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 4px 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .virtual-scene-nav::-webkit-scrollbar {
        display: none;
    }

    .scene-btn {
        padding: 5px 12px;
        font-size: 0.72rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .viewer-hint-pill {
        top: 10px;
        left: 10px;
        font-size: 0.68rem;
        padding: 4px 10px;
    }

    .virtual-controls-bar {
        top: 10px;
        right: 10px;
    }

    .ctrl-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    /* Gallery Lightbox */
    .gallery-lightbox-backdrop {
        padding: 12px;
    }

    .lightbox-img-wrap {
        max-height: 52vh;
    }

    .lightbox-caption-bar {
        padding: 14px 16px;
    }

    .lightbox-caption-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    /* AI Chatbot Widget (Full viewport bottom-sheet on phone) */
    .ai-chat-window {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        height: 86vh;
        max-height: 86vh;
        border-radius: 22px 22px 0 0;
        border-bottom: none;
    }

    .ai-chat-messages {
        padding: 14px;
    }

    .ai-msg {
        max-width: 92%;
    }

    /* Booking & Inquiry Modal */
    .booking-modal-backdrop {
        padding: 12px;
    }

    .booking-modal-card {
        padding: 26px 18px;
        width: 100%;
        max-height: 94vh;
        border-radius: var(--radius-lg);
    }

    .luxury-form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .modal-header-block h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    /* Popup Offer Modal - Compact Mobile */
    .popup-media-col {
        min-height: 170px;
        height: 170px;
    }

    .popup-title {
        font-size: 1.25rem;
    }

    .popup-pricing-cards-row {
        gap: 8px;
    }

    .popup-price-val {
        font-size: 1.35rem;
    }

    .popup-free-items-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .popup-actions-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .countdown-timer-digits {
        font-size: 0.85rem;
        gap: 4px;
    }

    .countdown-unit {
        padding: 2px 4px;
        min-width: 28px;
    }

    .virtual-viewer-box {
        height: 310px;
    }

    .mobile-nav-drawer {
        width: 290px;
        padding: 24px 18px;
    }
}

