/* Digital Broker – offers map */
.om-section { padding: var(--section) 0; background: var(--white); width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
.om-section.om-list { padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); }
.om-head { margin-bottom: 28px; }
.om-head .section-lead { max-width: 60ch; margin: 0; color: var(--slate); font-size: 17px; }

.om {
    --glass: rgba(11, 16, 29, .6);
    --glass-line: rgba(255, 255, 255, .14);
    position: relative; isolation: isolate; overflow: hidden;
    height: clamp(560px, 80vh, 820px);
    border-radius: 28px; background: #0b1120;
    box-shadow: 0 50px 100px -60px rgba(16, 24, 40, .75), 0 0 0 1px rgba(16, 24, 40, .06);
    color: var(--white); font-family: var(--font);
}
.om.is-fullscreen { height: 100vh; border-radius: 0; }
.om-canvas { position: absolute; inset: 0; background: #0b1120; font-family: var(--font); }
.om .leaflet-container { background: #0b1120; font-family: var(--font); }
.om .leaflet-tile-pane { filter: saturate(1.12) contrast(1.06) brightness(.9); }
.om .leaflet-interactive:focus { outline: none; }
.om .leaflet-pane svg, .om .leaflet-pane img { max-width: none !important; max-height: none !important; }

/* Atmosphere */
.om-vignette {
    position: absolute; inset: 0; z-index: 450; pointer-events: none;
    background:
        radial-gradient(120% 90% at 60% 50%, transparent 55%, rgba(6, 10, 20, .55) 100%),
        linear-gradient(180deg, rgba(6, 10, 20, .35) 0%, transparent 18%, transparent 82%, rgba(6, 10, 20, .3) 100%);
}
.om-clouds { position: absolute; left: 0; top: 0; overflow: hidden; transition: opacity .5s linear; }
.om-cloud, .om-cloud-shadow { position: absolute; left: 0; top: 0; background-repeat: repeat; will-change: transform; }
.om-cloud { opacity: .9; }
.om-cloud-high { opacity: .5; }
.om-cloud-shadow { filter: brightness(0) blur(9px); opacity: .3; }

/* Place names (shown at county level, faded in once the flight settles) */
.om .leaflet-omLabels-pane { opacity: 0; transition: opacity .6s ease; }
.om .leaflet-omLabels-pane.is-shown { opacity: 1; }

/* Regions */
.om-region, .om-county { transition: fill-opacity .45s ease, stroke-width .45s ease, stroke-opacity .45s ease, fill .45s ease; cursor: pointer; }
.om-outline { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .7)) drop-shadow(0 0 18px rgba(251, 101, 20, .45)); animation: om-outline 1.4s var(--ease) both; }
@keyframes om-outline { from { stroke-opacity: 0; } to { stroke-opacity: 1; } }
.om-mask { fill-opacity: 0; transition: fill-opacity 1s ease; }
.om-mask.is-on { fill-opacity: .62; }

