@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700;800&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Real Estate premium palette */
    --primary: #1e3a8a;
    /* Deep Navy Blue */
    --primary-dark: #1e1b4b;
    --primary-light: #e0e7ff;
    --accent: #f59e0b;
    /* Golden Amber for highlights */
    --accent-glow: rgba(245, 158, 11, 0.35);

    --success: #059669;
    --warning: #d97706;
    --danger: #e11d48;

    /* Base Colors */
    --bg-dark: #fcfdfe;
    --bg-card: #ffffff;
    --surface-2: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --dark: #020617;

    /* Effects */
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(30, 58, 138, 0.08);
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-glow: 0 18px 45px rgba(30, 58, 138, 0.15);

    --radius: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(30, 58, 138, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.08) 0%, transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
}

/* --- Header --- */
header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tabs-wrapper {
    margin-bottom: 20px;
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    background: var(--surface-2);
    padding: 6px;
    border-radius: 14px;
    width: fit-content;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: rgba(15, 118, 110, 0.08);
}

.tab-btn.active {
    background: #ffffff;
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(8, 46, 43, 0.12);
}

.tab-btn span {
    font-size: 16px;
}

/* Mobile friendly */
@media (max-width: 480px) {
    .tabs {
        width: 100%;
        justify-content: space-between;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 13px;
    }
}

.section-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

.section-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), #0f766e);
    transform: translateY(-1px);
}

/* Tests grid */
.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

/* Mobile polish */
@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary {
        width: 100%;
    }
}

/* Container */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Row */
.user-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--light-gray);

    /* 🔑 critical */
    width: 100%;
    box-sizing: border-box;
}

/* Left side */
.user-left {
    display: flex;
    flex-direction: column;
    gap: 4px;

    /* 🔑 allow shrinking */
    min-width: 0;
}

.user-left strong {
    font-size: 14px;
    color: #111;
}

.user-left span {
    font-size: 13px;
    color: #666;

    /* 🔑 break long emails */
    word-break: break-all;
}

/* Right side */
.user-right {
    font-size: 14px;
    font-weight: 600;
    color: #111;

    /* 🔑 prevent clipping */
    white-space: nowrap;
}

/* Mobile fix */
@media (max-width: 480px) {
    .user-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .user-left {
        width: 100%;
    }

    .user-left span {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .user-right {
        margin-top: 0;
        width: 100%;
        white-space: normal;
        word-break: break-all;
    }
}

/* Table responsive fixes */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 100%;
        font-size: 14px;
    }

    th,
    td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }

    /* Make cards stack better on mobile */
    .section-card {
        padding: 16px;
        border-radius: 12px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    /* Prevent horizontal overflow */
    .container {
        padding: 0 1rem;
    }

    body {
        overflow-x: hidden;
    }
}

/* --- Booking Cards --- */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: box-shadow 0.2s ease;
}

.booking-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.booking-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.booking-email {
    margin: 4px 0 0;
    font-size: 13px;
    color: #666;
    word-break: break-word;
}

.booking-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.booking-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: #111;
    font-weight: 600;
    word-break: break-word;
}

.booking-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

.status-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.status-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.status-select:focus {
    outline: none;
    border-color: #4f46e5;
}

.status-select:hover {
    border-color: #d1d5db;
}

