/* ── Variables ── */
:root {
    --primary: #1B3A6B;
    --primary-dark: #122852;
    --gold: #C9A227;
    --gold-light: #e8c35e;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark: #1a1a2e;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --radius: 12px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    background: var(--white);
}

/* ── Navigation ── */
.navbar {
    background: var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.navbar-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1px;
}

.navbar-brand .logo-sub {
    font-size: 0.7rem;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    line-height: 1;
}

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

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold-light); }

.btn-book-nav {
    background: var(--gold);
    color: var(--primary-dark) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.btn-book-nav:hover { background: var(--gold-light) !important; color: var(--primary-dark) !important; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── Hero ── */
.hero {
    position: relative;
    height: 90vh;
    min-height: 550px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(27,58,107,0.5) 0%, rgba(27,58,107,0.75) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    width: 90%;
    max-width: 750px;
}

.hero-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--primary-dark);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* ── Booking Widget ── */
.booking-widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    max-width: 900px;
    margin: -60px auto 0;
    position: relative;
    z-index: 10;
}

.booking-widget h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.booking-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 0.5fr 0.5fr auto;
    gap: 1rem;
    align-items: end;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: var(--white);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

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

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

.btn-gold {
    background: var(--gold);
    color: var(--primary-dark);
}

.btn-gold:hover { background: var(--gold-light); }

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

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

.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: 50px; }

/* ── Sections ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

.section-header p {
    color: var(--gray);
    font-size: 1.05rem;
    margin-top: 0.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Room Cards ── */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.room-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.room-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

.room-card:hover .room-card-img img { transform: scale(1.05); }

.room-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.room-badge.smoking { background: #6c757d; }
.room-badge.pet { background: #28a745; }

.room-card-body {
    padding: 1.5rem;
}

.room-card-body h3 {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.room-card-body p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.feature-tag {
    background: #f0f4ff;
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

.room-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--light);
    border-top: 1px solid #eee;
}

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

.room-price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray);
}

/* ── Amenities ── */
.amenities-section { background: var(--light); }

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.amenity-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.amenity-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.amenity-card h4 {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
}

/* ── About ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.about-content h2 {
    font-size: 2.25rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-content p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: var(--light);
    border-radius: 8px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* ── CTA Banner ── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: var(--white);
    padding: 5rem 0;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ── */
footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p { line-height: 1.7; font-size: 0.9rem; }

.footer-col h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ── Book Page ── */
.book-page { padding: 4rem 0; background: var(--light); min-height: 80vh; }

.book-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.book-form-card, .book-summary-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.book-form-card h2 { color: var(--primary); font-size: 1.5rem; margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.form-full { margin-bottom: 1rem; }

.form-full label, .form-row .form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    margin-bottom: 0.4rem;
}

.form-full input, .form-full select, .form-full textarea,
.form-row input, .form-row select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-full input:focus, .form-full select:focus, .form-full textarea:focus,
.form-row input:focus, .form-row select:focus {
    outline: none;
    border-color: var(--primary);
}

.book-summary-card h3 { color: var(--primary); font-size: 1.1rem; margin-bottom: 1.25rem; }

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--gray); }
.summary-row .value { font-weight: 600; color: var(--dark); }
.summary-total { font-size: 1.1rem !important; color: var(--primary) !important; }

/* ── Stripe Payment ── */
#payment-element { margin: 1.5rem 0; }
#payment-message { color: #dc3545; font-size: 0.9rem; margin-top: 0.5rem; }

/* ── Confirmation ── */
.confirmation-page { padding: 5rem 0; background: var(--light); min-height: 80vh; }

.confirmation-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.confirmation-icon { font-size: 4rem; margin-bottom: 1rem; }

.confirmation-card h1 { color: var(--primary); font-size: 2rem; margin-bottom: 0.5rem; }
.confirmation-card p { color: var(--gray); margin-bottom: 1.5rem; }

.confirmation-code {
    background: var(--light);
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.confirmation-code .code {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.booking-details {
    text-align: left;
    margin-top: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.detail-row .key { color: var(--gray); }
.detail-row .val { font-weight: 600; }

/* ── Admin ── */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 1.5rem;
    background: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar-header h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.admin-sidebar-header p { font-size: 0.75rem; opacity: 0.6; }

.admin-nav { padding: 1rem 0; }

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.admin-nav a:hover, .admin-nav a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.admin-main {
    flex: 1;
    padding: 2rem;
    background: var(--light);
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 { font-size: 1.5rem; color: var(--primary); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

.stat-card .stat-icon { font-size: 1.5rem; float: right; }

.admin-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.admin-card h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light);
}

table { width: 100%; border-collapse: collapse; }

table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--light);
    color: var(--gray);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

table tr:hover td { background: #fafafa; }

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-secondary { background: #e2e3e5; color: #383d41; }

/* Admin Login */
.admin-login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.admin-login-card h1 {
    color: var(--primary);
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.admin-login-card p {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.flash-msg {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

/* ── Availability Results ── */
#availability-results { margin-top: 2rem; }

.available-room-card {
    background: var(--white);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
    cursor: pointer;
}

.available-room-card:hover, .available-room-card.selected {
    border-color: var(--primary);
    background: #f0f4ff;
}

.available-room-card h4 { color: var(--primary); font-size: 1rem; margin-bottom: 0.25rem; }
.available-room-card p { color: var(--gray); font-size: 0.85rem; }

/* ── Page Header ── */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.page-header p { opacity: 0.8; font-size: 1.05rem; }

/* ── Responsive ── */
@media (max-width: 992px) {
    .booking-form-row { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .book-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); padding: 1rem 0; }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .navbar .container { position: relative; }
    .booking-form-row { grid-template-columns: 1fr; }
    .booking-widget { margin: -30px 1rem 0; padding: 1.25rem; }
    .rooms-grid { grid-template-columns: 1fr; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; position: static; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
}
