:root {
    --surface: #f8f5ee;
    --surface-strong: #fffdf8;
    --ink: #202923;
    --muted: #69736d;
    --line: rgba(32, 41, 35, .13);
    --green: #394a40;
    --accent: #9b633f;
    --bar: 82px;
    --top: 82px;
}

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    overscroll-behavior: none;
    background: linear-gradient(145deg, #eeeae3, #dcd8cf);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a {
    font: inherit;
}

button {
    color: inherit;
}

[hidden] {
    display: none !important;
}

.app-shell {
    width: 100%;
    height: 100%;
    padding: 18px;
    overflow: hidden;
}

.app-frame {
    position: relative;
    width: min(1540px, 100%);
    height: calc(100dvh - 36px);
    margin: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 32px;
    background: var(--surface);
    box-shadow: 0 26px 70px rgba(31, 39, 34, .18);
}

.topbar {
    position: absolute;
  z-index: 2000;
    inset: 0 0 auto;
    height: var(--top);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(248, 245, 238, .94);
    backdrop-filter: blur(18px);
}

.brand {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%);
    text-decoration: none;
}

.brand img {
    display: block;
    width: auto;
    height: 42px;
    max-width: 180px;
    object-fit: contain;
}

/* app.js bu alanı güncelliyor; görsel olarak gösterilmez. */
.language-code-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.viewport {
    position: absolute;
    inset: var(--top) 0 var(--bar);
    overflow: hidden;
    background: #dfe3de;
}

#map {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.map-chip {
    position: absolute;
    z-index: 500;
    top: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 999px;
    background: rgba(250, 248, 243, .92);
    box-shadow: 0 10px 28px rgba(32, 41, 35, .12);
    font-size: .78rem;
    backdrop-filter: blur(14px);
}

.map-chip span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5e8b67;
    box-shadow: 0 0 0 4px rgba(94, 139, 103, .13);
}

.bottom-bar {
    position: absolute;
    z-index: 1300;
    inset: auto 0 0;
    height: var(--bar);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px max(18px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(248, 245, 238, .96);
    backdrop-filter: blur(22px);
}

.nav-item {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: .72rem;
    font-weight: 750;
}

.nav-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.nav-item.is-active {
    background: rgba(57, 74, 64, .09);
    color: var(--green);
}

.property-pin {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, .96);
    border-radius: 50% 50% 50% 8px;
    background: var(--green);
    color: #fff;
    box-shadow: 0 10px 24px rgba(28, 38, 32, .3);
    transform: rotate(-45deg);
}

.leaflet-control-zoom {
    margin-bottom: 18px !important;
}

.detail-screen {
    position: absolute;
    z-index: 900;
    inset: 0;
    overflow: hidden;
}

.detail-scrim {
    position: absolute;
    inset: 0;
    background: rgba(23, 31, 26, .30);
    backdrop-filter: blur(2px);
    opacity:1;
    transition:opacity .22s ease;
}

.detail-panel {
    position: absolute;
    inset: 0;
    background: var(--surface);
    transform: translateY(0);
    transition:transform .28s cubic-bezier(.3,.7,.3,1);
    will-change: transform;
}

.detail-screen.is-closing .detail-scrim {
    opacity:0;
}

.sheet-handle {
    display: block;
    width: 52px;
    height: 5px;
    margin: 10px auto;
    border-radius: 999px;
    background: rgba(32, 41, 35, .24);
}

.detail-close {
    position: absolute;
    z-index: 7;
    top: 14px;
    right: 14px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 24px rgba(32, 41, 35, .15);
    font-size: 1.55rem;
    cursor: pointer;
}

