:root {
    color-scheme: light;
    --ink: #101c29;
    --muted: #596876;
    --line: #e0e7e9;
    --page: #f5f7f8;
    --white: #fff;
    --accent: #077e71;
    --accent-dark: #056b60;
    --mint: #78ebce;
    --soft-mint: #e6f6f2;
    --radius: 16px;
    --shadow: 0 12px 30px #152b3912;
    font: 16px/1.5 "Inter", "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, dl { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 3px solid #0e9484; outline-offset: 3px; }
.wrap { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); z-index: 20; padding: .6rem 1rem; background: var(--white); }
.skip:focus { transform: none; }
.site-header { position: relative; z-index: 4; background: var(--white); border-bottom: 1px solid #e8eded; }
.header-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; gap: 9px; align-items: center; flex-shrink: 0; font-size: 1.65rem; font-weight: 850; letter-spacing: -.052em; line-height: 1; white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 39px; height: 39px; color: white; background: var(--accent); border-radius: 11px; }
.brand-accent { color: var(--accent-dark); }
.primary-nav, .header-actions, .login-link { display: flex; align-items: center; }
.primary-nav { gap: clamp(1.05rem, 3vw, 2.4rem); margin-left: .5rem; }
.primary-nav a, .login-link { color: #344353; font-size: .91rem; font-weight: 650; white-space: nowrap; }
.primary-nav .nav-search { color: var(--accent-dark); }
.primary-nav a:hover, .login-link:hover, .head-heart:hover { color: var(--accent); }
.header-actions { gap: clamp(.85rem, 1.6vw, 1.5rem); }
.login-link { gap: 7px; }
.head-heart { display: inline-flex; min-width: 28px; justify-content: center; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .5rem; min-height: 43px; padding: .59rem 1rem; border: 1px solid transparent; border-radius: 9px; font-size: .91rem; font-weight: 720; line-height: 1.28; text-align: center; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.button-primary { color: white; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-outline { color: var(--ink); background: white; border-color: var(--line); }
.button-outline:hover { color: var(--accent-dark); border-color: var(--accent); background: #f2fbf9; }
.button-small { min-height: 36px; padding: .45rem .7rem; font-size: .875rem; }
.menu-button, .primary-nav .mobile-account { display: none; }
.hero {
    position: relative;
    isolation: isolate;
    color: white;
    background: #111a2a;
    min-height: 435px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 0 24%;
    background:
        linear-gradient(90deg, #111a2a 0%, #111a2ae8 8%, #111a2a45 37%, #111a2a00 62%),
        linear-gradient(0deg, #101a2d9c 0%, transparent 36%),
        url("/assets/berlin.jpg") center 56% / cover no-repeat;
}
.hero-inner { min-height: inherit; display: flex; align-items: center; padding-bottom: 39px; }
.hero-copy { padding: 2.55rem 0 3.35rem; max-width: 640px; }
.hero-location { display: inline-flex; align-items: center; gap: .46rem; font-size: .875rem; font-weight: 720; letter-spacing: .03em; background: #162937b8; color: var(--mint); border: 1px solid #83d9cc45; border-radius: 30px; padding: .38rem .76rem; margin-bottom: 1.18rem; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1.02; letter-spacing: -.052em; font-weight: 830; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero-description { font-size: clamp(1rem, 1.5vw, 1.16rem); color: #d3dce6; max-width: 410px; line-height: 1.55; margin-top: 1.2rem; }
.search-wrap { position: relative; z-index: 2; }
.search-overlap { margin-top: -66px; }
.search-panel { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 1.35rem 1.5rem 1.05rem; box-shadow: var(--shadow); }
.search-panel h2 { display: flex; gap: .55rem; align-items: center; font-size: 1.16rem; letter-spacing: -.025em; margin-bottom: .95rem; }
.search-panel h2 svg { color: var(--accent); }
.search-main { display: grid; grid-template-columns: 1.05fr 1.05fr .76fr 1.26fr auto; align-items: end; gap: .72rem; }
.field { display: grid; gap: .33rem; min-width: 0; }
.field > span { color: #314251; font-weight: 680; font-size: .875rem; }
.field input, .field select, .field textarea { color: var(--ink); width: 100%; min-width: 0; min-height: 45px; border: 1px solid #dce5e7; border-radius: 8px; background: #f9fbfb; padding: .6rem .76rem; font-size: .94rem; }
.field select { appearance: none; text-overflow: ellipsis; padding-right: 2.1rem; background: #f9fbfb url("/assets/chevron.svg") right .72rem center / 15px no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #6a7580; opacity: 1; }
.field textarea { resize: vertical; }
.search-submit { min-height: 45px; padding-inline: 1.25rem; white-space: nowrap; }
.advanced { margin-top: .9rem; }
summary { cursor: pointer; color: var(--accent-dark); font-size: .9rem; font-weight: 690; }
.advanced summary { display: inline-flex; align-items: center; gap: .45rem; list-style: none; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced[open] summary svg:last-child { transform: rotate(180deg); }
.advanced-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; padding: .9rem 0 .2rem; }
.reset-link { display: inline-block; margin-top: .55rem; color: var(--accent-dark); font-size: .875rem; text-decoration: underline; }
.results-banner { padding: 2.05rem 0 1.4rem; }
.results-banner .crumb { margin: 0 0 .55rem; }
.listings { margin-top: 2.55rem; margin-bottom: 3.25rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.22rem; }
.section-head h2, .local-section h2 { line-height: 1.14; letter-spacing: -.045em; font-size: clamp(1.65rem, 3vw, 2.15rem); }
.section-head p { margin-top: .28rem; color: var(--muted); font-size: .95rem; }
.sort-form { display: flex; align-items: end; gap: .45rem; }
.sort-form > .field { display: flex; align-items: center; gap: .6rem; }
.sort-form .field > span { white-space: nowrap; color: var(--muted); }
.sort-form .field select { min-width: 155px; min-height: 39px; padding-top: .4rem; padding-bottom: .4rem; background-color: white; font-size: .875rem; }
.js .sort-submit { display: none; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.listing-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; box-shadow: 0 3px 14px #25374107; transition: box-shadow .2s ease, border-color .2s ease; }
.listing-card:hover { box-shadow: var(--shadow); border-color: #b7cfca; }
.card-media { position: relative; }
.card-image { background: #dde5e8; display: block; aspect-ratio: 1.79; overflow: hidden; }
.card-image img, .gallery-main img, .dash-image img { width: 100%; height: 100%; object-fit: cover; }
.card-image img { transition: transform .24s ease; }
.listing-card:hover .card-image img { transform: scale(1.025); }
.blank-photo { height: 100%; min-height: 150px; display: grid; align-content: center; justify-items: center; gap: .4rem; color: #52716e; background: #e7f1f0; }
.favorite-compact { position: absolute; right: .72rem; top: .68rem; }
.favorite-button { width: 39px; height: 39px; display: grid; place-items: center; color: #263d4b; background: white; border: 1px solid #e8eded; border-radius: 50%; box-shadow: 0 2px 6px #101c2920; }
.favorite-button:hover, .is-saved { color: var(--accent-dark); }
.is-saved svg { fill: #b7e9dd; }
.demo-label { position: absolute; top: .8rem; left: .72rem; padding: .22rem .58rem; background: #102430dd; color: white; border-radius: 5px; font-size: .76rem; font-weight: 650; }
.card-content { padding: .9rem .95rem 0; }
.card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.card-heading h3 { font-size: 1.095rem; letter-spacing: -.028em; }
.card-heading h3 a:hover { color: var(--accent-dark); }
.card-heading strong { color: var(--accent-dark); flex-shrink: 0; font-size: 1.1rem; letter-spacing: -.025em; white-space: nowrap; }
.card-trim { color: var(--muted); font-size: .875rem; margin-top: .12rem; }
.card-specs { display: flex; flex-wrap: wrap; column-gap: .7rem; row-gap: .32rem; margin: .85rem 0 .76rem; color: #3c4d5c; font-size: .82rem; }
.card-specs span, .card-location span:first-child { display: inline-flex; align-items: center; gap: .29rem; }
.card-specs svg, .card-location svg { color: #637985; }
.card-location { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--muted); font-size: .82rem; border-top: 1px solid #edf1f1; padding: .65rem 0 .73rem; }
.card-location span:last-child { white-space: nowrap; }
.local-section { margin-bottom: 3rem; }
.district-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.district-links a { display: inline-flex; align-items: center; gap: .36rem; background: white; border: 1px solid var(--line); border-radius: 30px; padding: .38rem .78rem; font-size: .88rem; }
.district-links a:hover { border-color: var(--accent); color: var(--accent-dark); }
.site-footer { background: #11222d; color: #ecf4f4; padding: 1.7rem 0 1.05rem; }
.site-footer .brand-accent { color: var(--mint); }
.footer-inner, .footer-inner nav { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.footer-inner nav { gap: .6rem 1.35rem; font-size: .875rem; }
.footer-inner nav a:hover { color: var(--mint); }
.footer-bottom { color: #b3c3ca; border-top: 1px solid #ffffff20; margin-top: 1.15rem; padding-top: .8rem; font-size: .82rem; }
.content { padding-block: 2.1rem 3.25rem; }
.content h1, .results-banner h1 { font-size: clamp(2rem, 4.1vw, 3rem); line-height: 1.11; letter-spacing: -.052em; margin-bottom: .42rem; }
.content h2 { letter-spacing: -.035em; }
.narrow { max-width: 860px; }
.lede { color: var(--muted); margin: .42rem 0 1.32rem; }
.muted, small { color: var(--muted); }
.crumb { display: flex; gap: .46rem; flex-wrap: wrap; color: var(--muted); font-size: .875rem; margin-bottom: .75rem; }
.crumb a:hover { color: var(--accent-dark); text-decoration: underline; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; min-width: 0; }
.panel h2 { font-size: 1.35rem; margin-bottom: .45rem; }
.legal-document { margin-top: 1rem; padding: clamp(1rem, 3.5vw, 2rem); }
.legal-document section + section { margin-top: 1.4rem; }
.legal-document p + p, .legal-document address + p { margin-top: .55rem; }
.legal-document address { font-style: normal; }
.legal-document dd { margin: .15rem 0 0; font-weight: 670; }
.legal-document dd + dt { margin-top: .7rem; }
.legal-document a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
.empty { padding-block: 2rem; text-align: center; display: grid; justify-items: center; gap: .6rem; }
.empty svg { color: var(--accent); }
.empty p { color: var(--muted); }
.empty .button { margin-top: .35rem; }
.flash-area { margin-top: .8rem; }
.notice { padding: .72rem 1rem; border-radius: 9px; margin-bottom: .8rem; background: #eaf3f8; color: #23465d; }
.notice-success { color: #075449; background: var(--soft-mint); }
.notice-error { color: #802c36; background: #faecec; }
.pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .8rem; margin: 1.45rem 0 0; color: var(--muted); }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; max-width: 960px; gap: 1.3rem; align-items: stretch; margin-block: 1.1rem; }
.auth-image { min-height: 440px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: end; align-items: start; padding: 1.65rem; color: white; background: linear-gradient(0deg,#101c29f5,transparent 83%), url("/assets/berlin.jpg") 64% center / cover; }
.auth-image-brand { color: var(--mint); margin-bottom: .55rem; font-size: 1.2rem; font-weight: 780; letter-spacing: -.03em; }
.auth-image strong { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.052em; }
.auth-panel { padding: 1.65rem; }
.auth-panel > p { color: var(--muted); margin-bottom: .9rem; }
.auth-panel .auth-switch { padding-top: .8rem; margin: .9rem 0 0; border-top: 1px solid var(--line); }
.auth-panel a { color: var(--accent-dark); text-decoration: underline; }
.form-stack { display: grid; gap: .9rem; }
.form-grid { display: grid; gap: .8rem; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
fieldset { margin: 0; }
fieldset legend { padding: 0 .45rem; font-weight: 750; font-size: 1.1rem; }
.photo-editor { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .8rem; margin-bottom: .85rem; }
.photo-editor:empty { display: none; }
.photo-editor img { width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 8px; }
.photo-preview:not(:empty) { margin-top: .8rem; }
.choice { display: flex; gap: .36rem; align-items: center; font-size: .875rem; }
.choice input { accent-color: var(--accent); }
.upload-place { display: grid; justify-items: center; gap: .4rem; text-align: center; padding: 1rem; border: 1px dashed #7fb9af; border-radius: 9px; background: #f1faf8; color: var(--accent-dark); font-weight: 650; }
.upload-place input { max-width: 100%; color: var(--muted); font-size: .875rem; }
.detail-title { display: flex; justify-content: space-between; gap: .75rem; align-items: center; }
.detail-place { display: inline-flex; align-items: center; gap: .15rem; margin-left: .4rem; }
.detail-grid { display: grid; align-items: start; grid-template-columns: minmax(0, 2fr) minmax(255px, 1fr); gap: 1.25rem; }
.gallery-main { display: block; aspect-ratio: 1.65; overflow: hidden; border-radius: var(--radius); background: #dbe5e8; }
.gallery-main img { object-fit: contain; background: #11222d; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .6rem .15rem; }
.gallery-thumbs a { flex: 0 0 85px; border: 2px solid transparent; border-radius: 8px; }
.gallery-thumbs a[aria-current] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1.46; object-fit: cover; border-radius: 6px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem 1.05rem; }
.facts div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .28rem .6rem; padding: .42rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 680; margin: 0; }
.equipment { display: flex; gap: .35rem .85rem; flex-wrap: wrap; padding: 0; list-style: none; }
.equipment li { display: inline-flex; align-items: center; gap: .25rem; }
.equipment svg { color: var(--accent); }
.contact-panel { display: grid; gap: .65rem; }
.detail-price { font-size: clamp(1.7rem, 4vw, 2.65rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 810; color: var(--accent-dark); }
.contact-seller { color: var(--muted); }
.report-details { border-top: 1px solid var(--line); margin-top: .47rem; padding-top: .7rem; }
.report-details form, .message-reply { margin-top: .55rem; }
.long-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.account-nav { display: flex; gap: .5rem; flex-wrap: wrap; padding-block: .4rem 1.1rem; }
.account-nav a, .link-button { padding: .45rem .68rem; border-radius: 7px; color: var(--muted); border: 0; background: transparent; font-size: .9rem; font-weight: 650; }
.account-nav a[aria-current], .account-nav a:hover, .link-button:hover { background: var(--soft-mint); color: var(--accent-dark); }
.dashboard-list { display: grid; gap: .65rem; }
.dashboard-list h2, .dashboard-list h3 { margin: 0; }
.dashboard-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.dashboard-row .dash-text { flex: 1 1 220px; overflow-wrap: anywhere; }
.dashboard-row p { margin-top: .2rem; color: var(--muted); }
.dashboard-row a:hover h2, .dashboard-row h2 a:hover, .dashboard-row h3 a:hover { color: var(--accent-dark); }
.dash-image { flex: 0 0 105px; aspect-ratio: 1.6; overflow: hidden; border-radius: 7px; }
.status { display: inline-flex; border-radius: 20px; font-size: .82rem; font-weight: 680; padding: .13rem .5rem; color: #364653; background: #eef2f4; white-space: nowrap; }
.status-active { background: var(--soft-mint); color: var(--accent-dark); }
.status-pending { background: #fff4d4; color: #705012; }
.status-rejected { background: #fcecec; color: #822d3b; }
.message-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem; }
.message-heading time { color: var(--muted); font-size: .875rem; }
.message-heading ~ .long-text { margin: .55rem 0; }
.admin-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: .9rem 0 1.1rem; }
.stat { display: grid; }
.stat:hover { border-color: var(--accent); }
.stat strong { color: var(--accent-dark); font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); }
@media (max-width: 1040px) {
    .wrap { width: calc(100% - 56px); }
    .header-inner { gap: 1rem; }
    .card-heading { flex-wrap: wrap; gap: .07rem .5rem; }
    .search-main { grid-template-columns: 1fr 1fr .75fr 1.1fr auto; gap: .55rem; }
    .search-submit { padding-inline: .75rem; }
}
@media (max-width: 800px) {
    .wrap { width: calc(100% - 38px); }
    .header-inner { min-height: 64px; }
    .header-sell { display: none; }
    .hero { min-height: 385px; }
    .hero::before { left: 10%; background-position: center, center, 59% 55%; }
    .hero-copy { padding-block: 2rem 3.1rem; }
    .search-overlap { margin-top: -48px; }
    .search-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-submit { grid-column: span 2; margin-top: .25rem; }
    .advanced-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .contact-panel { grid-row: 1; }
}
@media (max-width: 570px) {
    .wrap { width: calc(100% - 30px); }
    .header-inner { min-height: 60px; }
    .brand { font-size: 1.44rem; }
    .brand-icon { width: 34px; height: 34px; border-radius: 9px; }
    .primary-nav { gap: .15rem; font-size: .875rem; }
    .js .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: .65rem 1rem; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
    .js .primary-nav.is-open { display: grid; }
    .js .primary-nav a { padding: .55rem .25rem; }
    .js .primary-nav .mobile-account { display: block; }
    .primary-nav a:not(.nav-search), .login-link { display: none; }
    .js .primary-nav a:not(.nav-search) { display: block; }
    .header-actions { gap: .65rem; }
    .js .menu-button { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); }
    .hero { min-height: 375px; }
    .hero::before { left: 0; background-image: linear-gradient(90deg,#111a2ae6, #111a2a77 51%, #111a2a20), linear-gradient(0deg,#111a2a9c,transparent 55%), url("/assets/berlin.jpg"); background-position: center, center, 61% center; }
    .hero h1 { font-size: clamp(2.45rem, 11vw, 3.35rem); }
    .hero-description { max-width: 270px; margin-top: .85rem; }
    .hero-inner { padding-bottom: 30px; }
    .search-panel { padding: 1rem; }
    .advanced-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .listings { margin-top: 1.7rem; }
    .section-head { align-items: start; }
    .sort-form .field { display: grid; gap: .22rem; }
    .sort-form .field select { min-width: 0; max-width: 155px; }
    .listing-grid { grid-template-columns: minmax(0, 1fr); }
    .auth-layout { grid-template-columns: minmax(0, 1fr); }
    .auth-image { display: none; }
    .auth-panel { padding: 1.05rem; }
    .form-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-title { align-items: start; }
    .detail-place { margin-left: 0; }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .admin-counts { gap: .4rem; }
    .stat { padding: .55rem; }
    .stat span { font-size: .83rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