/* Region labels */
.om-label { width: auto !important; height: auto !important; background: none; border: 0; }
.om-label-in {
    position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 7px 6px 13px; white-space: nowrap;
    border-radius: 999px; background: rgba(10, 14, 26, .55); border: 1px solid rgba(255, 255, 255, .2);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    color: var(--white); font-size: 13px; font-weight: 600; letter-spacing: .01em; cursor: pointer;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7);
    transition: transform .3s var(--ease), background-color .3s;
    animation: om-fade .8s var(--ease) both;
}
.om-label:not(.has-offers) .om-label-in { padding: 5px 12px; font-weight: 500; color: rgba(255, 255, 255, .82); background: rgba(10, 14, 26, .35); }
.om-label:hover .om-label-in { transform: translate(-50%, -50%) scale(1.06); background: rgba(10, 14, 26, .82); }
.om-label-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: linear-gradient(135deg, #fb6514, #e04f00); font-size: 12px; font-weight: 700; }
.om-label-county .om-label-in { font-size: 12.5px; }
@keyframes om-fade { from { opacity: 0; } to { opacity: 1; } }

/* Offer pins */
.om-pin { background: none; border: 0; }
.om-pin-dot {
    position: absolute; inset: 0; border-radius: 50%;
    background: var(--orange); border: 3px solid var(--white);
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .6);
    animation: om-drop .7s var(--ease) var(--d, 0s) both, om-pulse 2.8s ease-out calc(var(--d, 0s) + .7s) infinite;
    transition: transform .25s var(--ease);
}
.om-pin.is-rent .om-pin-dot { background: var(--indigo); }
.om-pin-price {
    position: absolute; left: 50%; bottom: calc(100% + 9px); transform: translateX(-50%);
    padding: 5px 10px; border-radius: 9px; white-space: nowrap;
    background: var(--white); color: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: -.01em;
    box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .65);
    animation: om-rise .6s var(--ease) calc(var(--d, 0s) + .25s) both;
    transition: background-color .2s, color .2s;
}
.om-pin-price::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--white); transition: border-color .2s; }
.om-pin:hover .om-pin-dot, .om-pin.leaflet-marker-icon:focus .om-pin-dot { transform: scale(1.25); }
.om-pin:hover .om-pin-price { background: var(--ink); color: var(--white); }
.om-pin:hover .om-pin-price::after { border-top-color: var(--ink); }
@keyframes om-drop { from { opacity: 0; transform: translateY(-26px) scale(.6); } 60% { opacity: 1; transform: translateY(3px) scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes om-rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes om-pulse { 0% { box-shadow: 0 6px 16px -4px rgba(0,0,0,.6), 0 0 0 0 rgba(251, 101, 20, .55); } 70%, 100% { box-shadow: 0 6px 16px -4px rgba(0,0,0,.6), 0 0 0 18px rgba(251, 101, 20, 0); } }

/* Popup card */
.om-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75); }
.om-popup .leaflet-popup-content { margin: 0; width: 300px !important; font-family: var(--font); }
.om-popup .leaflet-popup-tip { box-shadow: none; }
.om-popup a.leaflet-popup-close-button { top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); font: 400 20px/30px var(--font); z-index: 2; }
.om-popup a.om-card { display: block; color: var(--ink); text-decoration: none; }
.om-popup a.om-card:hover { color: var(--ink); }
.om-popup a.om-card:hover .om-card-title { color: var(--indigo); }
.om-card-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.om-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.om-card:hover .om-card-media img { transform: scale(1.05); }
.om-card-kind { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); font-size: 12px; font-weight: 600; }
.om-card-body { display: block; padding: 16px 18px 18px; }
.om-card-place { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.om-card-title { display: block; font-size: 16.5px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 6px; }
.om-card-specs { display: block; font-size: 13.5px; color: var(--slate); margin-bottom: 12px; }
.om-card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.om-card-price { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.om-card-cta { font-size: 13px; font-weight: 600; color: var(--orange); white-space: nowrap; }

.om-tip { background: rgba(10, 14, 26, .88); color: var(--white); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: 7px 12px; font: 600 13px/1.3 var(--font); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .7); }
.om-tip::before { display: none; }

/* Panel */
.om-panel {
    position: absolute; z-index: 600; left: 20px; top: 20px; bottom: 20px; width: 340px;
    display: flex; flex-direction: column; padding: 22px 18px 14px 22px;
    background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px;
    -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7);
}
.om-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 18px; font-size: 13px; color: rgba(255, 255, 255, .55); }
.om-crumbs i { font-style: normal; opacity: .5; }
.om-crumbs button { padding: 0; border: 0; background: none; font: inherit; color: rgba(255, 255, 255, .7); cursor: pointer; }
.om-crumbs button:hover { color: var(--white); text-decoration: underline; }
.om-crumbs [aria-current] { color: var(--white); font-weight: 600; }
.om-eyebrow { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #ffb38a; }
.om-title { margin: 0 0 4px; font-size: 26px; font-weight: 500; line-height: 1.15; letter-spacing: -.025em; color: var(--white); }
.om-sub { margin: 0 0 16px; font-size: 14px; color: rgba(255, 255, 255, .68); }
.om-list { flex: 1; min-height: 0; overflow-y: auto; margin-right: -8px; padding-right: 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.om-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
    padding: 10px 12px; margin: 0 0 2px; border: 0; border-radius: 12px; background: transparent;
    font: inherit; font-size: 15px; color: rgba(255, 255, 255, .62); text-align: left; cursor: pointer;
    transition: background-color .2s, color .2s;
}
.om-row.has-offers { color: var(--white); }
.om-row:hover, .om-row.is-hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.om-row-count { min-width: 28px; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 700; text-align: center; color: rgba(255, 255, 255, .4); }
.om-row.has-offers .om-row-count { background: rgba(251, 101, 20, .9); color: var(--white); }
.om-offer {
    display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; width: 100%;
    padding: 8px; margin: 0 0 6px; border: 1px solid transparent; border-radius: 14px; background: rgba(255, 255, 255, .05);
    font: inherit; color: var(--white); text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.om-offer:hover, .om-offer.is-active { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); }
.om-offer img, .om-offer-ph { width: 72px; height: 58px; border-radius: 10px; object-fit: cover; background: rgba(255, 255, 255, .1); }
.om-offer > span { min-width: 0; }
.om-offer-price { display: block; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.om-offer-title, .om-offer-place { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; }
.om-offer-title { color: rgba(255, 255, 255, .9); }
.om-offer-place { color: rgba(255, 255, 255, .55); }
.om-empty { color: rgba(255, 255, 255, .7); font-size: 14px; }
.om-note { margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 14px; color: rgba(255, 255, 255, .8); }
.om-note p { margin: 0 0 8px; }
.om-note-link { color: #ffb38a; font-weight: 600; text-decoration: none; }
.om-note-link:hover { color: var(--white); }

/* Tools & controls */
.om-tools { position: absolute; z-index: 600; top: 20px; right: 20px; display: flex; gap: 8px; }
.om-tool, .om .leaflet-control-zoom a {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; min-width: 42px; padding: 0 12px;
    border: 1px solid var(--glass-line) !important; border-radius: 12px; background: var(--glass) !important;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    color: var(--white) !important; font: 600 14px var(--font); cursor: pointer; transition: background-color .2s;
}
.om-tool[hidden] { display: none; }
.om-tool .icon { width: 18px; height: 18px; }
.om-tool:hover, .om .leaflet-control-zoom a:hover { background: rgba(11, 16, 29, .85) !important; }
.om .leaflet-control-zoom { border: 0 !important; margin: 0 20px 20px 0 !important; display: grid; gap: 8px; box-shadow: none !important; }
.om .leaflet-control-zoom a { width: 42px; padding: 0; font-size: 20px; line-height: 40px; }
.om .leaflet-control-attribution { margin: 0 70px 6px 0 !important; padding: 2px 8px; border-radius: 6px; background: rgba(11, 16, 29, .55) !important; color: rgba(255, 255, 255, .6); font-size: 10.5px; }
.om .leaflet-control-attribution a { color: rgba(255, 255, 255, .8); }

/* Loading */
.om-loading { position: absolute; inset: 0; z-index: 700; display: grid; place-items: center; background: #0b1120; transition: opacity .8s ease, visibility .8s; pointer-events: none; }
.om-loading span { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: var(--orange); animation: om-spin 1s linear infinite; }
.om.is-ready .om-loading { opacity: 0; visibility: hidden; }
.om.is-ready.is-busy .om-loading { opacity: 1; visibility: visible; background: transparent; }
@keyframes om-spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
    .om { height: min(86vh, 760px); border-radius: 22px; }
    .om-section .container > .om { margin: 0 calc(-1 * var(--gutter) + 8px); }
    .om-panel { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; max-height: 40%; padding: 16px 14px 10px 16px; border-radius: 18px; }
    .om-crumbs { margin-bottom: 10px; }
    .om-title { font-size: 21px; }
    .om-sub { margin-bottom: 10px; }
    .om-tools { top: 12px; right: 12px; }
    .om .leaflet-control-zoom { display: none; }
    .om .leaflet-control-attribution { margin: 0 !important; }
    .om .leaflet-bottom { bottom: auto; top: 0; }
    .om-label-woj:not(.has-offers) { display: none; }
    .om-label-in { gap: 6px; padding: 4px 5px 4px 10px; font-size: 11.5px; }
    .om-label-count { min-width: 20px; height: 20px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .om-pin-dot, .om-pin-price, .om-label-in, .om-outline { animation: none !important; }
}

/* Home: dark band */
.om-section.om-home { background: #0b1120; color: var(--white); }
.om-home .section-title { color: var(--white); }
.om-home .kicker { color: #ffb38a; }
.om-home .om-head .section-lead { color: rgba(255, 255, 255, .7); }
.om-home .om { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 60px 120px -60px rgba(0, 0, 0, .9); }
