/* Rynex Booking — Light blue + white theme */
:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bs-secondary: #1d4ed8;
    --bs-secondary-rgb: 29, 78, 216;
    --bs-success: #059669;
    --bs-info: #38bdf8;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
    --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --bs-body-color: #1e3a5f;
    --bs-body-bg: #ffffff;
    --bs-border-color: #dbeafe;
    --bs-border-radius: 0.75rem;
    --bs-border-radius-lg: 1rem;
    --bs-link-color: #2563eb;
    --bs-link-hover-color: #1d4ed8;

    --rynex-primary: #2563eb;
    --rynex-secondary: #1e40af;
    --rynex-accent: #60a5fa;
    --rynex-gradient: linear-gradient(180deg, #ffffff 0%, #f0f7ff 45%, #dbeafe 100%);
    --rynex-gradient-accent: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    --rynex-surface: #ffffff;
    --rynex-surface-alt: #f0f7ff;
    --rynex-muted: #64748b;
    --rynex-border: #dbeafe;
    --rynex-shadow: 0 4px 20px rgba(37, 99, 235, 0.07);
    --rynex-shadow-lg: 0 12px 36px rgba(37, 99, 235, 0.1);
    --rynex-radius: 12px;
    --rynex-sidebar-width: 270px;
}

[data-bs-theme="dark"] {
    --bs-body-bg: #f8fbff;
    --bs-body-color: #1e3a5f;
    --bs-border-color: #dbeafe;
    --rynex-surface: #ffffff;
    --rynex-surface-alt: #f0f7ff;
    --rynex-muted: #64748b;
    --rynex-border: #dbeafe;
    --rynex-shadow: 0 4px 20px rgba(37, 99, 235, 0.07);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--bs-body-font-family);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--bs-body-color);
    background: var(--bs-body-bg);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .brand {
    font-family: 'Poppins', var(--bs-body-font-family);
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9375rem; }
h6 { font-size: 0.875rem; }

.lead { font-size: 1rem; }

/* ── Bootstrap overrides ── */
.btn-primary {
    --bs-btn-bg: var(--rynex-primary);
    --bs-btn-border-color: var(--rynex-primary);
    --bs-btn-hover-bg: var(--rynex-secondary);
    --bs-btn-hover-border-color: var(--rynex-secondary);
    --bs-btn-active-bg: var(--rynex-secondary);
    --bs-btn-active-border-color: var(--rynex-secondary);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.6rem 1.25rem;
}

.btn-outline-primary {
    --bs-btn-color: var(--rynex-primary);
    --bs-btn-border-color: var(--rynex-primary);
    --bs-btn-hover-bg: var(--rynex-primary);
    --bs-btn-hover-border-color: var(--rynex-primary);
    border-radius: 10px;
    font-weight: 600;
}

.form-control, .form-select {
    border-radius: 10px;
    border-color: var(--rynex-border);
    padding: 0.65rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--rynex-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.card {
    border: 1px solid var(--rynex-border);
    border-radius: var(--rynex-radius);
    box-shadow: var(--rynex-shadow);
}

.table {
    --bs-table-bg: var(--rynex-surface);
}

.badge { font-weight: 600; letter-spacing: 0.02em; }

/* ── Public navbar (light white + blue) ── */
.rynex-navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0;
    min-height: 64px;
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--rynex-border);
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}

.rynex-navbar > .container {
    align-items: center;
    min-height: 64px;
}

.rynex-navbar .navbar-brand.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--rynex-secondary);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
    margin-right: 1rem;
    padding: 0;
}

.rynex-navbar .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--rynex-primary) 0%, #3b82f6 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.rynex-navbar .brand-text span { color: var(--rynex-primary); }

@media (min-width: 1200px) {
    .rynex-navbar.navbar-expand-xl .navbar-collapse {
        justify-content: flex-end;
    }

    .rynex-navbar .navbar-nav {
        flex-wrap: nowrap;
        gap: 0.15rem;
    }
}

@media (max-width: 1199.98px) {
    .rynex-navbar .navbar-collapse {
        margin-top: 0.25rem;
        padding: 0.75rem 0 1rem;
        border-top: 1px solid var(--rynex-border);
    }

    .rynex-navbar .navbar-nav {
        gap: 0.15rem;
    }

    .rynex-navbar .nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    .rynex-navbar .nav-account-toggle {
        width: 100%;
    }

    .rynex-navbar .nav-register-btn {
        width: 100%;
        margin-top: 0.25rem;
    }
}

