@charset "UTF-8";
/* MEMAIL CONTINIUM Brand Color Pallette */

/* 1. Global Color Variables for Easier Application */

:root {
    --primary: #003580;
    --secondary: #ffb700;
    --glass: rgba(40, 40, 40, 0.75);
    --light: #f5f5f5;
    --dark: #333;
}

body { font-family: 'Segoe UI', sans-serif; margin: 0; background: #f4f4f4; }

/* Pulse Loader */
.pulse-loader {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--secondary); z-index: 2000;
    animation: pulse 1.5s infinite linear;
}
@keyframes pulse { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Layout Helpers */
.container { width: 90%; max-width: 1200px; margin: auto; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Navigation */
.mini-nav { background: #001b3d; color: white; padding: 8px 0; font-size: 13px; }
.mini-nav select { background: transparent; color: white; border: none; }
/*.main-nav { background: var(--primary); padding: 15px 0; color: white; position: sticky; top: 0; z-index: 1000; } */
.logo { font-size: 24px; font-weight: bold; cursor: pointer; }
.logo span { color: var(--secondary); }
.nav-links { display: flex; list-style: none; gap: 25px; margin: 0; }
.nav-links a { color: white; text-decoration: none; font-weight: 600; }

/* Hero & Glass Search */
.hero-section {
    width: 100%; height: 115vh; margin-bottom: 20px; 
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1600&q=80');
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.5s ease;
}

.search-container { width: 90%; max-width: 1000px; color: white; }
.search-tabs .tab-btn { 
    padding: 12px 25px; border: none; cursor: pointer; 
    background: var(--glass); color: white; border-radius: 8px 8px 0 0; 
}
.search-tabs .tab-btn.active { background: var(--secondary); color: black; }

.search-box { display: none; background: var(--glass); padding: 30px; border-radius: 0 8px 8px 8px; backdrop-filter: blur(8px); }
.search-box.active { display: block; }
.input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 15px; }
input { padding: 12px; border-radius: 4px; border: none; outline: none; }

.btn-search { width: 100%; margin-top: 20px; padding: 15px; background: var(--secondary); border: none; font-size: 18px; font-weight: bold; cursor: pointer; border-radius: 4px; }

/* SPA Display */
.spa-section { display: none; animation: fadeIn 0.5s; }
.spa-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Mobile Menu */
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 24px; }

@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--primary); flex-direction: column; padding: 20px; }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
}

