/* Offers page and cards. No global legacy/admin selectors. */
.az-offers-page{width:min(100% - 32px,var(--az-content-max));margin-inline:auto;padding-block:20px 88px;min-width:0}
.az-offers-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-block-end:18px}
.az-offers-heading h1{font-size:23px;line-height:1.45;min-width:0}
.az-offers-post{flex:none;font-size:13px;padding:9px 12px;min-height:44px;gap:5px}
.az-offers-explorer{min-width:0;position:relative}
.az-offers-controls{position:sticky;top:var(--az-header-height);z-index:30;background:var(--az-surface);padding-block:6px 12px}
.az-offers-controls .az-search{border-radius:999px}
.az-offers-controls .az-search input{font-size:13px}
.az-offers-chips{display:flex;gap:7px;overflow-x:auto;overscroll-behavior-inline:contain;padding-block:12px 3px;scrollbar-width:none;max-width:100%}
.az-offers-chips::-webkit-scrollbar{display:none}
.az-offers-chips .az-chip{flex:none;min-height:44px;font-size:13px;padding-inline:15px;white-space:nowrap}
.az-offers-result-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-block:7px 16px}
.az-offers-result-bar>p{font-size:13px;color:var(--az-muted)}
.az-offers-view{display:flex;padding:3px;gap:2px;border:1px solid var(--az-line);border-radius:11px;background:#fff}
.az-offers-view .az-chip{min-height:44px;border:0;border-radius:8px;padding:6px 9px;gap:5px;font-size:12px;white-space:nowrap}
.az-offers-view .az-icon{width:17px;height:17px}
.az-offers-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.az-offer-card{border:1px solid var(--az-line);border-radius:16px;overflow:hidden;background:#fff;box-shadow:var(--az-shadow-card);min-width:0}
.az-offer-card__media{display:block;position:relative;height:168px;background:var(--az-brand-soft);overflow:hidden;color:var(--az-brand);text-decoration:none}
.az-offer-card__media>img{width:100%;height:100%;object-fit:cover;display:block}
.az-offer-card__media>.az-badge{position:absolute;top:12px;inset-inline-start:12px;border-radius:7px;background:#fff;color:var(--az-brand);font-size:12px;box-shadow:0 1px 4px #142D3212}
.az-offer-card__media>.az-badge--blue{color:#155B9C}
.az-offer-card__placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:13px}
.az-offer-card__placeholder>.az-icon{width:42px;height:42px;opacity:.55}
.az-offer-card__photos{position:absolute;bottom:10px;inset-inline-end:12px;display:flex;align-items:center;gap:5px;background:#142D32CF;color:#fff;border-radius:6px;padding:2px 8px;font-size:12px}
.az-offer-card__photos .az-icon{width:14px;height:14px}
.az-offer-card__body{padding:16px}
.az-offer-card__price{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:8px;margin-block-end:8px}
.az-offer-card__price .az-price__primary{font-size:22px;font-weight:800}
.az-offer-card__price>.az-badge{font-size:12px;max-width:48%;line-height:1.5;padding:4px 7px;background:var(--az-brand-soft);color:var(--az-brand);border-radius:5px}
.az-offer-card__price>.az-badge .az-icon{width:12px;height:12px;flex:none}
.az-offer-card__sign-in{display:flex;align-items:center;gap:7px;color:var(--az-brand);font-size:13px;font-weight:700;min-height:44px;text-decoration:none}
.az-offer-card h3{font-size:16px;line-height:1.6;margin:0 0 4px}
.az-offer-card h3>a{color:var(--az-ink);text-decoration:none;overflow-wrap:anywhere}
.az-offer-card__place{display:flex;flex-wrap:wrap;gap:5px;align-items:center;font-size:13px;color:var(--az-muted)}
.az-offer-card__place>.az-icon{width:15px;height:15px;flex:none}
.az-offer-card__area{margin-inline-start:auto;white-space:nowrap}
.az-offer-card__facts{display:flex;gap:10px;flex-wrap:wrap;list-style:none;padding:10px 0 0;margin:0;font-size:12px;color:var(--az-muted)}
.az-offer-card__facts li{display:flex;align-items:center;gap:4px}
.az-offer-card__facts .az-icon{width:15px;height:15px;flex:none}
.az-offer-card__publisher{display:flex;align-items:center;gap:6px;flex-wrap:wrap;border-top:1px solid var(--az-line-2);margin-block-start:13px;padding-block-start:12px;font-size:12px;color:var(--az-muted)}
.az-offer-card__publisher>.az-icon{width:17px;height:17px;color:var(--az-brand)}
.az-offer-card__publisher>span:not(.az-offer-card__age){overflow-wrap:anywhere;min-width:0}
.az-offer-card__age{margin-inline-start:auto;white-space:nowrap;font-size:12px}
.az-offer-card__contact{display:flex;gap:8px;margin-block-start:12px}
.az-offer-card__contact>.az-button{flex:1;font-size:13px;min-height:44px;padding:8px 12px}
.az-offer-card__contact>.az-icon-button{flex:none}
.az-offer-card__contact-links{display:flex;flex-wrap:wrap;gap:8px;width:100%}
.az-offer-card__contact-links>.az-button{flex:1;min-width:110px;font-size:13px;min-height:44px;padding:8px}
.az-offer-card__contact-links>.az-offer-whatsapp{background:#0A875B;color:#fff}
.az-offer-card__body>.az-note{margin-block-start:10px}
.az-offers-floating-map{position:fixed;z-index:60;bottom:calc(var(--az-dock-height) + 12px);left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:0;border-radius:999px;background:var(--az-brand-deep);color:#fff;font:inherit;font-size:13px;font-weight:700;box-shadow:var(--az-shadow-raised);padding:10px 20px;white-space:nowrap;cursor:pointer}
.az-offers-floating-map .az-icon{width:18px;height:18px}
.az-offers-pagination{display:flex;gap:12px;align-items:center;justify-content:center;margin-block:24px}
.az-offers-pagination .az-button{font-size:13px;padding:8px 14px;min-height:44px}
.az-offers-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.az-offers-field{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:0}
.az-offers-field :is(input,select){width:100%;min-width:0;min-height:44px;padding:9px;border:1px solid var(--az-line);border-radius:10px;background:#fff;color:var(--az-ink)}
.az-offers-filter-hint,.az-offers-check{grid-column:1/-1;font-size:13px;color:var(--az-muted)}
.az-offers-check{display:flex;align-items:center;gap:8px;min-height:44px}
.az-offers-check input{width:20px;height:20px;accent-color:var(--az-brand)}
.az-offers-explorer .az-sheet__footer{display:flex;gap:10px}
.az-offers-explorer .az-sheet__footer .az-button{width:auto;flex:1;min-width:0;padding-inline:10px}
.az-offers-empty{display:grid;gap:28px}
.az-offers-empty .az-empty{padding:28px 18px}
.az-offers-empty .az-empty h2{font-size:19px;line-height:1.6}
.az-offers-empty .az-empty__actions{display:grid;width:100%}
.az-offers-empty .az-empty__actions>.az-button{width:100%;font-size:14px}
.az-offers-empty .az-empty__actions>.az-offers-empty-place{margin:0 0 5px;font-weight:700}
.az-offers-empty-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.az-offers-empty-links .az-button{padding:8px;font-size:12px;min-height:44px}
.az-offers-nearby h2{font-size:18px;margin-block-end:14px}
.az-offers-nearby__cards{display:flex;gap:14px;overflow:auto;scroll-snap-type:x proximity;padding-block:2px 8px}
.az-offers-nearby__cards>.az-offer-card{flex:0 0 min(280px,88%);scroll-snap-align:start}
.az-offers-upsell{padding:25px 20px;border-radius:16px;background:var(--az-brand-deep);color:#fff;text-align:center}
.az-offers-upsell>.az-icon{width:32px;height:32px;margin-block-end:8px;color:#9CDBBF}
.az-offers-upsell>h2{font-size:19px;color:#fff}
.az-offers-upsell>p{font-size:13px;color:#DBF0E7;margin-block:6px 17px}
.az-offers-upsell>.az-button{background:#fff;color:var(--az-brand-deep);min-width:160px}
.az-offers-map{height:min(64dvh,600px);min-height:340px;position:relative;overflow:hidden;border:1px solid var(--az-line);border-radius:16px;background:#EAF0EC}
.az-offers-map-view>.az-caption{margin-block:10px}
.az-offers-map .maplibregl-canvas{position:absolute;left:0;top:0}
.az-offer-pin{display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px;border:3px solid #fff;border-radius:999px;background:var(--az-brand);color:#fff;font:700 14px var(--az-font-latin);box-shadow:0 2px 8px #142D3240;cursor:pointer}
.az-offer-pin--rent{background:#1769A5}
.az-offers-map-locations{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin-block:16px}
.az-offers-map-locations .az-button{font-size:12px;min-height:44px;padding:8px 12px}
.az-offers-loading{font-size:13px;padding-block:8px;color:var(--az-muted)}
.az-offers-skeletons{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
.az-offers-skeleton{height:380px;border-radius:16px;background:linear-gradient(#DFEAE4 168px,#fff 168px);border:1px solid var(--az-line)}
.az-offers-explorer--embedded .az-offers-controls{position:static}
@media(min-width:600px){.az-offers-grid,.az-offers-skeletons{grid-template-columns:repeat(2,minmax(0,1fr))}.az-offers-empty .az-empty{max-width:680px;width:100%;margin-inline:auto}.az-offers-nearby__cards>.az-offer-card{flex-basis:calc((100% - 14px)/2)}}
@media(min-width:1024px){.az-offers-page{padding-block:28px 70px}.az-offers-heading h1{font-size:32px}.az-offers-heading{margin-block-end:24px}.az-offers-controls .az-search{max-width:700px}.az-offers-grid,.az-offers-skeletons{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.az-offers-controls{padding-block:8px 12px}.az-offers-floating-map{bottom:24px}.az-offers-result-bar>p{font-size:14px}.az-offers-view .az-chip{font-size:14px;padding-inline:14px}.az-offers-nearby__cards>.az-offer-card{flex-basis:calc((100% - 28px)/3)}.az-offers-upsell{display:grid;justify-items:center}}

/* Legacy .em-app anchors inherit ink; keep these action labels legible. */
.az-offers-page a.az-button,.az-offer-card a.az-button{color:#fff}
.az-offers-page a.az-button--secondary,.az-offer-card a.az-button--secondary{color:var(--az-brand)}
.az-offers-page .az-offers-upsell>a.az-button{color:var(--az-brand-deep)}

html[data-az-navigation]:has(.az-offers-page) .az-context{display:none!important}

/* Transaction modes remain visible; only the property-type row scrolls. */
.az-offers-transactions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-block:12px 0;padding:4px;background:#fff;border:1px solid var(--az-line);border-radius:13px}
.az-offers-transactions :is(a,button){display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;padding:8px 6px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--az-ink-2);font:inherit;font-size:14px;font-weight:700;line-height:1.5;text-align:center;text-decoration:none;cursor:pointer;overflow-wrap:break-word}
.az-offers-transactions :is(a,button):is(.is-active,[aria-pressed="true"],[aria-current="page"]){background:var(--az-brand);color:#fff;border-color:var(--az-brand)}
.az-offers-transactions .az-icon{width:18px;height:18px;flex:none}
.az-offers-controls .az-search input,.az-offers-field :is(input,select){font-size:16px}
.az-offer-card__body,.az-offer-card__price,.az-offer-card__place{min-width:0}
.az-offer-card__price>.az-price{flex:1 1 150px}
.az-offer-card__place{font-size:14px;line-height:1.7}
.az-offer-card__place>:not(.az-icon){min-width:0;overflow-wrap:anywhere}
.az-offer-card__contact>.az-button{min-width:0;white-space:normal;font-size:14px}
.az-offers-map-empty{display:grid;gap:8px;position:relative;margin-block:12px;padding:18px;border:1px solid var(--az-line);border-radius:14px;background:#fff;color:var(--az-ink);min-width:0;box-shadow:var(--az-shadow-card)}
.az-offers-map-empty :is(h2,h3){font-size:17px;line-height:1.6;margin:0}
.az-offers-map-empty p{font-size:16px;line-height:1.75;margin:0;color:var(--az-muted);overflow-wrap:break-word}
.az-offers-map-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-block-start:6px}
.az-offers-map-links :is(a,button){min-height:44px;max-width:100%;font-size:14px;white-space:normal;text-align:center}

/* Home shows the same filtered listings and their map together in normal flow. */
.az-offers-explorer--home{min-width:0}
.az-offers-explorer--home .az-offers-controls{position:static;padding-block:0 8px;background:transparent}
.az-offers-explorer--home .az-offers-controls .az-search{max-width:none;background:#fff}
.az-offers-explorer--home .az-offers-result-bar{margin-block:8px 16px}
.az-offers-explorer--home .az-offers-result-bar>p,.az-offers-explorer--home .az-offers-workspace-nav .az-chip{font-size:14px}
.az-offers-explorer--home .az-offers-workspace{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:20px}
.az-offers-explorer--home :is(.az-offers-map-view,.az-offers-workspace-list){min-width:0;max-width:100%;scroll-margin-top:calc(var(--az-header-height) + 16px);outline-offset:4px}
.az-offers-explorer--home .az-offers-map-view{position:relative}
.az-offers-explorer--home .az-offers-map{height:320px;min-height:280px;max-height:none}
.az-offers-explorer--home .az-offers-map-placeholder{display:grid;position:absolute;inset:0 0 auto;align-content:center;justify-items:center;gap:10px;height:320px;min-height:320px;padding:24px;border:1px solid var(--az-line);border-radius:16px;background:var(--az-brand-soft);color:var(--az-ink-2);text-align:center;font-size:16px;line-height:1.7}
.az-offers-explorer--home .az-offers-map-placeholder .az-icon{width:32px;height:32px;color:var(--az-brand)}
.az-offers-explorer--home .az-offers-map-empty{margin-block:12px 0;padding:16px;box-shadow:none}
.az-offers-explorer--home .az-offers-map-locations{margin-block:12px 0}
.az-offers-explorer--home .az-offers-map-locations .az-button{font-size:14px;white-space:normal}
.az-offers-explorer--home .az-offers-selected-place{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;margin-block:0 16px;padding:12px 14px;border:1px solid #c1e2d6;border-radius:12px;background:var(--az-brand-soft);color:var(--az-brand-deep);font-size:14px;line-height:1.7}
.az-offers-explorer--home .az-offers-selected-place>:first-child{min-width:0;flex:1;overflow-wrap:anywhere}
.az-offers-explorer--home .az-offers-selected-place :is(button,a){min-height:44px;flex-shrink:0;max-width:100%;font-size:14px;white-space:normal}
.az-offers-explorer--home .az-offers-grid{grid-template-columns:minmax(0,1fr);gap:16px}
.az-offers-explorer--home .az-offer-card__price>div{min-width:0;max-width:100%;flex:1 1 140px}
.az-offers-explorer--home .az-offer-card__price>.az-badge{max-width:100%}
.az-offers-explorer--home .az-offers-empty{gap:16px}
.az-offers-explorer--home .az-offers-empty .az-empty{width:100%;padding:24px 18px;background:#fff;border:1px solid var(--az-line);border-radius:16px}
.az-offers-explorer--home .az-offers-pagination{flex-wrap:wrap;margin-block:20px 0}
.az-offers-explorer--home .az-offers-skeletons{grid-template-columns:minmax(0,1fr)}
@media(min-width:600px){.az-offers-explorer--home .az-offers-grid,.az-offers-explorer--home .az-offers-skeletons{grid-template-columns:repeat(2,minmax(0,1fr))}.az-offers-explorer--home .az-offers-map,.az-offers-explorer--home .az-offers-map-placeholder{height:380px}}
@media(min-width:1024px){.az-offers-explorer--home .az-offers-workspace{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:24px}.az-offers-explorer--home .az-offers-map-view{position:sticky;top:calc(var(--az-header-height) + 16px)}.az-offers-explorer--home .az-offers-map,.az-offers-explorer--home .az-offers-map-placeholder{height:460px;min-height:460px}.az-offers-explorer--home .az-offers-grid,.az-offers-explorer--home .az-offers-skeletons{gap:14px}}

/* R4 keeps the map and list together, with the place summary inside the map. */
.az-offers-page:has(.az-offers-explorer--workspace){width:100%;max-width:none;padding-inline:0}
.az-offers-page:has(.az-offers-explorer--workspace)>.az-offers-heading,.az-offers-explorer--workspace>.az-offers-controls,.az-offers-explorer--workspace>.az-offers-result-bar,.az-offers-explorer--workspace>.az-offers-workspace-nav,.az-offers-explorer--workspace>.az-section-heading,.az-offers-explorer--workspace .az-offers-workspace-list{width:min(calc(100% - 32px),1200px);margin-inline:auto;min-width:0}
.az-offers-explorer--workspace .az-offers-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;width:100%;max-width:none}
.az-offers-explorer--workspace .az-offers-map-view{position:relative;top:auto;width:100%;max-width:none;min-width:0}
.az-offers-explorer--workspace .az-offers-map{height:400px;min-height:400px;max-height:none;width:100%;border-radius:0}
.az-offers-explorer--workspace .az-offers-map-placeholder{height:400px;min-height:400px;border-radius:0}
.az-offers-explorer--workspace .az-offers-map-selection{position:absolute;z-index:8;inset:12px 12px auto auto;width:min(350px,calc(100% - 80px));max-height:calc(100% - 64px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--az-line);border-radius:16px;background:#fff;padding:16px;box-shadow:var(--az-shadow-raised);font-size:14px;line-height:1.6;overflow-wrap:anywhere}
html[dir=rtl] .az-offers-explorer--workspace .az-offers-map-selection{left:12px;right:auto}
.az-offers-map-selection :is(a,button){min-height:44px;max-width:100%;white-space:normal}
.az-offers-map-selection h3{margin:0 0 8px;font-size:18px;line-height:1.5}
.az-offers-explorer--workspace .az-offers-map-preview{position:absolute;inset:0;z-index:12;display:flex;align-items:flex-end;justify-content:center;padding:20px;text-decoration:none;touch-action:pan-y pinch-zoom}
.az-offers-map-preview>span{padding:10px 16px;background:#fff;color:var(--az-brand-ink);border:1px solid var(--az-line);border-radius:12px;box-shadow:var(--az-shadow-card);font-size:14px;font-weight:700;line-height:1.5}
.az-offers-explorer--workspace .az-offers-map-empty,.az-offers-explorer--workspace .az-offers-map-locations{width:min(calc(100% - 32px),1200px);margin-inline:auto}
.az-offers-explorer--workspace .maplibregl-ctrl-scale{font-size:12px;color:#142d32;background:#ffffffed;line-height:1.5}
.az-offers-map-municipality{display:flex;align-items:center;gap:10px;width:min(calc(100% - 32px),1200px);margin:0 auto 12px;font-size:14px;min-width:0}
.az-offers-map-municipality select{min-height:44px;width:min(100%,340px);min-width:0;border:1px solid var(--az-line);border-radius:12px;background:#fff;color:var(--az-ink);padding:8px 12px;font-size:16px}
.az-offers-map-canvas{position:relative;width:100%;min-width:0}
@media(min-width:1024px){.az-offers-explorer--home .az-offers-map-preview{display:none}}
@media(min-width:600px){.az-offers-explorer--workspace .az-offers-grid,.az-offers-explorer--workspace .az-offers-skeletons{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1024px){.az-offers-explorer--workspace .az-offers-map,.az-offers-explorer--workspace .az-offers-map-placeholder{height:600px;min-height:600px}.az-offers-explorer--workspace .az-offers-grid,.az-offers-explorer--workspace .az-offers-skeletons{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