.rynex-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 0.45rem;
    white-space: nowrap;
    color: #334155;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    border: none;
    background: transparent;
    line-height: 1.25;
}

.rynex-navbar .nav-link i {
    font-size: 1.05rem;
    flex-shrink: 0;
    opacity: 0.88;
    line-height: 1;
}

.rynex-navbar .nav-link.btn-link {
    text-decoration: none;
}

.rynex-navbar .nav-link:hover {
    color: var(--rynex-primary);
    background: rgba(37, 99, 235, 0.06);
}

.rynex-navbar .nav-link.active,
.rynex-navbar .nav-link.show {
    color: var(--rynex-primary);
    background: rgba(37, 99, 235, 0.1);
    font-weight: 600;
}

.rynex-navbar .nav-link-portal {
    border: 1px solid var(--rynex-border);
    background: #f8fafc;
    padding: 0.45rem 0.85rem !important;
}

.rynex-navbar .nav-link-portal:hover {
    border-color: rgba(37, 99, 235, 0.35);
    background: #eff6ff;
}

.rynex-navbar .nav-link-portal.active {
    border-color: var(--rynex-primary);
    background: #eff6ff;
}

.rynex-navbar .nav-link-signin {
    font-weight: 600;
    color: var(--rynex-primary);
}

.rynex-navbar .nav-divider {
    width: 1px;
    height: 28px;
    background: var(--rynex-border);
    margin: 0 0.35rem;
    align-self: center;
    padding: 0 !important;
}

.rynex-navbar .nav-account {
    margin-left: 0.15rem;
}

.rynex-navbar .nav-account-toggle {
    gap: 0.55rem !important;
    padding-right: 0.5rem !important;
}

.rynex-navbar .nav-account-label {
    font-weight: 600;
    color: #1e293b;
}

.rynex-navbar .dropdown-menu-modern {
    border: 1px solid var(--rynex-border);
    border-radius: 14px;
    padding: 0.5rem;
    min-width: 220px;
    margin-top: 0.5rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12) !important;
}

.rynex-navbar .dropdown-menu-modern .dropdown-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    padding: 0.35rem 0.75rem 0.5rem;
}

.rynex-navbar .dropdown-menu-modern .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.rynex-navbar .dropdown-menu-modern .dropdown-item i {
    width: 1.1rem;
    font-size: 1rem;
    color: #64748b;
}

.rynex-navbar .dropdown-menu-modern .dropdown-item:hover,
.rynex-navbar .dropdown-menu-modern .dropdown-item:focus {
    background: rgba(37, 99, 235, 0.08);
    color: var(--rynex-primary);
}

.rynex-navbar .dropdown-menu-modern .dropdown-item.active {
    background: rgba(37, 99, 235, 0.12);
    color: var(--rynex-primary);
    font-weight: 600;
}

.rynex-navbar .dropdown-menu-modern .dropdown-item.active i {
    color: var(--rynex-primary);
}

.rynex-navbar .navbar-toggler {
    border: 1px solid var(--rynex-border);
    border-radius: 10px;
    padding: 0.4rem 0.55rem;
    box-shadow: none;
}

.rynex-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.rynex-navbar .navbar-toggler-icon {
    width: 1.15rem;
    height: 1.15rem;
}

.btn-primary-rynex {
    background: var(--rynex-primary);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
}

.btn-primary-rynex:hover {
    background: #1d4ed8;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-ghost-light {
    color: var(--rynex-primary);
    border: 1px solid var(--rynex-border);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    background: #ffffff;
}

.btn-ghost-light:hover {
    background: var(--rynex-surface-alt);
    color: var(--rynex-primary);
    border-color: var(--rynex-accent);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rynex-primary) 0%, #3b82f6 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* ── Hero & search ── */
