/* Modern CSS Reset and Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #475569;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-brand .logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    transition: color 0.2s ease;
}

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

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-slider .slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.25rem;
    color: #f1f5f9;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Page Headers (for inner pages) */
.page-header {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 5%;
    text-align: center;
    margin-bottom: 3rem;
}
.page-header h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.page-header p {
    color: #f1f5f9;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Main Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Utilities */
.text-center {
    text-align: center;
}

/* Typography & Content Formatting */
section {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary);
    display: inline-block;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    color: var(--text);
}

p {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 1.1rem;
}

ul {
    margin: 1rem 0 2rem 2rem;
    color: var(--secondary);
}

li {
    margin-bottom: 0.5rem;
}

/* Images & Cards */
figure {
    margin: 2rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

figure:hover img {
    transform: scale(1.02);
}

/* Grid Layouts for Rooms */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.room-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.room-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.room-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.room-card-content h3 {
    margin-top: 0;
    color: var(--primary);
}

.room-card-content .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.nav-links .btn-book {
    background: #10b981; /* A nice distinct green for booking */
    padding: 0.5rem 1.25rem;
}
.nav-links .btn-book:hover {
    background: #059669;
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    text-align: center;
    padding: 3rem 5%;
    margin-top: 4rem;
}

footer p {
    color: #94a3b8;
    margin: 0;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.popup-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.popup-overlay.show .popup-content {
    transform: translateY(0);
}
.popup-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--secondary);
    transition: color 0.2s ease;
}
.popup-close:hover {
    color: var(--primary);
}
.popup-content img {
    border-radius: var(--radius);
    margin-bottom: 1rem;
    width: 100%;
    max-height: 250px;
    object-fit: cover;
}
.popup-content h3 {
    color: #ef4444; /* red for alert */
    margin-top: 0;
}
