: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: rgba(15, 23, 42, 0.7); /* Sleek dark glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

.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); }

.btn-property-header {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.8rem;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-property-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); }
}

/* Premium Animations & Glass Classes */
@keyframes premiumGlow {
    0% { box-shadow: 0 0 10px rgba(255, 156, 0, 0.4); }
    50% { box-shadow: 0 0 25px rgba(255, 156, 0, 0.8), 0 0 10px rgba(255, 156, 0, 0.6) inset; }
    100% { box-shadow: 0 0 10px rgba(255, 156, 0, 0.4); }
}

.btn-premium-glow {
    animation: premiumGlow 2.5s infinite alternate;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
    background: linear-gradient(135deg, var(--ftb-orange) 0%, #ff7300 100%) !important;
}

.btn-premium-glow:hover {
    transform: scale(1.05) translateY(-2px);
    background: linear-gradient(135deg, #ffb340 0%, #ff8c00 100%) !important;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

.feature-card-glow {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
}
.feature-card-glow:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1), 0 0 20px rgba(0, 132, 201, 0.15) !important;
}

/* --- 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 */
}

/* --- Password Toggle Styling --- */
.password-toggle-group {
    position: relative;
    display: flex;
    align-items: center;
}
.password-toggle-group input {
    padding-right: 45px !important;
}
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    padding: 0;
    font-size: 1.2rem;
    z-index: 10;
    transition: color 0.2s;
}
.password-toggle-btn:hover {
    color: #0084c9;
}
.password-toggle-btn ion-icon {
    pointer-events: none;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    .form-group.full {
        grid-column: span 1 !important;
    }
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* =====================================================
   PUBLIC SITE — MOBILE MASTER OVERRIDES (2026)
   Additive only — zero changes to existing rules.
   ===================================================== */

/* ─── NAVBAR: prevent horizontal overflow on phones ─── */
@media (max-width: 640px) {
    .navbar {
        height: auto !important;
        min-height: 64px;
        padding: 10px 0 !important;
    }
    .navbar .container {
        padding: 0 15px !important;
        flex-wrap: nowrap !important;
    }
    /* Logo text: shrink slightly */
    .logo-ftb {
        font-size: 1.3rem !important;
    }
    /* Logo image if present */
    .logo-wrapper img {
        height: 36px !important;
        margin-right: 8px !important;
    }
    /* Ensure header-tools stays on the right */
    .header-tools {
        gap: 10px !important;
        flex-shrink: 0 !important;
    }
    /* Login button: show compact version on mobile */
    .btn-login-header {
        font-size: 0.65rem !important;
        padding: 5px 10px !important;
        border-radius: 8px !important;
        letter-spacing: 0 !important;
    }
    .btn-property-header {
        font-size: 0.65rem !important;
        padding: 4px 8px !important;
        border-width: 1px !important;
        margin-right: 5px !important;
        letter-spacing: -0.5px;
    }
}

/* ─── HERO SECTION: text stacking on phones ─── */
@media (max-width: 640px) {
    .hero-booking {
        padding-top: 100px !important;
        padding-bottom: 50px !important;
        text-align: center !important;
    }
    .hero-content .platform-title {
        font-size: clamp(1.6rem, 7vw, 2.5rem) !important;
        line-height: 1.15 !important;
    }
    .hero-content .platform-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0 5px !important;
    }
    /* CTA buttons: stack */
    .hero-content div[style*="display: flex"],
    .hero-content div[style*="display:flex"] {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .hero-content button[style*="min-width"] {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 320px !important;
    }
}

/* ─── SEARCH BAR: full-column on mobile ─── */
@media (max-width: 640px) {
    .search-bar {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 1rem !important;
        margin-top: 1.5rem !important;
    }
    .btn-cta {
        padding: 14px !important;
        height: auto !important;
        width: 100% !important;
    }
}

/* ─── PROFIT CALCULATOR & DATA OWNERSHIP: stack columns ─── */
@media (max-width: 600px) {
    div[style*="display: flex; flex-wrap: wrap; gap: 30px"],
    div[style*="display: flex; flex-wrap: wrap; gap: 40px"] {
        flex-direction: column !important;
        padding: 25px 20px !important;
    }
    div[style*="flex: 1.2; min-width: 300px"],
    div[style*="flex: 1; min-width: 300px"],
    div[style*="flex: 0.8; min-width: 250px"] {
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* ─── FEATURE GRID: single column on phone ─── */
@media (max-width: 500px) {
    div[style*="grid-template-columns: repeat(auto-fit, minmax(320px"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(350px"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(280px"] {
        grid-template-columns: 1fr !important;
    }
    div[style*="padding: 40px; border: 1px solid #e2e8f0; border-radius: 20px"],
    div[style*="padding: 40px; border: 1px solid #e2e8f0; border-radius: 30px"],
    div[style*="padding: 40px; background: #f8fafc"] {
        padding: 25px 20px !important;
    }
}

/* ─── ENTERPRISE SECTION: heading size ─── */
@media (max-width: 480px) {
    div[style*="font-size: 48px"],
    div[style*="font-size: 42px"] {
        font-size: 28px !important;
    }
    h2[style*="font-size: 48px"],
    h2[style*="font-size: 42px"],
    h2[style*="font-size: 38px"] {
        font-size: 26px !important;
        letter-spacing: -0.5px !important;
    }
}

/* ─── PRICING CARDS: single column ─── */
@media (max-width: 500px) {
    div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
}

/* ─── ROOM GRID: already uses 1-col below 992px; ensure images are good ─── */
@media (max-width: 480px) {
    .room-img {
        height: 180px !important;
    }
    .room-body {
        padding: 1.2rem !important;
    }
    .room-features {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .room-footer {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: flex-start !important;
    }
    .btn-primary {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ─── NAV OVERLAY: ensure it scrolls properly ─── */
.nav-overlay {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
@media (max-width: 480px) {
    .nav-overlay {
        padding: 20px !important;
    }
    .nav-section h3,
    .nav-link-direct {
        font-size: 1.4rem !important;
    }
    .overlay-ctas {
        padding-right: 0 !important;
    }
}

/* ─── FOOTER: ensure grid works on tiny screens ─── */
@media (max-width: 480px) {
    footer div[style*="grid-template-columns: repeat(auto-fit, minmax(250px"] {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
}

/* ─── COOKIE CONSENT BANNER ─── */
@media (max-width: 480px) {
    #cookie-consent-banner {
        flex-direction: column !important;
        text-align: center !important;
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }
    #cookie-consent-banner button {
        width: 100% !important;
    }
}

/* ─── MODAL: bottom-sheet on mobile ─── */
@media (max-width: 560px) {
    .modal-overlay {
        align-items: flex-end !important;
    }
    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
        max-height: 92dvh !important;
        overflow-y: auto !important;
        padding: 1.5rem 1rem !important;
    }
}

/* ─── GRID-2 PAYMENT: stack on mobile ─── */
@media (max-width: 480px) {
    .grid-2 {
        grid-template-columns: 1fr !important;
    }
}

/* ─── GLOBAL OVERFLOW GUARD ─── */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}

/* ─── TAP TARGETS ─── */
@media (max-width: 768px) {
    .btn-primary,
    .btn-cta,
    .btn-cta-orange,
    .btn-outline {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* END: PUBLIC SITE MOBILE MASTER OVERRIDES */

/* =====================================================
   LANDSCAPE MODE OVERRIDES — PUBLIC SITE (2026)
   Safe, additive-only. Zero desktop/portrait changes.
   ===================================================== */

/* ── 1. NAVBAR: single-row in landscape ── */
@media (orientation: landscape) and (max-width: 1024px) {

    /* Prevent nav from growing tall */
    .navbar, .site-header, header {
        height: auto !important;
        min-height: 50px !important;
        padding: 0 15px !important;
    }

    /* Nav links: tighter */
    .nav-links a,
    .nav-link,
    .header-nav a {
        font-size: 12px !important;
        padding: 0 8px !important;
    }

    /* Logo: compact */
    .logo-ftb {
        font-size: 18px !important;
    }
}

/* ── 2. HERO: shorter in landscape ── */
@media (orientation: landscape) and (max-height: 500px) {

    /* Hero section: no full-viewport height */
    .hero, .hero-section,
    section[style*="min-height: 100vh"],
    section[style*="min-height:100vh"] {
        min-height: auto !important;
        padding: 30px 20px !important;
    }

    /* Hero title: smaller */
    .hero h1,
    .hero-title {
        font-size: clamp(20px, 4vw, 32px) !important;
        margin-bottom: 10px !important;
    }

    /* CTA buttons: inline row in landscape */
    .hero-cta,
    .cta-group {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .hero-cta a,
    .hero-cta button {
        width: auto !important;
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
}

/* ── 3. GRIDS: 2-col restored in landscape ── */
@media (orientation: landscape) and (max-width: 900px) {

    /* Feature grid: 2-col */
    .feature-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Pricing: 2-col if space allows */
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Room cards: 2-col */
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ── 4. BOOKING MODAL: scrollable in landscape ── */
@media (orientation: landscape) and (max-height: 500px) {

    .booking-modal,
    .modal-content,
    div[class*="modal"] {
        max-height: 90dvh !important;
        overflow-y: auto !important;
    }

    /* Bottom-sheet style modals: fixed height */
    .booking-sheet {
        max-height: 90dvh !important;
    }
}

/* ── 5. FOOTER: compact in landscape ── */
@media (orientation: landscape) and (max-height: 500px) {
    footer, .site-footer {
        padding: 20px 15px !important;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* END: LANDSCAPE MODE OVERRIDES — PUBLIC SITE */
