/* Responsive controls and accessibility refinements shared by all views. */
.not-found-view,.static-page{max-width:var(--max-width);margin:36px auto 80px;padding:0 var(--page-gutter)}
.static-page img{max-width:100%;height:auto}.static-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px;margin:32px 0}.static-listing-card{padding:16px;background:var(--bg-paper);border:1px solid var(--line-default);border-radius:8px}
/* All catalog filters stay visible, with a shared label and control rhythm. */
.filter-bar-wrapper{padding:18px 0 16px;background:var(--bg-paper)}
.filter-bar .filter-controls-group{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px 16px;align-items:end}
.filter-controls-group>[data-caption]{position:relative;padding-top:22px;min-width:0;width:auto;flex:initial;margin:0}
.filter-controls-group>[data-caption]::before{content:attr(data-caption);position:absolute;top:0;left:0;font-size:11px;line-height:16px;font-weight:600;letter-spacing:.02em;color:var(--ink-muted)}
.filter-controls-group>.search-field{display:block}
.filter-controls-group .search-select{width:100%;padding-left:12px;padding-right:28px;font-size:13px;height:42px!important;border-radius:var(--radius-sm)}
.filter-controls-group>.location-radius-group{height:64px;box-sizing:border-box;display:flex;border:0;background:transparent;overflow:visible}
.filter-controls-group .location-autocomplete-wrap{min-width:0!important;flex:1 1 0;height:42px}
.filter-bar .filter-controls-group .location-input{border:1px solid var(--line-default)!important;border-right:0!important;border-radius:var(--radius-sm) 0 0 var(--radius-sm);height:42px!important;font-size:13px!important;padding-right:25px}
.filter-controls-group>.location-radius-group:focus-within{box-shadow:none}
.filter-controls-group .location-autocomplete-wrap:focus-within{box-shadow:0 0 0 2px var(--bg-canvas);border-radius:var(--radius-sm) 0 0 var(--radius-sm)}
.filter-controls-group .radius-select-wrap{border-left:0;width:76px;flex:0 0 76px;height:42px}
.filter-bar .filter-controls-group .radius-select{border:1px solid var(--line-default)!important;border-radius:0 var(--radius-sm) var(--radius-sm) 0;min-width:0;width:100%;height:42px!important;padding-left:8px;padding-right:17px;font-size:12px}
.filter-bar .segmented-rooms{height:64px;border:0;overflow:visible;background:transparent}
.filter-bar .segmented-rooms .seg-room-btn{height:42px;min-width:0;flex:1;padding:0 6px;font-size:12px;border:1px solid var(--line-default);border-right:0;background:#fff}
.filter-bar .segmented-rooms .seg-room-btn:first-child{border-radius:var(--radius-sm) 0 0 var(--radius-sm);flex:1.8}
.filter-bar .segmented-rooms .seg-room-btn:last-child{border-right:1px solid var(--line-default);border-radius:0 var(--radius-sm) var(--radius-sm) 0}
.filter-bar .segmented-rooms .seg-room-btn.active{background:var(--brand-primary);border-color:var(--brand-primary);color:var(--bg-paper)}
.filter-controls-group>.filter-range-control{height:42px;margin-top:22px;padding:0 10px;position:relative;overflow:visible}
.filter-controls-group>.filter-range-control::before{top:-22px}
.filter-range-control input{min-width:0;flex:1 1 0;width:0!important;font-size:13px;padding:0 3px}
.filter-controls-group .filter-range-control .range-prefix:first-child{display:none}
.filter-controls-group .filter-range-control:has([id$="area-min"])::after{content:'m²';font-size:12px;color:var(--ink-muted)}
.catalog-filter-actions{grid-column:span 2;display:flex;gap:10px;justify-content:flex-end;align-items:center;min-width:0}
.filter-controls-group .btn-see-on-map,.filter-controls-group .btn-reset-catalog{height:42px!important;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:var(--radius-sm);font-size:13px;font-weight:600;padding:0 16px;white-space:nowrap;cursor:pointer}
#btn-reset-units-filters,#btn-reset-filters{margin:0;width:auto;flex:initial;color:var(--ink-muted);background:transparent;border:1px solid var(--line-default)}
#btn-reset-units-filters:hover,#btn-reset-filters:hover{color:var(--brand-primary);background:var(--bg-surface);border-color:var(--brand-primary)}
.mobile-filter-toolbar{display:none!important}
@media(max-width:1199px){
 .filter-bar .filter-controls-group{grid-template-columns:repeat(4,minmax(0,1fr))}
 .catalog-filter-actions{grid-column:span 4;border-top:1px solid var(--line-default);padding-top:12px}
}
/* Phones and tablets retain their compact toolbar and modal forms. */
.catalog-filter-recall{display:none}
@media(min-width:992px){
 .filter-bar-wrapper{transition:transform .22s ease;will-change:transform}
 .filter-bar-wrapper.is-collapsed{transform:translateY(-100%)}
 .filter-bar-wrapper.is-collapsed .filter-bar{visibility:hidden;pointer-events:none}
 .filter-bar-wrapper.has-scrolled .catalog-filter-recall{display:inline-flex;align-items:center;gap:8px;position:absolute;top:100%;right:max(var(--page-gutter),calc((100% - var(--max-width))/2 + var(--page-gutter)));height:40px;padding:0 16px;border:1px solid var(--line-default);border-top:0;border-radius:0 0 8px 8px;background:var(--bg-paper);color:var(--brand-primary);font:600 13px var(--font-sans);box-shadow:0 4px 12px color-mix(in srgb,var(--brand-navy) 8%,transparent);cursor:pointer}
 .catalog-filter-recall:hover{background:var(--bg-subtle)}
}
@media(max-width:991px){
 .filter-bar .filter-controls-group{display:none!important}
 .filter-bar .mobile-filter-toolbar{display:flex!important}
 .filter-bar-wrapper{transform:none;padding:8px 0!important}
}
@media(prefers-reduced-motion:reduce){.filter-bar-wrapper{transition:none}}
.mobile-filter-toolbar{min-width:0;width:100%;gap:8px}
.mobile-filter-toolbar>button{min-width:0!important;flex:1 1 0!important;max-width:100%;padding:0 8px!important;height:40px!important;font-size:13px!important;justify-content:center;gap:5px}
.mobile-filter-toolbar>button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mobile-filter-toolbar .icon-sm{width:16px;height:16px;flex-shrink:0}
.mobile-filter-toolbar .mobile-filter-badge{flex-shrink:0}
#btn-m-map-floating{display:none!important}
.spec-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.unit-listing-card .mobile-specs-chips,.unit-listing-card .card-specs-row{min-width:0;flex-wrap:wrap}
.unit-listing-card .card-location-row,.featured-card-content .card-location-row{font-size:12px!important}
.featured-card-content .spec-chip,.promoted-unit-card .spec-chip,.developer-unit-card .spec-chip{font-size:12.5px!important;padding:0!important}
.dock-tz-pill{display:none!important}
.is-contact-view .concierge-dock,body.has-unit-sticky-bar .concierge-dock{display:none}
.concierge-dock{right:8px;bottom:14px}
.unit-detail-view .unit-section-box{min-width:0}
.not-found-view p{margin:18px 0 28px}
/* Route headings receive screen-reader focus, but are not interactive controls. */
#app h1[tabindex="-1"]:focus{outline:none!important}
/* .btn-reveal-phone standardized */
.location-clear-btn{min-width:24px;min-height:24px}
[data-submit-error]{color:#9b1c1c;background:#fff0f0;padding:12px;border-radius:4px}
.safeguard-text h3{font-size:14px;margin:0 0 6px}
.plan-caption{font-size:12px;color:var(--ink-muted);margin:8px 0 0}

@media(max-width:991px){
 .fs-map-header{height:auto;min-height:100px;padding:8px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto 36px;gap:8px}
 .fs-map-header-left{display:contents}
 .fs-map-title-group{grid-column:1/3;grid-row:1;min-width:0;white-space:normal;display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px}
 .fs-map-title{font-size:15px;line-height:1.3}
 .fs-map-header-right{grid-column:3;grid-row:1}
 .fs-map-count-badge{font-size:12px;white-space:nowrap;flex-shrink:0}
 .fs-map-back-btn{grid-row:2;grid-column:1;justify-self:start;padding:0 9px;gap:5px;font-size:12px}
 .fs-map-tools{grid-row:2;grid-column:2/4;gap:6px;min-width:0;flex-wrap:wrap;justify-content:flex-end}
 .btn-fs-tool{padding:0 8px;font-size:12px;gap:4px}
 .fs-map-body{min-height:0;flex:1}
 .fs-map-sidebar{max-height:calc(100% - 100px)}
 .modal-overlay.mobile-sheet .modal-card{max-height:90dvh!important;display:flex;flex-direction:column;overflow:hidden}
 .modal-overlay.mobile-sheet .modal-body{min-height:0;flex:1;overflow-y:auto}
 .modal-overlay.mobile-sheet .modal-footer{flex-shrink:0}
}
@media(max-width:359px){
 #fs-map-back-text{font-size:0}
 #fs-map-back-text::after{content:'Lista';font-size:12px}
 html[lang=en] #fs-map-back-text::after{content:'List'}
 .mobile-filter-toolbar{gap:4px}
 .mobile-filter-toolbar>button{padding:0 5px!important;font-size:12px!important}
 .mobile-filter-toolbar .icon-sm{width:14px;height:14px}
 .header-inner{gap:6px}
 .brand-logo{font-size:18px}
 .header-controls{gap:4px}
}

/* Shared custom pickers: quiet navy focus, consistent chevrons, top-layer menus. */
.portal-select{position:relative;width:100%;min-width:0;height:42px}
.portal-select>select.portal-select-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;border:0!important;opacity:0;pointer-events:none;clip-path:inset(50%)}
.portal-select-trigger{appearance:none;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;height:100%;min-width:0;padding:0 12px;border:1px solid var(--line-default);border-radius:var(--radius-sm);background:var(--bg-paper);color:var(--ink-primary);font:400 13px var(--font-sans);text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.portal-select-trigger::after{content:'';flex:0 0 7px;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:translateY(-2px) rotate(45deg);color:var(--ink-muted);transition:transform .15s}
.portal-select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-select-trigger:hover{border-color:var(--ink-faint)}
.portal-select-trigger:focus{outline:none!important}
.portal-select-trigger:focus-visible{outline:2px solid var(--brand-navy)!important;outline-offset:3px!important}
.portal-select.is-open>.portal-select-trigger{border-color:var(--brand-navy);box-shadow:0 0 0 3px var(--bg-canvas)}
.portal-select.is-open>.portal-select-trigger::after{transform:translateY(2px) rotate(225deg)}
.portal-select-trigger:disabled{opacity:.5;cursor:not-allowed}
.portal-select-options{position:fixed;inset:auto;margin:0;box-sizing:border-box;padding:6px;border:1px solid var(--line-default);border-radius:8px;background:var(--bg-paper);box-shadow:0 10px 30px color-mix(in srgb,var(--brand-navy) 14%,transparent),0 2px 6px color-mix(in srgb,var(--brand-navy) 4%,transparent);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;color:var(--ink-primary);font:400 13px var(--font-sans);z-index:10000}
.portal-select-options[hidden]{display:none}
.portal-select-option{position:relative;padding:11px 34px 11px 12px;border-radius:4px;line-height:1.4;cursor:pointer;white-space:normal}
.portal-select-option[aria-selected=true]{font-weight:600;background:var(--bg-canvas)}
.portal-select-option[aria-selected=true]::after{content:'';position:absolute;right:14px;top:50%;width:5px;height:9px;border-right:1.7px solid var(--brand-navy);border-bottom:1.7px solid var(--brand-navy);transform:translateY(-65%) rotate(45deg)}
.portal-select-option.is-active,.portal-select-option:hover{background:var(--bg-canvas)}
.portal-select-option[aria-disabled=true]{opacity:.4;cursor:not-allowed}
.radius-select-wrap>.portal-select{height:42px}
.radius-select-wrap .portal-select-trigger{border-radius:0 var(--radius-sm) var(--radius-sm) 0;padding:0 9px;font-size:12px;gap:6px}
.hero-search-box .portal-select,.form-select+.portal-select-trigger{height:44px}
@media(max-width:991px){.portal-select-option{min-height:44px;box-sizing:border-box;display:flex;align-items:center}}

/* Text entry uses the same surface, typography and navy focus as the pickers. */
input:is([type=text],[type=email],[type=tel],[type=number],[type=search],:not([type])),textarea{border:1px solid var(--line-default);border-radius:var(--radius-sm);background:var(--bg-paper);color:var(--ink-primary);font:400 13px var(--font-sans);transition:border-color .15s,box-shadow .15s}
input:is([type=text],[type=email],[type=tel],[type=number],[type=search],:not([type])):hover,textarea:hover{border-color:var(--ink-faint)}
input:is([type=text],[type=email],[type=tel],[type=number],[type=search],:not([type])):focus,textarea:focus{border-color:var(--brand-navy);box-shadow:0 0 0 3px var(--bg-canvas);outline:none!important}
input:focus-visible,textarea:focus-visible{outline:2px solid var(--brand-navy)!important;outline-offset:3px!important}
input::placeholder,textarea::placeholder{color:var(--ink-muted);opacity:.75}
.filter-range-control:hover{border-color:var(--ink-faint)}
.filter-range-control:focus-within,.location-radius-group:focus-within{border-color:var(--brand-navy);box-shadow:0 0 0 3px var(--bg-canvas)}
.filter-range-control input,.filter-range-control input:hover,.filter-range-control input:focus{border:0;border-radius:0;background:transparent;box-shadow:none}
.filter-range-control input:focus-visible,.location-input:focus-visible{outline:none!important}
.filter-controls-group .location-autocomplete-wrap:focus-within{box-shadow:0 0 0 3px var(--bg-canvas)}
.filter-bar .filter-controls-group .location-input:focus{border-color:var(--brand-navy)!important}
.filter-range-control input::placeholder{color:var(--ink-muted);opacity:.75}
.segmented-rooms .seg-room-btn:first-child,.filter-bar .segmented-rooms .seg-room-btn:first-child{flex:1}
.room-toggle-group{height:44px;display:flex;box-sizing:border-box}
.room-toggle-group .seg-room-btn{flex:1;padding:0 10px}
.segmented-rooms .seg-room-btn:focus-visible{outline:2px solid var(--brand-navy)!important;outline-offset:-3px!important}
.segmented-rooms .seg-room-btn.active:focus-visible{outline-color:var(--bg-paper)!important}

/* Audit corrections preserve the approved two-row desktop filters. */
.safeguards-footer-cta-cue{max-width:100%;min-width:0;flex-shrink:1}
.safeguards-footer-cta-text{min-width:0;overflow-wrap:anywhere;white-space:normal}
.safeguards-footer-arrow-circle{flex:0 0 32px}
.login-choice-wrapper{padding-top:var(--view-pad-top)}
.login-choice-header{margin-bottom:var(--space-8)}
.login-choice-card{min-width:0}
.login-choice-footer{max-width:65ch;margin-inline:auto}
.mobile-nav-panel,.modal-body,.mobile-sheet-body,.fs-map-sidebar,.mobile-filters-content{overscroll-behavior:contain}
@media(max-width:899px){
  .header-inner{padding-inline:var(--page-gutter);gap:var(--space-2);min-height:60px;height:auto}
  .header-actions{gap:var(--space-1);min-width:0;margin-left:auto}
  #header-btn-login{display:none!important}
  .brand-block{min-width:0;flex-shrink:0}
  .brand-logo{font-size:var(--text-lg)}
  .brand-tagline-text{display:none}
  .header-actions .dropdown-trigger{min-height:44px;min-width:44px;padding-inline:var(--space-2);border-radius:var(--radius-sm)}
  .mobile-menu-toggle{width:44px;height:44px;flex:0 0 44px;border-radius:var(--radius-sm)}
  .mobile-nav-close{width:44px;height:44px;border-radius:var(--radius-sm)}
}
@media(max-width:991px){
  .hero-search-box :is(input,select,.portal-select-trigger){font-size:16px!important;min-height:44px}
  .hero-search-box .radius-select-wrap{min-width:88px;flex-basis:88px}
  .mobile-filter-toolbar>button{height:44px!important;border-radius:var(--radius-sm)!important}
  .contact-view :is(input:not([type=checkbox]),.portal-select-trigger),.unit-inline-buybox-form input{min-height:44px}
  .modal-close,.modal-close-icon-btn{min-height:44px;min-width:44px}
  .portal-select-trigger{font-size:16px}
  .concierge-dock{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom))}
}
.developer-meta-row{row-gap:var(--space-3)}
/* developer-profile-trust replaced with standardized pills */
.buybox-inline-form>summary{font-size:var(--text-base);font-weight:var(--font-weight-ui);color:var(--brand-primary);cursor:pointer;min-height:44px;align-content:center}
.buybox-inline-form[open]>summary{margin-bottom:var(--space-3)}
.btn-buybox-wa{background:var(--bg-paper);color:#075e35;border:1px solid #b8d5c4}
.contact-message-shortcut{display:none}
@media(max-width:991px){
  #app :is(button,.seg-room-btn),.modal-overlay button,.fs-map-header button{min-height:44px}
  .card-slider-btn,.stage-slider-btn,.lightbox-nav-btn,.lightbox-fixed-close-btn{min-width:44px;min-height:44px}
  .leaflet-control-zoom a{width:44px!important;height:44px!important;line-height:44px!important}
  .modal-overlay :is(input:not([type=checkbox]),textarea,.portal-select-trigger){font-size:16px!important}
  #unit-inline-buybox-form :is(input:not([type=hidden]),button){min-height:44px;font-size:16px!important}
  .contact-view input:not([type=checkbox]),.contact-view .portal-select-trigger{min-height:44px}
  .contact-message-shortcut{display:inline-flex;min-height:44px;align-items:center;margin-top:var(--space-4)}
  #contact-form-section{scroll-margin-top:var(--section-gap-lg)}
  body:has(input:focus,textarea:focus,select:focus) .concierge-dock{display:none}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto!important}
  *,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
.skip-link{position:fixed;top:8px;left:8px;z-index:200000;padding:10px 16px;background:var(--brand-primary);color:#fff;font:600 13px var(--font-sans);border-radius:var(--radius-sm);box-shadow:0 4px 14px rgba(31,42,68,.25);transform:translateY(-150%);transition:transform .15s ease}
.skip-link:focus,.skip-link:focus-visible{transform:translateY(0);outline:2px solid var(--brand-cta)!important;outline-offset:2px!important}
.media-placeholder{width:100%;height:100%;min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:18px;text-align:center;background:var(--bg-section-sand);color:var(--ink-muted);border-bottom:1px solid var(--line-subtle);box-sizing:border-box}
.unit-media-showcase .media-placeholder{min-height:340px;border:1px solid var(--line-default);border-radius:var(--radius-sm)}
.media-placeholder svg{width:28px;height:28px;color:var(--ink-muted);opacity:.8}
.media-placeholder-title{font:600 13px/1.35 var(--font-display);color:var(--ink-primary)}
.media-placeholder-sub{font:400 12px/1.4 var(--font-sans);color:var(--ink-muted);max-width:34ch}
.inventory-status-note{margin-top:12px;padding:10px 14px;border-radius:var(--radius-sm);background:var(--status-reserved-bg);color:var(--status-reserved-text);border:1px solid #e7c28d;font:600 13px/1.45 var(--font-sans)}
.dev-card-identity,.dev-card-meta-title,.dev-card-title-line,.developer-info-col,.card-dev-brand,.featured-dev-brand,.advisor-info{min-width:0}
.dev-card-title-line h2,.developer-info-col h1,.featured-dev-name,.card-dev-brand-name,.byline-dev-link,.advisor-info p,.unit-header-title,.card-title,.featured-card-title,.promoted-card-title,.unit-item-title{overflow-wrap:anywhere;word-break:break-word;min-width:0}
.card-footer-row .featured-dev-brand,.card-footer-row .card-dev-brand,.featured-footer-row .featured-dev-brand,.promoted-footer-row .card-dev-brand{min-width:0;flex:0 1 auto!important;width:fit-content!important;max-width:calc(100% - 36px)!important;overflow:hidden}
.featured-dev-name,.card-dev-brand-name{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.featured-carousel-viewport{overflow:visible!important}
.featured-carousel-track{box-sizing:content-box!important;width:100%!important;padding:20px var(--page-gutter,24px) 32px!important;margin:-14px calc(-1 * var(--page-gutter,24px)) -26px!important;scroll-padding-inline:var(--page-gutter,24px)!important}




/* =========================================================================
   FAVORITES (ULUBIONE) & INQUIRY CHAT REFINEMENTS
   ========================================================================= */

/* Unit card floating heart button */
.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted, #5A6578);
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.card-fav-btn:hover {
  background: #FFFFFF;
  color: #E11D48;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.card-fav-btn:focus-visible {
  outline: 2px solid var(--brand-primary, #1F2A44);
  outline-offset: 2px;
}

.card-fav-btn.is-active {
  color: #E11D48;
  background: #FFFFFF;
  border-color: rgba(225, 29, 72, 0.25);
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.2);
}

.card-fav-btn svg {
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-fav-btn:active svg {
  transform: scale(0.85);
}

.card-fav-btn.is-active svg {
  transform: scale(1.05);
}

/* Detail view header & buybox favorite buttons */
.btn-unit-fav-detail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--line-default, #D9DFE8);
  background: #FFFFFF;
  color: var(--ink-secondary, #4A5568);
  font: 600 13px/1 var(--font-sans);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-unit-fav-detail:hover {
  border-color: #E11D48;
  color: #E11D48;
  background: #FFF1F2;
}

.btn-unit-fav-detail.is-active {
  border-color: #E11D48;
  color: #E11D48;
  background: #FFF1F2;
}

.btn-unit-fav-buybox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  border-radius: var(--radius-sm, 4px);
  border: 1px solid var(--line-default, #D9DFE8);
  background: var(--bg-paper, #FFFFFF);
  color: var(--ink-primary, #1F2A44);
  font: 600 14px/1 var(--font-sans);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 6px;
}

.btn-unit-fav-buybox:hover {
  border-color: #E11D48;
  color: #E11D48;
  background: #FFF1F2;
}

.btn-unit-fav-buybox.is-active {
  border-color: #E11D48;
  color: #E11D48;
  background: #FFF1F2;
}

/* Toast Notification */
.polodom-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  opacity: 0;
  pointer-events: none;
  z-index: 210000;
  background: #1F2A44;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 600 13.5px/1.2 var(--font-sans);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.polodom-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.polodom-toast .toast-icon {
  flex-shrink: 0;
}


/* Prevent badge overlap with heart button */
.featured-media-badges {
  right: 54px !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

/* Quick Chat Dialog & Buybox Actions */
.quick-chat-card {
  max-width: 440px !important;
  border-radius: var(--radius-md, 8px);
}
.quick-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-section-sand, #F7F3EC);
  color: var(--brand-primary, #1F2A44);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-chat-unit-info {
  background: var(--bg-canvas, #F8FAFC);
  border: 1px solid var(--line-default, #E2E8F0);
  border-radius: var(--radius-sm, 4px);
  padding: 8px 12px;
  font-size: var(--text-xs, 12px);
  color: var(--ink-muted, #5A6578);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.quick-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.quick-chat-chip {
  background: #FFFFFF;
  border: 1px solid var(--line-default, #EAE5DC);
  border-radius: 9999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-primary, #1F2A44);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.quick-chat-chip:hover {
  background: var(--bg-section-sand, #F7F3EC);
  border-color: var(--brand-cta, #A94F2C);
  color: var(--brand-primary, #1F2A44);
}
.btn-buybox-quick-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  border-radius: var(--radius-sm, 6px);
  background: #FFFFFF;
  color: var(--brand-primary, #1F2A44);
  border: 1px solid var(--line-default, #EAE5DC);
  font: 600 14px/1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  margin-top: 6px;
}
.btn-buybox-quick-chat:hover {
  background: var(--bg-canvas, #FAF8F4);
  border-color: var(--brand-primary, #1F2A44);
  color: var(--brand-primary, #1F2A44);
}

/* Favorite buttons only visible for authenticated users */
body:not(.user-logged-in) .card-fav-btn,
body:not(.user-logged-in) .btn-unit-fav-detail,
body:not(.user-logged-in) [data-fav-unit-id] {
  display: none !important;
}

/* =========================================================================
   OTODOM / OLX / OTOMOTO MARKETPLACE CLEANLINESS REFINEMENTS (ALL TABS)
   ========================================================================= */

#header-btn-login {
  height: 32px;
  padding: 0 12px;
  font-size: var(--text-sm);
  font-weight: 600;
  background-color: #FFFFFF;
  border: 1px solid var(--line-default);
  color: var(--brand-primary);
  border-radius: var(--radius-sm);
}

#header-btn-login:hover {
  background-color: var(--bg-canvas);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.section-eyebrow,
.safeguards-eyebrow,
.charter-eyebrow,
.contact-eyebrow,
.login-choice-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-cta);
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.unit-listing-card,
.featured-grid-card,
.promoted-unit-card,
.developer-unit-card,
.developer-hub-card,
.login-choice-card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) {
  .unit-listing-card:hover,
  .featured-grid-card:hover,
  .promoted-unit-card:hover,
  .developer-unit-card:hover,
  .developer-hub-card:hover,
  .login-choice-card:hover {
    border-color: #D2C8BA;
    box-shadow: var(--shadow-md);
  }
}

.card-specs-row,
.mobile-specs-chips {
  gap: 0 !important;
}

.omnibus-price-box,
.omnibus-price-badge,
.unit-omnibus-banner {
  background: transparent !important;
  border: 0 !important;
  padding: 2px 0 !important;
  box-shadow: none !important;
}

.safeguard-icon-badge {
  background-color: #F4EFE6 !important;
  border: 0 !important;
  color: var(--brand-cta) !important;
}

.dev-card-projects-row {
  border-top: 1px solid var(--line-subtle) !important;
  border-bottom: 1px solid var(--line-subtle) !important;
}

.dev-project-chip {
  background-color: #F5F1E9 !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-social[hidden],
.footer-social-link[hidden] {
  display: none !important;
}

.footer-social-label {
  font-size: var(--text-xs, 11px);
  font-weight: 600;
  color: #A4B1C6;
  margin-right: 4px;
}

.footer-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #DDE3ED;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 768px) {
  .polodom-footer {
    padding-bottom: 112px;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .footer-social {
    width: 100%;
  }
}

.card-dev-badge.has-logo,
.dev-card-logo.has-logo,
.developer-logo-box.has-logo,
.advisor-avatar-circle.has-logo {
  background-color: #FFFFFF !important;
  border: 1px solid var(--line-default, #EAE5DC);
  overflow: hidden;
}

.card-dev-badge.has-logo { padding: 2px; }
.dev-card-logo.has-logo { padding: 5px; }
.developer-logo-box.has-logo { padding: 8px; }
.advisor-avatar-circle.has-logo { padding: 4px; }

.card-dev-badge.has-logo img,
.dev-card-logo.has-logo img,
.developer-logo-box.has-logo img,
.advisor-avatar-circle.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.developer-header-card .developer-meta-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  padding-top: 18px;
}

.developer-header-card .developer-meta-cell {
  border-right: 0 !important;
  border-bottom: 0 !important;
  padding: 0 !important;
  flex: none !important;
  min-width: 0;
}

.developer-header-card .developer-meta-val {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink-primary);
  overflow-wrap: break-word;
  word-break: normal;
}

.developer-header-card .dev-meta-link {
  color: var(--brand-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.developer-header-card .dev-meta-link:hover {
  color: var(--brand-cta);
}

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

@media (max-width: 560px) {
  .developer-header-card .developer-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}


/* ==========================================================================
   DOPRACOWANIE WIZUALNE — listopad 2026 (v3.9)
   ========================================================================== */

/* Tokeny i powierzchnie przeglądarki */
:root { --ink-faint: #69728A; --ease-out: cubic-bezier(0.22, 1, 0.36, 1); accent-color: var(--brand-navy); }
::selection { background: color-mix(in srgb, var(--brand-cta) 22%, var(--bg-paper)); color: var(--ink-primary); }
input, textarea { caret-color: var(--brand-cta); }
input::placeholder, textarea::placeholder { color: var(--ink-faint); opacity: 1; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
html { scrollbar-color: color-mix(in srgb, var(--ink-muted) 45%, transparent) transparent; }
a:not([class]) { text-underline-offset: 3px; }
.btn-primary, .btn-outline, .btn-buybox-inquire, .btn-buybox-quick-chat { transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s var(--ease-out); }
.btn-primary:active, .btn-outline:active, .btn-buybox-inquire:active, .btn-buybox-quick-chat:active { transform: scale(0.98); }

/* Hero */
.hero-title { max-width: 21em; text-wrap: balance; }
.hero-subtitle { max-width: 62ch; }
@media (min-width: 1025px) {
  .hero-search-box { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
}

/* 5 filarów: jedna powierzchnia dzielona liniami zamiast pięciu osobnych kafli */
.pillars-grid {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--line-default); border: 1px solid var(--line-default);
  border-radius: var(--radius-md); overflow: hidden; margin: 0; padding: 0;
}
.pillar-card, .pillar-card:hover {
  flex: 1 1 210px; border: 0; border-radius: 0; box-shadow: none; transform: none;
  background: var(--bg-paper); padding: var(--space-6) var(--space-5); gap: var(--space-3);
}
.pillar-icon { display: inline-flex; color: var(--brand-cta); }
.pillar-icon .icon { width: 24px; height: 24px; stroke-width: 1.7; }
.pillar-title { margin: var(--space-1) 0 0; }
.pillar-desc { margin: 0; }
@media (max-width: 640px) {
  .pillar-card, .pillar-card:hover { flex-basis: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--space-4); row-gap: var(--space-2); padding: var(--space-5) var(--space-4); align-content: start; }
  .pillar-icon { grid-row: 1 / span 2; }
  .pillar-title { margin: 0; }
}

/* Karty bloga: cała karta klikalna, bez przycisku w każdym kaflu */

/* Widoki do czytania: artykuł + spis treści, w pełnej szerokości siatki 1200 px */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.article-aside { display: none; }
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .article-aside { display: grid; gap: var(--space-4); position: sticky; top: 92px; }
}
.article-toc { background: var(--bg-paper); border: 1px solid var(--line-default); border-radius: var(--radius-md); padding: var(--space-5) var(--space-4) var(--space-3); max-height: calc(100dvh - 190px); overflow: auto; }
.article-toc h2 { font-size: var(--text-md); margin: 0 var(--space-2) var(--space-3); color: var(--ink-primary); }
.article-toc ol { list-style: none; margin: 0; padding: 0; }
.article-toc button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: var(--radius-sm); padding: var(--space-2); font: 400 13px/1.45 var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.article-toc button:hover { background: var(--bg-canvas); color: var(--ink-primary); }
.article-aside-cta { justify-content: center; text-align: center; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

/* Wybór rodzaju konta */
.login-choice-wrapper { background: none; min-height: 0; padding-block: var(--section-gap-md) var(--view-pad-bottom); display: block; }
.login-choice-footer { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; }

/* Karta lokalu: hierarchia działań */
.buybox-actions-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.buybox-actions-stack > * { grid-column: 1 / -1; margin: 0; }
.buybox-actions-stack > .btn-buybox-quick-chat:has(+ .masked-phone-wrapper),
.buybox-actions-stack > .btn-buybox-quick-chat + .masked-phone-wrapper { grid-column: auto; min-width: 0; height: 42px; margin: 0; box-sizing: border-box; }
.buybox-actions-stack > .btn-buybox-quick-chat { font-size: 13px; white-space: nowrap; padding-inline: var(--space-2); }
.btn-buybox-platform { background: none; border: 0; padding: var(--space-2); min-height: 36px; font: 600 13px/1.3 var(--font-sans); color: var(--brand-cta); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--brand-cta) 35%, transparent); }
.btn-buybox-platform:hover { text-decoration-color: currentColor; }

/* Stopka: czytelne pole newslettera */
.polodom-footer input::placeholder, footer input[type="email"]::placeholder { color: #AEB6C8; }

/* Telefony */
@media (max-width: 640px) {
  .hero-search-box .location-input { text-overflow: ellipsis; }
  .featured-carousel-track > .featured-grid-card:only-child { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; }
  .bento-spec-label, .bento-spec-val { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: break-word; }
}
@media (max-width: 480px) {
  .buybox-actions-stack > .btn-buybox-quick-chat, .buybox-actions-stack > .masked-phone-wrapper { grid-column: 1 / -1 !important; height: 44px !important; font-size: 14px !important; }
}
@media (max-width: 959px) {
  .unit-header-card { padding: 0 !important; margin-bottom: var(--space-4) !important; }
}

/* ==========================================================================
   KARTA LOKALU — układ z galerią (listopad 2026). Przedrostek .ud-
   ========================================================================== */
.unit-detail-view.ud { --ud-header: 68px; max-width: none; width: 100%; margin: 0; padding: 0; background: var(--bg-paper); }
.ud-wrap { max-width: var(--max-width); width: 100%; margin-inline: auto; padding-inline: var(--page-gutter); box-sizing: border-box; }
.ud h2, .ud h3 { font-family: var(--font-display); color: var(--ink-primary); margin: 0; }
.ud p, .ud dl, .ud dd, .ud ul { margin: 0; }
.ud ul { padding: 0; list-style: none; }

.ud-crumbs { display: flex; align-items: center; gap: var(--space-5); padding-block: var(--space-3); font-size: 13px; color: var(--ink-muted); }
.ud-crumbs .ud-back { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; padding: 0; min-height: 28px; background: none; border: 0; box-shadow: none; font-size: 13px; font-weight: var(--font-weight-ui); color: var(--ink-primary); text-decoration: none; }
.ud-back-short { display: none; }
.ud-path { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.ud-path a { color: inherit; text-decoration: none; }
.ud-path a:hover { text-decoration: underline; }
.ud-path i { font-style: normal; opacity: .6; }
.ud-dsa-top, .ud-dsa-bottom { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0; font: 400 13px var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.ud-dsa-top { margin-left: auto; min-height: 28px; }
.ud-dsa-top:hover, .ud-dsa-bottom:hover { color: var(--brand-cta); text-decoration: underline; text-underline-offset: 4px; }
.ud-dsa-bottom { display: none; }

/* Galeria */
.ud-gallery-wrap { position: relative; }
.ud-gallery { display: grid; gap: 6px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 206px); border-radius: var(--radius-lg); overflow: hidden; }
.ud-tile { position: relative; display: block; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: var(--bg-section-sand); overflow: hidden; cursor: zoom-in; }
.ud-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ud-tile:focus-visible { outline: 3px solid var(--brand-navy); outline-offset: -3px; }
.ud-empty { cursor: default; }
.ud-empty .media-placeholder { height: 100%; min-height: 0; }
.ud-plan { background: var(--bg-canvas); box-shadow: inset 0 0 0 1px var(--line-default); }
.ud-plan img { object-fit: contain; padding: 12px 12px 54px; box-sizing: border-box; }
.ud-extra { display: none; }
.ud-gallery[data-tiles="1"] { grid-template-columns: 1fr; grid-template-rows: 418px; }
.ud-gallery[data-tiles="2"] { grid-template-columns: 1fr 1fr; grid-template-rows: 418px; }
.ud-gallery[data-tiles="3"] { grid-template-columns: 2fr 1fr; }
.ud-gallery[data-tiles="3"] > :first-child, .ud-gallery[data-tiles="4"] > :first-child, .ud-gallery[data-tiles="5"] > :first-child { grid-row: span 2; }
.ud-gallery[data-tiles="4"] > :nth-child(2) { grid-column: span 2; }
.ud-chip { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: 0 var(--space-3); background: var(--bg-paper); color: var(--ink-primary); border: 0; border-radius: var(--radius-sm); box-shadow: 0 2px 10px rgba(31, 42, 68, .18); font: 600 13px var(--font-sans); cursor: pointer; white-space: nowrap; }
.ud-plan .ud-chip { position: absolute; left: 12px; bottom: 12px; }
.ud-all-photos { position: absolute; z-index: 1; left: calc(var(--page-gutter) + 12px); bottom: 12px; }
.ud-plan-mobile, .ud-counter { display: none; }

/* Dwie kolumny */
.ud-grid { display: grid; grid-template-columns: minmax(0, 1fr) 384px; grid-template-areas: "head aside" "body aside"; grid-template-rows: auto 1fr; column-gap: 64px; align-items: start; padding-block: var(--space-6) var(--view-pad-bottom); }
.ud-head { grid-area: head; margin: 0 !important; padding: 0 !important; }
.ud-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.ud-title-row h1 { font-size: 32px; line-height: 1.22; margin: 0; min-width: 0; }
.ud-address { display: flex; gap: var(--space-2); margin-top: 10px !important; color: var(--ink-muted); line-height: 1.6; }
.ud-address .icon { flex: none; margin-top: 4px; }
.ud .ud-map { display: inline; background: none; border: 0; padding: 0; margin-left: var(--space-2); font: 600 var(--text-base) var(--font-sans); color: var(--brand-cta); cursor: pointer; }
.ud .ud-map:hover { text-decoration: underline; text-underline-offset: 4px; }

.ud-aside { grid-area: aside; position: sticky; top: calc(var(--ud-header) + 16px); border: 1px solid var(--line-default); border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgba(31, 42, 68, .09); background: var(--bg-paper); }
.ud-card { padding: 20px 24px; }
.ud-price .buybox-main-price { font: 700 var(--text-3xl)/1.15 var(--font-display); color: var(--brand-primary); letter-spacing: -.03em; }
.ud-price .buybox-m2-price { font-size: var(--text-base); color: var(--ink-muted); }
.ud-omnibus { display: flex; flex-wrap: wrap; gap: 2px var(--space-3); margin-top: var(--space-2); font-size: 12px; color: var(--ink-muted); }
.ud-actions { display: grid; gap: var(--space-2); margin-top: var(--space-4); }
.ud-actions .btn-buybox-inquire, .ud-actions .btn-buybox-quick-chat, .ud-actions .masked-phone-wrapper { width: 100%; margin: 0; box-sizing: border-box; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; gap: var(--space-2); }
.ud-actions .btn-buybox-inquire { height: 48px; font-size: 15px; }
.ud-actions .btn-buybox-quick-chat, .ud-actions .masked-phone-wrapper { height: 44px; min-height: 44px; padding: 0; background: var(--bg-paper); border: 1px solid var(--line-default); font-size: var(--text-base); }
.ud-actions .masked-phone-wrapper:hover, .ud-actions .btn-buybox-quick-chat:hover { border-color: var(--brand-primary); background: var(--bg-canvas); }
.ud-actions .btn-reveal-phone { width: 100%; height: 100%; justify-content: center; }
.ud-actions button:disabled { opacity: .55; cursor: not-allowed; }

.ud-dev { border-top: 1px solid var(--line-default); background: var(--bg-canvas); }
.ud-dev-who { display: flex; align-items: center; gap: var(--space-3); }
.ud-dev-mark { flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; color: #fff; font: 700 15px var(--font-display); overflow: hidden; }
.ud-dev-mark.has-logo { background: var(--bg-paper); border: 1px solid var(--line-default); }
.ud-dev-mark img { width: 100%; height: 100%; object-fit: contain; }
.ud-dev-who > div:last-child { min-width: 0; }
.ud-dev h2 { font-size: var(--text-md); line-height: 1.35; overflow-wrap: anywhere; }
.ud-dev h2 a { color: inherit; }
.ud-verified { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: var(--font-weight-ui); color: var(--status-available-text); }
.ud-verified .icon { width: 14px; height: 14px; }
.ud-dev h3 { font: 600 13px var(--font-sans); margin-top: var(--space-4); }
.ud-hours { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-4); margin-top: var(--space-3) !important; }
.ud-hours dt { font-size: 12px; color: var(--ink-muted); }
.ud-hours dd { font-weight: var(--font-weight-ui); color: var(--ink-primary); }
.ud-dev-note { margin-top: var(--space-3) !important; font-size: 12px; line-height: 1.5; color: var(--ink-muted); }

.ud-body { grid-area: body; min-width: 0; }
.ud-facts { display: flex; flex-wrap: wrap; margin-top: var(--space-6) !important; border-block: 1px solid var(--line-default); }
.ud-facts > div { flex: 1 1 140px; padding: 16px 20px; border-left: 1px solid var(--line-default); }
.ud-facts > div:first-child { border-left: 0; padding-left: 0; }
.ud-facts dt { font-size: 13px; color: var(--ink-muted); }
.ud-facts dd { font: 700 var(--text-xl) var(--font-display); color: var(--ink-primary); }
.ud-tabs { position: sticky; top: var(--ud-header); z-index: 3; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; background: var(--bg-paper); border-bottom: 1px solid var(--line-default); }
.ud-tabs::-webkit-scrollbar { display: none; }
.ud-tabs button { flex: none; min-height: 48px; padding: 3px 0 0; background: none; border: 0; border-bottom: 3px solid transparent; font: 600 var(--text-base) var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.ud-tabs button:hover { color: var(--ink-primary); }
.ud-tabs button.is-current { color: var(--ink-primary); border-bottom-color: var(--brand-cta); }
.ud-section { padding-top: 40px; scroll-margin-top: calc(var(--ud-header) + 48px); }
.ud-section:focus { outline: none; }
.ud-section + .ud-section { margin-top: 40px; border-top: 1px solid var(--line-default); }
.ud-section > h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.ud-lead { max-width: 68ch; font-size: var(--text-md); line-height: 1.75; overflow-wrap: anywhere; }
.ud-investment { margin-top: var(--space-4) !important; color: var(--ink-muted); }
.ud-investment strong { color: var(--ink-primary); }
.ud-rooms { width: 100%; border-collapse: collapse; }
.ud-rooms th, .ud-rooms tbody td { padding: 12px 0; border-bottom: 1px solid var(--line-default); text-align: left; font-weight: var(--font-weight-regular); vertical-align: middle; overflow-wrap: anywhere; }
.ud-rooms tbody td { text-align: right; padding-left: var(--space-4); font-weight: var(--font-weight-ui); color: var(--ink-primary); }
.ud-rooms th small { display: block; font-size: 12px; color: var(--ink-muted); }
.ud-rooms .ud-total > * { font-weight: var(--font-weight-heading); color: var(--ink-primary); border-bottom: 2px solid var(--brand-primary); }
.ud-params { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.ud-params > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-3); padding: 12px 0; border-bottom: 1px solid var(--line-default); }
.ud-params dt { color: var(--ink-muted); }
.ud-params dd { font-weight: var(--font-weight-ui); color: var(--ink-primary); overflow-wrap: anywhere; }
.ud-safety { display: grid; gap: var(--space-5); }
.ud-safety li { display: flex; gap: var(--space-3); }
.ud-safety .icon { flex: none; width: 24px; height: 24px; color: var(--status-available-text); }
.ud-safety h3 { font-size: var(--text-md); }
.ud-safety p { max-width: 66ch; color: var(--ink-muted); }

.ud-more { background: var(--bg-canvas); border-top: 1px solid var(--line-default); padding-block: var(--section-gap-md) var(--view-pad-bottom); }
.ud-more h2 { font-size: var(--text-xl); margin-bottom: var(--space-6); }
.ud-more .cross-sell-cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }

@media (min-width: 960px) { .unit-sticky-bottom-bar.ud-bar { display: none; } }

@media (max-width: 959px) {
  .ud-top { position: relative; }
  .ud-wrap.ud-crumbs { position: absolute; top: 12px; left: 12px; z-index: 2; width: auto; padding: 0; margin: 0; }
  .ud-path, .ud-dsa-top, .ud-back-long { display: none; }
  .ud-back-short { display: inline; }
  .ud-crumbs .ud-back { min-height: 44px; padding: 0 14px; background: var(--bg-paper); border-radius: var(--radius-sm); box-shadow: 0 2px 10px rgba(31, 42, 68, .18); }
  .ud-wrap.ud-gallery-wrap { padding: 0; max-width: none; }
  .ud-gallery, .ud-gallery[data-tiles] { display: flex; gap: 0; height: clamp(240px, 70vw, 420px); border-radius: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ud-gallery::-webkit-scrollbar { display: none; }
  .ud-gallery > .ud-tile, .ud-gallery > .ud-extra { display: block; flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
  .ud-gallery:has(.ud-photo, .ud-empty) > .ud-plan { display: none; }
  .ud-all-photos { left: 12px; min-height: 44px; }
  .ud-plan-mobile { display: inline-flex; position: absolute; z-index: 1; right: 12px; bottom: 12px; min-height: 44px; }
  .ud-counter { display: block; position: absolute; z-index: 1; top: 12px; right: 12px; padding: 5px 12px; border-radius: var(--radius-full); background: rgba(31, 42, 68, .78); color: #fff; font: 600 12px var(--font-sans); }

  .ud-grid { display: flex; flex-direction: column; align-items: stretch; padding-block: var(--space-5) var(--space-7); }
  .ud-aside { display: contents; }
  .ud-head { order: 1; }
  .ud-buy { order: 2; padding: var(--space-4) 0 0; }
  .ud-body { order: 3; }
  .ud-dev { order: 4; margin: var(--space-7) calc(-1 * var(--page-gutter)) 0; padding: var(--space-5) var(--page-gutter); border-bottom: 1px solid var(--line-default); }
  .ud-dsa-bottom { display: block; order: 5; align-self: flex-start; min-height: 44px; margin-top: var(--space-3); text-decoration: underline; text-underline-offset: 4px; }
  .ud-title-row { flex-wrap: wrap; }
  .ud-title-row h1 { font-size: 25px; }
  .ud-price .buybox-main-price { font-size: 32px; }
  .ud-actions .btn-buybox-inquire { height: 52px; }
  .ud-actions .btn-buybox-quick-chat, .ud-actions .masked-phone-wrapper { height: 48px; }
  .ud-facts { margin-top: var(--space-5) !important; }
  .ud-tabs { gap: var(--space-5); }
  .ud-params { grid-template-columns: minmax(0, 1fr); }
  .unit-sticky-bottom-bar.ud-bar { display: flex; gap: var(--space-2); align-items: center; }
  .ud-bar .sticky-bar-btn { flex: 1 1 auto; height: 48px; margin: 0; }
  .ud-bar .sticky-bar-chat, .ud-bar .ud-bar-phone { flex: 0 0 48px; width: 48px; height: 48px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 560px) {
  .ud-facts > div { flex-basis: 50%; box-sizing: border-box; padding: 12px 0; }
  .ud-facts > div:nth-child(even) { padding-left: var(--space-4); }
  .ud-facts > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ud-facts > div:nth-child(n+3) { border-top: 1px solid var(--line-default); }
}
.ud-actions .masked-phone-wrapper .phone-trigger-text, .ud-actions .masked-phone-wrapper .btn-reveal-phone { font: 600 var(--text-base) var(--font-sans); text-decoration: none; color: var(--brand-primary); }
.ud-rooms tbody td { min-width: 6.5em; }
@media (min-width: 561px) {
  .ud-facts { flex-wrap: nowrap; }
  .ud-facts > div { flex: 1 1 auto; min-width: 0; }
  .ud-facts dd { white-space: nowrap; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .ud-grid { grid-template-columns: minmax(0, 1fr) 340px; column-gap: var(--space-8); }
  .ud-facts > div { padding-inline: 12px; }
  .ud-facts dd { font-size: var(--text-lg); }
  .ud-params { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 959px) {
  .ud .ud-map { display: flex; align-items: center; margin: 0; min-height: 36px; }
  .ud-more .cross-sell-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-sticky-bottom-bar.ud-bar.is-idle { visibility: hidden; }
}
@media (max-width: 640px) {
  .ud-more .cross-sell-cards-grid { grid-template-columns: minmax(0, 1fr); }
}
.ud .btn-unit-fav-detail:not(.is-active) { color: var(--brand-primary); background: var(--bg-paper); border-color: var(--line-default); }

/* ==========================================================================
   WSPÓLNA KARTA LOKALU (.apt-) — listopad 2026
   ========================================================================== */
.apt-card.apt-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; background: var(--bg-paper); border: 1px solid var(--line-default); border-radius: var(--radius-lg); overflow: hidden; box-shadow: none; cursor: pointer; transition: box-shadow .18s ease, border-color .18s ease; }
.apt-card .apt-media { position: relative; width: 100%; aspect-ratio: 4 / 3; flex: none; overflow: hidden; background: var(--bg-section-sand); }
.apt-card .apt-media-link { display: block; width: 100%; height: 100%; }
.apt-card .apt-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease-out); }
.apt-card .media-placeholder { height: 100%; min-height: 0; }
.apt-tag { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 90px); padding: 5px 10px; border-radius: var(--radius-sm); background: var(--bg-paper); color: var(--brand-primary); font: 600 12px/1.35 var(--font-sans); box-shadow: 0 2px 8px rgba(31, 42, 68, .18); pointer-events: none; }
.apt-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: var(--radius-full); background: rgba(31, 42, 68, .78); color: #fff; font: 600 12px var(--font-sans); pointer-events: none; }
.apt-count .icon { width: 13px; height: 13px; }
.apt-count .card-slider-counter { position: static; inset: auto; transform: none; margin: 0; padding: 0; background: none; opacity: 1; display: inline; color: inherit; font: inherit; }

.apt-card .apt-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 14px 16px 0; }
.apt-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: var(--space-2); }
.apt-price-main { font: 700 var(--text-xl)/1.25 var(--font-display); color: var(--brand-primary); letter-spacing: -.025em; white-space: nowrap; }
.apt-price-sub { font-size: var(--text-sm); color: var(--ink-muted); white-space: nowrap; }
.apt-card .apt-title { margin: var(--space-2) 0 0; padding: 0; font: 700 var(--text-md)/1.38 var(--font-display); letter-spacing: -.015em; color: var(--brand-primary); height: 2.76em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.apt-card .apt-title a { color: inherit; text-decoration: none; transition: color .15s ease; }
.apt-card .apt-params { display: flex; flex-wrap: wrap; row-gap: 2px; list-style: none; margin: 10px 0 0; padding: 0; overflow: hidden; font-size: 13.5px; font-weight: var(--font-weight-ui); color: var(--ink-primary); }
.apt-card .apt-params li { margin: 0; padding: 0 10px; border-left: 1px solid #D9D2C6; white-space: nowrap; }
.apt-card .apt-params li:first-child { padding-left: 0; border-left: 0; }
.apt-loc { margin: 12px 0 14px; min-width: 0; line-height: 1.4; }
.apt-loc strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: var(--font-weight-ui); color: var(--ink-primary); overflow-wrap: break-word; }
.apt-loc span { display: block; min-height: 1.4em; font-size: var(--text-sm); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apt-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin: auto -16px 0; padding: 10px 16px; border-top: 1px solid var(--line-default); background: var(--bg-canvas); }
.apt-dev { display: inline-flex; align-items: center; gap: 9px; min-width: 0; min-height: 28px; font: 600 var(--text-sm)/1.3 var(--font-sans); color: var(--brand-primary); text-decoration: none; }
.apt-dev:hover .apt-dev-name { text-decoration: underline; text-underline-offset: 3px; }
.apt-dev .card-dev-badge { flex: none; width: 24px; height: 24px; border-radius: 4px; display: grid; place-items: center; color: #fff; font: 700 10px var(--font-sans); overflow: hidden; }
.apt-dev .card-dev-badge.has-logo { background: var(--bg-paper); border: 1px solid var(--line-default); }
.apt-dev .card-dev-badge img { width: 100%; height: 100%; object-fit: contain; }
.apt-dev-name { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.apt-arrow { flex: none; margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-default); border-radius: 50%; background: var(--bg-paper); color: var(--brand-cta); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.apt-arrow .icon { display: block; width: 15px; height: 15px; }

/* Karta reaguje jako całość */
@media (hover: hover) {
  .apt-card.apt-card:hover { border-color: #D2C8BA; box-shadow: var(--shadow-md); transform: none !important; }
  .apt-card:hover .apt-media img { transform: scale(1.04); }
  .apt-card:hover .apt-title a { color: var(--brand-cta); }
  .apt-card:hover .apt-arrow { background: var(--brand-cta); border-color: var(--brand-cta); color: #fff; }
}
.apt-card.apt-card:has(.apt-title a:focus-visible) { outline: 2px solid var(--brand-navy); outline-offset: 2px; }
.apt-card:has(.apt-title a:focus-visible) .apt-arrow { background: var(--brand-cta); border-color: var(--brand-cta); color: #fff; }

/* Lista wyników: ta sama karta w układzie poziomym */
@media (min-width: 768px) {
  .apt-card.apt-card--row { display: grid; grid-template-columns: 40% minmax(0, 1fr); min-height: 0; }
  .apt-card--row .apt-media { aspect-ratio: auto; height: 100%; min-height: 232px; width: 100%; max-width: none; }
  .apt-card--row .apt-media-link { position: absolute; inset: 0; }
  .apt-card--row .apt-body { padding: 18px 22px 0; }
  .apt-card--row .apt-price { justify-content: flex-start; column-gap: var(--space-3); }
  .apt-card--row .apt-title { height: auto; font-size: var(--text-lg); }
  .apt-card--row .apt-footer { margin-inline: -22px; padding-inline: 22px; }
}

/* Strona główna: jeden przewijany rząd */
.carousel-nav-controls { display: flex; align-items: center; gap: var(--space-2); }
.home-all-link { margin-right: var(--space-3); font-weight: var(--font-weight-ui); color: var(--brand-cta); text-decoration: none; }
.home-all-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.carousel-nav-controls .btn-carousel-nav { width: 44px; height: 44px; }
.carousel-nav-controls .btn-carousel-nav[hidden] { display: none; }
.carousel-nav-controls .btn-carousel-nav:disabled { opacity: .4; cursor: default; }
.featured-carousel-track { padding-bottom: 44px !important; margin-bottom: -38px !important; }
.featured-carousel-track > .featured-grid-card.apt-card { height: auto; max-height: none; }
@media (min-width: 1024px) {
  .featured-carousel-track { gap: 20px !important; scroll-snap-type: x mandatory; }
  .featured-carousel-track > .featured-grid-card.apt-card { flex: 0 0 calc((100% - 60px) / 4) !important; width: calc((100% - 60px) / 4) !important; min-width: 0 !important; max-width: none !important; scroll-snap-align: start; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .featured-carousel-track > .featured-grid-card.apt-card { flex-basis: calc((100% - 40px) / 3) !important; width: calc((100% - 40px) / 3) !important; }
}
@media (max-width: 640px) {
  .featured-apartments-section .section-heading-row { flex-direction: column; align-items: stretch !important; }
  .carousel-nav-controls { width: 100%; }
  .home-all-link { margin-right: auto; }
}

/* Strona główna: wyszukiwarka — większe, równe pola */
.hero-section { padding-block: 44px 48px; }
.hero-inner .hero-title { font-size: 38px; line-height: 1.18; letter-spacing: -.028em; max-width: 19em; margin-bottom: var(--space-3); }
.hero-inner .hero-subtitle { font-size: var(--text-md); max-width: 66ch; margin-bottom: 26px; }
.hero-search-box.hero-search-box { padding: 20px; gap: 16px; box-shadow: 0 16px 40px rgba(31, 42, 68, .11); }
.hero-search-box .search-field { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; margin: 0; padding: 0; }
.hero-search-box .search-field > :is(label, .search-field-label) { display: block; height: 18px; line-height: 18px; margin: 0; font-size: 13px; text-transform: none; letter-spacing: 0; }
.hero-search-box .search-field > *:not(label):not(.search-field-label):not(.sr-only) { margin: 0; }
.hero-search-box :is(.portal-select, .search-field > .portal-select .portal-select-trigger, .search-input, .segmented-rooms, .seg-room-btn, .btn-hero-search) { height: 52px !important; min-height: 52px !important; box-sizing: border-box; }
.hero-search-box .search-field .portal-select-trigger { width: 100%; }
.hero-search-box .location-radius-group { height: 52px !important; box-sizing: border-box; overflow: hidden; }
.hero-search-box .location-radius-group .location-input { height: 50px !important; min-height: 50px !important; }
.hero-search-box .location-radius-group .radius-select-wrap, .hero-search-box .location-radius-group .radius-select-wrap :is(.portal-select, .portal-select-trigger) { height: 50px !important; min-height: 50px !important; border-block: 0 !important; border-right: 0 !important; border-radius: 0 !important; }
.hero-search-box .btn-hero-search { min-width: 200px; font-size: 15px; }
@media (max-width: 640px) {
  .hero-section { padding-block: 28px 32px; }
  .hero-inner .hero-title { font-size: var(--text-2xl); }
  .hero-inner .hero-subtitle { font-size: var(--text-base); margin-bottom: var(--space-5); }
  .hero-search-box.hero-search-box { padding: 16px; gap: 12px; }
  .hero-search-box .btn-hero-search { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .apt-card.apt-card, .apt-card .apt-media img { transition: none; }
  .apt-card:hover .apt-media img { transform: none; }
}
/* Separator na początku zawiniętego wiersza chowa się poza krawędzią listy */
.apt-card .apt-params { margin-left: -11px; clip-path: inset(0 0 0 11px); }
.apt-card .apt-params li, .apt-card .apt-params li:first-child { padding: 0 10px; border-left: 1px solid #D9D2C6; }

/* ==========================================================================
   MAPA W KATALOGU (.cmap-) — listopad 2026
   ========================================================================== */
.cmap-toggle { display: inline-flex; border: 1px solid var(--line-default); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-paper); }
.cmap-toggle button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border: 0; background: none; font: 600 var(--text-base) var(--font-sans); color: var(--ink-muted); cursor: pointer; }
.cmap-toggle button[aria-pressed="true"] { background: var(--brand-primary); color: #fff; }
.cmap-toggle button:focus-visible { outline: 2px solid var(--brand-cta); outline-offset: -3px; }

body.catalog-map { overflow: hidden; }
body.catalog-map :is(#app, main#app) { padding-bottom: 0 !important; margin-bottom: 0 !important; min-height: 0 !important; }
body.catalog-map :is(#polodom-footer, .privacy-settings, .concierge-dock, .mobile-bottom-nav, .btn-mobile-floating-map-toggle) { display: none !important; }
.cmap { width: 100%; background: var(--bg-paper); }
.cmap-body { display: grid; grid-template-columns: 456px minmax(0, 1fr); border-top: 1px solid var(--line-default); min-height: 0; }
.cmap-list { display: flex; flex-direction: column; min-height: 0; background: var(--bg-canvas); border-right: 1px solid var(--line-default); }
.cmap-head { padding: 14px 16px 12px; border-bottom: 1px solid var(--line-default); }
.cmap-head h2 { margin: 0; font: 700 var(--text-lg)/1.3 var(--font-display); color: var(--brand-primary); }
.cmap-head p { margin: 2px 0 0; font-size: var(--text-sm); color: var(--ink-muted); }
.cmap-back { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin-bottom: 4px; padding: 0; background: none; border: 0; font: 600 13px var(--font-sans); color: var(--brand-cta); cursor: pointer; }
.cmap-back .icon { width: 15px; height: 15px; }
.cmap-items { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; display: flex; flex-direction: column; gap: 12px; padding: 12px 16px 20px; }
.cmap-items > * { flex: none; }
.cmap-unlocated { padding-top: var(--space-3); border-top: 1px solid var(--line-default); }
.cmap-unlocated h3 { margin: 0; font: 700 var(--text-base) var(--font-display); color: var(--brand-primary); }
.cmap-unlocated p { margin: 2px 0 0; font-size: var(--text-sm); color: var(--ink-muted); }
.cmap-empty { padding: var(--space-8) var(--space-4); text-align: center; color: var(--ink-muted); display: grid; gap: var(--space-4); justify-items: center; }

.cmap-stage { position: relative; min-width: 0; min-height: 0; }
.cmap-canvas { position: absolute; inset: 0; z-index: 0; background: #EEF0EC; }
.cmap-canvas .leaflet-tile-pane { filter: grayscale(.85) brightness(1.07) contrast(.9); }
.cmap-error { margin: 0; padding: var(--space-8); text-align: center; color: var(--ink-muted); }
.cmap-draw-layer { position: absolute; inset: 0; z-index: 450; cursor: crosshair; touch-action: none; }
.cmap-draw-layer[hidden], .cmap-banner[hidden], .cmap-tools[hidden], .cmap-tool[hidden] { display: none !important; }
.cmap-tools { position: absolute; z-index: 500; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; }
.cmap-tool { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; background: var(--bg-paper); border: 1px solid var(--line-default); border-radius: var(--radius-sm); box-shadow: 0 4px 14px rgba(31, 42, 68, .14); font: 600 13px var(--font-sans); color: var(--brand-primary); white-space: nowrap; cursor: pointer; }
.cmap-tool .icon { width: 15px; height: 15px; }
.cmap-tool input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand-navy); }
.cmap-banner { position: absolute; z-index: 510; top: 64px; left: 50%; transform: translateX(-50%); display: flex; gap: var(--space-3); align-items: center; padding: 8px 8px 8px 14px; border-radius: var(--radius-sm); background: var(--brand-primary); color: #fff; font: 600 13px var(--font-sans); white-space: nowrap; }
.cmap-banner button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius-xs); background: none; color: #fff; font: 600 12.5px var(--font-sans); cursor: pointer; }

.cmap-marker.leaflet-div-icon { background: none; border: 0; }
.cmap-pin { position: absolute; transform: translate(-50%, -100%); margin-top: -7px; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; background: var(--bg-paper); border: 1px solid #CFC6B8; border-radius: var(--radius-full); box-shadow: 0 3px 10px rgba(31, 42, 68, .22); font: 700 13px var(--font-sans); color: var(--brand-primary); white-space: nowrap; font-variant-numeric: tabular-nums; cursor: pointer; }
.cmap-pin::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg); background: inherit; border-right: 1px solid #CFC6B8; border-bottom: 1px solid #CFC6B8; }
.cmap-pin em { font-style: normal; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--radius-full); background: var(--bg-section-sand); color: var(--brand-primary); display: grid; place-items: center; font-size: 11.5px; }
.cmap-pin.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.cmap-pin.is-active::after { border-color: var(--brand-primary); }
.cmap-pin.is-active em { background: #fff; }
.cmap-cluster { position: absolute; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-primary); color: #fff; font: 700 var(--text-md) var(--font-sans); box-shadow: 0 0 0 7px rgba(31, 42, 68, .16), 0 4px 12px rgba(31, 42, 68, .3); cursor: pointer; }
.cmap-cluster.is-active { background: var(--brand-cta); box-shadow: 0 0 0 7px rgba(169, 79, 44, .2), 0 4px 12px rgba(31, 42, 68, .3); }
.cmap-marker:focus-visible > div { outline: 3px solid var(--brand-cta); outline-offset: 3px; }
.cmap-marker:focus { outline: none; }

/* Zwarta karta na mapie */
.apt-flag { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: var(--radius-xs); background: var(--bg-paper); color: var(--brand-cta); font: 600 11px var(--font-sans); box-shadow: 0 2px 6px rgba(31, 42, 68, .2); pointer-events: none; }
.apt-card.apt-card--map { display: grid; grid-template-columns: 150px minmax(0, 1fr); border-radius: var(--radius-md); }
.apt-card.apt-card--map.is-active { border-color: #D2C8BA; box-shadow: var(--shadow-md); }
.apt-card--map.is-active .apt-title a { color: var(--brand-cta); }
.apt-card--map.is-active .apt-arrow { background: var(--brand-cta); border-color: var(--brand-cta); color: #fff; }
.apt-card--map .apt-media { aspect-ratio: auto; height: 100%; min-height: 168px; }
.apt-card--map .apt-media-link { position: absolute; inset: 0; }
.apt-card--map .apt-tag, .apt-card--map .apt-count { font-size: 10.5px; padding: 3px 7px; left: 6px; bottom: 6px; max-width: calc(100% - 12px); }
.apt-card--map .apt-count { left: auto; right: 6px; top: 8px; bottom: auto; }
.apt-card--map .card-slider-btn { width: 28px; height: 28px; }
.apt-card.apt-card--map .apt-body { padding: 10px 12px 0; }
.apt-card--map .apt-price { justify-content: flex-start; column-gap: 8px; }
.apt-card--map .apt-price-main { font-size: var(--text-lg); }
.apt-card--map .apt-price-sub { font-size: 11.5px; }
.apt-card.apt-card--map .apt-title { margin-top: 3px; height: auto; max-height: 2.76em; font-size: 13.5px; }
.apt-card.apt-card--map .apt-params { margin-top: 6px; font-size: 12px; }
.apt-card.apt-card--map .apt-params li { padding: 0 8px; }
.apt-card.apt-card--map .apt-params { margin-left: -9px; clip-path: inset(0 0 0 9px); }
.apt-card--map .apt-loc { margin: 5px 0 6px; }
.apt-card--map .apt-loc strong { font-size: 12px; -webkit-line-clamp: 1; }
.apt-card--map .apt-loc span { font-size: 11.5px; min-height: 0; }
.apt-card--map .apt-footer { margin: auto -12px 0; padding: 5px 12px; }
.apt-card--map .apt-dev { font-size: 11.5px; }
.apt-card--map .apt-dev .card-dev-badge { width: 20px; height: 20px; font-size: 9px; }
.apt-card--map .apt-arrow { width: 26px; height: 26px; }

.cmap-strip { display: none; }
@media (max-width: 900px) {
  .cmap-body { display: block; position: relative; }
  .cmap-list { display: none; }
  .cmap-stage { position: absolute; inset: 0; }
  .cmap-tools { top: 10px; left: auto; right: 10px; transform: none; flex-direction: column; align-items: flex-end; }
  .cmap-banner { top: auto; bottom: 232px; max-width: calc(100% - 24px); white-space: normal; }
  .cmap-canvas .leaflet-control-zoom { display: none; }
  .cmap-canvas .leaflet-bottom { bottom: 0; }
  .cmap-strip { position: absolute; z-index: 600; left: 0; right: 0; bottom: 22px; display: flex; gap: 10px; padding: 4px 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .cmap-strip::-webkit-scrollbar { display: none; }
  .cmap-strip > .apt-card.apt-card--map { flex: 0 0 min(320px, calc(100% - 28px)); grid-template-columns: 112px minmax(0, 1fr); scroll-snap-align: start; box-shadow: 0 8px 24px rgba(31, 42, 68, .22); }
  .cmap-strip .apt-card--map .card-slider-btn { display: none; }
}
@media (max-width: 900px) { .cmap-tool.cmap-search { display: none; } }
@media (max-width: 360px) {
  .cmap-strip > .apt-card.apt-card--map { grid-template-columns: 92px minmax(0, 1fr); }
  .cmap-strip .apt-card--map :is(.apt-tag, .apt-price-sub) { display: none; }
  .cmap-strip .apt-card--map .apt-loc strong { -webkit-line-clamp: 2; }
}

/* Zakładka Deweloperzy: lista i profil (01.12.2026) */
.dv { width: 100%; box-sizing: border-box; }
.dv h1 { margin: 0 0 var(--space-2); font-size: var(--text-2xl); color: var(--brand-primary); line-height: 1.25; overflow-wrap: anywhere; }
.dv-lead { margin: 0 0 var(--space-6); font-size: var(--text-md); color: var(--ink-muted); }
.dv-tools { display: grid; grid-template-columns: minmax(0, 1fr) 260px 220px; gap: var(--space-3); margin-bottom: var(--space-6); }
.dv-field { display: grid; gap: 6px; min-width: 0; margin: 0; font-size: var(--text-sm); font-weight: 600; color: var(--ink-primary); }
.dv-field input, .dv-field select { width: 100%; min-width: 0; height: 42px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--line-default); border-radius: var(--radius-sm); background: var(--bg-paper); font: 400 var(--text-base) var(--font-sans); color: var(--ink-body); }
.dv-rows { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.dv-card { display: block; border: 1px solid var(--line-default); border-radius: var(--radius-md); background: var(--bg-paper); color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .18s ease; }
.dv-card:hover { border-color: #D2C8BA; box-shadow: var(--shadow-md); text-decoration: none; }
.dv-card:focus-visible { outline: 2px solid var(--brand-cta); outline-offset: 2px; }
.dv-card:hover h2, .dv-card:focus-visible h2 { color: var(--brand-cta); }
.dv-card:hover .dv-arrow, .dv-card:focus-visible .dv-arrow { border-color: var(--brand-cta); background: var(--brand-cta); color: #fff; }
.dv-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 130px 170px 32px; gap: var(--space-6); align-items: center; padding: var(--space-5) var(--space-6); }
.dv-id { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.dv-id-text { min-width: 0; }
.dv .dv-logo { display: grid; place-items: center; flex: none; width: 56px; height: 56px; overflow: hidden; border-radius: var(--radius-sm); color: #fff; font: 700 var(--text-lg) var(--font-display); }
.dv .dv-logo.has-logo { border: 1px solid var(--line-default); background: #fff; }
.dv .dv-logo img { width: 100%; height: 100%; object-fit: contain; }
.dv .dv-logo-lg { width: 72px; height: 72px; font-size: var(--text-xl); }
.dv-row h2 { margin: 0; font: 700 var(--text-lg) var(--font-display); line-height: 1.3; color: var(--brand-primary); overflow-wrap: anywhere; transition: color .15s ease; }
.dv-address { margin: 2px 0 0; font-size: var(--text-base); color: var(--ink-muted); overflow-wrap: anywhere; }
.dv-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: var(--text-xs); font-weight: 600; color: #195E40; }
.dv-badge .icon { width: 13px; height: 13px; }
.dv-badge-charter { color: var(--brand-cta); }
.dv-badges { display: flex; flex-wrap: wrap; column-gap: var(--space-4); }
.dv-where, .dv-count, .dv-from { min-width: 0; }
.dv-label { display: block; font-size: var(--text-sm); color: var(--ink-muted); }
.dv-value { display: block; font-size: var(--text-base); font-weight: 600; color: var(--ink-primary); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dv-price { display: block; font: 700 var(--text-md) var(--font-display); color: var(--brand-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv-arrow { display: grid; place-items: center; width: 32px; height: 32px; box-sizing: border-box; border: 1px solid var(--line-default); border-radius: 50%; color: var(--brand-cta); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.dv-arrow .icon { width: 14px; height: 14px; }
.dv-empty { padding: var(--space-8) var(--space-5); border: 1px solid var(--line-default); border-radius: var(--radius-md); background: var(--bg-paper); text-align: center; color: var(--ink-body); }
.dv-empty p { margin: 0; }
.dv-clear { min-height: 44px; margin-top: var(--space-4); padding: 0 var(--space-5); border: 1px solid var(--line-default); border-radius: var(--radius-sm); background: var(--bg-paper); font: 600 var(--text-base) var(--font-sans); color: var(--brand-primary); cursor: pointer; }
.dv-safety { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin: var(--space-8) 0 0; padding: var(--space-4) var(--space-6); border: 1px solid var(--line-default); border-radius: var(--radius-md); background: var(--bg-paper); font-size: var(--text-base); color: var(--ink-body); }
.dv-safety a { font-weight: 600; color: var(--brand-cta); }

.dv-head { display: grid; grid-template-columns: minmax(0, 1fr) 340px; border: 1px solid var(--line-default); border-radius: var(--radius-md); background: var(--bg-paper); }
.dv-head--single { grid-template-columns: minmax(0, 1fr); }
.dv-main { min-width: 0; padding: var(--space-7); }
.dv-main h1 { margin: 0; }
.dv-about { max-width: 72ch; margin: var(--space-5) 0 0; font-size: var(--text-base); line-height: 1.65; color: var(--ink-body); white-space: pre-line; overflow-wrap: anywhere; }
.dv-facts { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--section-gap-sm); margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.dv-facts strong { display: block; font: 700 var(--text-xl) var(--font-display); color: var(--brand-primary); }
.dv-facts span { font-size: var(--text-sm); color: var(--ink-muted); }
.dv-side { display: grid; align-content: start; gap: var(--space-3); min-width: 0; padding: var(--space-7); border-left: 1px solid var(--line-default); }
.dv-side h2 { margin: 0; font: 700 var(--text-md) var(--font-display); color: var(--brand-primary); }
.dv-btn, .dv-side .btn-reveal-phone, .dv-side .revealed-phone-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; box-sizing: border-box; border: 1px solid var(--line-default); border-radius: var(--radius-sm); background: var(--bg-paper); font: 600 var(--text-base) var(--font-sans); color: var(--brand-primary); text-decoration: none; }
.dv-btn:hover { border-color: var(--ink-faint); text-decoration: none; }
.dv-side .btn-reveal-phone, .dv-side .revealed-phone-link { border-color: var(--brand-cta); background: var(--brand-cta); color: #fff; }
.dv-side .btn-reveal-phone:hover, .dv-side .revealed-phone-link:hover { color: #fff; filter: brightness(.94); }
.dv-side .masked-phone-wrapper { display: block; width: 100%; }
.dv-side .phone-trigger-text { color: inherit; }
.dv-website { justify-self: center; display: inline-flex; align-items: center; min-height: 32px; font-size: var(--text-base); font-weight: 600; color: var(--brand-primary); text-decoration: underline; overflow-wrap: anywhere; }
.dv-company { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin: 0; padding: var(--space-4) var(--space-7); border-top: 1px solid var(--line-default); }
.dv-company div { min-width: 0; }
.dv-company dt { font-size: var(--text-sm); color: var(--ink-muted); }
.dv-company dd { margin: 0; font-size: var(--text-base); font-weight: 600; color: var(--ink-primary); overflow-wrap: anywhere; }
.dv-offers-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); margin: var(--section-gap-sm) 0 var(--space-6); }
.dv-offers-head h2 { margin: 0; font-size: var(--text-xl); color: var(--brand-primary); }
.dv-offer-tools { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.dv-offer-tools .dv-field { width: 220px; }

/* Wspólna paginacja */
.pgn { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-6); }
.pgn-item { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--space-2); box-sizing: border-box; border: 1px solid var(--line-default); border-radius: var(--radius-sm); background: var(--bg-paper); font-size: var(--text-base); font-weight: 600; color: var(--brand-primary); text-decoration: none; }
a.pgn-item:hover { border-color: var(--ink-faint); text-decoration: none; }
a.pgn-item:focus-visible { outline: 2px solid var(--brand-cta); outline-offset: 2px; }
.pgn-item.is-current { border-color: var(--brand-primary); background: var(--brand-primary); color: #fff; }
.pgn-item.is-disabled { color: var(--ink-faint); opacity: .45; }
.pgn-step { font-size: var(--text-lg); }
.pgn-gap { min-width: 24px; text-align: center; color: var(--ink-muted); }
.pgn-status { display: none; font-size: var(--text-base); font-weight: 600; color: var(--ink-primary); }

@media (max-width: 1023px) {
  .dv-row { grid-template-columns: minmax(0, 1fr) auto auto 32px; row-gap: var(--space-3); }
  .dv-row .dv-id, .dv-row .dv-where { grid-column: 1 / -1; }
  .dv-head { grid-template-columns: minmax(0, 1fr); }
  .dv-side { border-left: 0; border-top: 1px solid var(--line-default); }
  .dv-company { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .dv h1 { font-size: var(--text-xl); }
  .dv-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dv-field-search { grid-column: 1 / -1; }
  .dv-field input, .dv-field select { height: 44px; font-size: var(--text-md); }
  .dv-row { grid-template-columns: minmax(0, 1fr) auto 32px; gap: var(--space-3); padding: var(--space-4); }
  .dv-row .dv-count { grid-column: 1; }
  .dv-safety { padding: var(--space-4); }
  .dv-main, .dv-side { padding: var(--space-5) var(--space-4); }
  .dv .dv-logo-lg { width: 56px; height: 56px; font-size: var(--text-lg); }
  .dv-company { padding: var(--space-4); }
  .dv-offer-tools { width: 100%; }
  .dv-offer-tools .dv-field { flex: 1 1 140px; width: auto; }
  .pgn-number, .pgn-gap { display: none; }
  .pgn-status { display: inline-block; padding: 0 var(--space-4); }
}
@media (max-width: 380px) {
  .dv-row .dv-count, .dv-row .dv-from { grid-column: 1 / 3; }
  .dv-row .dv-arrow { grid-column: 3; }
}

/* Rzut w przeglądarce zdjęć: jasne tło (rzuty bywają przezroczyste) i pełna dostępna wielkość */
.lightbox-img-box img.is-plan { width: auto; height: 100%; max-width: 100%; background: #fff; object-fit: contain; }
@media (max-width: 767px) { .lightbox-img-box img.is-plan { width: 100%; height: auto; } }
#lightbox-thumbnails-bar .lightbox-thumb-btn img[src*="/plans/"] { background: #fff; object-fit: contain; }

/* Zakładka Kontakt (01.12.2026): dotychczasowy układ w stylu nowych zakładek */
.kt h1 { margin: 0 0 var(--space-2); font-size: var(--text-2xl); color: var(--brand-primary); line-height: 1.25; }
.kt-lead { max-width: 72ch; margin: 0 0 var(--space-6); font-size: var(--text-md); color: var(--ink-muted); }
.kt-box { min-width: 0; border: 1px solid var(--line-default); border-radius: var(--radius-md); background: var(--bg-paper); }
.kt h2 { margin: 0; font: 700 var(--text-lg) var(--font-display); color: var(--brand-primary); }
.kt .kt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-8); align-items: start; }
.kt-col { display: grid; gap: var(--space-4); min-width: 0; }
.kt-card { display: grid; gap: var(--space-3); padding: var(--space-6); }
.kt-card p { margin: 0; font-size: var(--text-base); line-height: 1.55; color: var(--ink-muted); overflow-wrap: anywhere; }
.kt-title { display: flex; align-items: center; gap: 10px; }
.kt-title svg { flex: none; width: 22px; height: 22px; color: #1FA855; }
.kt .kt-btn, .kt .btn-reveal-phone, .kt .revealed-phone-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; box-sizing: border-box; border: 1px solid var(--line-default); border-radius: var(--radius-sm); background: var(--bg-paper); font: 600 var(--text-base) var(--font-sans); color: var(--brand-primary); text-decoration: none; }
.kt .kt-btn:hover, .kt .btn-reveal-phone:hover, .kt .revealed-phone-link:hover { border-color: var(--ink-faint); color: var(--brand-primary); text-decoration: none; }
.kt .masked-phone-wrapper { display: block; width: 100%; }
.kt .phone-trigger-text { color: inherit; }
.kt-link { justify-self: center; display: inline-flex; align-items: center; min-height: 32px; font-size: var(--text-base); font-weight: 600; color: var(--brand-primary); }
.kt .kt-short { display: none; }
.kt-form-box { padding: var(--space-7); scroll-margin-top: 88px; }
.kt-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.kt-form[hidden] { display: none; }
.kt-wide { grid-column: 1 / -1; }
.kt-field { display: grid; gap: 6px; align-content: start; min-width: 0; margin: 0; font-size: var(--text-sm); font-weight: 600; color: var(--ink-primary); }
.kt-field input, .kt-field select, .kt-field textarea { width: 100%; min-width: 0; height: 44px; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--line-default); border-radius: var(--radius-sm); background: var(--bg-paper); font: 400 var(--text-base) var(--font-sans); color: var(--ink-body); }
.kt-field textarea { height: 130px; padding: 12px; line-height: 1.5; resize: vertical; }
.kt-check { display: flex; align-items: center; gap: 10px; min-height: 32px; margin: 0; font-size: var(--text-base); color: var(--ink-body); cursor: pointer; }
.kt-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--brand-cta); }
.kt-submit { justify-self: start; min-height: 44px; padding: 0 28px; border: 0; border-radius: var(--radius-sm); background: var(--brand-cta); font: 600 var(--text-base) var(--font-sans); color: #fff; cursor: pointer; }
.kt-submit:hover { filter: brightness(.94); }
.kt-submit:disabled { opacity: .65; cursor: wait; }
.kt-form [data-submit-error] { grid-column: 1 / -1; margin: 0; padding: var(--space-3); border: 1px solid #E5B8AC; border-radius: var(--radius-sm); background: #FBEFEC; font-size: var(--text-base); color: #7A2E17; }
.kt-note { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--ink-muted); }
.kt-note a { color: var(--brand-primary); text-decoration: underline; }
.kt-done { margin: 0; padding: var(--space-4); border: 1px solid #C8E6C9; border-radius: var(--radius-sm); background: #EAF4EE; font-size: var(--text-base); color: #195E40; }
.kt-done[hidden] { display: none; }
@media (max-width: 960px) {
  .kt .kt-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .kt .kt-short { display: inline-flex; width: auto; margin-bottom: var(--space-4); padding: 0 var(--space-5); }
}
@media (max-width: 767px) {
  .kt h1 { font-size: var(--text-xl); }
  .kt-card { padding: var(--space-5) var(--space-4); }
  .kt-form-box { padding: var(--space-5) var(--space-4); }
  .kt-field input, .kt-field select, .kt-field textarea { font-size: var(--text-md); }
}
@media (max-width: 600px) {
  .kt-form { grid-template-columns: minmax(0, 1fr); }
  .kt-submit { justify-self: stretch; }
}

/* ===== Poradnik (gd-): lista i wpis — 2 grudnia 2026 ===== */
.gd { width: 100%; box-sizing: border-box; }
.gd-list-view, .gd-article-view { max-width: var(--max-width); margin: var(--view-pad-top) auto var(--view-pad-bottom); padding: 0 var(--page-gutter); }
.gd-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.gd-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 36px; gap: var(--space-5); align-items: center; padding: var(--space-5) var(--space-6); }
.gd-no { width: 44px; height: 44px; border-radius: 50%; background: var(--brand-primary); color: #fff; display: grid; place-items: center; font-weight: var(--font-weight-heading); font-size: var(--text-md); font-variant-numeric: tabular-nums; }
.gd-row h2, .gd-row h3 { margin: 0 0 4px; font-size: var(--text-lg); line-height: 1.3; color: var(--ink-primary); }
.gd-row p { margin: 0; color: var(--ink-muted); font-size: var(--text-base); }
.gd-all { margin: var(--space-5) 0 0; font-weight: var(--font-weight-ui); }
.gd-all a { color: var(--brand-cta); text-decoration: none; }
.gd-all a:hover { text-decoration: underline; }
.gd-article-view .back-link-bar { margin-bottom: var(--space-4); }
.gd-layout { display: grid; grid-template-columns: minmax(0, 820px) 260px; gap: var(--space-8); align-items: start; justify-content: space-between; }
.gd-art { padding: var(--space-8); border: 1px solid var(--line-default); border-radius: var(--radius-md); background: var(--bg-paper); min-width: 0; }
.gd-art h1 { font-size: var(--text-2xl); margin: 6px 0 10px; color: var(--ink-primary); text-wrap: balance; }
.gd-art .dv-lead { margin: 0 0 var(--space-3); }
.gd-eyebrow { font-size: var(--text-xs); font-weight: var(--font-weight-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.gd-meta { margin: 0; font-size: var(--text-sm, 13px); color: var(--ink-muted); }
.gd-content { margin-top: var(--space-5); color: var(--ink-body); line-height: 1.65; }
.gd-content h2 { font-size: var(--text-xl); margin: 36px 0 14px; color: var(--ink-primary); scroll-margin-top: 96px; }
.gd-content > h2:first-child, .gd-content > .gd-quick:first-child { margin-top: 0; }
.gd-content p { margin: 0 0 var(--space-3); text-wrap: pretty; }
.gd-content ul:not([class]) { margin: 0 0 var(--space-4); padding-left: 20px; }
.gd-content ul:not([class]) li { margin: 6px 0; }
.gd-quick { margin: var(--space-6) 0; padding: var(--space-5) var(--space-6); border: 1px solid #CFE5D8; border-radius: var(--radius-md); background: #EAF4EE; }
.gd-quick h2 { font-size: var(--text-md); margin: 0 0 8px; color: #195E40; scroll-margin-top: 96px; }
.gd-quick ul { margin: 0; padding-left: 18px; }
.gd-quick li { margin: 6px 0; }
.gd-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); list-style: none; padding: 0; margin: 0; }
.gd-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; align-items: start; gap: 2px 12px; padding: var(--space-4); border: 1px solid var(--line-default); border-radius: var(--radius-md); }
.gd-steps li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gd-step-no { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-section-sand); color: var(--ink-primary); font-family: var(--font-display); font-size: var(--text-base); line-height: 30px; font-weight: var(--font-weight-heading); text-align: center; font-variant-numeric: tabular-nums; }
.gd-steps strong { color: var(--ink-primary); }
.gd-steps span:not(.gd-step-no) { font-size: var(--text-base); }
.gd-cols { display: grid; gap: var(--space-3); margin: 0 0 var(--space-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gd-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gd-cols > div { display: flex; flex-direction: column; gap: 4px; padding: var(--space-4); background: var(--bg-section-sand); border-radius: var(--radius-md); font-size: var(--text-base); }
.gd-cols strong { color: var(--ink-primary); }
.gd-warn, .gd-callout { margin: var(--space-6) 0; padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); }
.gd-warn { border: 1px solid #EBD9A8; border-left: 4px solid #C98F12; background: #FBF3E0; }
.gd-warn strong { display: block; margin-bottom: 2px; color: #7A4F00; }
.gd-callout { border: 1px solid var(--line-default); border-left: 4px solid var(--brand-primary); background: var(--bg-subtle); }
.gd-callout strong { display: block; margin-bottom: 2px; color: var(--ink-primary); }
.gd-warn p, .gd-callout p { margin: 0; }
.gd-table-wrap { overflow-x: auto; margin: 0 0 var(--space-4); border: 1px solid var(--line-default); border-radius: var(--radius-md); }
.gd-table { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.gd-table th, .gd-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-default); vertical-align: top; }
.gd-table thead th { background: var(--bg-section-sand); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
.gd-table tbody th { font-weight: var(--font-weight-ui); color: var(--ink-primary); }
@media (min-width: 768px) { .gd-table tbody th { white-space: nowrap; } }
@media (max-width: 767px) {
  .gd-table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .gd-table, .gd-table tbody, .gd-table tr, .gd-table th, .gd-table td { display: block; }
  .gd-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .gd-table tbody tr { margin-bottom: var(--space-3); border: 1px solid var(--line-default); border-radius: var(--radius-md); overflow: hidden; }
  .gd-table tbody th { padding: 10px 14px; background: var(--bg-section-sand); border-bottom: 1px solid var(--line-default); }
  .gd-table td { padding: 8px 14px; border-bottom: 1px solid var(--line-default); }
  .gd-table tbody tr > :last-child { border-bottom: 0; }
  .gd-table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); }
}
.gd-table tbody tr:last-child th, .gd-table tbody tr:last-child td { border-bottom: 0; }
.gd-chk { list-style: none; margin: 0 0 var(--space-4); padding: 0; columns: 2; column-gap: 32px; }
.gd-chk li { position: relative; padding: 8px 0 8px 30px; border-bottom: 1px solid var(--line-default); break-inside: avoid; }
.gd-chk li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 15px; height: 15px; border: 2px solid #195E40; border-radius: 4px; }
.gd-def { display: grid; grid-template-columns: 220px minmax(0, 1fr); margin: 0 0 var(--space-4); }
.gd-def > div { display: contents; }
.gd-def dt, .gd-def dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line-default); }
.gd-def dt { font-weight: var(--font-weight-ui); color: var(--ink-primary); padding-right: var(--space-4); }
.gd-end { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: center; justify-content: space-between; margin-top: var(--space-8); padding: var(--space-6); border: 1px solid var(--line-default); border-radius: var(--radius-md); background: var(--bg-section-sand); }
.gd-end h2 { margin: 0 0 4px; font-size: var(--text-lg); }
.gd-end p { margin: 0; max-width: 560px; }
.gd-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 28px; border-radius: var(--radius-sm); background: var(--brand-cta); color: #fff; font-weight: var(--font-weight-ui); text-decoration: none; white-space: nowrap; }
.gd-cta:hover { background: var(--brand-cta-hover); }
.gd-note { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--ink-muted); }
.gd-nav { display: flex; gap: var(--space-4); margin-top: var(--space-6); }
.gd-nav a { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: var(--space-4) var(--space-5); border: 1px solid var(--line-default); border-radius: var(--radius-md); color: var(--ink-primary); text-decoration: none; font-weight: var(--font-weight-ui); }
.gd-nav a:hover { border-color: #D2C8BA; box-shadow: var(--shadow-md); }
.gd-nav small { font-weight: 400; color: var(--ink-muted); font-size: var(--text-xs); }
.gd-next { text-align: right; margin-left: auto; }
.gd-nav a:only-child.gd-next { max-width: calc(50% - var(--space-2)); }
.gd-toc { position: sticky; top: 96px; border-left: 2px solid var(--line-default); padding-left: var(--space-5); font-size: var(--text-base); }
.gd-toc b { display: block; margin-bottom: 8px; font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.gd-toc a { display: block; padding: 5px 0; color: var(--ink-muted); text-decoration: none; }
.gd-toc a:hover { color: var(--ink-primary); }
.gd-toc a.on { color: var(--ink-primary); font-weight: var(--font-weight-ui); }
.gd-toc a:focus-visible, .gd-nav a:focus-visible { outline: 2px solid var(--brand-cta); outline-offset: 2px; }
@media (max-width: 960px) {
  .gd-layout { grid-template-columns: minmax(0, 1fr); }
  .gd-toc { display: none; }
}
@media (max-width: 767px) {
  .gd-art { padding: var(--space-5) var(--space-4); }
  .gd-art h1 { font-size: var(--text-xl); }
  .gd-quick { padding: var(--space-4); }
  .gd-end { padding: var(--space-5) var(--space-4); }
  .gd-end .gd-cta { width: 100%; }
  .gd-nav { flex-direction: column; }
  .gd-next { text-align: left; margin-left: 0; }
  .gd-nav a:only-child.gd-next { max-width: none; }
  .gd-row { grid-template-columns: 36px minmax(0, 1fr); padding: var(--space-4); gap: var(--space-4); }
  .gd-row .dv-arrow { display: none; }
  .gd-no { width: 36px; height: 36px; font-size: var(--text-base); }
}
@media (max-width: 640px) {
  .gd-steps, .gd-cols, .gd-cols-2, .gd-cols-4 { grid-template-columns: minmax(0, 1fr); }
  .gd-chk { columns: 1; }
  .gd-def { grid-template-columns: minmax(0, 1fr); }
  .gd-def dt { border-bottom: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .gd-nav a { transition: none; } }

/* Karta jakości (widok #/bezpieczenstwo) korzysta z układu artykułu: klasy guide-article-* */
.guide-article-view {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--bg-paper);
  border: 1px solid var(--line-default);
  border-radius: var(--radius-md);
  padding: 36px 44px;
  box-shadow: 0 1px 3px rgba(31, 42, 68, 0.04);
}

@media (max-width: 768px) {
.guide-article-view {
    padding: 24px 20px;
  }
}

.guide-article-view h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brand-primary);
  line-height: 1.25;
  margin-bottom: 14px;
}

.guide-article-view .article-meta {
  font-size: var(--text-base);
  color: var(--ink-muted);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-subtle);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-article-content {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--ink-body);
  max-width: 900px;
}

.guide-article-content h2,
.guide-article-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--brand-primary);
  margin: 32px 0 12px;
}

.guide-article-content p.lead {
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--ink-primary);
  line-height: 1.65;
  margin-bottom: 22px;
}

.guide-article-content p {
  margin-bottom: 18px;
}

.guide-article-content ul {
  padding-left: 22px;
  margin-bottom: 22px;
}

.guide-article-content li {
  margin-bottom: 8px;
}

.guide-article-content h2{font-size:var(--text-xl);margin:28px 0 12px}
.guide-article-content{max-width:72ch;line-height:1.65}
.guide-article-content p{text-wrap:pretty}
.guide-article-view>h1{max-width:36ch;text-wrap:balance}
.guide-article-content :is(h2, h3) { scroll-margin-top: 96px; }
.guide-article-content :is(h2, h3):focus { outline: none; }

/* ===== Stan pusty (es-): miejsca boxów mieszkań bez ofert ===== */
.es { display: grid; justify-items: center; gap: var(--space-4); text-align: center; background: var(--bg-paper); border: 1px solid var(--line-default); border-radius: var(--radius-md); padding: var(--space-8) var(--space-5); color: var(--ink-body); }
.es-tile { width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--bg-section-sand); border: 1px solid var(--line-default); display: grid; place-items: center; color: var(--brand-primary); flex: none; }
.es-icon { width: 28px; height: 28px; stroke-width: 1.5; }
.es-body { display: grid; gap: var(--space-2); justify-items: center; min-width: 0; }
.es-title { margin: 0; font-size: var(--text-lg); font-weight: 700; color: var(--brand-primary); line-height: 1.3; }
.es-text { margin: 0; max-width: 46ch; font-size: var(--text-base); line-height: 1.6; color: var(--ink-muted); }
.es-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-1); }
.es-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-3); border-radius: var(--radius-full); background: var(--bg-subtle); border: 1px solid var(--line-default); color: var(--brand-primary); font-size: var(--text-sm); }
.es-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.es-actions .btn-primary, .es-actions .btn-outline { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.es--row, .es--band { grid-auto-flow: column; grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; text-align: left; align-items: center; gap: var(--space-5); padding: var(--space-6); border-style: dashed; border-color: #CFC8BB; }
.es--row .es-body, .es--band .es-body { justify-items: start; }
.es--row .es-tile, .es--band .es-tile { width: 48px; height: 48px; }
.es--row .es-title, .es--band .es-title { font-size: var(--text-md); }
.es--band { width: 100%; background: var(--bg-subtle); }
.es--sm { padding: var(--space-6) var(--space-4); gap: var(--space-3); border: 0; background: transparent; }
.es--sm .es-tile { width: 44px; height: 44px; border-radius: var(--radius-md); }
.es--sm .es-icon { width: 22px; height: 22px; }
.es--sm .es-title { font-size: var(--text-base); }
.es--sm .es-text { font-size: var(--text-sm); }
.units-promoted-sidebar .es--sm { border: 1px dashed #CFC8BB; background: var(--bg-paper); }
.featured-carousel-track > .es { flex: 1 1 100%; }
@media (max-width: 640px) {
  .es--row, .es--band { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: var(--space-6) var(--space-4); }
  .es--row .es-body, .es--band .es-body { justify-items: center; }
  .es-actions { width: 100%; }
  .es-actions .btn-primary, .es-actions .btn-outline { flex: 1 1 100%; }
}
.es--span { grid-column: 1 / -1; }

/* Karta lokalu: blok kontaktu z Poloniadom przed kontaktem z deweloperem */
.ud-help { margin-top: var(--space-4); padding: var(--space-4); display: grid; gap: var(--space-2); background: var(--bg-section-sand); border: 1px solid var(--line-default); border-radius: var(--radius-md); }
.ud-help h3 { margin: 0; font: 700 var(--text-md)/1.3 var(--font-display); color: var(--brand-primary); }
.ud-help p { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--ink-muted); }
.ud-help .btn-buybox-platform { margin-top: var(--space-2); width: 100%; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); box-sizing: border-box; padding: 0 var(--space-4); background: var(--brand-primary); color: #fff; border-radius: var(--radius-sm); text-decoration: none; font: 600 15px/1 var(--font-sans); }
.ud-help .btn-buybox-platform:hover { background: color-mix(in srgb, var(--brand-primary) 88%, #fff); }
.ud-actions-title { margin: var(--space-5) 0 0; font: 600 var(--text-sm)/1.3 var(--font-sans); color: var(--ink-muted); }
.ud-actions-title + .ud-actions { margin-top: var(--space-2); }
.ud-card .ud-actions-title { margin: var(--space-5) 0 var(--space-2); font: 700 var(--text-base)/1.3 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--brand-primary); }
.ud-card .ud-actions-title + .ud-actions { margin-top: 0; }
.ud-help-head { display: flex; gap: var(--space-3); align-items: center; }
.ud-help-mark { flex: none; width: 40px; height: 40px; border-radius: var(--radius-md); background: var(--bg-paper); border: 1px solid var(--line-default); display: grid; place-items: center; color: var(--brand-primary); }
.ud-help-mark .icon { width: 22px; height: 22px; }
.ud-help-eyebrow { margin: 0 0 2px !important; font-size: 12px !important; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted) !important; }
.ud-help-head h3 { font-size: var(--text-base); }
.ud-help-list { list-style: none; margin: var(--space-1) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.ud-help-list li { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--text-sm); line-height: 1.4; color: var(--ink-body); }
.ud-help-list .icon { flex: none; margin-top: 1px; color: var(--brand-primary); }
.ud-help-link { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-1); min-height: 44px; font: 600 var(--text-sm)/1.3 var(--font-sans); color: var(--brand-cta); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--brand-cta) 35%, transparent); text-align: center; }
.ud-help-link:hover { text-decoration-color: currentColor; }

