:root {
    --bg: #f6f2eb;
    --surface: #fffaf3;
    --surface-strong: #ffffff;
    --ink: #172126;
    --muted: #667176;
    --line: #ded7cc;
    --brand: #0f766e;
    --brand-dark: #0b4f4a;
    --coral: #e85d4f;
    --gold: #d99b2b;
    --shadow: 0 18px 50px rgba(23, 33, 38, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(255, 250, 243, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border-radius: 8px;
    font-weight: 900;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topnav a,
button,
.primary-action,
.quick-filters a,
.filters a {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    color: var(--ink);
    padding: 9px 13px;
    cursor: pointer;
}

.nav-button,
.primary-action {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.primary-action:hover {
    background: var(--brand-dark);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: clamp(22px, 5vw, 72px);
    align-items: end;
    min-height: 560px;
    padding: clamp(40px, 7vw, 92px) clamp(18px, 4vw, 56px) 34px;
    background:
        linear-gradient(90deg, rgba(23,33,38,.76), rgba(23,33,38,.24)),
        url("https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1800&q=80") center/cover;
    color: #fff;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #a7f3d0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 980px;
    margin-bottom: 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: .98;
    letter-spacing: 0;
}

h2 {
    font-size: 24px;
    letter-spacing: 0;
}

h3 {
    font-size: 22px;
    letter-spacing: 0;
}

.hero p {
    max-width: 690px;
    color: rgba(255,255,255,.88);
    font-size: 19px;
    line-height: 1.55;
}

.search-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 250, 243, .96);
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--ink);
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

input,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 13px 12px;
}

.quick-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 18px clamp(18px, 4vw, 56px);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.quick-filters a {
    flex: 0 0 auto;
    font-weight: 800;
}

.results-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) minmax(280px, 32vw);
    gap: 18px;
    align-items: start;
    padding: 22px clamp(18px, 4vw, 56px) 52px;
}

.filters,
.map-panel,
.booking-card,
.panel-grid article,
.kanban article {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(23, 33, 38, .07);
}

.filters {
    position: sticky;
    top: 82px;
    display: grid;
    gap: 10px;
    padding: 16px;
}

.filters a {
    display: block;
}

.checkline {
    display: flex;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
}

.checkline input {
    width: auto;
}

.results-list {
    display: grid;
    gap: 14px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.property-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    overflow: hidden;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(23, 33, 38, .08);
}

.property-card img {
    width: 100%;
    height: 100%;
    min-height: 235px;
    object-fit: cover;
}

.property-body {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.property-title-row,
.card-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.property-title-row h3 {
    margin-bottom: 0;
}

.icon-button {
    min-width: 42px;
    padding: 8px;
    font-size: 22px;
}

.property-body p {
    color: var(--muted);
    line-height: 1.5;
}

.badge-row,
.fact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-row span,
.fact-grid span {
    padding: 7px 9px;
    border-radius: 8px;
    background: #eef8f5;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
}

.card-bottom span,
.price span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.price {
    text-align: right;
}

.map-panel {
    position: sticky;
    top: 82px;
    overflow: hidden;
}

.map-canvas {
    position: relative;
    min-height: 520px;
    background:
        linear-gradient(135deg, rgba(15,118,110,.2), rgba(217,155,43,.2)),
        repeating-linear-gradient(45deg, transparent 0 24px, rgba(255,255,255,.7) 24px 26px);
}

.map-pin {
    position: absolute;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: var(--shadow);
}

.map-note {
    display: grid;
    gap: 2px;
    padding: 14px;
}

.map-note span {
    color: var(--muted);
}

.detail-shell,
.page-shell {
    padding: 24px clamp(18px, 4vw, 56px) 64px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--brand-dark);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 20px;
    align-items: stretch;
}

.detail-hero img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 8px;
}

.detail-summary {
    display: grid;
    align-content: center;
    padding: clamp(20px, 4vw, 44px);
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.detail-summary h1 {
    color: var(--ink);
    font-size: clamp(34px, 5vw, 58px);
}

.detail-summary p {
    color: var(--muted);
    line-height: 1.6;
}

.detail-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 12px 0 18px;
}

.detail-kpis b,
.detail-kpis span {
    display: block;
}

.detail-kpis span {
    color: var(--muted);
    font-size: 13px;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    margin-top: 22px;
}

.detail-grid article {
    padding: 22px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.clean-list {
    display: grid;
    gap: 10px;
    padding-left: 20px;
    color: var(--muted);
}

.booking-card {
    position: sticky;
    top: 82px;
    padding: 18px;
}

.booking-card h2 span {
    color: var(--muted);
    font-size: 14px;
}

.booking-card dl {
    display: grid;
    gap: 8px;
}

.booking-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.wide {
    width: 100%;
}

.host-layout,
.admin-board {
    display: grid;
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}

.host-layout h1,
.admin-board h1 {
    color: var(--ink);
    font-size: clamp(38px, 6vw, 72px);
}

.host-layout p,
.admin-board p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.panel-grid,
.kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.kanban {
    grid-template-columns: repeat(3, 1fr);
}

.panel-grid article,
.kanban article {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.panel-grid span {
    color: var(--muted);
}

.site-footer {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 26px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.flash {
    margin: 14px clamp(18px, 4vw, 56px) 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    font-weight: 800;
}

.flash.success {
    border-color: rgba(15, 118, 110, .35);
    color: var(--brand-dark);
    background: #edf9f5;
}

.flash.warning {
    border-color: rgba(232, 93, 79, .35);
    color: #8a261d;
    background: #fff0ed;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 150px);
}

.auth-card,
.table-card {
    width: min(100%, 760px);
    padding: 22px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(23, 33, 38, .08);
}

.auth-card form,
.booking-form {
    display: grid;
    gap: 12px;
}

.auth-card h1 {
    color: var(--ink);
    font-size: clamp(34px, 5vw, 58px);
}

.booking-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.account-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr);
    gap: 22px;
    align-items: start;
}

.account-layout h1,
.checkout-layout h1 {
    color: var(--ink);
    font-size: clamp(34px, 5vw, 64px);
}

.data-table {
    display: grid;
    gap: 8px;
}

.data-row {
    display: grid;
    grid-template-columns: 80px minmax(160px, 1.4fr) minmax(110px, .7fr) minmax(100px, .7fr) minmax(100px, .7fr) minmax(220px, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.account-layout .data-row {
    grid-template-columns: minmax(180px, 1.4fr) minmax(170px, 1fr) minmax(90px, .6fr) minmax(90px, .6fr) minmax(90px, .6fr);
}

.data-row.head {
    background: #eef8f5;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inline-actions form {
    display: inline-flex;
}

.inline-actions button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
    font-weight: 800;
}

.muted-line {
    color: var(--muted);
}

@media (max-width: 1120px) {
    .results-shell {
        grid-template-columns: 1fr;
    }

    .filters,
    .map-panel {
        position: static;
    }

    .filters {
        display: flex;
        overflow-x: auto;
    }

    .map-canvas {
        min-height: 300px;
    }
}

@media (max-width: 820px) {
    .topbar,
    .section-head,
    .property-title-row,
    .card-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .topnav {
        width: 100%;
        overflow-x: auto;
    }

    .hero,
    .detail-hero,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .property-card {
        grid-template-columns: 1fr;
    }

    .property-card img,
    .detail-hero img {
        height: 260px;
    }

    .price {
        text-align: left;
    }

    .panel-grid,
    .kanban,
    .account-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .data-row,
    .account-layout .data-row {
        grid-template-columns: 1fr;
    }
}