.detail-scroll {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.gallery {
    position: relative;
    height: min(55vh, 520px);
    min-height: 320px;
    overflow: hidden;
    background: #d7d6cf;
}

.gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-track figure {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    scroll-snap-align: start;
    background: linear-gradient(135deg, #31433a, #9aa99d);
}

.gallery-track img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: rgba(255,255,255,.85);
    letter-spacing: .12em;
}

.gallery-placeholder strong {
    font-size: clamp(2.4rem, 8vw, 6rem);
    font-family: Georgia, serif;
    font-weight: 500;
}

.gallery-placeholder span {
    font-size: .75rem;
}

.photo-count {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(22, 30, 26, .72);
    color: #fff;
    font-size: .75rem;
}

.detail-copy {
    width: min(980px, 100%);
    margin: auto;
    padding: 34px 28px 90px;
}

.location-line {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.title-row h1 {
    max-width: 680px;
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(2rem, 3.5vw, 3.45rem);
    font-weight: 500;
    line-height: 1.04;
}

.title-row strong {
    white-space: nowrap;
    padding-top: 8px;
    font-size: clamp(1.15rem, 2vw, 1.65rem);
}

.description {
    max-width: 820px;
    margin: 26px 0 0;
    color: #56625b;
    font-size: 1rem;
    line-height: 1.8;
}

.content-block {
    margin-top: 44px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.section-heading p {
    margin: 0 0 7px;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0 0 20px;
    font-family: Georgia, serif;
    font-size: clamp(1.55rem, 2.5vw, 2.1rem);
    font-weight: 500;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.detail-fact {
    display: flex;
    min-height: 104px;
    align-items: center;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-strong);
}

.fact-icon {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(57, 74, 64, .09);
}

.fact-icon img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: .82;
}

.fact-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.fact-copy small {
    color: var(--muted);
    font-size: .72rem;
}

.fact-copy strong {
    overflow-wrap: anywhere;
    font-size: .92rem;
    line-height: 1.25;
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.nearby-card {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 108px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-strong);
}

.nearby-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: rgba(155, 99, 63, .1);
    color: var(--accent);
    font-size: 1.1rem;
}

.nearby-card span:nth-child(2) {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.nearby-card small {
    color: var(--muted);
    font-size: .7rem;
}

.nearby-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .88rem;
}

.nearby-card em {
    color: var(--muted);
    font-size: .72rem;
    font-style: normal;
}

.nearby-card b {
    white-space: nowrap;
    font-size: .9rem;
}

.advisor-card {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 24px;
    align-items: start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(145deg, #fffdf8, #f0ece3);
}

.advisor-avatar {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    background: linear-gradient(135deg, #394a40, #a9b4ab);
    background-size: cover;
    background-position: center;
}

.advisor-card blockquote {
    margin: 0;
    color: #39443e;
    font-family: Georgia, serif;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.55;
}

.advisor-name {
    margin: 18px 0 2px;
    font-weight: 850;
}

.advisor-role {
    margin: 0;
    color: var(--muted);
    font-size: .8rem;
}

.property-video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    background: #26312b;
}

.property-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    display: grid;
    position: absolute;
    inset: 0;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 30px;
    color: rgba(255,255,255,.86);
    text-align: center;
}

.video-placeholder span {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    font-size: 1.35rem;
}

.video-placeholder p {
    margin: 0;
    font-size: .85rem;
}

.sheet {
    position: absolute;
    z-index: 1100;
    inset: 0;
}

.sheet-scrim {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(23, 31, 26, .3);
    backdrop-filter: blur(2px);
}

.sheet-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 76%;
    padding: 0 20px 24px;
    border-radius: 28px 28px 0 0;
    background: var(--surface);
    box-shadow: 0 -24px 60px rgba(22, 30, 26, .2);
    overflow: auto;
}

.sheet-panel.compact {
    max-height: 60%;
}

.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sheet-head h2 {
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-weight: 500;
}

.sheet-head button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    font-size: 1.35rem;
}

.listing-list {
    display: grid;
    gap: 10px;
}

