/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* Color Variables - Light Mode */
:root {
    --primary-teal: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #06b6d4;
    --accent-color: #f59e0b;
    --light-teal: #cffafe;
    --light-blue: #bae6fd;
    --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --headline-font: 'Playfair Display', serif;
    
    /* Light mode colors */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --card-bg: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* Dark Mode Variables */
[data-bs-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --card-bg: #1e293b;
    --gradient-primary: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    --gradient-accent: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
}

p, span, div, li, td, th, label, small {
    color: var(--text-primary);
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:not(.nav-link):not(.btn):not(.social-link) {
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

a:not(.nav-link):not(.btn):not(.social-link):hover {
    color: var(--primary-teal);
}

.text-muted {
    color: var(--text-secondary) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--headline-font);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: var(--primary-teal);
    color: white;
}

/* Navbar Styles */
.navbar-blur {
    /* Use solid background to avoid hover repaint flicker on some Windows GPUs */
    background: var(--bg-secondary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .navbar-blur {
    background: var(--bg-secondary);
}

.navbar-blur.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand-custom {
    color: var(--primary-teal) !important;
    font-weight: 800;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--headline-font);
    font-size: 1.75rem !important;
    letter-spacing: -0.02em;
}

.navbar-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.navbar-brand-custom:hover {
    color: var(--primary-light) !important;
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 32px;
        width: 32px;
    }

    .navbar-brand-custom {
        font-size: 1.25rem !important;
    }
}

.navbar-brand, .nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-teal) !important;
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary);
    filter: brightness(1.1);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary {
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-teal);
    color: white;
    border-color: var(--primary-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 14px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 8px;
}

/* Hero Video Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(146, 187, 200, 0.7) 0%, rgba(32, 98, 120, 0.5) 100%);
    z-index: 1;
}

[data-bs-theme="dark"] .hero-overlay {
    background: linear-gradient(135deg, rgba(146, 187, 200, 0.7) 0%, rgba(32, 98, 120, 0.5) 100%);
}

.search-card {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: none;
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .search-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .search-section,
[data-bs-theme="dark"] .search-section.bg-light {
    background-color: var(--bg-secondary) !important;
}

[data-bs-theme="dark"] .search-section .card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.search-card:hover {
    transform: none;
    box-shadow: var(--shadow-lg);
}

/* Hotel Cards */
.hotel-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    height: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    position: relative;
}

.hotel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.hotel-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.hotel-card:hover::before {
    opacity: 0.05;
}

