:root {
    --ftb-blue: #0084c9;
    --ftb-orange: #ff9c00;
    --ftb-header-blue: #004b91;
    --ftb-bg: #f5f5f5;
    --ftb-border: #cccccc;
    --ftb-text: #333333;
    --ftb-yellow: #fff9d7;
    --radius-sm: 4px;
    --radius-lg: 1rem;
    --shadow-ftb: 0 1px 3px rgba(0,0,0,0.1);
    
    /* Original Tokens for compatibility (mapped to FTB) */
    --primary: var(--ftb-blue);
    --accent: var(--ftb-orange);
    --accent-dark: #e68a00;
    --bg-main: var(--ftb-bg);
    --bg-white: #ffffff;
    --text-main: var(--ftb-text);
    --text-muted: #666666;
    --border: var(--ftb-border);
    --glass: rgba(255, 255, 255, 0.9);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

h1, h2, h3, .serif {
    font-family: 'Lora', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    height: 80px;
    background: var(--ftb-header-blue);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.flex-between { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo-ftb {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
}

.header-tools { display: flex; align-items: center; gap: 2rem; }

.btn-login-header {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
}

.btn-login-header:hover { background: rgba(255,255,255,0.2); }

.hamburger-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: var(--ftb-header-blue);
    z-index: 1000;
    padding: 3rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

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

.close-overlay { background: transparent; border: none; font-size: 3rem; color: #fff; cursor: pointer; }

.overlay-content { display: flex; flex-direction: column; gap: 1.5rem; text-align: left; }

.nav-section h3 {
    color: #fff;
    font-size: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.nav-dropdown { display: none; padding-left: 1rem; margin-top: 1rem; flex-direction: column; gap: 0.5rem; }

.nav-dropdown.active { display: flex; }

.nav-dropdown a { color: rgba(255,255,255,0.8); font-size: 1.2rem; }

.nav-link-direct { color: #fff; font-size: 1.8rem; font-weight: 600; }

.btn-cta-orange {
    background: var(--ftb-orange);
    color: #fff;
    padding: 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-cta-orange:hover { background: #e68a00; }

/* Hero Section */
.hero-booking {
    padding-top: 180px;
    padding-bottom: 100px;
    background-image: url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?q=80&w=2670&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-content .platform-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content .platform-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: rgba(255,255,255,0.9);
}

.search-bar {
    max-width: 900px;
    margin: 3rem auto 0;
    background: var(--glass);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 1.5rem;
    color: var(--text-main);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.input-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.input-group input, .input-group select {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.btn-cta {
    background: var(--ftb-orange);
    color: #fff;
    padding: 0 2rem;
    height: 100%;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    cursor: pointer;
}

.btn-cta:hover { background: #e68a00; }

/* Room Grid */
.room-results {
    padding: 5rem 0;
}

.grid-rooms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.room-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.room-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(212, 165, 116, 0.4);
}

.room-img {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.room-body {
    padding: 2rem;
}

.room-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.room-features {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.price-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
}

.btn-primary:hover { background: var(--accent); }

/* Modal & Multi-Step Booking */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--glass);
    width: 95%;
    max-width: 500px;
    padding: 3rem;
    border-radius: var(--radius-lg);
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.hidden { display: none !important; }

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.booking-step h2 {
    margin-bottom: 2rem;
    color: var(--primary);
}

.selection-summary {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    text-align: left;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form input {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.w-full { width: 100%; }

.payment-mock {
    background: #f1f5f9;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

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

.payment-mock input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.success-icon {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
}

/* Animations */
.animate-success {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.loading-state {
    grid-column: 1 / -1;
    padding: 4rem;
    font-size: 1.25rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spin {
    animation: spin 1s linear infinite;
    font-size: 2.5rem;
    color: var(--accent);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
/* --- RESPONSIVE FIXES (PUBLIC SITE) --- */
@media (max-width: 992px) {
    .container { padding: 0 1.5rem; }
    .hero-content .platform-title { font-size: 3rem; }
    .grid-rooms { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .navbar { height: 70px; }
    .hero-booking { padding-top: 150px; padding-bottom: 60px; }
    .hero-content .platform-title { font-size: 2.2rem; }
    .hero-content .platform-subtitle { font-size: 1rem; margin-bottom: 2rem; }

    .search-bar {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
        margin-top: 2rem;
    }
    .btn-cta { padding: 1rem; height: auto; margin-top: 0.5rem; }

    .room-img { height: 220px; }
    .room-body { padding: 1.5rem; }
    .room-body h3 { font-size: 1.35rem; }

    .modal-content { padding: 2rem 1.5rem; }
    .booking-step h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-content .platform-title { font-size: 1.8rem; }
    .logo-ftb { font-size: 1.5rem; }
    .btn-login-header { display: none; } /* Hide on tiny mobile, already in side menu */
}
