﻿/* Modern Luxury Design System - World Hotels */
:root {
    /* Premium Color Palette */
    --primary-color: #0B1120;
    /* Midnight Navy */
    --primary-light: #1E293B;
    /* Slate */
    --accent-color: #C5A065;
    /* Metallic Gold */
    --accent-hover: #B08D55;
    /* Darker Gold */
    --success-color: #059669;
    --danger-color: #DC2626;
    --dark-color: #020617;
    --light-color: #F8FAFC;
    --surface-color: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;

    /* Shadows & Effects */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(197, 160, 101, 0.3);

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --backdrop-blur: blur(12px);

    /* Spacing & Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.01em;
}

p {
    font-weight: 300;
}

/* Navbar Styling */
.navbar {
    background-color: rgba(11, 17, 32, 0.85);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.navbar-brand {
    font-size: 1.75rem;
    color: var(--surface-color) !important;
    letter-spacing: 0.02em;
}

.navbar-brand i {
    color: var(--accent-color);
}

.nav-link {
    color: rgba(255, 255, 255, 0.75) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    letter-spacing: 0.02em;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.btn-custom {
    padding: 0.5rem 1.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 0.5rem;
}

.nav-link.btn-custom:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white !important;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition-base);
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    box-shadow: 0 4px 6px -1px rgba(197, 160, 101, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(197, 160, 101, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(197, 160, 101, 0.2);
}

/* Cards & Containers */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: var(--surface-color);
    transition: var(--transition-base);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    transition: var(--transition-base);
    background-color: #fcfcfc;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(197, 160, 101, 0.1);
    background-color: white;
}

.form-label {
    font-weight: 500;
    color: var(--primary-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 5rem 0 3rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.footer h5 {
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

.footer p,
.footer li {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition-base);
}

.footer a:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.8), rgba(2, 6, 23, 0.7)),
        url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover fixed;
    color: white;
    padding: 200px 0 160px;
    text-align: center;
    margin-bottom: -80px;
    clip-path: ellipse(150% 100% at 50% 0%);
}

.hero h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards;
}

/* Quick Search Box */
.quick-search {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 -10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 6rem;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.quick-search h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 160, 101, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    background: rgba(197, 160, 101, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

/* City Cards */
.city-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.city-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
    transition: var(--transition-base);
}

.city-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.city-card:hover::after {
    background: linear-gradient(to top, rgba(197, 160, 101, 0.9), rgba(11, 17, 32, 0.3) 70%);
}

.city-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    z-index: 2;
    transform: translateY(10px);
    transition: var(--transition-base);
}

.city-card:hover .city-card-overlay {
    transform: translateY(0);
}

.city-card h4 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.city-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

/* Authentication Pages */
.auth-container {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    background: radial-gradient(circle at top right, rgba(197, 160, 101, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(11, 17, 32, 0.05), transparent 40%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: 550px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.auth-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input Groups specific tweaks */
.input-group-text {
    background-color: var(--surface-color);
    border-color: var(--border-color);
    color: var(--accent-color);
    border-right: none;
}

.input-group .form-control,
.input-group .form-select {
    border-left: none;
}

.input-group .form-control:focus,
.input-group .form-select:focus {
    z-index: 3;
}

/* Admin Dashboard Enhancements */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: var(--primary-color);
    color: white;
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    background-color: #f0f2f5;
    min-height: 100vh;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    transition: var(--transition-base);
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(197, 160, 101, 0.15);
    color: var(--accent-color);
}

.admin-nav-link i {
    margin-right: 1rem;
    font-size: 1.25rem;
}

.dashboard-stat-card {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.dashboard-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.dashboard-stat-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bg-soft-primary {
    background: rgba(11, 17, 32, 0.1);
    color: var(--primary-color);
}

.bg-soft-accent {
    background: rgba(197, 160, 101, 0.1);
    color: var(--accent-color);
}

.bg-soft-success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--success-color);
}

.bg-soft-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger-color);
}

.admin-header {
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.table-modern {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-modern thead th {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.table-modern tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
}

.badge-status {
    padding: 0.55rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.8rem;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }
}

/* Admin Page Specific Overrides */
body.admin-page .navbar,
body.admin-page .footer {
    display: none;
}

body.admin-page {
    background-color: #f0f2f5;
}