/* Property listing page (Views/Properties/Index.cshtml), 2026-10-20: the homepage language. A compact title row, one
   grey toolbar (search, type, sort, "All filters", show results) and a filter dialog for everything else: a centred
   dialog on wide screens and a bottom sheet on phones. property-listing.js toggles translate-x-full as the closed
   state. Flat solid surfaces, no borders or shadows except the dialog's lift. Plain CSS (no Node step). */

/* Title (2026-10-20, the user chose variant A): no panel, a clean white title block with city chips under it. No
   count and no side box; one H1 and the description stay in the page for search engines. */
.ef-listing .ef-listing__hero { display: grid; gap: 18px; }
.ef-listing .ef-listing__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #71717a; font-size: 12.5px; font-weight: 600; }
.ef-listing .ef-listing__crumbs a { transition: color .15s ease; }
.ef-listing .ef-listing__crumbs a:hover { color: #0e0e10; }
.ef-listing .ef-listing__crumbs i { font-size: 8px; }
.ef-listing .ef-listing__crumbs span { color: #0e0e10; }
.ef-listing .ef-listing__title { margin: 14px 0 0; color: #0e0e10; font-size: clamp(30px, 1.1rem + 2vw, 46px); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; }
.ef-listing .ef-listing__lead { max-width: 760px; margin: 10px 0 0; color: #52525b; font-size: 15.5px; font-weight: 500; line-height: 1.6; }
.ef-listing .ef-listing__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.ef-listing .ef-listing__quick a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 14px; border-radius: 999px; background: #f4f4f5; color: #0e0e10; font-size: 13.5px; font-weight: 700; transition: color .15s ease, background-color .15s ease; }
.ef-listing .ef-listing__quick a:hover { color: #be123c; background: #e4e4e7; }
.ef-listing .ef-listing__quick i { color: #be123c; font-size: 11px; }
.ef-listing .ef-listing__quick span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #fff; color: #52525b; font-size: 11.5px; }

.ef-listing__head { padding-top: 32px; }
@media (min-width: 1024px) { .ef-listing__head { padding-top: 48px; } }

/* Toolbar */
.ef-listing .ef-listing__search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px; border-radius: 20px; background: #f4f4f5; }
.ef-listing .ef-listing__field { width: 100%; height: 48px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; background: #fff; color: #0e0e10; font-size: 14px; font-weight: 600; outline: none; }
.ef-listing .ef-listing__field:focus, .ef-listing .ef-listing__field:focus-within { border-color: #be123c; }
.ef-listing .ef-listing__field--search { display: flex; align-items: center; gap: 10px; }
.ef-listing .ef-listing__field--search i { color: #a1a1aa; font-size: 14px; }
.ef-listing .ef-listing__field--search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; outline: none; }
.ef-listing .ef-listing__filters-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: #fff; color: #0e0e10; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .15s ease; }
.ef-listing .ef-listing__filters-btn:hover { background: #e4e4e7; }
.ef-listing .ef-listing__badge { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #be123c; color: #fff; font-size: 12px; font-weight: 800; }
.ef-listing .ef-listing__search .ef-public-btn { min-height: 48px; }
@media (min-width: 640px) { .ef-listing .ef-listing__search { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ef-listing .ef-listing__field--search { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .ef-listing .ef-listing__search { grid-template-columns: minmax(0, 1fr) 210px 200px auto auto; }
  .ef-listing .ef-listing__field--search { grid-column: auto; }
}

/* Filter dialog */
.ef-filter-overlay { position: fixed; inset: 0; z-index: 120; background: rgb(14 14 16 / 0.55); }
.ef-filter { position: fixed; z-index: 130; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; max-height: 92vh; border-radius: 24px 24px 0 0; background: #fff; color: #0e0e10; box-shadow: 0 -20px 60px -20px rgb(14 14 16 / 0.4); transition: transform .25s ease, opacity .2s ease, visibility .2s; }
.ef-filter.translate-x-full { transform: translateY(24px); opacity: 0; visibility: hidden; pointer-events: none; }
@media (min-width: 768px) {
  .ef-filter { left: 50%; right: auto; top: 50%; bottom: auto; width: min(760px, calc(100vw - 48px)); max-height: min(86vh, 860px); border-radius: 24px; transform: translate(-50%, -50%); box-shadow: 0 30px 80px -24px rgb(14 14 16 / 0.45); }
  .ef-filter.translate-x-full { transform: translate(-50%, calc(-50% + 16px)); }
}
.ef-filter__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid #f4f4f5; }
.ef-filter__head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.ef-filter__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f4f4f5; color: #3f3f46; cursor: pointer; }
.ef-filter__close:hover { background: #e4e4e7; }
.ef-filter__body { display: grid; gap: 22px; padding: 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.ef-filter__group { min-width: 0; margin: 0; padding: 0; border: 0; }
.ef-filter__group legend { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 0; color: #0e0e10; font-size: 14px; font-weight: 800; }
.ef-filter__unit { padding: 2px 8px; border-radius: 999px; background: #f4f4f5; color: #71717a; font-size: 11px; font-weight: 700; }
.ef-filter__grid3, .ef-filter__grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ef-filter__grid2 { gap: 22px; }
@media (min-width: 640px) { .ef-filter__grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ef-filter__grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ef-filter :is(select, input[type="number"]) { width: 100%; height: 48px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; background: #f4f4f5; color: #0e0e10; font-size: 14px; font-weight: 600; outline: none; }
.ef-filter :is(select, input[type="number"]):focus { border-color: #be123c; background: #fff; }
.ef-filter__range { display: flex; align-items: center; gap: 8px; color: #a1a1aa; }
.ef-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ef-filter__chips label, .ef-filter__toggles label { position: relative; cursor: pointer; }
.ef-filter__chips input, .ef-filter__toggles input { position: absolute; opacity: 0; pointer-events: none; }
.ef-filter__chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: #f4f4f5; color: #3f3f46; font-size: 13.5px; font-weight: 700; transition: background-color .15s ease, color .15s ease; }
.ef-filter__chips label:hover span { background: #e4e4e7; }
.ef-filter__chips input:checked + span { background: #be123c; color: #fff; }
.ef-filter__chips input:focus-visible + span, .ef-filter__toggles input:focus-visible + span { outline: 3px solid rgb(190 18 60 / 0.35); outline-offset: 2px; }
.ef-filter__toggles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 640px) { .ef-filter__toggles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ef-filter__toggles span { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 1.5px solid transparent; border-radius: 14px; background: #f4f4f5; font-size: 14px; font-weight: 700; transition: background-color .15s ease, border-color .15s ease; }
.ef-filter__toggles span i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: #be123c; font-size: 13px; }
.ef-filter__toggles input:checked + span { border-color: #be123c; background: #fff1f2; }
.ef-filter__toggles input:checked + span i { background: #be123c; color: #fff; }
.ef-filter__foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 16px 24px; border-top: 1px solid #f4f4f5; }
/* 2026-10-21 wider, more detailed dialog: a sub-line under the title, hints per group, budget presets, type chips and
   two columns from 1024px (left: where/what/how much, right: rooms, preferences, themes, developer). */
.ef-filter__head p { margin: 4px 0 0; color: #52525b; font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.ef-filter__col { display: grid; align-content: start; gap: 24px; min-width: 0; }
.ef-filter__hint { margin: -4px 0 12px; color: #71717a; font-size: 13px; font-weight: 500; line-height: 1.5; }
.ef-filter__group legend { font-weight: 700; font-size: 15px; }
.ef-filter__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ef-filter__presets button { height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px #e4e4e7; color: #3f3f46; font-size: 13px; font-weight: 600; cursor: pointer; transition: box-shadow .15s ease, color .15s ease, background-color .15s ease; }
.ef-filter__presets button:hover { box-shadow: inset 0 0 0 1.5px #a1a1aa; color: #0e0e10; }
.ef-filter__presets button[aria-pressed="true"] { background: #fff1f2; box-shadow: inset 0 0 0 1.5px #be123c; color: #be123c; }
.ef-filter__presets button:focus-visible { outline: 3px solid rgb(190 18 60 / 0.35); outline-offset: 2px; }
@media (min-width: 1024px) {
  .ef-filter { width: min(1080px, calc(100vw - 48px)); max-height: min(88vh, 920px); }
  .ef-filter__head { padding: 24px 32px; }
  .ef-filter__body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 28px 32px; }
  .ef-filter__col + .ef-filter__col { padding-inline-start: 40px; border-inline-start: 1px solid #f4f4f5; }
  .ef-filter__col:first-child { padding-inline-end: 40px; }
  .ef-filter__foot { grid-template-columns: auto minmax(0, 320px); justify-content: end; padding: 18px 32px; }
}

/* Results, links */
.ef-listing .ef-listing__links { padding: 28px 24px; border-radius: 28px; background: #f4f4f5; }
.ef-listing .ef-listing__links-title { margin: 0; color: #0e0e10; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.ef-listing .ef-listing__link { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: 999px; background: #fff; color: #0e0e10; font-size: 14px; font-weight: 600; transition: color .15s ease; }
.ef-listing .ef-listing__link:hover { color: #be123c; }
@media (min-width: 1024px) { .ef-listing .ef-listing__links { padding: 40px; } }

/* Catalog views (Geo Services Faz B, 2026-11-02): list, map, or list + map side by side on wide screens.
   property-catalog-map.js sets data-view and keeps ?view in the URL. The map reuses the toolbar's grey surfaces. */
.ef-catalog__bar { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.ef-catalog__views { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #f4f4f5; }
.ef-catalog__views button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: #52525b; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: color .15s ease, background .15s ease; }
.ef-catalog__views button:hover { color: #0e0e10; }
.ef-catalog__views button[aria-pressed="true"] { background: #fff; color: #0e0e10; box-shadow: 0 1px 2px rgb(14 14 16 / 0.08); }
.ef-catalog__views button:focus-visible { outline: 2px solid #be123c; outline-offset: 2px; }
.ef-catalog__views i { font-size: 13px; }
.ef-catalog .ef-catalog__split-btn { display: none; }
.ef-catalog__map { display: none; }
.ef-catalog[data-view="map"] .ef-catalog__list { display: none; }
.ef-catalog[data-view="map"] .ef-catalog__map, .ef-catalog[data-view="split"] .ef-catalog__map { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.ef-catalog__canvas { position: relative; isolation: isolate; width: 100%; height: calc(100vh - 230px); min-height: 380px; overflow: hidden; border-radius: 20px; background: #f4f4f5; }
.ef-catalog__area { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; min-height: 40px; padding: 0 14px; border-radius: 12px; background: #f4f4f5; color: #0e0e10; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.ef-catalog__area input { width: 18px; height: 18px; accent-color: #be123c; }
.ef-catalog__status { margin: 0; color: #52525b; font-size: 13px; font-weight: 600; line-height: 1.5; }
.ef-catalog__status:empty { display: none; }
.ef-catalog__empty { grid-column: 1 / -1; padding: 32px; border-radius: 20px; background: #f4f4f5; color: #52525b; font-weight: 600; text-align: center; }
.ef-catalog__list .is-map-active { outline: 2px solid #be123c; outline-offset: 3px; }
@media (min-width: 1024px) {
  .ef-catalog .ef-catalog__split-btn { display: inline-flex; }
  .ef-catalog[data-view="split"] .ef-catalog__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .ef-catalog[data-view="split"] .ef-catalog__map { position: sticky; top: 92px; }
  .ef-catalog[data-view="split"] .ef-catalog__canvas { height: calc(100vh - 180px); }
  .ef-catalog[data-view="split"] [data-progressive-grid] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) { .ef-catalog[data-view="split"] .ef-catalog__layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }

/* Map pins, clusters and popups (Leaflet + markercluster); colours follow the brand red. */
.ef-map-pin { border: 0; background: none; }
.ef-map-pin span { display: block; width: 24px; height: 24px; margin: 1px 3px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: #be123c; box-shadow: 0 4px 10px rgb(14 14 16 / 0.35); transform: rotate(-45deg); transition: transform .15s ease, background .15s ease; }
.ef-map-pin.is-active span { background: #0e0e10; transform: rotate(-45deg) scale(1.18); }
.ef-catalog .marker-cluster-small, .ef-catalog .marker-cluster-medium, .ef-catalog .marker-cluster-large { background: rgb(190 18 60 / 0.22); }
.ef-catalog .marker-cluster-small div, .ef-catalog .marker-cluster-medium div, .ef-catalog .marker-cluster-large div { background: #be123c; color: #fff; font-weight: 800; }
.ef-catalog .marker-cluster.is-active div { background: #0e0e10; }
.ef-property-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: 22px; }
.ef-property-popup .leaflet-popup-content { width: min(320px, calc(100vw - 84px)) !important; margin: 0; font: inherit; }
.ef-map-popup { width: 100%; text-align: start; }
.ef-map-popup img { display: block; width: calc(100% - 24px); height: auto; aspect-ratio: 4 / 3; margin: 12px; border-radius: 16px; background: #f4f4f5; object-fit: cover; }
.ef-map-popup__body { display: grid; gap: 10px; padding: 4px 20px 20px; overflow-wrap: anywhere; }
.ef-map-popup__body strong { color: #0e0e10; font-size: 19px; font-weight: 800; line-height: 1.35; letter-spacing: -.025em; }
.ef-map-popup__location { color: #52525b; font-size: 13px; line-height: 1.5; }
.ef-map-popup__price { color: #9f1239; font-size: 16px; font-weight: 800; line-height: 1.5; }
.ef-map-popup .ef-map-popup__link { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 4px; padding: 10px 16px; color: #fff; font-size: 14px; }
.ef-property-popup a.leaflet-popup-close-button { inset-inline-end: 16px; right: auto; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #18181b; }
.dark .ef-property-popup .leaflet-popup-content-wrapper, .dark .ef-property-popup .leaflet-popup-tip, .dark .ef-map-popup { background: #18181b; border-color: #3f3f46; }
.dark .ef-map-popup__body strong { color: #fafafa; }
.dark .ef-map-popup__location { color: #d4d4d8; }
.dark .ef-map-popup__price { color: #fda4af; }
.dark .ef-map-popup .ef-map-popup__link { background: #be123c; }
.dark .ef-map-popup .ef-map-popup__link:hover { background: #9f1239; }
.ef-map-popup .ef-map-popup__walk { color: #be123c; font-size: 12.5px; font-weight: 700; }
