:root {
    color-scheme: dark;
    --red: #ed4434;
    --red-dark: #bd3025;
    --ink: #f2f4f5;
    --muted: #aeb6bc;
    --line: #363d42;
    --surface: #181c1f;
    --panel: #22272b;
    --page: #101315;
    --white: #ffffff;
    --green: #70d69e;
    --amber: #ffc45c;
    font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--page); color: var(--ink); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 10px max(24px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    background: var(--red);
}

.brand { display: block; width: min(285px, 38vw); line-height: 0; }
.brand img { display: block; width: 100%; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a, .site-header nav button { border: 0; background: none; color: var(--white); font-weight: 800; text-decoration: none; cursor: pointer; }
.site-header nav a:hover, .site-header nav button:hover { color: #ffe8e4; }
.site-header nav form { margin: 0; }
.site-header .nav-login { padding: 10px 15px; border: 1px solid rgba(255, 255, 255, .9); color: var(--white); border-radius: 4px; }
.site-header .nav-login:hover { background: var(--white); color: var(--red-dark); }

.account-strip {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 7px max(24px, calc((100vw - 1180px) / 2));
    background: #191d20;
    color: var(--white);
    font-size: 13px;
}
.account-strip span:last-child { color: var(--muted); }

main { flex: 1 0 auto; width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.listing-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    min-height: 340px;
    padding: 72px 0 52px;
    border-bottom: 4px solid var(--red);
}
.listing-intro > div { max-width: 760px; }
.eyebrow { display: block; margin-bottom: 8px; color: #ff694d; font-size: 12px; font-weight: 800; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(42px, 7vw, 78px); line-height: 1; }
.listing-intro p { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 21px; }
.primary-action, .secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 4px;
    font-weight: 800;
    text-decoration: none;
}
.primary-action { background: var(--red-dark); color: var(--white); }
.primary-action:hover { background: #aa1a00; }
.secondary-action { border: 1px solid var(--line); background: var(--panel); }
.secondary-action:hover { border-color: var(--red); color: #ff795f; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; padding: 72px 0; }
.about-grid h2, .availability h2, .contact-section h2, .section-heading h2 { margin-bottom: 18px; font-size: 30px; line-height: 1.2; }
.about-grid p { color: #c1c7cb; }
.availability { padding: 50px 0 22px; border-top: 1px solid var(--line); }
.unit-list { display: grid; gap: 14px; padding-bottom: 78px; }
.unit-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 230px;
    min-height: 190px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--panel);
}
.unit-mark { display: grid; place-items: center; background: #0a0c0d; color: var(--white); }
.unit-mark span { max-width: 110px; overflow-wrap: anywhere; font-size: 19px; font-weight: 800; text-align: center; }
.unit-content { padding: 25px 28px; }
.unit-content h2 { margin-bottom: 3px; font-size: 25px; }
.unit-address { color: var(--muted); }
.unit-facts, .contract-facts { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 20px 0 0; }
.unit-facts div, .contract-facts div { min-width: 92px; }
.unit-facts dt, .contract-facts dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.unit-facts dd, .contract-facts dd { margin: 2px 0 0; font-weight: 700; }
.unit-price { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 24px; border-left: 1px solid var(--line); background: var(--surface); text-align: right; }
.unit-price span, .unit-price small { color: var(--muted); }
.unit-price strong { margin: 2px 0; font-size: 22px; }
.unit-price a { margin-top: 18px; color: #ff795f; font-weight: 800; }

.contact-section { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 70px; margin: 0; padding: 64px; border: 1px solid var(--line); background: #1b1f22; color: var(--white); }
.contact-details p { color: #c4cbd0; }
.contact-details > a { display: block; margin: 7px 0; color: var(--white); font-size: 18px; font-weight: 700; }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label, .auth-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.contact-form input, .contact-form textarea, .auth-form input { width: 100%; padding: 12px 13px; border: 1px solid #59636a; border-radius: 4px; background: #111416; color: var(--ink); outline: none; }
.contact-form input:focus, .contact-form textarea:focus, .auth-form input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(237, 68, 52, .2); }
.contact-form textarea { resize: vertical; }
.contact-form button, .auth-form button { justify-self: start; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 4px; background: var(--red-dark); color: var(--white); font-weight: 800; cursor: pointer; }
.contact-form button:hover, .auth-form button:hover { background: #aa1a00; }
.honey { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.notice { padding: 12px 14px; border: 1px solid; border-radius: 4px; }
.notice.success { border-color: #347a55; background: #142a1e; color: #9be4bb; }
.notice.error { border-color: #93433c; background: #321a18; color: #ffaaa2; }
.page-notice { margin: 24px 0; }
.empty-state { padding: 32px; border: 1px dashed #596168; border-radius: 6px; background: var(--surface); color: var(--muted); text-align: center; }
.empty-state h2 { margin-bottom: 7px; color: var(--ink); font-size: 22px; }
.empty-state p { margin: 0; }

.auth-page { display: grid; place-items: start center; min-height: 650px; padding: 72px 0; }
.auth-panel { width: min(460px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.auth-panel h1 { margin-bottom: 26px; font-size: 34px; line-height: 1.15; }
.auth-form { display: grid; gap: 17px; }
.auth-form .notice { margin-bottom: 4px; }

.account-page { padding: 55px 0 80px; }
.account-title { display: flex; align-items: end; justify-content: space-between; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.account-title h1 { margin-bottom: 8px; font-size: 48px; }
.account-title p { margin: 0; color: var(--muted); font-size: 19px; }
.account-summary { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 6px; margin: 28px 0 58px; background: var(--panel); }
.account-summary > div { display: flex; align-items: center; justify-content: space-between; min-height: 86px; padding: 18px 22px; border-right: 1px solid var(--line); }
.account-summary > div:last-child { border-right: 0; }
.account-summary span { color: var(--muted); font-size: 13px; font-weight: 700; }
.account-summary strong { font-size: 26px; }
.account-section { padding: 44px 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; margin-bottom: 22px; }
.section-heading h2 { margin-bottom: 0; }
.contract-list { display: grid; gap: 14px; }
.contract-card { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.contract-head { display: flex; justify-content: space-between; gap: 24px; }
.contract-head h3 { margin: 8px 0 3px; font-size: 22px; }
.contract-head p { margin: 0; color: var(--muted); }
.status { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.status-active { background: #173726; color: var(--green); }
.status-planned { background: #3b2c11; color: var(--amber); }
.status-ended, .status-terminated { background: #343a3e; color: #c3c9cd; }
.contract-facts { padding-top: 18px; border-top: 1px solid var(--line); }
.contract-facts div { flex: 1 1 130px; }

.document-list { border-top: 1px solid var(--line); }
.document-list a { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 15px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.document-list a:hover strong { color: #ff795f; }
.document-list span { display: grid; gap: 2px; }
.document-list small, .document-list time { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { background: var(--surface); color: var(--muted); font-size: 12px; }
tbody tr:hover { background: var(--panel); }
tbody tr:last-child td { border-bottom: 0; }

.site-footer { display: grid; flex-shrink: 0; grid-template-columns: 1.3fr .8fr 1fr; gap: 32px; padding: 38px max(24px, calc((100vw - 1180px) / 2)); border-top: 1px solid #353b3f; background: #080a0b; color: #d5dade; font-size: 13px; }
.site-footer div { display: grid; align-content: start; gap: 5px; }
.site-footer strong { color: var(--white); font-size: 15px; }
.site-footer a { color: var(--white); }

@media (max-width: 900px) {
    .site-header { position: static; align-items: flex-start; }
    .site-header nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px 16px; }
    .listing-intro { min-height: 300px; }
    .about-grid { gap: 36px; }
    .unit-card { grid-template-columns: 100px minmax(0, 1fr); }
    .unit-price { grid-column: 1 / -1; align-items: flex-start; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
    .contact-section { grid-template-columns: 1fr; gap: 38px; }
    .account-summary { grid-template-columns: 1fr 1fr; }
    .account-summary > div:nth-child(2) { border-right: 0; }
    .account-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .site-header { display: grid; gap: 14px; padding: 12px 18px; }
    .brand { width: 265px; max-width: 100%; }
    .site-header nav { justify-content: flex-start; font-size: 13px; }
    main { width: min(100% - 32px, 1180px); }
    .listing-intro { display: grid; align-content: center; min-height: 360px; padding: 48px 0 40px; }
    .listing-intro h1 { font-size: 46px; }
    .listing-intro p { font-size: 18px; }
    .primary-action { justify-self: start; margin-top: 25px; }
    .about-grid { grid-template-columns: 1fr; padding: 48px 0; }
    .unit-card { grid-template-columns: 1fr; }
    .unit-mark { min-height: 72px; }
    .unit-content { padding: 22px; }
    .contact-section { margin: 0; padding: 42px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .auth-page { min-height: 560px; padding: 38px 0; }
    .auth-panel { padding: 25px 20px; }
    .account-title, .contract-head { display: grid; align-items: start; }
    .account-title h1 { font-size: 40px; }
    .secondary-action { justify-self: start; }
    .account-summary { grid-template-columns: 1fr; }
    .account-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
    .account-summary > div:last-child { border-bottom: 0; }
    .document-list a { align-items: flex-start; }
    .site-footer { grid-template-columns: 1fr; padding: 34px 18px; }
}