/* Mobile optimization for booking cards */
@media (max-width: 600px) {
    .booking-details {
        grid-template-columns: 1fr;
    }

    .booking-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --- Admin Sidebar Layout --- */
.admin-layout {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
    background: var(--bg-dark);
}

.admin-sidebar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.sidebar-header {
    padding: 0 20px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.sidebar-subtitle {
    margin: 4px 0 0;
    font-size: 12px;
    color: #666;
}

.sidebar-nav {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar-nav::-webkit-scrollbar {
    height: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 100px;
    flex-shrink: 0;
}

.sidebar-item:hover {
    background: #f3f4f6;
}

.sidebar-item.active {
    background: #4f46e5;
    color: #ffffff;
}

.sidebar-item.active .sidebar-text {
    color: #ffffff;
    font-weight: 600;
}

.sidebar-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.sidebar-text {
    font-size: 13px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
}

.sidebar-item.active .sidebar-text {
    color: #ffffff;
}

.admin-main {
    flex: 1;
    overflow-x: hidden;
}




.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    letter-spacing: -0.02em;
    font-family: 'Fraunces', serif;
}

.logo span {
    background: linear-gradient(120deg, #10b981, #059669);
    /* Green for 'Free' */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo {
    color: #1e3a8a;
    /* Blue for 'Dalali' */
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    padding: 8rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    min-height: auto;
    background: radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.18), transparent 70%);
}

.hero-split {
    padding: 2.8rem 2rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 85vh;
    text-align: left;
    background: none;
    max-width: 1400px;
    /* Wider container */
    margin: 0 auto;
}

.hero-content {
    order: 1;
}

.hero-image {
    order: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 800px;
    /* Allow bigger image */
    height: auto;
    border-radius: 24px;
    filter: drop-shadow(0 30px 50px rgba(8, 46, 43, 0.18));
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 4.6rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e1b4b 0%, #1e3a8a 45%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-split h1 {
    font-size: 5.1rem;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-split p {
    margin-left: 0;
    margin-right: 0;
    max-width: 540px;
}

.hero-cta {
    display: none;
    margin-bottom: 1.5rem;
}

.mobile-only {
    display: none !important;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-split .hero-buttons {
    justify-content: flex-start;
}

/* --- Page Hero --- */
.page-hero {
    padding: 4.5rem 0 3rem;
    background: linear-gradient(180deg, rgba(15, 118, 110, 0.08) 0%, rgba(247, 251, 250, 0) 100%);
}

.page-hero-content {
    max-width: 720px;
}

.page-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 3.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.page-hero p {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about-hero {
    padding: 5rem 0 4rem;
    background:
        radial-gradient(circle at 15% 20%, rgba(20, 184, 166, 0.2), transparent 45%),
        radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.18), transparent 40%),
        linear-gradient(180deg, rgba(15, 118, 110, 0.1) 0%, rgba(247, 251, 250, 0) 70%);
}

.about-hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.about-hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 3.6rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.about-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.about-highlight {
    background: #ffffff;
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 22px 40px rgba(8, 46, 43, 0.14);
}

.about-highlight h3 {
    margin-bottom: 0.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.about-stat {
    background: var(--surface-2);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    border: 1px solid var(--light-gray);
}

.about-stat strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.4rem;
}

.about-stat span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .about-hero-content {
        grid-template-columns: 1fr;
    }

    .about-hero h1 {
        font-size: 2.6rem;
    }
}

/* --- About Page --- */
.about-story {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 3rem;
}

.story-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(8, 46, 43, 0.12);
}

.story-card h2 {
    margin-bottom: 1rem;
}

.story-card p {
    margin-bottom: 1rem;
}

.story-accent {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(15, 118, 110, 0.15);
    border-radius: 24px;
    padding: 2rem;
    display: grid;
    gap: 1rem;
}

.accent-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.15);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.9rem;
    width: fit-content;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 2.5rem 0 4rem;
}

.trust-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 12px 24px rgba(8, 46, 43, 0.08);
}

.trust-card strong {
    display: block;
    font-size: 1.6rem;
    color: var(--primary-dark);
}

.trust-card span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.8rem;
    border: 1px solid var(--border);
    box-shadow: 0 12px 26px rgba(8, 46, 43, 0.08);
}

.value-card h3 {
    margin-bottom: 0.6rem;
}

.timeline {
    position: relative;
    padding-left: 1.5rem;
    margin: 3rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), rgba(15, 118, 110, 0.1));
}

.timeline-item {
    position: relative;
    padding: 0.5rem 0 1.8rem 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.1rem;
    top: 0.75rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.15);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.team-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.6rem;
    text-align: center;
    box-shadow: 0 14px 26px rgba(8, 46, 43, 0.08);
}

.avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: radial-gradient(circle at 30% 30%, rgba(20, 184, 166, 0.2), rgba(15, 118, 110, 0.1));
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--primary-dark);
}

@media (max-width: 900px) {
    .about-story {
        grid-template-columns: 1fr;
    }

    .trust-strip,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--primary-dark);
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(15, 118, 110, 0.2);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.metric {
    background: var(--surface-2);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--light-gray);
}

.metric strong {
    display: block;
    font-size: 1.3rem;
    color: var(--dark);
}

.metric span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Custom Select Dropdown */
.custom-select {
    position: relative;
    width: 100%;
    user-select: none;
}

.select-trigger {
    background: white;
    border: 2px solid var(--border);
    padding: 0.9rem 1.2rem;
    border-radius: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
}

.select-trigger:after {
    content: '↓';
    font-size: 1.1rem;
    color: var(--primary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.custom-select.active .select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.custom-select.active .select-trigger:after {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 1.2rem;
    border: 1px solid var(--border);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    z-index: 200;
    display: none;
    overflow: hidden;
    transform-origin: top;
    animation: dropIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select.active .select-options {
    display: block;
}

.select-option {
    padding: 0.9rem 1.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--text-muted);
}

.select-option:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 1.8rem;
}

.select-option.selected {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: scaleY(0.9) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scaleY(1) translateY(0);
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #10b981);
    color: #ffffff !important;
    box-shadow: 0 12px 24px rgba(15, 118, 110, 0.25);
}

.nav-links .btn-primary {
    color: #ffffff !important;
}

.nav-links .btn {
    padding: 0.8rem 1.5rem;
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary-dark);
    border: 1px solid rgba(15, 118, 110, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: rgba(15, 118, 110, 0.3);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    color: white;
}

/* --- Cards --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading p {
    margin-bottom: 0;
    max-width: 680px;
}

.cta-panel {
    background: linear-gradient(135deg, #ffffff 0%, #e8f7f3 100%);
    border: 1px solid rgba(15, 118, 110, 0.12);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: 0 24px 45px rgba(8, 46, 43, 0.12);
}

.feature-icon {
    background: rgba(20, 184, 166, 0.12);
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2.2rem;
}

.search-bar {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding-left: 3rem;
    border-radius: 999px;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    color: var(--gray);
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(15, 118, 110, 0.12);
    padding: 2rem;
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: var(--shadow-glow);
}

h2 {
    font-family: 'Fraunces', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* --- Stats & Grids --- */
.grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    width: 100%;
}

/* --- Stats Grid & Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 10px;
}

.stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(8, 46, 43, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(8, 46, 43, 0.16);
}

.stat-left p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-left h3 {
    margin: 6px 0 0;
    font-size: 30px;
    font-weight: 700;
    color: var(--text-main);
}

.stat-icon {
    font-size: 34px;
    opacity: 0.9;
}

/* Accent colors */
.stat-card.users {
    border-left: 5px solid var(--primary);
}

.stat-card.bookings {
    border-left: 5px solid #10b981;
}

.stat-card.pending {
    border-left: 5px solid #f59e0b;
}

.stat-card.reports {
    border-left: 5px solid #f97316;
}

/* --- Forms --- */
/* --- Forms --- */
input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--surface-2);
    border: 2px solid var(--border);
    border-radius: 1rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16);
}

label {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Tables --- */
.table-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

th {
    background: var(--surface-2);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 1.5rem;
    text-align: left;
}

td {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-main);
}

tr:hover {
    background: rgba(15, 118, 110, 0.08);
}

/* --- Brand & Logo --- */
.logo {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--success);
    background: var(--primary-light);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 1rem;
    margin-left: 2px;
}

