/* --- Global Styles & Variables --- */
:root {
    --primary: #0f172a;    /* Deep Navy */
    --accent: #3b82f6;     /* Modern Blue */
    --gold: #c5a059;       /* Muted Bronze/Gold */
    --white: #ffffff;
    --text-dark: #1e293b;  /* Slate Navy */
    --text-light: #64748b; /* Slate Grey */
    --bg: #f8fafc;         /* Cool Slate White */
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    margin: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 40px; }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    animation: fadeInUp 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

/* --- Navigation --- */
.navbar {
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-links { display: flex; align-items: center; }

.nav-links a { 
    color: #94a3b8; 
    text-decoration: none; 
    margin-left: 30px; 
    font-size: 0.85rem; 
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--white); }

.user-greet {
    color: #63a75d;
    margin-left: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.btn-nav { 
    border: 1.5px solid #334155; 
    padding: 8px 20px; 
    border-radius: 50px; 
    color: var(--white) !important;
}

.btn-nav:hover { background: var(--white); color: var(--primary) !important; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    min-width: 100px;
    top: 100%;
    right: 0;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
    color: var(--text-dark) !important;
    display: block;
    padding: 10px 15px;
    margin: 0 !important;
    font-size: 0.8rem;
}
.dropdown-content a:hover { background: #f1f5f9; }

/* --- Flash Messages --- */
.flash-messages {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 2000;
    max-width: 400px;
}

.alert {
    padding: 15px 25px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.5s ease-out;
}

.alert-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* --- Hero Section --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.7)), 
                url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h1 { 
    font-family: 'Playfair Display', serif; 
    font-size: clamp(3rem, 7vw, 5.5rem); 
    margin: 0; 
    line-height: 1.1;
}

.hero p.slogan {
    font-size: 1.4rem;
    margin-top: 25px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero-cta { margin-top: 40px; display: flex; gap: 15px; justify-content: center; }

.btn-hero {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-hero-primary { background: var(--white); color: var(--primary); }
.btn-hero-secondary { border: 1.5px solid var(--white); color: var(--white); }
.btn-hero:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* --- Booking Form --- */
.booking-glass-form {
    background: var(--white);
    padding: 35px;
    border-radius: 25px;
    margin: -60px auto 60px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
    border: 1px solid rgba(0,0,0,0.05);
}

.form-row { display: flex; gap: 20px; align-items: flex-end; }
.input-group { flex: 1; }

.input-group label { 
    display: block;
    margin-bottom: 10px; 
    font-size: 0.7rem; 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    color: var(--text-light);
    font-weight: 700;
}

.input-group select, .input-group input { 
    width: 100%;
    background: #f1f5f9; 
    border: 1px solid transparent; 
    padding: 14px; 
    border-radius: 10px; 
    font-family: inherit;
    transition: 0.3s;
}

.input-group select:focus, .input-group input:focus {
    background: white;
    border-color: var(--accent);
    outline: none;
}

.btn-reserve { 
    background: var(--primary); 
    color: var(--white); 
    border: none; 
    padding: 14px 25px; 
    border-radius: 10px; 
    font-weight: 700; 
    cursor: pointer; 
    text-transform: uppercase;
    transition: 0.3s;
    height: 48px;
}

.btn-reserve:hover:not(:disabled) { background: var(--accent); transform: translateY(-2px); }

/* --- Hotel Grid --- */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--primary); margin: 0; }
.section-header p { color: var(--text-light); margin-top: 10px; max-width: 600px; margin-left: auto; margin-right: auto; }

.hotel-grid, .compact-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px; 
    margin-bottom: 100px;
}

.hotel-card {
    background: var(--white); 
    border-radius: 25px; 
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: 0.4s;
}

.hotel-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.card-img-wrapper { position: relative; height: 250px; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.hotel-card:hover img { transform: scale(1.05); }

.price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}

.card-content { padding: 30px; }
.card-content h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin: 0 0 10px 0; color: var(--primary); }
.card-content p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; margin-bottom: 25px; }