/* Logo Branding and Styling */
.logo-wrapper {
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.memail-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.memail-logo i {
    font-size: 32px;
    color: var(--secondary); /* The Gold/Yellow color */
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-main {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
}

.brand-sub {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-top: 2px;
}

/* Dropdown State */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    list-style: none;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-menu li a {
    color: var(--primary) !important;
    padding: 12px 20px;
    display: block;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: #f8f9fa;
    color: var(--secondary) !important;
}

.memail-brand-logo {
    height: 50px; /* Adjust this to match your logo's aspect ratio */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.memail-brand-logo:hover {
    transform: scale(1.05); /* Subtle pop effect on hover */
}

/* Ensure Nav Bar stays consistent height */
.main-nav {
    background: var(--primary);
    padding: 10px 0; /* Slightly tighter padding for logo alignment */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .memail-brand-logo {
        height: 40px; /* Smaller logo for mobile screens */
    }
}


/* Footer Styling */
.main-footer { background: #001b3d; color: white; padding: 60px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-col h4 { color: var(--secondary); margin-bottom: 20px; font-size: 18px; border-bottom: 2px solid var(--secondary); display: inline-block; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--secondary); padding-left: 5px; }
.footer-logo { height: 40px; margin-bottom: 15px; }
.social-follow { color: var(--secondary); transition: 0.3s; }
.social-icons { display: flex; gap: 15px; font-size: 20px; margin-top: 15px; }
.social-icons a { color: white; transition: 0.3s; }
.social-icons a:hover { color: var(--secondary); }
.footer-bottom { text-align: center; border-top: 1px solid #1a3a5f; margin-top: 40px; padding-top: 20px; font-size: 13px; color: #888; }

/* Modal Overlay */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 3000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.auth-form { display: none; }
.auth-form.active { display: block; }
.close-btn { position: absolute; top: 10px; right: 20px; background: none; border: none; font-size: 30px; color: #888; cursor: pointer; }

/* Hotel Discovery Styles */
.hotel-discovery { padding: 60px 0; }
.section-title { text-align: left; margin-bottom: 30px; border-left: 5px solid var(--secondary); padding-left: 15px; }
.section-title h2 { margin: 0; color: var(--primary); font-size: 28px; }

.hotel-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px; 
}

.hotel-card { 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    transition: 0.3s;
}
.hotel-card:hover { transform: translateY(-5px); }

.hotel-img-wrapper { position: relative; height: 200px; }
.hotel-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.price-tag { 
    position: absolute; bottom: 10px; right: 10px; 
    background: var(--primary); color: white; padding: 5px 12px; 
    border-radius: 5px; font-weight: bold; 
}

.hotel-info { padding: 15px; }
.hotel-info h3 { margin: 0 0 5px; font-size: 18px; color: #333; }
.hotel-info .loc { color: #777; font-size: 13px; margin-bottom: 10px; display: block; }

.hotel-meta { 
    display: flex; justify-content: space-between; 
    border-top: 1px solid #eee; padding-top: 12px; 
    font-size: 12px; color: #555; 
}
.hotel-meta span i { color: var(--secondary); margin-right: 4px; }

.view-more { text-align: center; margin-top: 40px; }
.btn-outline { 
    background: var(--primary); border: 2px solid var(--primary); 
    color: white; padding: 12px 30px; font-weight: bold; 
    cursor: pointer; border-radius: 4px; transition: 0.3s;
}
.btn-outline:hover { background: var(--primary); color: var(--secondary); }

/* Reviews Section Styling */
.user-reviews { padding: 60px 0; background: #fff; border-top: 1px solid #eee; }
.reviews-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px; 
}

.review-card { 
    background: #f9f9f9; 
    padding: 25px; 
    border-radius: 15px; 
    border: 1px solid #eee;
    transition: 0.3s;
}
.review-card:hover { border-color: var(--secondary); background: white; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.reviewer-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.reviewer-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--secondary); }
.reviewer-meta h4 { margin: 0; font-size: 16px; color: var(--primary); }
.reviewer-meta span { font-size: 12px; color: #777; }

.review-tag { 
    display: inline-block; 
    padding: 3px 10px; 
    background: #e0e7ff; 
    color: var(--primary); 
    border-radius: 20px; 
    font-size: 11px; 
    font-weight: bold; 
    margin-bottom: 10px;
    text-transform: uppercase;
}

.review-stars { color: var(--secondary); font-size: 13px; margin-bottom: 10px; }
.review-text { font-size: 14px; line-height: 1.6; color: #555; font-style: italic; }

/* Re-usable Global Overlay */
.global-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 27, 61, 0.9); /* Memail Deep Blue */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.global-overlay.active { display: flex; }

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Auth Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 4000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }

/* Mini-Nav Specific Branding */
.user-actions a {
    color: var(--secondary); /* Default Gold Color */
    text-decoration: none;
    font-weight: 600;
    margin-left: 15px;
    transition: 0.3s ease;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.user-actions a:hover {
    color: #ffffff; /* Transitions to white on hover for contrast */
    text-shadow: 0 0 8px rgba(255, 183, 0, 0.6);
}

/* Optional: Add a small separator between the gold links */
.user-actions a:not(:last-child)::after {
    content: "|";
    color: rgba(255, 255, 255, 0.3);
    margin-left: 15px;
    font-weight: normal;
}

/* Auth Modal Card Styling */
#auth-modal .modal-content.card {
    background: rgba(30, 30, 30, 0.95); /* Deep Gray/Charcoal Background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px); /* Frosted Glass Effect */
    color: white;
}

/* Auth Tab Buttons */
#auth-modal .tab-container {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#auth-modal .tab-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    color: #aaa;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

#auth-modal .tab-btn.active {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
}

/* Form Input Styling for Visibility */
.auth-form input {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9); /* Slightly off-white for contrast */
    color: #333;
    font-size: 14px;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--secondary);
    background: #ffffff;
}

/* Close Button Color Adjustment */
.close-btn {
    color: #ffffff;
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
    color: var(--secondary);
}

/* Autocomplete */
.autocomplete-wrapper { position: relative; }
.suggestions { 
    position: absolute; top: 100%; left: 0; width: 100%; 
    background: white; color: #333; z-index: 100; 
    max-height: 200px; overflow-y: auto; border-radius: 4px;
}
.suggestions div { padding: 10px; cursor: pointer; border-bottom: 1px solid #eee; }
.suggestions div:hover { background: var(--secondary); }

/* Results Page Sidebar */
.results-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; margin-top: 30px; }
.sidebar-search { background: var(--glass); padding: 20px; border-radius: 8px; height: fit-content; }

/* Flight Cards */
.flight-result-card { display: flex; flex-direction: column; gap: 15px; }
.flight-main { display: flex; justify-content: space-between; align-items: center; }
.route { display: flex; gap: 20px; text-align: center; align-items: center; flex: 1; margin: 0 40px; }
.duration { flex: 1; color: #888; font-size: 12px; }

/* Hotel Cards */
.hotel-result-card { display: flex; gap: 20px; align-items: center; }
.res-img { width: 180px; height: 120px; object-fit: cover; border-radius: 8px; }
.res-info { flex: 1; }
.res-price { text-align: right; border-left: 1px solid #eee; padding-left: 20px; }

.mt-15 { margin-top: 15px; }
.btn-remove { background: #ff4d4d; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; }

/* Layout Fixes and Responsive Grid System */
.responsive-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    box-sizing: border-box; /* Crucial to prevent width overflow */
}

.form-group {
    flex: 1 1 calc(33.33% - 15px); /* Default 3-column on desktop */
    min-width: 150px;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary); /* Gold labels for visibility */
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Traveler Select Styling */
.traveler-select-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 5px;
    gap: 5px;
}

.t-col {
    flex: 1;
    text-align: center;
    border-right: 1px solid #ddd;
}
.t-col:last-child { border-right: none; }

.t-col small {
    display: block;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
}

.t-col input {
    width: 100%;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: bold;
    padding: 2px;
}

/* Custom Select & Inputs */
.custom-select, input[type="date"], input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 14px;
}

.trip-type-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.radio-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .responsive-grid { flex-direction: column; }
    .form-group { width: 100%; }
    .traveler-select-wrapper { flex-direction: row; }
}


/* Auto-Scroll Review Container */
.reviews-viewport {
    width: 100%;
    overflow: hidden; /* Hides the scrollbar */
    padding: 20px 0;
    position: relative;
    background: #f9f9f9;
}

.reviews-scroll-track {
    display: flex;
    gap: 20px;
    width: max-content; /* Allows the track to be as long as its content */
    animation: scrollReviews 40s linear infinite; /* Adjust 40s for speed */
}

/* Pause animation on hover so users can read */
.reviews-viewport:hover .reviews-scroll-track {
    animation-play-state: paused;
}

@keyframes scrollReviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Move by half the total width */
}

/* Ensure cards have a fixed width for the horizontal track */
.review-card {
    width: 320px;
    flex-shrink: 0; /* Prevents cards from squishing */
    background: white;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 20px;
}

.full-width {
    flex: 1 1 100% !important;
}

.flex-2 {
    flex: 2 1 250px;
}

/* Specific Input Styling */
.form-input {
    width: 100%;
    height: 45px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-sizing: border-box; /* Prevents padding from adding to width */
}

/* Age Range Grid */
.age-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 8px;
    display: none; /* Hidden until needed */
}