.hero-section {
    background: var(--rynex-gradient);
    color: var(--rynex-secondary);
    padding: 4.5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-section h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-section .lead { color: var(--rynex-muted); opacity: 1; font-size: 0.95rem; }

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stat strong { display: block; font-size: 1.15rem; color: var(--rynex-secondary); }
.hero-stat span { font-size: 0.8rem; color: var(--rynex-muted); }

.search-bar {
    background: var(--rynex-surface);
    border-radius: var(--rynex-radius);
    padding: 1.5rem;
    box-shadow: var(--rynex-shadow-lg);
    margin-top: -3.5rem;
    position: relative;
    z-index: 10;
    border: 1px solid var(--rynex-border);
}

.search-bar-sticky {
    position: sticky;
    top: 80px;
    z-index: 100;
}

.search-bar-filters {
    padding: 1.25rem 1rem;
}

/* Date inputs — full date visible in filter sidebar (incl. Windows Chrome/Edge) */
.search-filter-form .search-filter-date-field {
    position: relative;
    width: 100%;
    min-width: 0;
}

.search-filter-form input.rynex-date-input.form-control-date {
    display: block;
    width: 100%;
    min-width: 12rem;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}

.rynex-date-input {
    font-variant-numeric: tabular-nums;
    padding-right: 2.5rem;
    cursor: pointer;
}

.rynex-date-field {
    position: relative;
}

.rynex-date-trigger {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--rynex-primary);
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

.rynex-date-trigger:hover {
    color: #1d4ed8;
}

.rynex-date-input.is-invalid {
    border-color: var(--bs-danger);
}

.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: var(--rynex-shadow-lg);
    border: 1px solid var(--rynex-border);
    font-family: Inter, system-ui, sans-serif;
    z-index: 11000 !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--rynex-primary);
    border-color: var(--rynex-primary);
}

.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.search-filter-date-row .search-filter-date-field + .search-filter-date-field {
    margin-top: 0.25rem;
}

/* ── Property cards ── */
.property-card {
    border: 1px solid var(--rynex-border);
    border-radius: var(--rynex-radius);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    background: var(--rynex-surface);
    height: 100%;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rynex-shadow-lg);
}

.property-card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    background: #e8eef5;
}

.property-card-media {
    position: relative;
}

.property-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}

.property-card-media-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.property-card-slider.image-slider {
    border-radius: 0;
}

.property-card-slider .slider-viewport {
    height: 210px;
    aspect-ratio: unset;
}

.property-card-slider .slider-nav,
.property-card-slider .slider-dots,
.property-card-slider .slider-counter {
    z-index: 4;
}

.property-card .card-body { padding: 1.15rem 1.25rem; }

.property-card .rating { color: var(--bs-warning); font-weight: 600; }

