/* ============================================================
   GLOBAL CONTAINER & HERO FIXES
   ============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.hero-section {
    width: 100%;
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    scroll-margin-top: 80px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.main-content {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .main-content {
        padding: 40px 0;
    }
}

/* ============================================================
   HOTELS TEMPLATE - Warm, Welcoming, Hospitality-Focused
   ============================================================ */

:root {
    --primary-color: #c0392b;
    --secondary-color: #e67e22;
    --accent-color: #f39c12;
    --bg-color: #fef9f0;
    --card-bg-light: #ffffff;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --border-radius-md: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.1);
}

/* ============================================================
   LAYOUT FIXES (Footer positioning & full height)
   ============================================================ */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: opacity 0.15s ease-in-out;
}

.main-content {
    flex: 1;
}

.footer {
    margin-top: auto;
}

/* ============================================================
   PROFESSIONAL NAVIGATION HEADER
   ============================================================ */
header {
    background: #1a1a2e;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand .logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a2e;
    min-width: 200px;
    padding: 0.5rem 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }
    nav ul.show {
        display: flex;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* ============================================================
   ACTIVE MENU HIGHLIGHTING
   ============================================================ */
nav ul li.active > a,
nav ul li.active > a:link,
nav ul li.active > a:visited {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

nav ul li.dropdown ul li.active > a {
    color: var(--secondary-color) !important;
    background: rgba(230, 126, 34, 0.1);
}

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.hotel-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.hotel-main {
    flex: 2;
    min-width: 250px;
}

.hotel-sidebar {
    flex: 1;
    min-width: 280px;
}

/* Sidebar Card */
.sidebar-card {
    background: var(--card-bg-light);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

/* Rooms Grid */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

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

.room-card {
    background: var(--card-bg-light);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.room-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.room-body {
    padding: 1.5rem;
}

.room-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.room-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.room-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.room-meta li {
    display: flex;
    align-items: center;
}

.room-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Buttons */
.btn, .btn-primary, a.btn, a.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-primary:hover, .btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Footer */
footer {
    background: #1a1a2e;
    color: #a0a0a0;
    text-align: center;
    padding: 2rem 0;
    border-top: 5px solid var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hotel-layout {
        flex-direction: column;
    }
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    .brand .logo {
        height: 40px;
        max-width: 150px;
    }
}

/* Carousel overrides */
.carousel-wrapper {
    position: relative;
    scroll-margin-top: 80px;
}

.carousel-slide .carousel-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-prev, .carousel-next {
    background: rgba(0,0,0,0.5);
    color: white;
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--primary-color);
}
