:root {
    --navy: #073754;
    --navy-deep: #05283e;
    --blue: #168dbb;
    --gold: #c99a2e;
    --gold-light: #f2d78e;
    --paper: #ffffff;
    --mist: #f3f7f8;
    --ink: #173244;
    --muted: #667985;
    --line: #dbe4e8;
    --success: #197450;
    --danger: #ad3535;
    --shadow: 0 18px 50px rgba(5, 40, 62, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(219, 228, 232, 0.8);
    backdrop-filter: blur(14px);
}
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 116px; height: 72px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 30px; color: var(--navy); font-weight: 700; }
.main-nav a:not(.nav-cta):hover { color: var(--blue); }
.nav-cta, .button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.nav-cta, .button-primary { color: #fff; background: var(--gold); box-shadow: 0 10px 24px rgba(201, 154, 46, 0.25); }
.nav-cta:hover, .button-primary:hover { transform: translateY(-1px); background: #b88920; }
.button-secondary { color: var(--navy); background: #fff; border-color: var(--line); }
.button-light { color: var(--navy); background: #fff; border-color: var(--line); }
.button-full { width: 100%; }
.button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.menu-button { display: none; color: var(--navy); background: none; border: 0; font-size: 1.75rem; cursor: pointer; }

.hero {
    position: relative;
    z-index: 2;
    overflow: visible;
    color: #fff;
    background:
        radial-gradient(circle at 84% 25%, rgba(22, 141, 187, 0.36), transparent 28%),
        radial-gradient(circle at 8% 90%, rgba(201, 154, 46, 0.2), transparent 28%),
        var(--navy-deep);
}
.hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -170px;
    bottom: 0;
    border: 70px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
}
.hero-grid { position: relative; z-index: 1; min-height: 570px; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 74px; padding-block: 72px; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.hero h1, .section h2, .login-brand-panel h1, .login-card h2, .admin-topbar h1, .data-panel h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: inherit;
    font-weight: 500;
    line-height: 1.08;
}
.hero h1 { max-width: 720px; font-size: clamp(2.6rem, 5.4vw, 4.75rem); letter-spacing: -0.03em; }
.hero-text { max-width: 650px; margin: 24px 0; color: #d8e7ee; font-size: 1.12rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #eff6f8; font-size: 0.9rem; }
.trust-row span::before { content: "✓"; margin-right: 8px; color: var(--gold-light); font-weight: 900; }

.availability-card { padding: 30px; color: var(--ink); background: #fff; border-radius: 16px; box-shadow: 0 28px 70px rgba(0, 18, 29, 0.38); }
.availability-card h2 { margin: 0 0 20px; color: var(--navy); font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; }
.availability-card label, .login-form label { display: grid; gap: 7px; margin-bottom: 16px; color: var(--navy); font-size: 0.9rem; font-weight: 800; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.date-range-picker { position: relative; }
.date-range-trigger {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    color: var(--ink);
    text-align: left;
    background: #fff;
    border: 1px solid #ccd8dd;
    border-radius: 7px;
    cursor: pointer;
}
.date-range-trigger:hover { border-color: #9fb4bd; }
.date-range-trigger:focus-visible { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(22, 141, 187, 0.13); }
.date-range-popover {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    left: 0;
    width: min(360px, calc(100vw - 56px));
    padding: 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: 0 20px 50px rgba(5, 40, 62, 0.22);
}
.date-range-popover[hidden] { display: none; }
.date-range-header { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: 8px; margin-bottom: 12px; }
.date-range-header strong { color: var(--navy); text-align: center; }
.date-range-header button { width: 38px; height: 38px; padding: 0; color: var(--navy); background: var(--mist); border: 0; border-radius: 50%; font-size: 1.35rem; cursor: pointer; }
.date-range-header button:hover:not(:disabled) { background: #e3ecef; }
.date-range-header button:disabled { opacity: .35; cursor: not-allowed; }
.date-range-weekdays, .date-range-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.date-range-weekdays { margin-bottom: 4px; color: var(--muted); font-size: .68rem; font-weight: 850; text-align: center; }
.date-range-day { position: relative; min-width: 0; aspect-ratio: 1; padding: 0; color: var(--navy); background: transparent; border: 0; border-radius: 50%; font-size: .78rem; font-weight: 750; cursor: pointer; }
.date-range-day:hover:not(:disabled) { background: #eaf2f5; }
.date-range-day.in-range { color: var(--navy-deep); background: #edf3df; border-radius: 0; }
.date-range-day.range-start, .date-range-day.range-end { color: #fff; background: var(--gold); border-radius: 50%; }
.date-range-day.today:not(.range-start):not(.range-end) { box-shadow: inset 0 0 0 1px var(--gold); }
.date-range-day:disabled { color: #b3bec4; cursor: not-allowed; text-decoration: line-through; }
.date-range-day.empty { pointer-events: none; }
.date-range-help { margin: 12px 0 0; color: var(--muted); font-size: .76rem; font-weight: 650; text-align: center; }
input, select {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #ccd8dd;
    border-radius: 7px;
    outline: none;
}
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 141, 187, 0.13); }
.form-error { margin: 12px 0 0; color: var(--danger); font-size: 0.9rem; font-weight: 700; }

.section { padding: 92px 0; }
.section-heading { margin-bottom: 36px; }
.section-heading h2, .cleaning-section h2, .about-section h2 { color: var(--navy); font-size: clamp(2rem, 4vw, 3.2rem); }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.heading-row > p { margin: 0; color: var(--muted); }
.property-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin: -8px 0 28px; padding: 18px; background: var(--mist); border: 1px solid var(--line); border-radius: 11px; }
.property-filters label { display: grid; min-width: 210px; gap: 5px; color: var(--navy); font-size: .8rem; font-weight: 850; }
.property-filters select { min-height: 44px; }
.property-filter-clear { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; color: var(--blue); font-size: .86rem; font-weight: 850; }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.property-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 12px 36px rgba(5, 40, 62, 0.08); }
.property-card-link { display: block; cursor: pointer; transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease; }
.property-card-link:hover { transform: translateY(-4px); border-color: #b8cad1; box-shadow: 0 18px 44px rgba(5, 40, 62, 0.14); }
.property-card-link:focus-visible { outline: 3px solid rgba(22, 141, 187, .38); outline-offset: 4px; }
.property-image { width: 100%; height: 235px; object-fit: cover; background: #e7eef1; }
.property-placeholder { display: grid; place-items: center; color: #7b8e99; background: linear-gradient(135deg, #e6eef1, #f5f8f9); font-weight: 800; }
.property-body { padding: 22px; }
.property-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-pill { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 0.73rem; font-weight: 900; }
.status-pill.available { color: #146040; background: #e3f4eb; }
.status-pill.unavailable { color: #7c5454; background: #f4e9e9; }
.price { color: var(--navy); font-size: 1.13rem; font-weight: 900; white-space: nowrap; }
.price small { color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.property-card h3 { margin: 17px 0 4px; color: var(--navy); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.location, .property-description { color: var(--muted); }
.location { margin: 0; font-size: 0.9rem; }
.property-facts { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 0.83rem; font-weight: 800; }
.property-description { margin: 15px 0 0; font-size: 0.93rem; }
.notice, .empty-state { padding: 42px; text-align: center; background: var(--mist); border: 1px solid var(--line); border-radius: 13px; }
.empty-state h3 { margin: 0 0 6px; color: var(--navy); font-family: Georgia, serif; font-size: 1.55rem; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }

.cleaning-section { color: #fff; background: var(--navy); }
.cleaning-section h2 { color: #fff; }
.cleaning-section p:not(.eyebrow) { max-width: 650px; color: #d3e2e9; }
.split-panel { display: grid; grid-template-columns: 1fr 0.85fr; align-items: center; gap: 80px; }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-list span { padding: 18px; color: var(--navy); background: #fff; border-left: 4px solid var(--gold); border-radius: 7px; font-weight: 800; }
.about-section { text-align: center; background: var(--mist); }
.about-section p:last-child { margin: 22px auto 0; color: var(--muted); font-size: 1.08rem; }
.site-footer { padding: 28px 0; color: #b9ccd6; background: var(--navy-deep); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner div { display: grid; }
.footer-inner strong { color: #fff; }
.footer-inner a { color: var(--gold-light); font-weight: 800; }

/* Login */
.admin-auth-page { min-height: 100vh; background: var(--mist); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 0.8fr) 1.2fr; }
.login-brand-panel { display: flex; flex-direction: column; justify-content: space-between; padding: 56px; color: #fff; background: radial-gradient(circle at 20% 15%, rgba(22, 141, 187, 0.28), transparent 30%), var(--navy-deep); }
.brand-large img { width: 150px; height: 100px; padding: 6px; background: #fff; border-radius: 10px; }
.login-brand-panel h1 { max-width: 580px; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.login-brand-panel p:last-child { color: #c6d9e2; }
.login-form-panel { display: grid; place-items: center; padding: 44px 24px; }
.login-card { width: min(460px, 100%); padding: 38px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.login-card h2 { color: var(--navy); font-size: 2.5rem; }
.back-link { display: inline-block; margin-bottom: 38px; color: var(--blue); font-weight: 800; }
.muted { margin: 8px 0 26px; color: var(--muted); }
.login-form { margin-top: 22px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 70px; }
.password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 6px 8px; color: var(--blue); background: transparent; border: 0; font-size: 0.8rem; font-weight: 900; cursor: pointer; }
.alert { margin: 18px 0; padding: 13px 15px; border-radius: 7px; font-size: 0.9rem; font-weight: 700; }
.alert-error { color: #872828; background: #fbeaea; border: 1px solid #efc6c6; }
.alert-success { color: #185d40; background: #e8f6ee; border: 1px solid #bee5d0; }

/* Dashboard */
.dashboard-page { min-height: 100vh; background: #f4f7f8; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; display: flex; flex-direction: column; padding: 25px 20px; color: #d4e2e9; background: var(--navy-deep); }
.admin-brand { display: block; margin-bottom: 38px; }
.admin-brand img { width: 124px; height: 80px; padding: 5px; background: #fff; border-radius: 8px; }
.admin-sidebar nav { display: grid; gap: 7px; }
.admin-sidebar nav a { padding: 11px 13px; border-radius: 7px; font-weight: 750; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.admin-sidebar nav a.active { border-left: 3px solid var(--gold); }
.view-site-link { margin-top: auto; color: var(--gold-light); font-weight: 800; }
.admin-main { margin-left: 250px; padding: 42px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.admin-topbar h1 { color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.stat-card { min-height: 150px; display: flex; flex-direction: column; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 8px 25px rgba(5, 40, 62, 0.06); }
.stat-card.accent { color: #fff; background: var(--navy); border-color: var(--navy); }
.stat-card span { font-size: 0.85rem; font-weight: 850; }
.stat-card strong { margin: auto 0 0; color: var(--gold); font-family: Georgia, serif; font-size: 2.7rem; line-height: 1; }
.stat-card small { margin-top: 7px; color: var(--muted); }
.stat-card.accent small { color: #c7d9e2; }
.dashboard-grid { display: grid; gap: 22px; margin-top: 24px; }
.data-panel { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.panel-heading { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.data-panel h2 { color: var(--navy); font-size: 1.55rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 24px; text-align: left; border-bottom: 1px solid #e8edef; white-space: nowrap; }
th { color: var(--muted); background: #fbfcfc; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
td { font-size: 0.9rem; }
tbody tr:last-child td { border-bottom: 0; }
.table-status { display: inline-flex; padding: 4px 8px; color: #7d5913; background: #fbf2dc; border-radius: 999px; font-size: 0.76rem; font-weight: 850; }
.panel-empty { padding: 34px 24px; color: var(--muted); }

@media (max-width: 1050px) {
    .hero-grid { grid-template-columns: 1fr; gap: 38px; }
    .availability-card { max-width: 650px; }
    .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .container { width: min(100% - 28px, 1160px); }
    .header-inner { min-height: 76px; }
    .brand img { width: 96px; height: 60px; }
    .menu-button { display: block; }
    .main-nav { position: absolute; top: 76px; left: 0; right: 0; display: none; align-items: stretch; padding: 22px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .main-nav.open { display: grid; }
    .main-nav a { padding: 8px; }
    .hero-grid { min-height: auto; padding-block: 58px; }
    .section { padding: 68px 0; }
    .property-grid, .split-panel { grid-template-columns: 1fr; }
    .heading-row { display: block; }
    .heading-row > p { margin-top: 10px; }
    .split-panel { gap: 32px; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
    .login-shell { grid-template-columns: 1fr; }
    .login-brand-panel { min-height: 340px; padding: 32px 24px; }
    .login-form-panel { padding: 28px 14px; }
    .admin-sidebar { position: static; width: 100%; }
    .admin-sidebar nav { grid-template-columns: repeat(2, 1fr); }
    .view-site-link { margin-top: 24px; }
    .admin-main { margin-left: 0; padding: 28px 14px; }
    .admin-topbar { align-items: flex-start; }
}

@media (max-width: 520px) {
    .form-row, .service-list, .stat-grid { grid-template-columns: 1fr; }
    .availability-card, .login-card { padding: 24px 19px; }
    .property-grid { grid-template-columns: 1fr; }
    .property-filters { align-items: stretch; }
    .property-filters label { width: 100%; min-width: 0; }
    .date-range-popover { left: 50%; transform: translateX(-50%); }
    .admin-topbar { flex-direction: column; }
    .admin-sidebar nav { grid-template-columns: 1fr; }
}