.property-card .price {
    color: var(--rynex-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.badge-featured {
    background: var(--rynex-primary);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.destination-card {
    background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 100%);
    color: var(--rynex-secondary);
    min-height: 140px;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    border: none;
}

.destination-card h5 { margin: 0; font-weight: 700; }

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.section-subtitle {
    color: var(--rynex-muted);
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
}

/* ── Trust / features strip ── */
.features-strip {
    background: var(--rynex-surface);
    border-radius: var(--rynex-radius);
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid var(--rynex-border);
    box-shadow: var(--rynex-shadow);
}

.feature-item {
    text-align: center;
    padding: 0.5rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--rynex-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.feature-item h6 { font-weight: 700; margin-bottom: 0.35rem; }
.feature-item p { color: var(--rynex-muted); font-size: 0.9rem; margin: 0; }

/* ── Auth pages ── */
.auth-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    background: var(--rynex-surface);
    border-radius: var(--rynex-radius);
    box-shadow: var(--rynex-shadow-lg);
    border: 1px solid var(--rynex-border);
    overflow: hidden;
}

.auth-card .auth-side {
    background: linear-gradient(160deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--rynex-secondary);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-card .auth-form { padding: 2.5rem; }

/* ── Page chrome ── */
.page-hero-sm {
    background: var(--rynex-surface-alt);
    border-bottom: 1px solid var(--rynex-border);
    padding: 1.75rem 0;
    margin-bottom: 2rem;
}

.page-hero-sm h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

.breadcrumb-rynex {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.breadcrumb-rynex a {
    color: var(--rynex-muted);
    text-decoration: none;
}

.breadcrumb-rynex a:hover { color: var(--rynex-primary); }

/* ── Booking cards ── */
.booking-card {
    background: var(--rynex-surface);
    border: 1px solid var(--rynex-border);
    border-radius: var(--rynex-radius);
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.2s;
    height: 100%;
}

.booking-card:hover { box-shadow: var(--rynex-shadow); }

.booking-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.booking-status.confirmed { background: #dcfce7; color: #166534; }
.booking-status.pending { background: #fef9c3; color: #854d0e; }
.booking-status.cancelled { background: #fee2e2; color: #991b1b; }
.booking-status.completed { background: #dbeafe; color: #1e40af; }

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--rynex-surface);
    border-radius: var(--rynex-radius);
    border: 2px dashed var(--rynex-border);
}

.empty-state i { font-size: 3rem; color: var(--rynex-muted); margin-bottom: 1rem; }

/* ── Property detail ── */
.property-gallery {
    border-radius: var(--rynex-radius);
    overflow: hidden;
    height: 320px;
    background: #e8eef5;
    margin-bottom: 1.5rem;
}

.property-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-row {
    background: var(--rynex-surface);
    border: 1px solid var(--rynex-border);
    border-radius: var(--rynex-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s;
}

.room-row:hover { border-color: var(--rynex-primary); }

.booking-sidebar {
    position: sticky;
    top: 90px;
    background: var(--rynex-surface);
    border-radius: var(--rynex-radius);
    padding: 1.5rem;
    border: 1px solid var(--rynex-border);
    box-shadow: var(--rynex-shadow);
}

/* ── Portal layouts (Admin / Property) ── */
.portal-shell {
    display: flex;
    min-height: 100vh;
}

.portal-sidebar {
    background: #ffffff;
    width: var(--rynex-sidebar-width);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    transition: transform 0.3s;
    border-right: 1px solid var(--rynex-border);
    box-shadow: 2px 0 20px rgba(37, 99, 235, 0.05);
    overflow: hidden;
}

.portal-sidebar .sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--rynex-border);
    background: var(--rynex-surface-alt);
    flex-shrink: 0;
}

.portal-sidebar .sidebar-brand a {
    color: var(--rynex-secondary);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}

.portal-sidebar .sidebar-brand span { color: var(--rynex-primary); }

.portal-sidebar .sidebar-nav {
    padding: 1rem 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.portal-sidebar .sidebar-nav a {
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.925rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.portal-sidebar .sidebar-nav a i { font-size: 1.1rem; opacity: 0.85; color: var(--rynex-primary); }

.portal-sidebar .sidebar-nav a:hover,
.portal-sidebar .sidebar-nav a.active {
    background: var(--rynex-surface-alt);
    color: var(--rynex-primary);
    border-left-color: var(--rynex-primary);
}

.portal-sidebar .sidebar-nav a.sidebar-sub {
    padding-left: 2.5rem;
    font-size: 0.875rem;
}

.portal-sidebar .sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--rynex-border);
    background: #ffffff;
    flex-shrink: 0;
}

.portal-sidebar .sidebar-footer a {
    color: var(--rynex-muted);
    text-decoration: none;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portal-sidebar .sidebar-footer a:hover { color: var(--rynex-primary); }

.portal-main {
    flex: 1;
    margin-left: var(--rynex-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--rynex-surface-alt);
}

.portal-topbar {
    background: var(--rynex-surface);
    border-bottom: 1px solid var(--rynex-border);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.portal-content {
    padding: 1.5rem;
    flex: 1;
}

.portal-topbar .page-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.portal-content h2 { display: none; }

.profile-nav .nav-link { font-size: 0.875rem; padding: 0.5rem 0.85rem; }

/* Legacy class alias */
.admin-sidebar { /* kept for compatibility */ }

.stat-card {
    background: var(--rynex-surface);
    border-radius: var(--rynex-radius);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--rynex-shadow);
    border: 1px solid var(--rynex-border);
    height: 100%;
    transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-2px); }

.stat-card-link {
    color: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card-link:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    color: inherit;
}

.stat-card-link .stat-link-hint {
    color: var(--rynex-muted);
    opacity: 0.85;
}

.stat-card-link:hover .stat-link-hint {
    color: var(--rynex-primary);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.stat-card .stat-icon.blue { background: rgba(37, 99, 235, 0.1); color: var(--rynex-primary); }
.stat-card .stat-icon.green { background: rgba(0, 166, 80, 0.12); color: var(--bs-success); }
.stat-card .stat-icon.orange { background: rgba(255, 179, 0, 0.15); color: var(--bs-warning); }
.stat-card .stat-icon.amber { background: rgba(255, 179, 0, 0.15); color: var(--bs-warning); }
.stat-card .stat-icon.purple { background: rgba(99, 102, 241, 0.12); color: #6366f1; }

.stat-card .stat-label {
    color: var(--rynex-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rynex-secondary);
    line-height: 1.2;
}

.dashboard-welcome {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--rynex-secondary);
    border-radius: var(--rynex-radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--rynex-border);
}

.dashboard-welcome h2 { font-size: 1.25rem; margin-bottom: 0.35rem; color: var(--rynex-secondary); }
.dashboard-welcome p { color: var(--rynex-muted); margin: 0; }

.rynex-table-card {
    background: var(--rynex-surface);
    border-radius: var(--rynex-radius);
    border: 1px solid var(--rynex-border);
    box-shadow: var(--rynex-shadow);
    overflow: hidden;
}

.rynex-table-card .card-header {
    background: var(--rynex-surface);
    border-bottom: 1px solid var(--rynex-border);
    font-weight: 700;
    padding: 1rem 1.25rem;
}

.rynex-table-card .table { margin: 0; }
.rynex-table-card .table thead th {
    background: var(--rynex-surface-alt);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rynex-muted);
    font-weight: 700;
    border-bottom-width: 1px;
}

/* ── Footer ── */
.rynex-footer {
    background: var(--rynex-surface-alt);
    color: #475569;
    padding: 3.5rem 0 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--rynex-border);
}

.rynex-footer h5, .rynex-footer h6 {
    color: var(--rynex-secondary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.rynex-footer a {
    color: #64748b;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.925rem;
}

.rynex-footer a:hover { color: var(--rynex-primary); }

.rynex-footer .footer-brand { font-size: 1.35rem; font-weight: 700; color: var(--rynex-secondary); }
.rynex-footer .footer-brand span { color: var(--rynex-primary); }

.rynex-footer .social-links a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--rynex-border);
    color: var(--rynex-primary);
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    margin-bottom: 0;
}

.rynex-footer .social-links a:hover {
    background: var(--rynex-primary);
    color: #fff;
    border-color: var(--rynex-primary);
}

.public-main { flex: 1; }

.public-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

/* ── Utilities ── */
.text-muted-rynex { color: var(--rynex-muted) !important; }

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .portal-sidebar {
        transform: translateX(-100%);
    }

    .portal-sidebar.show {
        transform: translateX(0);
    }

    .portal-main {
        margin-left: 0;
    }

    .portal-sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1035;
    }

    .portal-sidebar-backdrop.show { display: block; }

    .search-bar { margin-top: -2rem; }
}

@media (max-width: 768px) {
    .hero-section { padding: 3rem 0 5rem; }
    .auth-card .auth-side { display: none; }
}

/* ── Image Slider ── */
.image-slider { position: relative; border-radius: 12px; overflow: hidden; background: var(--rynex-surface-alt, #f0f4f8); }
.image-slider .slider-viewport { position: relative; aspect-ratio: 16/10; }
.image-slider-compact .slider-viewport { aspect-ratio: 4/3; }
.image-slider .slider-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.image-slider .slider-slide.active { opacity: 1; pointer-events: auto; }
.image-slider .slider-slide img { width: 100%; height: 100%; object-fit: cover; }
.image-slider .slider-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border: none; border-radius: 50%;
    background: rgba(255,255,255,0.92); color: var(--rynex-primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 2;
    display: flex; align-items: center; justify-content: center;
}
.image-slider .slider-prev { left: 12px; }
.image-slider .slider-next { right: 12px; }
.image-slider .slider-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 2;
}
.image-slider .slider-dot {
    width: 8px; height: 8px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.5); padding: 0;
}
.image-slider .slider-dot.active { background: #fff; width: 22px; border-radius: 4px; }
.image-slider .slider-counter {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    background: rgba(0,0,0,0.55); color: #fff; font-size: 0.75rem;
    padding: 4px 10px; border-radius: 20px;
}

.property-gallery-main .slider-viewport { aspect-ratio: 21/9; max-height: 420px; }

.room-card-modern {
    display: grid; grid-template-columns: 280px 1fr auto; gap: 1.25rem;
    background: #fff; border: 1px solid var(--rynex-border, #e8edf2);
    border-radius: 12px; padding: 1rem; margin-bottom: 1rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.room-card-modern:hover { border-color: var(--rynex-primary); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08); }
@media (max-width: 768px) {
    .room-card-modern { grid-template-columns: 1fr; }
}

/* ── Property Portal Enhancements ── */
.portal-nav-section {
    font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; color: #94a3b8;
    padding: 1rem 1.25rem 0.35rem; margin-top: 0.5rem;
}

.upload-zone {
    border: 2px dashed var(--rynex-border, #cbd5e1); border-radius: 12px;
    padding: 2rem; text-align: center; background: var(--rynex-surface-alt, #f8fafc);
    cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--rynex-primary); background: rgba(37, 99, 235, 0.04); }
.upload-preview-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.upload-preview-item {
    width: 88px; height: 88px; border-radius: 8px; overflow: hidden;
    border: 2px solid var(--rynex-border); position: relative;
}
.upload-preview-item img { width: 100%; height: 100%; object-fit: cover; }

.room-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.room-photo-card {
    border-radius: 10px; overflow: hidden; border: 1px solid var(--rynex-border);
    background: #fff; position: relative;
}
.room-photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.room-photo-card .photo-actions { padding: 0.5rem; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.room-photo-card.is-cover { border-color: var(--rynex-primary); box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2); }
.room-photo-card .cover-badge {
    position: absolute; top: 8px; left: 8px; font-size: 0.65rem;
    background: var(--rynex-primary); color: #fff; padding: 2px 8px; border-radius: 4px;
}

.portal-table-card {
    background: #fff; border-radius: 12px; border: 1px solid var(--rynex-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden;
}
.portal-table-card .card-header {
    padding: 1rem 1.25rem; font-weight: 600; border-bottom: 1px solid var(--rynex-border);
    background: var(--rynex-surface-alt);
}
.occupancy-bar { height: 8px; border-radius: 4px; background: #dbeafe; overflow: hidden; }
.occupancy-bar-fill { height: 100%; background: linear-gradient(90deg, var(--rynex-primary), var(--rynex-accent)); border-radius: 4px; }

/* ── Accessibility & UX polish ── */
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 9999;
    padding: 0.75rem 1.25rem; background: var(--rynex-primary); color: #fff;
    font-weight: 600; border-radius: 0 0 8px 0; text-decoration: none;
}
.skip-link:focus { left: 0; outline: 3px solid #fff; outline-offset: 2px; }

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
}

.btn:focus-visible, .nav-link:focus-visible, .page-link:focus-visible, .form-control:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.btn.is-loading {
    pointer-events: none; opacity: 0.85; position: relative;
}
.btn.is-loading .btn-spinner {
    display: inline-block; width: 1rem; height: 1rem;
    border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%; animation: spin 0.6s linear infinite;
    vertical-align: -0.15em; margin-right: 0.35rem;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.property-card-link:focus-visible .property-card {
    outline: 3px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.search-filter-form.is-loading { opacity: 0.7; pointer-events: none; }

.text-muted-rynex { color: #475569 !important; }

/* Top progress bar for in-app navigation */
.nav-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--rynex-primary), #60a5fa);
    z-index: 9999;
    transition: width 0.35s ease;
    pointer-events: none;
}

.nav-progress.is-complete {
    width: 100%;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.3s ease 0.15s;
}

html { scroll-behavior: smooth; }

.portal-content,
.public-main {
    animation: page-fade-in 0.25s ease;
}

@keyframes page-fade-in {
    from { opacity: 0.6; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Booking funnel step indicator */
.booking-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.booking-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

.booking-step .step-num {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
}

.booking-step.active { color: var(--rynex-primary); }
.booking-step.active .step-num { background: var(--rynex-primary); color: #fff; }
.booking-step.done { color: #16a34a; }
.booking-step.done .step-num { background: #16a34a; color: #fff; }

.booking-step-connector {
    width: 2.5rem;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.25rem;
}

.booking-step-connector.done { background: #16a34a; }

@media (max-width: 576px) {
    .booking-step .step-label { display: none; }
    .booking-step-connector { width: 1.25rem; }
}

/* Report print & export */
.report-print-area {
    background: #fff;
}

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    .no-print,
    .portal-sidebar,
    .admin-sidebar,
    .navbar,
    .breadcrumb,
    .report-toolbar,
    .pagination,
    .report-export-actions,
    footer {
        display: none !important;
    }

    .report-print-area,
    .portal-table-card,
    .rynex-table-card,
    .stat-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }

    .table {
        font-size: 11px;
    }

    .table th,
    .table td {
        color: #000 !important;
        background: transparent !important;
    }

    a[href]::after {
        content: none !important;
    }
}