.age-grid.active {
    display: grid;
}

.age-sel-box {
    display: flex;
    flex-direction: column;
}

.age-sel-box label {
    font-size: 10px;
    color: var(--secondary);
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .form-group {
        flex: 1 1 100%; /* Stacks everything on mobile */
    }
}

/* Results Header */
.results-header { padding: 20px; margin-bottom: 20px; background: #fff; border-bottom: 4px solid var(--secondary); }
.results-title-area h2 { color: var(--primary); margin: 0; }

/* Flight Card Compact Styling */
.flight-row {
    display: flex; /* grid /flex */
    grid-template-columns: 80px 150px 1fr 120px 150px;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    
    flex-direction: row;
    flex-wrap: wrap; /* Allows items to drop to next line */
    
}

.airline-logo { width: 50px; height: 50px; object-fit: contain; }
.route-info { display: flex; justify-content: space-around; text-align: center; font-size: 14px; }
.route-info .line { flex: 1; border-bottom: 1px dashed #ccc; margin: 0 15px; position: relative; top: -10px; }

/* Hotel Card Compact Styling */
.hotel-row {
    display: flex; /* grid /flex */
    grid-template-columns: 150px 1fr 180px;
    gap: 20px;
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    
    flex-direction: row;
    flex-wrap: wrap; /* Allows items to drop to next line */
}

.res-img-thumb { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; }
.stars-gold { color: #ffb700; font-size: 12px; }

/* Action Column (Small width to save space) */
.action-col {
    text-align: right;
    border-left: 1px solid #eee;
    padding-left: 15px;
}
.action-col .price { font-size: 20px; font-weight: bold; color: var(--primary); }
.btn-small { padding: 8px 12px; font-size: 12px; width: 100%; margin-top: 5px; }


.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-box {
    padding: 15px;
    background: #fff;
    border-top: 3px solid var(--secondary);
}

.sidebar-title {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-field {
    margin-bottom: 10px;
}

.sidebar-field label {
    font-size: 11px;
    font-weight: bold;
    color: #666;
    display: block;
    margin-bottom: 4px;
}

.sidebar-field input, .sidebar-field select {
    width: 100%;
    padding: 8px;
    font-size: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 8px;
    cursor: pointer;
}

.filter-option input { cursor: pointer; }

/* Flight Detail Specifics */
.detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; }

.segment-item { position: relative; padding: 20px; border-left: 3px solid #eee; margin-left: 20px; }
.segment-item::before { 
    content: '\f5b0'; font-family: 'Font Awesome 5 Free'; font-weight: 900;
    position: absolute; left: -12px; top: 20px; background: white; color: var(--secondary);
}

.layover-divider {
    background: #fff9e6;
    border: 1px dashed var(--secondary);
    padding: 10px;
    text-align: center;
    font-size: 12px;
    border-radius: 5px;
    margin: 10px 0 10px 20px;
    color: #856404;
}

.fare-rules-card { background: #fdfdfd; }
.rules-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }
.rule-box { background: #fff; border: 1px solid #eee; padding: 12px; border-radius: 6px; }
.rule-box strong { display: block; font-size: 12px; color: var(--primary); text-transform: uppercase; margin-bottom: 5px; }
.rule-box p { font-size: 13px; color: #666; line-height: 1.4; }

.red-text strong { color: #d9534f; }
.gold-text { color: var(--secondary); font-size: 24px; }
.small-text { font-size: 11px; color: #888; }

/* Hotel Gallery Grid */
.hotel-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 150px 150px;
    gap: 10px;
    height: 310px;
}
.main-img { grid-row: span 2; }
.main-img img, .sub-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

/* Room Type Card */
.room-card {
    display: grid;
    grid-template-columns: 200px 1fr 180px;
    gap: 20px;
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.room-img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; }
.room-amenities { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.amenity-tag { font-size: 11px; background: #f0f2f5; padding: 4px 8px; border-radius: 4px; color: #555; }

.room-pricing {
    text-align: right;
    border-left: 1px solid #eee;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.board-type { color: #27ae60; font-weight: bold; font-size: 12px; margin-bottom: 5px; }

@media (max-width: 768px) {
    .room-card { grid-template-columns: 1fr; }
    .room-pricing { border-left: none; border-top: 1px solid #eee; padding-top: 15px; text-align: left; }
}


/* =========== hinm ========== */

@media (max-width: 600px) {
    .mini-nav .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 10px 0;
    }
    
    .contact-info { font-size: 12px; }
    
    .user-actions {
        width: 100%;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Ensure all boxes calculate width correctly */
* { box-sizing: border-box; }

.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Base Flex-Grid for Results & Details */
.results-layout, .detail-grid {
    display: flex;
    flex-direction: row; /* Desktop Default */
    gap: 20px;
}

/* Mobile Breakpoint (Tablets & Phones) */
@media (max-width: 768px) {
    .results-layout, .detail-grid {
        flex-direction: column; /* Stacks Sidebar on top of Content */
    }

    .sidebar-filters, .detail-sidebar {
        width: 100% !important;
        flex: none !important;
    }

    .detail-main, .results-container {
        width: 100% !important;
    }
}

@media (max-width: 600px) {
    .flight-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .route-info {
        width: 100%;
        justify-content: space-between;
        margin: 15px 0;
    }

    .action-col {
        width: 100%;
        border-left: none;
        border-top: 1px solid #eee;
        padding: 15px 0 0 0;
        text-align: left;
    }
    
    .hotel-row {
        flex-direction: column;
    }
    
    .res-img-thumb {
        width: 100%;
        height: 200px;
    }
}


/* Hotel Gallery Responsive */
@media (max-width: 600px) {
    .hotel-gallery-grid {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    
    .main-img { height: 250px; }
    .sub-img { display: none; } /* Hide smaller images on mobile to save space */
}

/* Fare Rules Responsive */
@media (max-width: 600px) {
    .rules-tabs {
        grid-template-columns: 1fr; /* 1 column instead of 2 */
    }
}

/* Flight Itinerary Responsive */
@media (max-width: 600px) {
    .route-timeline {
        flex-direction: column;
        gap: 10px;
        text-align: left !important;
    }
    
    .arrow {
        transform: rotate(90deg);
        width: 20px;
        margin: 5px 0;
    }
}

/* Booking & Thank You Specifics */
.booking-card-title {
    font-size: 14px;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 8px;
    margin-bottom: 15px;
}
.pax-id { font-size: 11px; color: #888; background: #eee; padding: 2px 6px; border-radius: 4px; }

/* Thank You Styling */
.success-icon { font-size: 60px; color: #27ae60; margin-bottom: 15px; }
.pnr-box { background: #e6fffa; border: 1px solid #27ae60; padding: 10px; display: inline-block; border-radius: 6px; color: #27ae60; font-size: 18px; }

/* E-ticket Print Optimization */
.eticket-view { background: #fff; padding: 40px; color: #333; }
.ticket-header { border-bottom: 4px solid #f4f4f4; padding-bottom: 20px; }
.ticket-meta { background: #f9f9f9; padding: 15px; }
.segment-item { border-left: 3px solid var(--primary); }

@media (max-width: 600px) {
    .eticket-view { padding: 15px; }
    .rules-tabs { grid-template-columns: 1fr; }
}

/* CSS PRINT MEDIA - Hides everything except the ticket when printing */
@media print {
    body * { visibility: hidden; }
    #section-thanks, #section-thanks *, #ticket-print-area, #ticket-print-area * {
        visibility: visible;
    }
    #ticket-print-area {
        position: absolute; left: 0; top: 0;
        width: 100%; padding: 0; margin: 0;
        box-shadow: none; border: none;
    }
    .detail-sidebar, .detail-nav, .btn-outline, header, footer { display: none !important; }
}

/* Hotel Booking Specifics */
.hotel-summary-card img {
    object-fit: cover;
    border: 2px solid #eee;
}

/* Hotel Confirmation Polish */
.hotel-voucher h2 { font-size: 20px; color: var(--primary); margin: 0; }
.bg-light { background: #f9f9f9; }
.rounded { border-radius: 8px; }
.border-red { border: 1px solid #d9534f; background: #fff5f5; }
.italic { font-style: italic; color: #555; }

/* CSS PRINT MEDIA - Enhanced for Hotel Voucher */
@media print {
    body * { visibility: hidden; }
    #section-hotel-thanks, #section-hotel-thanks *, #hotel-confirm-print-area, #hotel-confirm-print-area * {
        visibility: visible;
    }
    #hotel-confirm-print-area {
        position: absolute; left: 0; top: 0;
        width: 100%; padding: 0; margin: 0;
        box-shadow: none !important; border: none !important;
        background: white !important;
    }
    #hotel-confirm-print-area .card { background: white !important; border: 1px solid #eee !important; box-shadow: none !important; }
    #hotel-confirm-print-area .bg-light { background: #fdfdfd !important; border: 1px solid #ddd !important; }
    #hotel-confirm-print-area .border-red { background: #fff !important; border: 1px solid #d9534f !important; }

    .detail-sidebar, .detail-nav, header, footer, .thanks-card { display: none !important; }
}

/* Holiday Hero Slider */
.holiday-hero {
    position: relative;
    height: 500px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 2s ease-in-out;
    opacity: 0;
    z-index: 1;
}

.hero-bg.active { opacity: 1; }

/* Background Images (Sample High-Res) */
.slide-1 { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1516422317943-3e82bc547ddc?q=80&w=1600'); } /* Safari */
.slide-2 { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?q=80&w=1600'); } /* Beach */
.slide-3 { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=1600'); } /* Mountains */

.hero-overlay {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content h1 { font-size: 48px; text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }

/* Holiday Card Styling */
.holiday-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
}
.holiday-card:hover { transform: translateY(-10px); }
.h-card-img { height: 200px; width: 100%; object-fit: cover; }
.h-card-body { padding: 15px; }
.h-price-tag { color: var(--secondary); font-weight: bold; font-size: 20px; }

/* Updated Responsive Grid to use CSS Grid for perfect alignment */
.responsive-grid {
    display: grid;
    /* This creates as many columns as fit, but ensures they fill 100% width */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fix for results-layout to ensure sidebar and list take full container width */
.results-layout {
    display: flex;
    flex-wrap: nowrap; /* Prevent accidental wrapping on large screens */
    width: 100%;
    gap: 25px;
    align-items: flex-start;
}

/* Ensure the results container expands to take all remaining space */
.results-container {
    flex: 1; /* This forces the div to grow and fill the right-side gap */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Specific fix for Flight/Hotel Rows to stretch 100% */
.flight-row, .hotel-row {
    display: grid;
    /* Adjust these fractions to control column width precisely */
    grid-template-columns: 80px 180px 1fr 140px 160px; 
    width: 100%; /* Forces the card to touch the right edge */
    align-items: center;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .results-layout {
        flex-direction: column;
    }
    
    .flight-row {
        grid-template-columns: 1fr 1fr; /* Stacks better on tablets */
        gap: 10px;
    }
}


.hotel-row.card {
    display: grid;
    /* Image: 200px | Info: Take all space (1fr) | Action: 180px */
    grid-template-columns: 200px 1fr 180px;
    gap: 20px;
    width: 100%;
    margin-bottom: 15px;
    align-items: center;
    padding: 0; /* Remove padding if you want the image flush to the left */
    overflow: hidden;
}

.hotel-img-wrapper {
    height: 100%;
    min-height: 150px;
}

.res-img-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hotel-details-main {
    padding: 15px 0;
}

.hotel-details-main h3 {
    margin: 5px 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.action-col {
    padding: 20px;
    border-left: 1px solid #eee;
    text-align: right;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fdfdfd; /* Subtle highlight for the price area */
}

.price-wrapper {
    margin-bottom: 10px;
}

.price-label {
    display: block;
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hotel-row.card {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        gap: 0;
    }
    
    .hotel-img-wrapper {
        height: 200px;
    }
    
    .hotel-details-main, .action-col {
        padding: 15px;
        text-align: left;
    }
    
    .action-col {
        border-left: none;
        border-top: 1px solid #eee;
    }
}

.hero-search-bar .search-inner-wrap {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 50px;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.search-item {
    flex: 1;
    text-align: left;
    border-right: 1px solid #eee;
    padding: 0 15px;
}

.search-item:last-of-type { border-right: none; }

.search-item label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.search-item input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    outline: none;
}

/* Tour Card Horizontal Stretch */
.tour-row {
    display: grid;
    grid-template-columns: 250px 1fr 200px;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-search-bar .search-inner-wrap {
        flex-direction: column;
        border-radius: 15px;
    }
    .search-item { border-right: none; border-bottom: 1px solid #eee; padding: 10px 0; }
    .tour-row { grid-template-columns: 1fr; }
}

/* Hero Content Centering */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontal center */
    justify-content: center; /* Vertical center */
    text-align: center;
    width: 100%;
    padding: 20px;
}

.hero-search-bar {
    width: 100%;
    max-width: 950px;
}

.search-inner-wrap {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 50px;
    padding: 10px 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    width: 100%;
}

/* Autocomplete Logic */
.autocomplete { position: relative; }
.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
}
.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    color: #333;
}
.autocomplete-items div:hover { background-color: #e9e9e9; }

/* Responsive Search Bar */
@media (max-width: 850px) {
    .search-inner-wrap {
        flex-direction: column;
        border-radius: 15px;
        padding: 20px;
    }
    .search-item {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 15px 0;
    }
    .search-item:last-of-type { border-bottom: none; }
    .hero-content h1 { font-size: 28px; }
}

.tour-result-row {
    display: grid;
    /* Img: 220px | Info: Stretch (1fr) | Action: 180px */
    grid-template-columns: 220px 1fr 180px;
    width: 100%;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.tour-result-row:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.tour-img-box {
    position: relative;
    height: 100%;
}

.tour-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tour-info-box {
    padding: 20px;
}

.tour-info-box h3 {
    margin: 5px 0;
    color: var(--primary);
}

.tour-tag {
    font-size: 11px;
    background: var(--secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tour-action-box {
    padding: 20px;
    background: #f9f9f9;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

@media (max-width: 900px) {
    .tour-result-row {
        grid-template-columns: 1fr;
    }
    .tour-img-box { height: 200px; }
    .tour-action-box { border-left: none; border-top: 1px solid #eee; text-align: left; }
}

/* --- Tour Results Mobile Fix --- */
@media (max-width: 768px) {
    /* Stack Sidebar and Results */
    #section-tour-results .results-layout {
        flex-direction: column;
    }

    /* Transform Horizontal Row into a Vertical Card */
    .tour-result-row {
        grid-template-columns: 1fr !important; /* Force single column */
        height: auto;
    }

    .tour-img-box {
        height: 200px; /* Fixed height for mobile thumbnail */
    }

    .tour-info-box {
        padding: 15px;
    }

    .tour-action-box {
        border-left: none;
        border-top: 1px solid #eee;
        text-align: left;
        padding: 15px;
        background: #fff;
    }

    .tour-action-box .price {
        font-size: 24px;
        margin-bottom: 10px;
    }
}

/* --- Tour Detail Mobile Fix --- */
@media (max-width: 768px) {
    #section-tour-detail .detail-grid {
        display: flex;
        flex-direction: column;
    }

    #section-tour-detail .detail-main {
        width: 100%;
        padding: 0;
    }

    #section-tour-detail .detail-main img {
        height: 250px !important; /* Adjust hero image for mobile */
        border-radius: 8px;
    }

    #section-tour-detail .detail-sidebar {
        width: 100%;
        margin-top: 20px;
    }
    
    /* Ensure inclusion grid stacks on small phones */
    #section-tour-detail .responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
}

/* Photo Gallery Grid */
.tour-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 10px;
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
}

.gallery-main { grid-row: span 2; }
.tour-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: 0.3s; }
.tour-gallery img:hover { opacity: 0.9; transform: scale(1.02); }

/* Information Sections */
.info-section { margin-top: 30px; border-top: 1px solid #eee; pt-20; }
.info-section h3 { margin-bottom: 15px; color: var(--primary); }

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    background: #fdfaf0;
    padding: 20px;
    border-radius: 10px;
}

.snap-item i { color: var(--secondary); font-size: 20px; display: block; margin-bottom: 5px; }

.inc-exc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.list-inc li { color: #27ae60; margin-bottom: 8px; }
.list-exc li { color: #d9534f; margin-bottom: 8px; }

/* Mobile Gallery */
@media (max-width: 768px) {
    .tour-gallery { grid-template-columns: 1fr; grid-template-rows: 250px; }
    .gallery-sub { display: none; }
    .inc-exc-grid { grid-template-columns: 1fr; }
}

/* Mobile Stress Fix for Results & Details */
@media (max-width: 768px) {
    /* 1. Force the layout to stack vertically */
    .results-layout {
        display: block !important; /* Block ensures children take full width */
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 2. Force the Sidebar (aside) to fill 100% */
    .results-layout aside.sidebar-filters, 
    .results-layout .detail-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
        flex: none !important;
        box-sizing: border-box;
    }

    /* 3. Force the Main Content (results-container) to fill 100% */
    .results-layout .results-container,
    .results-layout .detail-main {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    /* 4. Ensure individual cards within the container also stretch */
    .tour-result-row, 
    .tour-detail-content,
    .card {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0; /* Optional: Square edges look better on small phones */
    }
}


.availability-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.availability-slot-row {
    display: grid;
    /* Img: 120px | Period/Guests: 1fr | Price/Action: 180px */
    grid-template-columns: 120px 1fr 200px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    align-items: center;
    transition: border-color 0.3s;
}

.availability-slot-row:hover {
    border-color: var(--secondary);
}

.slot-img-box {
    height: 100px;
    width: 120px;
}

.slot-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slot-info {
    padding: 15px;
}

.slot-period {
    font-weight: bold;
    color: var(--primary);
    display: block;
    margin-bottom: 5px;
}

.slot-guests {
    font-size: 12px;
    color: #666;
}

.slot-action {
    padding: 15px;
    background: #fafafa;
    border-left: 1px solid #eee;
    text-align: right;
}

.slot-price {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary);
}

/* Mobile Fix: Force Full Stress */
@media (max-width: 600px) {
    .availability-slot-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .slot-img-box { width: 100%; height: 150px; }
    .slot-action { border-left: none; border-top: 1px solid #eee; text-align: left; }
}

.tour-table { border-collapse: collapse; width: 100%; text-align: left; }
.tour-table th { padding: 15px; font-size: 13px; text-transform: uppercase; color: #777; }
.tour-table td { border-top: 1px solid #eee; padding: 10px 15px; vertical-align: middle; }

/* Sticky sidebar for long forms */
.sticky-top {
    position: sticky;
    top: 20px;
    z-index: 10;
}

@media (max-width: 600px) {
    .tour-table thead { display: none; }
    .tour-table tr { display: block; border-bottom: 2px solid #eee; padding: 10px 0; }
    .tour-table td { display: block; width: 100%; border: none; text-align: right; padding: 5px 15px; }
    .tour-table td:first-child { text-align: left; }
}




/* --- Universal Booking Layout Fix --- */
.results-layout {
    display: flex;
    flex-direction: row; /* Desktop default */
    gap: 30px;
    width: 100%;
    align-items: flex-start;
}

/* Forces the main form to take all available horizontal space */
.booking-main.detail-main {
    flex: 1; /* This is the key: it tells the div to grow and fill the gap */
    min-width: 0; /* Prevents flex children from overflowing */
}

/* Keeps the sidebar at a consistent width on desktop */
.detail-sidebar {
    flex: 0 0 350px; /* Fixed width: 350px, no growing, no shrinking */
    width: 350px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .results-layout {
        display: block; /* Switches from flex to block for vertical stacking */
        width: 100%;
    }

    .booking-main.detail-main,
    .detail-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 20px;
    }

    /* Ensure inputs inside also take full width */
    .form-input {
        width: 100%;
        box-sizing: border-box;
    }
}

.transfer-form-wrap {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    padding: 20px;
    width: 100%;
}

.transfer-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
}

.search-item {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}

.border-left { border-left: 1px solid #eee; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }

.form-input-minimal {
    border: none;
    background: transparent;
    font-size: 14px;
    padding: 5px 0;
    outline: none;
    width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .transfer-row {
        flex-direction: column;
        align-items: stretch;
    }
    .search-item {
        border-left: none !important;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
    }
    .transfer-row.mt-15 { border-top: none; }
    .btn-search { width: 100%; margin-top: 15px; }
}

/* Ensure the container never breaks into two lines */
.flex-nowrap {
    flex-wrap: nowrap !important;
    white-space: nowrap;
}

/* Prevent the input from forcing a width larger than the mobile screen */
.flex-nowrap input[type="tel"] {
    flex: 1;
    min-width: 0; /* Critical for flexbox children to shrink below content size */
    width: 100%;
}

.form-input-minimal {
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
}

/* Specific fix for mobile select arrows overlapping text */
select.form-input-minimal {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 5px;
}

/* Solid non-transparent modal overlay */
#transfer-modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Change to #f8f9fa if you want a slight grey tint */
    z-index: 9999; /* Ensures it is above everything else */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto; /* Allows scrolling if the content is long on mobile */
}

#transfer-modal .modal-content.card {
    background: white;
    width: 100%;
    max-width: 500px;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


.visa-country-card {
    transition: transform 0.2s;
    border: 1px solid #eee;
}
.visa-country-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.visa-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
}
.check-box {
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.border-gold { border-left: 5px solid var(--secondary); }


/* Targeted styles for the phone row to prevent 'overflowing' the column */
.phone-input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important; /* Hard limit */
    box-sizing: border-box;
    overflow: hidden; /* Clips any sub-pixel overflow */
    gap: 5px;
}

.dial-code-select {
    width: 80px !important;
    flex-shrink: 0 !important; /* Prevents the dropdown from disappearing */
    flex-grow: 0 !important;
    padding-right: 5px !important;
    text-overflow: ellipsis;
}

.phone-main-input {
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    min-width: 0 !important; /* REQUIRED: Allows input to shrink smaller than default */
    width: 0; /* Forces flex-grow to handle the sizing calculation */
}

/* Ensure the parent container of the form doesn't have restrictive padding */
.detail-sidebar .card {
    box-sizing: border-box;
    max-width: 100%;
}


.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.feed-card {
    cursor: pointer;
    transition: transform 0.3s;
    overflow: hidden;
    position: relative;
}

.feed-card:hover { transform: translateY(-5px); }

.platform-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.feed-modal-size {
    max-width: 800px;
    width: 95%;
}

.comment-box {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 13px;
}

/* Platform Colors */
.ic-facebook { color: #1877F2; }
.ic-instagram { color: #E4405F; }
.ic-twitter { color: #1DA1F2; }
.ic-linkedin { color: #0A66C2; }
.ic-tiktok { color: #000000; }


/* Solid non-transparent overlay for Social Feeds */
#feed-detail-modal.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Pure white solid background */
    z-index: 10000; /* Highest priority */
    display: none; /* Controlled by JS flex */
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal Content Card */
.feed-modal-size {
    background: #fff;
    max-width: 850px;
    width: 100%;
    max-height: 90vh; /* Prevents modal from being taller than screen */
    overflow-y: auto; /* Allows scrolling inside modal if content is long */
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #eee;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    position: relative;
}

/* Close button for better UX on solid backgrounds */
.close-feed-x {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}
.close-feed-x:hover { color: var(--primary); }

/* Push everything to the right end */
.flex-end {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

/* Small Button Refinement */
.btn-small {
    padding: 8px 16px !important; /* Compact padding */
    font-size: 13px !important;    /* Smaller text */
    height: auto !important;       /* Override any fixed heights */
    min-width: 100px;              /* Minimum width for consistency */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;                      /* Space between icon and text */
}

/* Mobile Fix: Keep them in one row if possible */
@media (max-width: 480px) {
    .flex-end {
        gap: 5px;
    }
    .btn-small {
        padding: 6px 12px !important;
        font-size: 12px !important;
        min-width: 80px;
    }
}

/* Container forces edge-to-edge flush with the parent card */
.feed-media-container {
    width: auto;
    /* Apply negative margins equal to the parent card's padding (30px) */
    margin-left: -30px; 
    margin-right: -30px;
    margin-top: 20px;   /* Space below the header */
    margin-bottom: 20px; /* Space above the text content */
    overflow: hidden;    /* Clips any potential minor rendering overflow */
    border-top: 1px solid #eee; /* Optional separator */
    border-bottom: 1px solid #eee;
    height: 350px;       /* Fixed height for consistent grid look */
    background: #f9f9f9; /* Fallback color */
}

/* Image inside the container */
.feed-media-container img {
    width: 100% !important;   /* Force fill container width */
    height: 100% !important;  /* Force fill container height */
    object-fit: cover;        /* Crucial: prevents stretching/squishing */
    object-position: center;   /* Keeps focus in center of image */
    border-radius: 0 !important; /* Removes existing rounded corners for flush fit */
    display: block;
}

/* Mobile Fix: Ensure padding matches */
@media (max-width: 768px) {
    .feed-media-container {
        margin-left: -20px; /* Adjust if parent padding changes on mobile */
        margin-right: -20px;
        height: 250px; /* Shorter image height on phones */
    }
}


.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    font-family: 'Poppins', sans-serif;
}

.wa-float-btn {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.wa-float-btn:hover { transform: scale(1.05); background: #128C7E; }

.wa-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    animation: waSlideUp 0.3s ease-out;
}

@keyframes waSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.wa-header {
    background: #075E54;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.wa-header i { font-size: 24px; }

.wa-agent-list { padding: 10px; }

.wa-agent {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: #333;
    border-radius: 10px;
    transition: 0.2s;
    position: relative;
}
.wa-agent:hover { background: #f5f5f5; }

.agent-avatar {
    width: 40px;
    height: 40px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.agent-info strong { display: block; font-size: 14px; }
.agent-info small { font-size: 11px; color: #777; }

.wa-status-online {
    width: 10px;
    height: 10px;
    background: #25D366;
    border-radius: 50%;
    border: 2px solid white;
    position: absolute;
    left: 42px;
    bottom: 12px;
}

.footer-section { background: #001b3d; color: white; }

.footer-row {
    display: flex;
    flex-direction: row;
    /* Change from space-between to flex-start to bring them together */
    justify-content: flex-start; 
    /* Set a specific gap between columns on desktop */
    gap: 60px; 
    padding: 60px 0;
}

.footer-col {
    /* Allow columns to only take up the space they need */
    flex: 0 1 auto; 
    min-width: 150px;
}

.footer-brand {
    flex: 0 0 250px; /* Give the brand a bit more room */
}

.footer-wide {
    flex: 0 0 300px; /* Give the newsletter section more room */
    margin-left: auto; /* This pushes ONLY the last column to the right end */
}

.footer-col h4 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .footer-row {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col, .footer-brand, .footer-wide {
        flex: 1 1 100%;
        margin-left: 0;
    }
    
    .footer-wide .flex-nowrap {
        justify-content: center;
    }
}




/* --- Tour System Layout Container --- */
#tour-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 16px 0;
    width: 100%;
    box-sizing: border-box;
}

/* --- Structural Card Wrapper --- */
.tour-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%; /* Keeps cards uniform height in the row */
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Hover elevation state */
.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* --- Image Presentation Container --- */
.tour-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* Fixed aspect ratio configuration (15:10) */
    background-color: #f0f2f5;
    overflow: hidden;
}

.tour-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Soft cinematic zoom on mouse over */
.tour-card:hover .tour-img-wrapper img {
    transform: scale(1.06);
}

/* Instant Booking Badge overlay placement */
.badge-instant {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* --- Tour Information Context Box --- */
.tour-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes the price footer to the absolute card bottom */
}

.tour-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 8px;
}

.tour-rating small {
    color: #718096;
    font-weight: 400;
}

.tour-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1A202C;
    /* Clean multi-line clipping limit for tour headlines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em; /* Keeps structural text height stable */
}

.tour-meta {
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #4A5568;
    display: flex;
    align-items: center;
}

.tour-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --- Footer Pricing & CTA Action Layout --- */
.tour-footer-pricing {
    margin-top: auto; /* Alignment pin anchor to card base line */
    padding-top: 12px;
    border-top: 1px dashed #E2E8F0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.old-price {
    font-size: 0.75rem;
    color: #A0AEC0;
    text-decoration: line-through;
    font-weight: 500;
}

.current-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #00875A; /* Success pricing accent green */
}

/* CTA Interface Element Styles */
.view-btn {
    background: #0052CC; /* Memail primary action accent blue */
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease;
    text-align: center;
}

.tour-card:hover .view-btn {
    background: #0747A6;
}

/* --- Responsive System Fallbacks --- */
@media (max-width: 480px) {
    #tour-grid-home {
        grid-template-columns: 1fr; /* Rigid stack execution on small screens */
        gap: 16px;
        padding: 8px 0;
    }
    
    .tour-info h3 {
        height: auto; /* Free dynamic text spacing limits on small viewports */
        max-height: 2.8em;
    }
}