.btn-select {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
    text-transform: uppercase;
}

.btn-select:hover:not(:disabled) { background: #2563eb; }

/* --- Features & Testimonials --- */
.features-section { padding: 100px 0; background: #f1f5f9; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.feature-card { padding: 50px 30px; background: white; border-radius: 25px; text-align: center; box-shadow: var(--shadow-md); }
.feature-icon { font-size: 3.5rem; margin-bottom: 20px; display: block; }
.feature-card h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 15px; }

.testimonials-section { padding: 100px 0; background: white; text-align: center; }
.testimonial-text { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-style: italic; color: var(--text-light); max-width: 800px; margin: 0 auto 20px; }
.testimonial-author { font-weight: 700; color: var(--primary); text-transform: uppercase; font-size: 0.9rem; }

/* --- Footer --- */
.footer { background: #0f172a; color: white; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-about h2 { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 20px; letter-spacing: 2px; }
.footer-links h4 { color: #94a3b8; font-size: 0.85rem; text-transform: uppercase; margin-bottom: 20px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #cbd5e1; text-decoration: none; transition: 0.3s; font-size: 0.9rem; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 30px; text-align: center; color: #64748b; font-size: 0.85rem; }

/* --- States --- */
.disabled-mode, .disabled-btn { background: #94a3b8 !important; cursor: not-allowed !important; opacity: 0.7; }
.unavailable { opacity: 0.7; filter: grayscale(0.4); }
.sold-out-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.9);
    color: white; padding: 12px 25px;
    border-radius: 8px; font-weight: 700;
    text-transform: uppercase; z-index: 5;
}

.cancel-btn { background: #ef4444; }
.cancel-btn:hover { background: #dc2626; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .form-row { flex-wrap: wrap; }
    .input-group { flex: 1 1 calc(50% - 20px); }
    .btn-reserve { flex: 1 1 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .input-group { flex: 1 1 100%; }
    .hero h1 { font-size: 2.5rem; }
    .navbar { padding: 15px 5%; }
    .nav-links { display: none; } /* Could add a mobile menu here */
}

/* --- Filter Section Styles --- */
.filter-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin: 40px 0;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label i {
    color: var(--accent);
    font-size: 0.95rem;
}

.filter-group input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.filter-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-group input::placeholder {
    color: #94a3b8;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-filter {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

.btn-apply {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: white;
    flex: 1;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.btn-reset {
    background: #f1f5f9;
    color: var(--text-dark);
    padding: 12px 20px;
}

.btn-reset:hover {
    background: #e2e8f0;
}

/* Active Filters Display */
.active-filters {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.9rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.filter-tag a {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    margin-left: 6px;
    transition: color 0.2s;
}

.filter-tag a:hover {
    color: #1d4ed8;
}

/* Results Summary */
.results-summary {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

.results-summary p {
    margin: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.results-summary strong {
    color: var(--accent);
    font-size: 1.1rem;
}

/* Responsive Filter Styles */
@media (max-width: 768px) {
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-apply,
    .btn-reset {
        width: 100%;
        justify-content: center;
    }
    
    .filter-container {
        padding: 20px;
        margin: 20px 0;
    }
}

/* Price Range Slider Enhancement (Optional) */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 40px;
}

/* --- Hotel Card Availability Enhancements --- */
.availability-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 3;
}

.availability-badge i {
    font-size: 0.9rem;
}

.mini-availability-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 12px 0 8px;
}

.mini-progress {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.availability-text {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    margin: 0 0 12px 0;
    text-align: center;
}

/* Different colors based on availability */
.mini-progress[style*="100%"],
.mini-progress[style*="90%"],
.mini-progress[style*="80%"] {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.mini-progress[style*="70%"],
.mini-progress[style*="60%"],
.mini-progress[style*="50%"] {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.mini-progress[style*="40%"],
.mini-progress[style*="30%"],
.mini-progress[style*="20%"],
.mini-progress[style*="10%"] {
    background: linear-gradient(90deg, #ef4444, #f87171);
}