.listing-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.listing-thumb {
    height: 74px;
    border-radius: 12px;
    background: linear-gradient(135deg, #53675c, #b7c0b6);
    background-size: cover;
    background-position: center;
}

.listing-card strong, .listing-card small, .listing-card b {
    display: block;
}

.listing-card small {
    margin-top: 4px;
    color: var(--muted);
}

.listing-card b {
    margin-top: 7px;
    font-size: .84rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.contact-grid a {
    display: grid;
    min-height: 68px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    color: inherit;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 900px) {
    .details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nearby-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 720px) {
    :root {
        --top: 70px;
        --bar: 76px;
    }

    .app-shell {
        padding: 0;
    }

    .app-frame {
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .topbar {
        padding: 10px 12px;
    }

    .brand img {
        height: 36px;
        max-width: 145px;
    }

    .map-chip {
        top: 12px;
        left: 12px;
    }

    .gallery {
        height: 40vh;
        min-height: 250px;
    }

    .detail-copy {
        padding: 26px 18px 72px;
    }

    .title-row {
        display: grid;
        gap: 12px;
    }

    .title-row h1 {
        font-size: clamp(1.85rem, 8vw, 2.65rem);
    }

    .title-row strong {
        padding-top: 0;
    }

    .description {
        font-size: .94rem;
        line-height: 1.72;
    }

    .content-block {
        margin-top: 34px;
        padding-top: 28px;
    }

    .details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-fact {
        min-height: 96px;
        padding: 13px;
    }

    .nearby-card {
        grid-template-columns: 40px 1fr auto;
    }

    .advisor-card {
        grid-template-columns: 68px 1fr;
        gap: 16px;
        padding: 18px;
    }

    .advisor-avatar {
        width: 68px;
        height: 68px;
    }

    .bottom-bar {
        padding-right: 10px;
        padding-left: 10px;
    }

    .leaflet-control-zoom {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

}

@media (max-width: 430px) {
    .details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .detail-fact {
        display: grid;
        grid-template-columns: 34px 1fr;
        min-height: 90px;
    }

    .fact-icon {
        width: 34px;
        height: 34px;
    }

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

}

/* Property premium surfaces — topbar and core layout intentionally unchanged */
.nav-icon img, .icon-button img, .page-action img, .filter-submit img, .contact-grid img, .contact-note img, .listing-arrow img, .fact-icon img, .nearby-icon img, .video-placeholder img, .gallery-placeholder img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.nav-icon {
    display: grid;
    place-items: center;
}

.nav-icon img {
    width: 21px;
    height: 21px;
    opacity: .64;
    transition: opacity .2s ease, transform .2s ease;
}

.nav-item.is-active .nav-icon img {
    opacity: 1;
    transform: translateY(-1px);
}

.detail-close {
    font-size: 0;
}

.detail-close img {
    width: 19px;
    height: 19px;
}

.video-placeholder span img {
    width: 26px;
    height: 26px;
    filter: invert(1);
    opacity: .86;
}

.gallery-placeholder > img {
    width: 42px;
    height: 42px;
    filter: invert(1);
    opacity: .78;
}

.nearby-icon img {
    width: 19px;
    height: 19px;
}

.property-marker-wrap {
    background: transparent !important;
    border: 0 !important;
}

.property-pin {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 2px solid rgba(255,255,255,.96);
    border-radius: 16px 16px 16px 5px;
    box-shadow: 0 10px 24px rgba(24,33,28,.24), 0 2px 5px rgba(24,33,28,.16);
    transform: rotate(-45deg);
    transition: box-shadow .2s ease, filter .2s ease;
}

.property-pin::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(255,255,255,.23);
    border-radius: 11px 11px 11px 3px;
}

.property-pin img {
    position: relative;
    z-index: 1;
    width: 21px;
    height: 21px;
    filter: brightness(0) invert(1);
    transform: rotate(45deg);
}

.property-pin.pin-forest {
    background: #324c40;
}

.property-pin.pin-terracotta {
    background: #9a6445;
}

.property-pin.pin-navy {
    background: #344b63;
}

.property-pin.pin-sand {
    background: #8a7653;
}

.property-pin.is-active {
    box-shadow: 0 0 0 4px rgba(255,255,255,.98), 0 0 0 7px rgba(34,48,40,.24), 0 14px 30px rgba(24,33,28,.3);
    filter: saturate(1.12);
}

.premium-tooltip {
    border: 0 !important;
    border-radius: 12px !important;
    background: rgba(252,250,245,.97) !important;
    box-shadow: 0 12px 28px rgba(27,37,31,.16) !important;
    color: #26322c !important;
    font-weight: 750;
    padding: 8px 11px !important;
}

.premium-tooltip::before {
    border-top-color: rgba(252,250,245,.97) !important;
}

.app-page {
    position: absolute;
    z-index: 1050;
    inset: 0;
    background: #f5f1e8;
}

.app-page[hidden] {
    display: none !important;
}

.page-scroll {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 30px clamp(18px, 4vw, 46px) 54px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    max-width: 980px;
    margin: 0 auto 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(43,55,48,.13);
}

.page-kicker {
    margin: 0 0 7px;
    color: var(--accent);
    font-size: .69rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.page-header h1 {
    margin: 0;
    color: #26322c;
    font-family: Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    font-weight: 500;
    line-height: 1;
}

.page-action {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid rgba(47,61,53,.16);
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 8px 20px rgba(33,44,38,.06);
    color: #2d3b34;
    font-weight: 800;
    cursor: pointer;
}

.page-action img {
    width: 18px;
    height: 18px;
}

.filter-panel {
    max-width: 980px;
    margin: -8px auto 24px;
    padding: 22px;
    border: 1px solid rgba(47,61,53,.13);
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 18px 50px rgba(39,50,44,.08);
}

.filter-label, .filter-fields label > span {
    display: block;
    margin-bottom: 9px;
    color: #667169;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-options button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(45,59,51,.14);
    border-radius: 999px;
    background: #fff;
    color: #4e5c54;
    font-weight: 750;
    cursor: pointer;
}

.filter-options button.is-active {
    border-color: #344a3e;
    background: #344a3e;
    color: #fff;
}

.filter-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.filter-fields select {
    width: 100%;
    min-height: 48px;
    padding: 0 38px 0 13px;
    border: 1px solid rgba(45,59,51,.15);
    border-radius: 13px;
    background: #fff;
    color: #2e3c35;
    font: inherit;
}

.filter-submit {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 0 17px;
    border: 0;
    border-radius: 15px;
    background: #2f463b;
    color: #fff;
    cursor: pointer;
}

.filter-submit span {
    color: rgba(255,255,255,.7);
    font-size: .78rem;
}

.filter-submit strong {
    margin-left: auto;
}

.filter-submit img {
    filter: invert(1);
}

.results-summary {
    display: flex;
    max-width: 980px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto 12px;
    color: #68736c;
    font-size: .8rem;
    font-weight: 750;
}

.results-summary button {
    border: 0;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.listing-list {
    max-width: 980px;
    margin: auto;
    gap: 12px;
}

.listing-card {
    position: relative;
    grid-template-columns: 152px minmax(0,1fr) 36px;
    gap: 18px;
    min-height: 128px;
    padding: 11px;
    border-color: rgba(44,58,50,.12);
    border-radius: 22px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 12px 32px rgba(39,50,44,.055);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(39,50,44,.1);
}

.listing-card.is-selected {
    border-color: rgba(50,76,64,.48);
    box-shadow: 0 0 0 3px rgba(50,76,64,.08), 0 16px 38px rgba(39,50,44,.1);
}

.listing-thumb {
    position: relative;
    height: 106px;
    border-radius: 16px;
    overflow: hidden;
}

.listing-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21,29,25,.28), transparent 56%);
}

.listing-thumb em {
    position: absolute;
    z-index: 1;
    left: 10px;
    bottom: 9px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(252,250,245,.9);
    color: #35453c;
    font-size: .63rem;
    font-style: normal;
    font-weight: 850;
}

.listing-copy {
    align-self: center;
}

.listing-copy small {
    color: var(--accent);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.listing-copy strong {
    margin-top: 7px;
    color: #27342e;
    font-family: Georgia, serif;
    font-size: clamp(1.1rem, 2.4vw, 1.45rem);
    font-weight: 500;
    line-height: 1.15;
}

.listing-copy b {
    margin-top: 11px;
    color: #27342e;
    font-size: .9rem;
}

.listing-arrow {
    display: grid;
    width: 34px;
    height: 34px;
    align-self: center;
    place-items: center;
    border: 1px solid rgba(45,59,51,.12);
    border-radius: 50%;
    background: #f8f5ee;
}

.listing-arrow img {
    width: 16px;
    height: 16px;
}

.empty-state {
    display: grid;
    min-height: 300px;
    place-items: center;
    align-content: center;
    gap: 9px;
    border: 1px dashed rgba(45,59,51,.18);
    border-radius: 22px;
    color: #657169;
    text-align: center;
}

.empty-state img {
    width: 28px;
    height: 28px;
}

.empty-state strong {
    color: #2e3c35;
    font-family: Georgia, serif;
    font-size: 1.45rem;
    font-weight: 500;
}

.contact-scroll {
    display: grid;
    align-content: start;
}

.contact-heading {
    align-items: start;
}

.contact-heading > div > p:last-child {
    max-width: 520px;
    margin: 18px 0 0;
    color: #657169;
    line-height: 1.65;
}

.contact-card {
    width: min(760px, 100%);
    margin: 10px auto 0;
    padding: clamp(20px,4vw,34px);
    border: 1px solid rgba(45,59,51,.13);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(239,234,223,.92));
    box-shadow: 0 24px 65px rgba(38,49,43,.1);
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(45,59,51,.12);
}

.contact-avatar {
    width: 68px;
    height: 68px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255,255,255,.72);
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-person div:last-child {
    display: grid;
    gap: 4px;
}

.contact-person strong {
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 500;
}

.contact-person span {
    color: #6a756e;
    font-size: .8rem;
}

.contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.contact-grid a {
    display: grid;
    grid-template-columns: 34px 1fr 20px;
    min-height: 64px;
    align-items: center;
    justify-items: start;
    padding: 0 15px;
    border-color: rgba(45,59,51,.11);
    border-radius: 16px;
    background: rgba(255,255,255,.78);
    font-size: .85rem;
}

.contact-grid a > img:first-child {
    width: 19px;
    height: 19px;
    opacity: .76;
}

.contact-grid .contact-arrow {
    width: 15px;
    height: 15px;
    opacity: .55;
}

.contact-note {
    display: flex;
    width: min(760px, 100%);
    align-items: flex-start;
    gap: 13px;
    margin: 14px auto 0;
    padding: 17px 19px;
    border-radius: 17px;
    background: rgba(49,72,61,.075);
    color: #5d6962;
}

.contact-note img {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    opacity: .7;
}

.contact-note p {
    margin: 0;
    font-size: .78rem;
    line-height: 1.6;
}

.detail-fact, .nearby-card, .advisor-card {
    box-shadow: 0 10px 24px rgba(38,49,43,.035);
}

@media (max-width: 720px) {
    .page-scroll {
        padding: 22px 16px 34px;
    }

    .page-header {
        align-items: center;
        margin-bottom: 18px;
        padding-bottom: 17px;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

    .page-action {
        min-height: 42px;
        padding: 0 13px;
    }

    .filter-panel {
        padding: 17px;
        border-radius: 19px;
    }

    .filter-fields {
        grid-template-columns: 1fr;
    }

    .listing-card {
        grid-template-columns: 104px minmax(0,1fr) 28px;
        gap: 12px;
        min-height: 110px;
        padding: 9px;
        border-radius: 18px;
    }

    .listing-thumb {
        height: 90px;
        border-radius: 13px;
    }

    .listing-copy strong {
        font-size: 1.05rem;
    }

    .listing-arrow {
        width: 28px;
        height: 28px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 430px) {
    .details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .detail-fact {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        min-height: 90px;
    }

    .fact-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .fact-icon img {
        width: 18px;
        height: 18px;
    }

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

.detail-screen {
    z-index: 1200;
}

/* =======================================================
   LANGUAGE SELECT (Tourism)
======================================================= */
.bt-language-select {
    position:absolute;
    top:16px;
    right:16px;
    z-index:1400;
    width:auto;
    margin:0;
}

.bt-language-trigger {
    width:58px;
    height:50px;
    padding:0 10px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    border:0;
    border-radius:18px;
    background:rgba(255,255,255,.92);
    cursor:pointer;
    box-shadow: 0 16px 38px rgba(20,52,50,.09), inset 0 0 0 1px rgba(16,47,58,.10);
}

.bt-language-trigger:focus-visible {
    outline:3px solid rgba(31,122,140,.22);
    outline-offset:3px;
}

.bt-language-trigger img, .bt-language-menu img {
    width:26px;
    height:26px;
    display:block;
    flex:0 0 auto;
    border-radius:50%;
    object-fit:cover;
    box-shadow: 0 0 0 1px rgba(16,47,58,.08);
}

.bt-language-arrow {
    width: 0;
    height: 0;
    flex: 0 0 auto;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--green);
    transform: rotate(0deg);
    transition: transform .22s ease;
}

.bt-language-select.is-open .bt-language-arrow {
    transform: rotate(180deg);
}

.bt-language-menu {
    position:absolute;
    top:calc(100% + 8px);
    right:0;
    z-index:180;
    display:grid;
    gap:6px;
    width:170px;
    min-width:170px;
    padding:8px;
    border-radius:22px;
    background:#fff;
    box-shadow: 0 22px 60px rgba(20,52,50,.18), inset 0 0 0 1px rgba(16,47,58,.08);
}

.bt-language-menu[hidden] {
    display:none !important;
}

.bt-language-option {
    width:100%;
    min-height:44px;
    padding:0 12px;
    display:flex;
    align-items:center;
    gap:10px;
    border:0;
    border-radius:15px;
    background:transparent;
    color:var(--green);
    font-size:13px;
    font-weight:850;
    text-align:left;
    cursor:pointer;
}

.bt-language-option span {
    flex:1 1 auto;
}

.bt-language-option small {
    display:none;
}

.bt-language-option:hover, .bt-language-option.is-active {
    background:rgba(31,122,140,.10);
    color:#1f7a8c;
}

.bt-language-option:focus-visible {
    outline:2px solid #1f7a8c;
    outline-offset:2px;
}

@media (max-width:520px) {
    .bt-language-select {
        top:16px;
        right:16px;
    }

    .bt-language-trigger {
        width:54px;
        height:46px;
        padding:0 8px;
        border-radius:20px;
    }

    .bt-language-trigger img, .bt-language-menu img {
        width:24px;
        height:24px;
    }

}

.leaflet-control-attribution {
    display: none !important;
}

/* Property detail expansion, universal exit control and full-screen gallery. */
.detail-close{top:16px;left:16px;right:auto;width:auto;height:46px;padding:0 17px 0 12px;display:flex;align-items:center;gap:8px;border:1px solid rgba(24,48,38,.16);border-radius:999px;background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(20,38,31,.2);color:#173c30;font-weight:800}.detail-close img{width:18px;height:18px}.gallery-expand{position:absolute;z-index:4;right:16px;bottom:16px;display:flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:10px 14px;background:rgba(19,35,29,.78);backdrop-filter:blur(12px);color:#fff;font-weight:750}.gallery-expand img{width:17px;height:17px;filter:brightness(0) invert(1)}
.detail-exit-hint{position:absolute;z-index:9;left:50%;bottom:max(15px,env(safe-area-inset-bottom));transform:translate(-50%,20px);display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 10px 8px 17px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(21,49,39,.92);box-shadow:0 14px 38px rgba(12,30,24,.28);color:#fff;opacity:.92;touch-action:none;cursor:grab}.detail-exit-hint b{display:grid;width:32px;height:32px;place-items:center;border-radius:50%;background:#fff;color:#245b47;font-size:18px}.detail-exit-hint.is-hinting{animation:exitHint 1.05s ease 2}.detail-exit-hint span{font-size:11px;font-weight:750}@keyframes exitHint{0%,100%{transform:translate(-50%,20px)}50%{transform:translate(-50%,5px)}}
.detail-fact.is-extra{display:none}.details-grid.is-expanded .detail-fact.is-extra{display:flex}.facts-toggle{display:flex;width:100%;align-items:center;justify-content:center;gap:10px;margin-top:12px;padding:12px;border:1px solid rgba(41,78,62,.14);border-radius:14px;background:#f4f2eb;color:#285b48;font-weight:800}.facts-toggle b{display:grid;width:24px;height:24px;place-items:center;border-radius:50%;background:#2a6851;color:#fff}.facts-toggle[hidden]{display:none}
.gallery-lightbox{position:fixed;z-index:3000;inset:0;display:grid;place-items:center;background:#07100c}.gallery-lightbox[hidden]{display:none}.gallery-lightbox img{width:100%;height:100%;object-fit:contain}.lightbox-close,.lightbox-nav{position:absolute;z-index:2;border:1px solid rgba(255,255,255,.25);background:rgba(0,0,0,.46);color:#fff;backdrop-filter:blur(10px)}.lightbox-close{right:18px;top:max(18px,env(safe-area-inset-top));width:48px;height:48px;border-radius:50%;font-size:28px}.lightbox-nav{top:50%;width:50px;height:62px;transform:translateY(-50%);border-radius:16px;font-size:42px}.lightbox-nav.prev{left:18px}.lightbox-nav.next{right:18px}.gallery-lightbox>span{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));padding:8px 13px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-weight:750}.lightbox-open{overflow:hidden}
.property-pin{width:48px;height:48px;border-radius:18px 18px 18px 6px;border-width:3px}.property-pin::after{inset:5px;border-radius:12px 12px 12px 3px}.property-pin span{position:relative;z-index:2;transform:rotate(45deg);font:900 18px/1 Inter,sans-serif;text-shadow:0 1px 2px rgba(0,0,0,.2)}.property-pin.pin-sale{background:#087658}.property-pin.pin-rent{background:#c7482d}.property-pin.pin-sale::before,.property-pin.pin-rent::before{content:"";position:absolute;right:-5px;top:-5px;width:11px;height:11px;border:3px solid #fff;border-radius:50%}.property-pin.pin-sale::before{background:#35d29c}.property-pin.pin-rent::before{background:#ffb03b}
.advisor-contact-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;width:min(1000px,100%);margin:10px auto 0}.advisor-contact-list .contact-card{width:100%;margin:0}.contact-avatar{display:grid;place-items:center;background:linear-gradient(145deg,#d7e9df,#f2d8b7);color:#174c3a;font:700 24px Georgia,serif}.contact-empty{grid-column:1/-1;padding:40px;border:1px solid rgba(45,59,51,.12);border-radius:22px;text-align:center;color:#657169}
@media(max-width:720px){.details-grid{grid-template-columns:1fr 1fr}.detail-exit-hint{width:max-content;max-width:calc(100% - 24px)}.detail-exit-hint span{max-width:220px}.advisor-contact-list{grid-template-columns:1fr}.lightbox-nav{width:42px;height:54px}.lightbox-nav.prev{left:8px}.lightbox-nav.next{right:8px}.gallery-expand span{display:none}.gallery-expand{width:44px;height:44px;justify-content:center;padding:0}.detail-close span{display:inline}.detail-close{height:44px}}

/* Refined controls: compact full-screen icon and centered back arrow. */
.detail-exit-hint{display:none!important}.detail-close{top:14px;left:14px;width:48px;height:48px;padding:0;display:grid;place-items:center;border-radius:50%}.detail-close img{display:block;width:24px;height:24px;margin:0;filter:none}.gallery-expand{width:48px;height:48px;padding:0;display:grid;place-items:center;border-radius:50%}.gallery-expand img{width:22px;height:22px;margin:0}.gallery-lightbox,.gallery-lightbox:fullscreen{position:fixed!important;z-index:2147483647!important;inset:0!important;width:100vw!important;height:100dvh!important;min-height:100vh!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#07100c!important}.gallery-lightbox img{display:block;width:100vw!important;height:100dvh!important;min-height:100vh!important;object-fit:cover!important;object-position:center!important}.gallery-lightbox:fullscreen img{width:100vw!important;height:100vh!important}
@media(max-width:720px){.detail-close{width:46px;height:46px}.detail-close img{width:23px;height:23px}.gallery-expand{width:46px;height:46px}}
.gallery-arrow{position:absolute;z-index:4;top:50%;display:grid;width:48px;height:58px;place-items:center;transform:translateY(-50%);border:1px solid rgba(255,255,255,.3);border-radius:16px;background:rgba(15,33,26,.62);backdrop-filter:blur(10px);color:#fff;font:400 40px/1 Georgia,serif;box-shadow:0 8px 24px rgba(0,0,0,.18)}.gallery-arrow.gallery-prev{left:16px}.gallery-arrow.gallery-next{right:16px}.gallery-arrow:disabled{opacity:.25;cursor:default}.gallery-arrow[hidden]{display:none}.gallery-expand img{filter:none!important}
@media(max-width:720px){.gallery-arrow{width:40px;height:50px;border-radius:13px;font-size:34px}.gallery-arrow.gallery-prev{left:8px}.gallery-arrow.gallery-next{right:8px}}
/* Property photography is intentionally edge-to-edge in both gallery modes. */
.gallery-track figure{background:#14251f}
.gallery-track img{object-fit:cover!important;object-position:center!important;background:#14251f}
.gallery-lightbox img,.gallery-lightbox:fullscreen img{object-fit:cover!important;object-position:center!important;background:#07100c}

/* =======================================================
   PROPERTY TOPBAR — SHARED DEMO SYSTEM
======================================================= */
.topbar {
    display:grid;
    grid-template-columns:40px minmax(0,1fr) 40px;
    align-items:center;
    padding:0 17px;
}

.topbar .brand {
    position:static;
    grid-column:2;
    grid-row:1;
    justify-self:center;
    width:40px;
    height:40px;
    transform:none;
}

.topbar .brand img {
    width:100%;
    height:100%;
    max-width:100%;
    object-fit:contain;
}

.topbar .bt-language-select {
    position:relative;
    z-index:2400;
    top:auto;
    right:auto;
    grid-column:3;
    grid-row:1;
    justify-self:end;
    width:30px;
}

.topbar .bt-language-trigger {
    width:30px;
    height:30px;
    padding:1px;
    gap:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
}

.topbar .bt-language-trigger img {
    width:26px;
    height:26px;
    border-radius:50%;
    box-shadow:none;
}

.topbar .bt-language-menu {
    top:calc(100% + 11px);
    right:-5px;
    z-index:2500;
    width:92px;
    min-width:92px;
    padding:7px;
    gap:4px;
    border:1px solid rgba(255,255,255,.72);
    border-radius:18px;
    background:rgba(248,245,238,.96);
    box-shadow:0 18px 44px rgba(20,52,50,.14);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
}

.topbar .bt-language-option {
    min-height:40px;
    padding:0 7px;
    gap:8px;
    border-radius:11px;
    font-size:11px;
    font-weight:600;
}

.topbar .bt-language-option img {
    width:24px;
    height:24px;
    box-shadow:none;
}

.topbar .bt-language-option span {
    flex:1 1 auto;
}

@media (max-width:720px) {
    .topbar { padding:0 15px; }
    .topbar .brand { width:36px; height:36px; }
    .topbar .bt-language-select { width:28px; }
    .topbar .bt-language-trigger { width:28px; height:28px; padding:1px; }
    .topbar .bt-language-trigger img { width:24px; height:24px; }
}

/* =======================================================
   PROPERTY VIEWPORT RESILIENCE
======================================================= */
.app-shell {
    height:var(--izlek-demo-height,100dvh);
    min-height:0;
    max-height:var(--izlek-demo-height,100dvh);
}

.app-frame {
    height:calc(var(--izlek-demo-height,100dvh) - 36px);
    max-height:calc(var(--izlek-demo-height,100dvh) - 36px);
}

.topbar {
    height:calc(var(--top) + var(--izlek-demo-safe-top,0px));
    padding-top:var(--izlek-demo-safe-top,0px);
    padding-right:max(17px,var(--izlek-demo-safe-right,0px));
    padding-left:max(17px,var(--izlek-demo-safe-left,0px));
}

.viewport {
    inset:
      calc(var(--top) + var(--izlek-demo-safe-top,0px))
      0
      calc(var(--bar) + var(--izlek-demo-safe-bottom,0px));
}

.bottom-bar {
    height:calc(var(--bar) + var(--izlek-demo-safe-bottom,0px));
    padding-right:max(18px,var(--izlek-demo-safe-right,0px));
    padding-bottom:calc(8px + var(--izlek-demo-safe-bottom,0px));
    padding-left:max(18px,var(--izlek-demo-safe-left,0px));
}

.gallery-lightbox,
.gallery-lightbox:fullscreen {
    width:var(--izlek-demo-width,100vw)!important;
    height:var(--izlek-demo-height,100dvh)!important;
    min-height:0!important;
    max-height:var(--izlek-demo-height,100dvh)!important;
}

.gallery-lightbox img,
.gallery-lightbox:fullscreen img {
    width:100%!important;
    height:100%!important;
    min-height:0!important;
}

html.izlek-demo-vh-short {
    --top:64px;
    --bar:68px;
}

html.izlek-demo-vh-compact {
    --top:58px;
    --bar:62px;
}

html.izlek-demo-vh-tiny {
    --top:54px;
    --bar:58px;
}

html.izlek-demo-vh-short .topbar .brand {
    width:34px;
    height:34px;
}

html.izlek-demo-vh-compact .topbar .brand,
html.izlek-demo-vh-tiny .topbar .brand {
    width:31px;
    height:31px;
}

html.izlek-demo-vh-compact .nav-item,
html.izlek-demo-vh-tiny .nav-item {
    gap:1px;
    border-radius:13px;
    font-size:.64rem;
}

html.izlek-demo-vh-compact .nav-icon,
html.izlek-demo-vh-tiny .nav-icon {
    width:18px;
    height:18px;
}

html.izlek-demo-vh-compact .topbar .bt-language-trigger,
html.izlek-demo-vh-tiny .topbar .bt-language-trigger {
    width:26px;
    height:26px;
}

html.izlek-demo-vh-compact .topbar .bt-language-trigger img,
html.izlek-demo-vh-tiny .topbar .bt-language-trigger img {
    width:22px;
    height:22px;
}

html.izlek-demo-vh-compact .page-scroll,
html.izlek-demo-vh-tiny .page-scroll {
    padding-top:16px;
    padding-bottom:22px;
}

html.izlek-demo-vh-tiny .map-chip {
    top:8px;
    left:8px;
    min-height:34px;
    padding:7px 10px;
    font-size:.68rem;
}

@media (max-width:760px) {
    .app-shell { padding:0; }
    .app-frame {
        height:var(--izlek-demo-height,100dvh);
        max-height:var(--izlek-demo-height,100dvh);
        border:0;
        border-radius:0;
    }
    .topbar {
        padding-right:max(15px,var(--izlek-demo-safe-right,0px));
        padding-left:max(15px,var(--izlek-demo-safe-left,0px));
    }
}

/* =======================================================
   PROPERTY DETAIL — QUIET SHARE CONTROLS
======================================================= */
.photo-count {
    right:auto;
    left:16px;
    bottom:16px;
}

.title-main {
    display:flex!important;
    align-items:center;
    gap:14px;
}

.title-main h1 {
    flex:1 1 auto;
}

.listing-actions {
    flex:0 0 auto;
    gap:7px;
    padding:0;
}

.listing-action {
    width:38px;
    height:38px;
    min-height:0;
    padding:0;
    display:grid;
    place-items:center;
    border:0;
    border-radius:0;
    background:transparent;
    color:#285245;
    box-shadow:none;
}

.listing-action:hover {
    color:var(--accent);
    background:transparent;
    transform:none;
}

.listing-action:focus-visible {
    outline:2px solid rgba(23,135,124,.42);
    outline-offset:2px;
    border-radius:8px;
}

.listing-action img {
    width:24px;
    height:24px;
    display:block;
}

@media (max-width:430px) {
    .title-main { gap:10px; }
    .listing-actions { gap:4px; }
    .listing-action { width:34px; height:34px; }
    .listing-action img { width:22px; height:22px; }
}

/* Native sharing feedback. */
.property-toast{position:fixed;z-index:2147483647;left:50%;bottom:max(98px,calc(env(safe-area-inset-bottom) + 84px));max-width:calc(100% - 32px);padding:12px 17px;transform:translate(-50%,12px);border-radius:999px;background:#173f32;color:#fff;box-shadow:0 12px 32px rgba(12,35,27,.24);font:750 13px/1.25 Inter,sans-serif;opacity:0;transition:opacity .2s ease,transform .2s ease}.property-toast[hidden]{display:none}.property-toast.is-visible{opacity:1;transform:translate(-50%,0)}

/* Full-screen property gallery: dark, proportional and landscape-ready. */
body.lightbox-open {
    background:#07100c!important;
}

.gallery-lightbox,
.gallery-lightbox:fullscreen {
    width:var(--izlek-demo-width,100vw)!important;
    height:var(--izlek-demo-height,100dvh)!important;
    min-height:0!important;
    padding:max(14px,var(--izlek-demo-safe-top,0px)) max(14px,var(--izlek-demo-safe-right,0px)) max(14px,var(--izlek-demo-safe-bottom,0px)) max(14px,var(--izlek-demo-safe-left,0px))!important;
    background:#07100c!important;
}

.gallery-lightbox::backdrop {
    background:#07100c!important;
}

.gallery-lightbox img,
.gallery-lightbox:fullscreen img {
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    object-fit:contain!important;
    object-position:center!important;
    background:#07100c!important;
}

@media (orientation:landscape) {
    .gallery-lightbox,
    .gallery-lightbox:fullscreen {
        padding:10px max(56px,var(--izlek-demo-safe-right,0px)) 10px max(56px,var(--izlek-demo-safe-left,0px))!important;
    }
}

/* Galleries are gesture-led; visual arrow controls stay out of the frame. */
.gallery-arrow,
.gallery-lightbox .lightbox-nav {
    display:none!important;
}

/* Large, explicit return control replaces the former pull handle. */
.detail-return {
    position:absolute;
    z-index:8;
    top:max(14px,var(--izlek-demo-safe-top,env(safe-area-inset-top)));
    right:max(14px,var(--izlek-demo-safe-right,env(safe-area-inset-right)));
    width:54px;
    height:54px;
    padding:0;
    display:grid;
    place-items:center;
    border:0;
    border-radius:50%;
    background:transparent;
    color:#174c3a;
    box-shadow:none;
    cursor:pointer;
    transition:transform .2s ease;
}

.detail-return::before {
    content:"";
    position:absolute;
    inset:6px;
    border:1px solid rgba(255,255,255,.42);
    border-radius:50%;
    background:rgba(246,247,243,.44);
    box-shadow:0 7px 20px rgba(17,46,37,.10),inset 0 1px 0 rgba(255,255,255,.58);
    -webkit-backdrop-filter:blur(14px) saturate(115%);
    backdrop-filter:blur(14px) saturate(115%);
}

.detail-return img {
    width:27px;
    height:27px;
    display:block;
    position:relative;
    z-index:1;
    pointer-events:none;
}

.detail-return:active {
    transform:scale(.94);
}

.detail-return.is-emphasized {
    animation:detailReturnWelcome 1.4s cubic-bezier(.2,.75,.25,1) both;
}

@keyframes detailReturnWelcome {
    0% { transform:translateY(-4px) scale(.94); filter:drop-shadow(0 0 0 rgba(31,122,92,0)); }
    42% { transform:translateY(3px) scale(1.035); filter:drop-shadow(0 0 8px rgba(31,122,92,.20)); }
    72% { transform:translateY(-1px) scale(.99); filter:drop-shadow(0 0 3px rgba(31,122,92,.08)); }
    100% { transform:translateY(0) scale(1); filter:drop-shadow(0 0 0 rgba(31,122,92,0)); }
}

@media (prefers-reduced-motion:reduce) {
    .detail-return.is-emphasized { animation:none; }
}

/* App-like surface: no selection, callout or dragged ghost outside the map. */
body,
body * {
    -webkit-user-select:none;
    user-select:none;
    -webkit-touch-callout:none;
}

img,
svg {
    -webkit-user-drag:none;
    user-drag:none;
}

#map,
#map * {
    -webkit-user-select:auto;
    user-select:auto;
    -webkit-touch-callout:default;
}

/* Gallery controls use the shared 1.25-stroke icon language. */
.gallery-expand img,
.gallery-lightbox .lightbox-close img {
    display:block!important;
    position:static!important;
    inset:auto!important;
    width:24px!important;
    height:24px!important;
    min-width:0!important;
    min-height:0!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    object-fit:contain!important;
    background:transparent!important;
    filter:brightness(0) invert(1)!important;
    pointer-events:none;
}

.gallery-lightbox .lightbox-close {
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    line-height:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
}

.gallery-lightbox .lightbox-close img {
    width:30px!important;
    height:30px!important;
}

/* Melzum desktop shell; the property pages keep their existing internal layout. */
@media (min-width:641px) {
    .app-shell {
        position:fixed;
        top:50%;
        right:auto;
        bottom:auto;
        left:50%;
        width:1366px;
        height:768px;
        max-height:none;
        padding:0;
        transform:translate(-50%,-50%) scale(var(--app-scale,1));
        transform-origin:center;
    }

    .app-frame {
        position:absolute;
        top:6px;
        right:auto;
        bottom:auto;
        left:50%;
        width:820px;
        height:752px;
        max-height:752px;
        margin:0;
        border-radius:30px;
        transform:translateX(-50%);
    }
}
