:root {
    --primary: #1a365d;
    --primary-dark: #0f2440;
    --gold: #c9a227;
    --gold-light: #e8c547;
    --sidebar-width: 270px;
    --text-muted: #6c757d;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    color: #2d3748;
    background: #f4f6f9;
}

h1, h2, h3, .hero-title, .section-title {
    font-family: 'Playfair Display', serif;
}

/* Public Navigation */
.public-nav {
    background: rgba(26, 54, 93, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    transition: all 0.3s;
}

.public-nav .navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.public-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.public-nav .nav-link:hover {
    color: var(--gold) !important;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    color: #1a365d;
    font-weight: 600;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #1a365d;
    transform: translateY(-1px);
}

.public-main {
    padding-top: 76px;
    min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26,54,93,0.92), rgba(15,36,64,0.88)),
                url('https://images.unsplash.com/photo-1566073771259-6a8506099945?w=1920') center/cover;
    color: #fff;
}

.hero-section .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-section .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 162, 39, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Booking Search Box */
.booking-search-box {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin-top: 2rem;
}

.booking-search-box .form-control,
.booking-search-box .form-select {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
}

/* Section Styles */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Room Cards */
.room-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.room-card img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}

.room-card .price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--primary-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.room-card .card-body {
    padding: 1.5rem;
}

.room-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.room-meta span i {
    color: var(--gold);
    margin-right: 0.3rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    height: 100%;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--gold);
    font-size: 1.5rem;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-item .stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Banner Carousel */
.banner-carousel .carousel-item {
    height: 500px;
}

.banner-carousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7);
}

.banner-carousel .carousel-caption {
    bottom: 30%;
}

.banner-carousel .carousel-caption h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
}

/* Gallery Grid */
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    padding: 1.5rem 1rem 1rem;
}

/* Footer */
.site-footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.site-footer h5 {
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 450px;
    width: 100%;
}

.auth-card h2 {
    color: var(--primary);
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.5rem;
}

/* Admin Panel */
.admin-body {
    background: #f0f2f5;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1a2332 0%, #0f1419 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s;
}

.manager-sidebar {
    background: linear-gradient(180deg, #1e3a5f 0%, #0f2440 100%);
}

.user-sidebar {
    background: linear-gradient(180deg, #2d4a3e 0%, #1a2e26 100%);
}

.sidebar-brand {
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-brand i {
    color: var(--gold);
    font-size: 1.4rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: var(--gold);
}

.sidebar-nav a i {
    width: 20px;
    text-align: center;
}

.nav-section {
    padding: 1rem 1.5rem 0.5rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

.admin-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.admin-topbar {
    background: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

.topbar-user {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.admin-main {
    padding: 1.5rem;
}

/* Dashboard Stats Cards */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    border-left: 4px solid var(--primary);
}

.stat-card.gold { border-left-color: var(--gold); }
.stat-card.success { border-left-color: #28a745; }
.stat-card.warning { border-left-color: #ffc107; }
.stat-card.danger { border-left-color: #dc3545; }
.stat-card.info { border-left-color: #17a2b8; }

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(26, 54, 93, 0.1);
    color: var(--primary);
}

.stat-card.gold .stat-icon { background: rgba(201,162,39,0.15); color: var(--gold); }
.stat-card.success .stat-icon { background: rgba(40,167,69,0.15); color: #28a745; }
.stat-card.warning .stat-icon { background: rgba(255,193,7,0.15); color: #d39e00; }
.stat-card.danger .stat-icon { background: rgba(220,53,69,0.15); color: #dc3545; }
.stat-card.info .stat-icon { background: rgba(23,162,184,0.15); color: #17a2b8; }

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Content Cards */
.content-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 1.5rem;
}

.content-card .card-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px 12px 0 0;
}

.content-card .card-body {
    padding: 1.5rem;
}

/* Tables */
.table-responsive {
    border-radius: 8px;
}

.table thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.table tbody td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* Forms */
.form-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.15);
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Invoice */
.invoice-box {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.invoice-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

@media print {
    .admin-sidebar, .admin-topbar, .no-print { display: none !important; }
    .admin-content { margin-left: 0 !important; }
    .admin-main { padding: 0 !important; }
}

/* Notice Banner */
.notice-bar {
    background: var(--gold);
    color: var(--primary-dark);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
    .hero-section {
        min-height: 70vh;
    }
    .banner-carousel .carousel-item {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .booking-search-box {
        padding: 1.25rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
}
