/* =======================================================================
   POSOne PMS - Custom Tenant Public Booking Website Stylesheet
   Easily Redesignable via CSS Custom Properties (Variables)
   ======================================================================= */

:root {
    /* Brand Accent & Theme (Tenant Customizable) */
    --brand-primary: #1A73E8;          /* Google / Royal Blue */
    --brand-primary-hover: #1557B0;
    --brand-primary-light: #E8F0FE;
    --brand-primary-pill: #C2E7FF;
    --brand-accent: #0D9488;           /* Emerald Teal */
    --brand-accent-light: #CCFBF1;

    /* High-Contrast Foreground Text (Never washed out) */
    --text-primary: #0F172A;          /* Slate 900 */
    --text-secondary: #334155;        /* Slate 700 */
    --text-muted: #64748B;            /* Slate 500 */

    /* Surfaces & Layout */
    --bg-canvas: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --border-color: #E2E8F0;
    --border-focus: #1A73E8;

    /* Feedback Colors */
    --success: #0D9488;
    --warning: #D97706;
    --danger: #E11D48;

    /* Typography & Metrics */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);

    --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Layout Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.header-top {
    background: #0F172A;
    color: #94A3B8;
    font-size: 12.5px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.header-top a {
    color: #E2E8F0;
    text-decoration: none;
    transition: var(--transition);
}

.header-top a:hover {
    color: #38BDF8;
}

.main-navbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon-box {
    width: 42px;
    height: 42px;
    background: var(--brand-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.brand-info h1 {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-info span {
    font-size: 11px;
    color: var(--brand-primary);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: #FFFFFF;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-card-hover);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-accent {
    background: var(--brand-accent);
    color: #FFFFFF;
}

.btn-accent:hover {
    background: #0B7A6F;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12.5px;
}

.btn-lg {
    padding: 13px 26px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero-banner {
    position: relative;
    padding: 60px 0 80px;
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(26, 115, 232, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.hero-text {
    max-width: 760px;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: #38BDF8;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 17px;
    color: #CBD5E1;
    line-height: 1.6;
}

/* Search Bar & Date Picker Box */
.search-box-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.search-fields-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 1fr 1.2fr;
    gap: 16px;
    align-items: flex-end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.search-field input, .search-field select {
    padding: 12px 14px;
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
}

.search-field input:focus, .search-field select:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

/* Property Highlights Bar */
.highlights-bar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.highlight-icon {
    width: 38px;
    height: 38px;
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.highlight-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.highlight-text p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Rooms Section */
.rooms-section {
    padding: 50px 0 80px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-head h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.section-head p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Category Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab.active, .filter-tab:hover {
    background: var(--brand-primary);
    color: #FFFFFF;
    border-color: var(--brand-primary);
}

/* Rooms Grid & Room Card */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 26px;
}

.room-card {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.room-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(26, 115, 232, 0.35);
    transform: translateY(-2px);
}

.room-thumb-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #E2E8F0;
}

.room-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.room-card:hover .room-thumb {
    transform: scale(1.04);
}

.room-category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.room-avail-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: #FFFFFF;
    color: var(--brand-accent);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.room-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.room-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.room-specs-strip {
    display: flex;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.room-specs-strip span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.room-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.room-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.amenity-pill {
    padding: 3px 8px;
    background: #F1F5F9;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.room-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.room-price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.price-val {
    font-size: 22px;
    font-weight: 900;
    color: var(--brand-primary);
    line-height: 1.1;
}

.price-period {
    font-size: 11px;
    color: var(--text-muted);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 32px;
    border: 1px solid var(--border-color);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close-btn:hover {
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 22px;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.modal-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Booking Summary Card in Modal */
.stay-summary-card {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.summary-row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-field {
    margin-bottom: 14px;
}

.form-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 10px 12px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-family: var(--font-body);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

/* Confirmation Voucher Card */
.voucher-card {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.voucher-icon {
    width: 56px;
    height: 56px;
    background: #DCFCE7;
    color: #16A34A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 14px;
}

.voucher-code-badge {
    background: #16A34A;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 900;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    display: inline-block;
    letter-spacing: 0.05em;
    margin: 10px 0;
}



/* Footer */
.booking-footer {
    background: #0F172A;
    color: #94A3B8;
    padding: 50px 0 30px;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-col h4 {
    color: #F8FAFC;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #38BDF8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Responsive */
@media (max-width: 992px) {
    .search-fields-grid {
        grid-template-columns: 1fr 1fr;
    }
    .highlights-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }
    .search-fields-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .rooms-grid {
        grid-template-columns: 1fr;
    }
}

/* Multi-Language Selector Dropdown */
.lang-selector-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #F1F5F9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.lang-selector-box:hover {
    border-color: var(--brand-primary);
    background: #FFFFFF;
}

.lang-selector-box i {
    color: var(--brand-primary);
    font-size: 14px;
}

.lang-selector-box select {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.lang-selector-box select option {
    background: #FFFFFF;
    color: #0F172A;
    padding: 6px;
}

/* RTL Layout Direction Support */
[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .brand-link {
    flex-direction: row;
}

[dir="rtl"] .modal-close-btn {
    right: auto;
    left: 20px;
}

[dir="rtl"] .room-specs-strip span i,
[dir="rtl"] .summary-row span,
[dir="rtl"] .stay-summary-card,
[dir="rtl"] .voucher-card {
    text-align: right;
}

[dir="rtl"] .price-box {
    text-align: right;
}