/* --- Dashboard Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #ffffff !important;
    padding: 2rem !important;
    border-radius: 1.5rem !important;
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

/* --- Dashboard & Sidbars --- */
.dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.sidebar-menu,
.admin-sidebar {
    background: #ffffff !important;
    border-radius: 1.2rem !important;
    border: 1px solid var(--border) !important;
    padding: 1.2rem !important;
    height: fit-content;
    box-shadow: var(--shadow);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.menu-item {
    all: unset !important;
    /* Reset all browser defaults */
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
    padding: 0.7rem 1rem !important;
    border-radius: 0.8rem !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
    font-family: 'Manrope', sans-serif !important;
    font-size: 1rem !important;
    background: transparent !important;
    white-space: nowrap !important;
}

.menu-item:hover,
.menu-item.active {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

.menu-item.logout-btn {
    margin-top: 1.5rem !important;
    color: var(--danger) !important;
}

.menu-item.logout-btn:hover {
    background: #fff1f2 !important;
}

/* --- Badges --- */
.badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-confirmed {
    background: rgba(14, 116, 144, 0.18);
    color: #0f766e;
    border: 1px solid rgba(14, 116, 144, 0.35);
}

.badge-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-cancelled {
    background: rgba(220, 38, 38, 0.18);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.35);
}

/* --- Animations --- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Benefit Scroller Animation */
.benefit-scroller {
    height: 40px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    background: rgba(30, 58, 138, 0.05);
    /* Unified with hero theme */
    border-radius: 50px;
    padding: 0 1.5rem;
    width: fit-content;
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.benefit-items {
    animation: scrollBenefits 8s infinite cubic-bezier(0.7, 0, 0.3, 1);
}

.benefit-item {
    height: 40px;
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

@keyframes scrollBenefits {

    0%,
    20% {
        transform: translateY(0);
    }

    25%,
    45% {
        transform: translateY(-40px);
    }

    50%,
    70% {
        transform: translateY(-80px);
    }

    75%,
    100% {
        transform: translateY(-120px);
    }
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    /* Add white background to separate footer */
    margin-top: 4rem;
}

/* --- Mobile --- */
/* --- Responsive Design --- */
@media (max-width: 800px) {

    /* Sidebars to top navigation for dashboards */
    .admin-sidebar {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid var(--border) !important;
        padding: 0.5rem !important;
    }

    .sidebar-nav {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 0.5rem !important;
        padding: 0.5rem !important;
        scrollbar-width: none;
    }

    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .menu-item {
        flex: 0 0 auto;
        width: auto !important;
        margin-bottom: 0 !important;
        padding: 0.6rem 1rem !important;
        background: var(--surface-2) !important;
        font-size: 0.85rem !important;
        border-radius: 50px !important;
    }

    .menu-item.logout-btn {
        margin-top: 0 !important;
        margin-left: auto;
    }

    .admin-main {
        margin-left: 0 !important;
        padding: 1.5rem 0 !important;
    }

    .dashboard-container {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding-top: 0 !important;
    }

    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0.5rem;
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        background: transparent !important;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-split {
        grid-template-columns: 1fr;
        padding: 5rem 1rem 3rem;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-split h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }

    .benefit-scroller {
        margin: 0 auto 2.5rem;
        background: rgba(30, 58, 138, 0.08);
        border: 1px solid rgba(30, 58, 138, 0.15);
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .browse-layout {
        grid-template-columns: 1fr !important;
    }

    .filters-sidebar {
        position: static !important;
        margin-bottom: 2rem;
    }

    .property-split,
    .property-main {
        grid-template-columns: 1fr !important;
    }

    .gallery {
        grid-template-columns: 1fr !important;
    }

    .main-image {
        height: 300px !important;
    }

    .side-image {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .hero-split h1 {
        font-size: 2.22rem;
        background: linear-gradient(135deg, #1e1b4b 0%, #1e3a8a 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -1px;
    }

    .hero-content p {
        display: none;
    }

    .hero-buttons {
        gap: 0.75rem;
        width: 100%;
    }

    .hero-buttons .btn {
        flex: 1;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        border-radius: 40px;
        text-align: center;
    }

    .search-tab {
        display: none !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .listing-card {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1rem;
    }

    .listing-img {
        width: 100% !important;
        height: 180px !important;
    }
}

/* --- Utility --- */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

/* Modal & Other UI Components */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}