.hotel-card-img {
    height: 260px;
    object-fit: cover;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.hotel-card:hover .hotel-card-img {
    transform: scale(1.1);
}

.hotel-card-body {
    padding: 1.75rem;
    position: relative;
    z-index: 1;
}

.hotel-name {
    font-family: var(--headline-font);
    color: var(--primary-teal);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.01em;
}

.hotel-card:hover .hotel-name {
    color: var(--primary-dark);
}

.star-rating {
    color: #fbbf24;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    gap: 2px;
}

.star-rating i {
    filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.amenity-badge {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.amenity-badge:hover {
    background: var(--primary-teal);
    color: white;
    transform: translateY(-2px);
}

.amenity-badge i {
    font-size: 0.9rem;
}

.price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-teal);
    font-family: var(--headline-font);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-tag small {
    font-size: 0.5em;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Filter and Sort Section */
.filter-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-section:hover {
    box-shadow: var(--shadow-lg);
}

/* Hotel Details Page */
.hotel-detail-header {
    background: var(--gradient-primary);
    color: white;
    padding: 4rem 0;
    border-radius: 0 0 32px 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hotel-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.hotel-detail-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hotel-detail-image:hover {
    transform: scale(1.02);
}

.room-card {
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.1), transparent);
    transition: left 0.5s;
}

.room-card:hover::before {
    left: 100%;
}

.room-card:hover {
    border-color: var(--primary-teal);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Booking Form */
.booking-form {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-form:hover {
    box-shadow: var(--shadow-xl);
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-label i {
    color: var(--primary-teal);
    font-size: 1rem;
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
    outline: none;
    background-color: var(--bg-secondary);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Dashboard Styles */
.dashboard-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-xl);
}

.dashboard-card:hover::after {
    transform: scaleY(1);
}

.dashboard-card h3, .dashboard-card h4, .dashboard-card h5 {
    margin-bottom: 1.5rem;
    color: var(--primary-teal);
    font-weight: 700;
}

.booking-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.booking-status.pending {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.booking-status.pending::before {
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
}

.booking-status.confirmed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.booking-status.confirmed::before {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.booking-status.cancelled {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.booking-status.cancelled::before {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

.booking-status.completed {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
}

.booking-status.completed::before {
    background: #6366f1;
    box-shadow: 0 0 6px #6366f1;
}

/* Admin Dashboard */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover::before {
    transform: translate(-25%, -25%);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--headline-font);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 1200px) {
    h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
    .stat-number { font-size: 2.5rem; }
}

@media (max-width: 992px) {
    .search-card { padding: 2rem; }
    .hotel-detail-image { height: 350px; }
    .admin-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
    .search-card { padding: 1.5rem; border-radius: 20px; }
    .hotel-detail-image { height: 280px; }
    .hotel-card-img { height: 220px; }
    .admin-stats { grid-template-columns: 1fr; }
    .stat-card { padding: 1.5rem; }
    .dashboard-card { padding: 1.5rem; }
    .booking-form { padding: 1.5rem; }
    .navbar-brand-custom { font-size: 1.4rem !important; }
}

@media (max-width: 576px) {
    .search-card { padding: 1.25rem; }
    .hotel-card-img { height: 200px; }
    .hotel-detail-image { height: 220px; }
    .price-tag { font-size: 1.5rem; }
    .stat-number { font-size: 2rem; }
    h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
    h2 { font-size: clamp(1.25rem, 4vw, 1.75rem); }
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Dark mode flash/alert variants */
[data-bs-theme="dark"] .alert-success {
    background: linear-gradient(135deg, #0f3d2e 0%, #14532d 100%);
    color: #e2fbe8;
    border-left: 4px solid #22c55e;
}

[data-bs-theme="dark"] .alert-danger {
    background: linear-gradient(135deg, #3f1d2e 0%, #4a1f2f 100%);
    color: #ffe4e6;
    border-left: 4px solid #f87171;
}

[data-bs-theme="dark"] .alert-warning {
    background: linear-gradient(135deg, #3b2a12 0%, #4d3415 100%);
    color: #fef9c3;
    border-left: 4px solid #fbbf24;
}

[data-bs-theme="dark"] .alert-info {
    background: linear-gradient(135deg, #10243f 0%, #0f3057 100%);
    color: #dbeafe;
    border-left: 4px solid #60a5fa;
}

/* Badge Styles */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.badge-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Table Styles */
.table {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.table thead {
    background: var(--gradient-primary);
    color: white;
}

.table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 1rem;
    border: none;
}

.table tbody tr {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Discount Badge */
.discount-badge {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 5rem;
    color: var(--primary-teal);
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

/* Footer Styles */
.footer-section {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    margin-top: 4rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-heading {
    font-family: var(--headline-font);
    color: var(--primary-teal);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-text {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-teal);
    text-decoration: underline;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    transition: color 0.3s ease;
}

.footer-contact i {
    color: var(--primary-teal);
    margin-top: 0.25rem;
}

.footer-contact span {
    color: var(--text-primary);
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-teal);
    color: white !important;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #006666;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 128, 128, 0.3);
    color: white !important;
}

.footer-divider {
    border-color: rgba(0, 128, 128, 0.2);
    margin: 2rem 0 1rem 0;
}

.footer-copyright {
    color: var(--text-primary);
    margin: 0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-section {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .footer-heading {
        margin-top: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

.table thead {
    background-color: var(--primary-teal);
    color: white;
}

.table tbody tr {
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: var(--bg-tertiary);
}

/* Dark Mode Form Styles */
.form-control, .form-select {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 128, 0.25);
}

/* Dark Mode Footer */
.footer-section {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-text {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.footer-links a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.footer-contact span {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.footer-copyright {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-teal);
}

/* Dark Mode Filter Section */
.filter-section {
    background-color: var(--bg-tertiary);
    transition: background-color 0.3s ease;
}

/* Dark Mode Alert Styles */
.alert {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Dark Mode Offcanvas */
.offcanvas {
    background-color: var(--card-bg);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}

/* Dark Mode Booking Cancellation Modal */
[data-bs-theme="dark"] .modal-content {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .modal .bg-light,
[data-bs-theme="dark"] .modal-header.bg-light {
    background-color: var(--bg-secondary) !important;
}

[data-bs-theme="dark"] .modal .card.bg-light {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color);
}

/* Dark Mode Empty State */
.empty-state {
    color: var(--text-secondary);
}

/* Feature Cards Modern Style */
.feature-card-modern {
    padding: 2.5rem 1.5rem;
    background: var(--card-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-color);
    border-color: var(--primary-teal);
}

.feature-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--light-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-card-modern:hover .feature-icon-modern {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(0, 128, 128, 0.4);
}

.feature-card-modern h4 {
    color: var(--primary-teal);
    font-weight: 700;
    margin-bottom: 1rem;
}

.recommendation-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-card .reco-image {
    width: 100%;
    height: 210px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-md);
}

.recommendation-card .reco-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.recommendation-card .destination-placeholder {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.recommendation-card .badge {
    font-weight: 700;
}

/* Container Improvements */
.container, .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Improved Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-teal);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #006666;
}



/* Fade In Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Card Styles */
.card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    background: var(--card-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-body {
    padding: 2rem;
}

/* Image Styling */
img {
    max-width: 100%;
    height: auto;
}

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Glassmorphism Effect */
.glass {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .glass {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Destination cards */
.destination-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: var(--bs-body-bg);
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .destination-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .destination-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.destination-image-wrapper {
    position: relative;
    height: 250px;
}

.destination-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.destination-card:hover .destination-image {
    transform: scale(1.05);
}

.destination-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.destination-card:hover .destination-overlay {
    opacity: 1;
}

.destination-info {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .destination-info {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.destination-stats {
    display: flex;
    flex-direction: column;
}

.stat-item {
    font-size: 0.95rem;
    color: var(--bs-body-color);
}

/* Tip cards */
.tip-card {
    transition: all 0.3s ease;
    background: var(--bs-body-bg);
    border-color: var(--bs-border-color) !important;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .tip-card {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.02);
}

[data-bs-theme="dark"] .tip-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Empty state */
.empty-state {
    padding: 3rem 0;
}

/* Search card */
.search-card {
    background: var(--bs-body-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .search-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 768px) {
    .destination-image-wrapper {
        height: 200px;
    }

    .search-card {
        padding: 1.5rem;
    }
}

/* Removed guest journey polish overrides to rely on primary hero styles */

.gallery-main {
    height: 450px;
}

.gallery-thumb {
    height: 80px;
    width: 100%;
    object-fit: cover;
    cursor: pointer;
}

.room-media {
    height: 200px;
}

.object-cover { object-fit: cover; }

.info-strip {
    background: var(--bg-tertiary);
    border-radius: 16px;
}

/* ===== MOBILE & TOUCH IMPROVEMENTS ===== */

/* Ensure all buttons are properly clickable on touch devices */
button, .btn, a.btn, input[type="button"], input[type="submit"] {
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    min-height: 44px;
    min-width: 44px;
}

/* Fix for small buttons on mobile */
@media (max-width: 768px) {
    button, .btn, a.btn {
        min-height: 48px;
        font-size: 1rem;
        padding: 0.75rem 1rem !important;
    }
    
    .btn-sm {
        min-height: 44px;
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem !important;
    }
    
    /* Fix destination overlay blocking clicks on mobile */
    .destination-overlay {
        pointer-events: none;
    }
    
    .destination-link {
        text-decoration: none;
        display: block;
        width: 100%;
        height: 100%;
    }
    
    /* Improve room card button layout on mobile */
    .room-card .col-md-4 {
        margin-top: 1rem;
        text-align: start;
    }
    
    .room-card .d-grid {
        width: 100%;
    }
    
    /* Better spacing for forms on mobile */
    form {
        width: 100%;
    }
    
    form .btn {
        width: 100%;
    }
    
    /* Increase tap target area */
    .amenity-badge, .badge {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        padding: 0.5rem 1rem !important;
    }
    
    /* Improve horizontal spacing for better touch targets */
    .d-flex.gap-2,
    .d-flex.gap-3 {
        gap: 0.75rem !important;
    }
    
    /* Mobile button improvements */
    .btn-outline-primary,
    .btn-primary {
        border: 2px solid currentColor;
        transition: all 0.2s ease;
    }
    
    .btn-outline-primary:active,
    .btn-primary:active {
        transform: scale(0.98);
    }
    
    /* Prevent zoom on double-tap */
    button, input, textarea, select {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    button, .btn, a.btn {
        min-height: 50px;
        font-size: 1.05rem;
        padding: 0.85rem 1.2rem !important;
    }
    
    .btn-sm {
        min-height: 46px;
        padding: 0.6rem 0.9rem !important;
    }
    
    /* Stack buttons on very small screens */
    .d-grid.gap-2 {
        gap: 0.5rem !important;
    }
    
    /* Improve visibility of form labels */
    .form-label {
        font-size: 1rem;
        font-weight: 600;
    }
    
    /* Touchable form controls */
    .form-control, .form-select {
        min-height: 48px;
        font-size: 16px;
        padding: 0.75rem 1rem;
    }
}

/* Link styling for destination cards */
.destination-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

.destination-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Improve focus states for accessibility and mobile */
button:focus, .btn:focus, a.btn:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--primary-teal);
    outline-offset: 2px;
}

/* Better active states for touch */
button:active, .btn:active, a.btn:active {
    opacity: 0.9;
}

/* Prevent text selection on interactive elements */
button, .btn, a.btn, [role="button"] {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* Ensure room cards are responsive on mobile */
.room-card {
    overflow-x: hidden;
}

.room-card .row {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .room-card .row {
        flex-direction: row;
    }
}

/* Flicker guard: disable animations/transitions when enabled */
body.flicker-guard, body.flicker-guard * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

