/* Clearly named views, with the same apartment grid on every floor. */
#ponuka .explorer-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  border: 1px solid #bdcabd;
  border-radius: 13px;
  background: #e9ede3;
}
#ponuka .explorer-toolbar button {
  min-height: 45px;
  padding: 10px 17px;
  border: 0;
  border-radius: 8px;
  color: #26483c;
  font-size: 14px;
}
#ponuka .explorer-toolbar button[aria-pressed="true"] {
  background: #173f34;
  color: #fff9ee;
}
#ponuka #catalogue-results:not(.table-mode) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#ponuka .unit-card,
#ponuka .unit-card :is(.unit-head, .unit-facts, .unit-buttons) { min-width: 0; }
#gallery-atlas-tabs {
  gap: 8px;
  padding: 2px 2px 12px;
  border: 0;
  overflow-x: auto;
}
#gallery-atlas-tabs button {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #b7c7b8;
  border-radius: 999px;
  background: transparent;
  color: #284c3e;
  white-space: nowrap;
}
#gallery-atlas-tabs button.active {
  background: #173f34;
  color: #fff9ee;
  border-color: #173f34;
}
.project-editorial-head { max-width: 720px; margin-bottom: 34px; }
.project-editorial-head h2 { font-size: clamp(34px, 5.3vw, 74px); line-height: 1.12; margin: 12px 0 18px; }
.project-editorial-head h2 em { color: #e6c88e; }
.project-editorial-head p:last-child { max-width: 540px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.55; }
.project-editorial-photo { display: block; width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 700px) {
  #ponuka .explorer-toolbar button { padding: 9px 11px; font-size: 13px; }
  #ponuka #catalogue-results:not(.table-mode) { gap: 10px; }
  #ponuka .unit-card .unit-image { height: auto; aspect-ratio: 1.25; }
  #ponuka .unit-card .unit-info { padding: 10px; }
  #ponuka .unit-card .unit-head { flex-wrap: wrap; gap: 3px; }
  #ponuka .unit-card .unit-head h3, #ponuka .unit-card .unit-head h3 button { font-size: 17px; }
  #ponuka .unit-card .unit-buttons { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #ponuka .unit-card .unit-buttons button { width: 100%; min-width: 0; white-space: normal; font-size: 12px; padding-inline: 6px; }
  #ponuka .unit-card .card-image-tabs { gap: 2px; max-width: calc(100% - 10px); }
  #ponuka .unit-card .card-image-tabs button { font-size: 11px; padding: 5px; }
  #ponuka .unit-card .card-image-tabs svg { display: none; }
}

/* Equal rows keep the controls aligned across the full apartment list. */
#ponuka #catalogue-results:not(.table-mode) { grid-auto-rows: 1fr; }
#ponuka .unit-card, #ponuka .unit-card .unit-info {
  display: flex;
  flex-direction: column;
}
#ponuka .unit-card .unit-info { flex: 1; }
#ponuka .unit-card .unit-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: auto;
  padding-top: 16px;
  align-items: stretch;
}
@media (max-width: 700px) {
  #ponuka .unit-card .unit-buttons { grid-template-columns: minmax(0, 1fr); }
  #ponuka .unit-card .unit-buttons button { min-height: 42px; }
  .benefit-images img[data-scene="reception"] {
    top: auto;
    bottom: 12%;
    height: 52%;
    object-position: 66% center;
    animation: none;
  }
  .horizon-backdrop img[src$="/hi-green-hd.webp"] { object-position: 77% center; }
  .rental-photo img[src$="/hi-photo-green-window.webp"] { object-position: 72% center; }
  #lifestyle-image[src$="/hi-reception-hd.webp"] { object-position: 66% center; }
}

#ponuka .unit-card { border-radius: 8px; overflow: hidden; }
#ponuka .unit-card .unit-media,
#ponuka .unit-card .unit-image,
#ponuka .unit-card .unit-image img { border-radius: 0; }
#ponuka .unit-card .unit-buttons button {
  border-radius: 5px;
  border: 1px solid #aabdb2;
  padding-inline: 6px;
}
#ponuka .unit-card .unit-buttons button:first-child { background: #173f34; color: #fff9ee; border-color: #173f34; }
#ponuka .unit-card :is(.card-image-tabs, .card-image-tabs button, .unit-status) { border-radius: 5px; }
@media (max-width: 700px) {
  #ponuka .unit-card .unit-buttons { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); padding-top: 10px; }
}

#ponuka .explorer-toolbar { margin: 12px 0 16px; }
#ponuka .explorer-toolbar > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  background: #e1e8db;
}
#ponuka .explorer-toolbar button {
  background: #275546;
  color: #fff;
  border: 1px solid #275546;
  min-height: 48px;
  font-weight: 600;
}
#ponuka .explorer-toolbar button[aria-pressed="true"] {
  background: #173f34;
  border-color: #173f34;
  color: #fff;
  box-shadow: inset 0 0 0 2px #e9c889;
}
#ponuka .explorer-toolbar button:focus-visible {
  outline: 2px solid #173f34;
  outline-offset: 2px;
}
#ponuka .unit-card .unit-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 6px;
  margin: 8px 0 0;
}
#ponuka .unit-facts > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon value" "label label";
  align-items: center;
  column-gap: 4px;
  padding: 4px 5px;
  border-radius: 6px;
  background: #f1f4ef;
}
#ponuka .unit-facts svg { grid-area: icon; width: 15px; height: 15px; color: #365d4d; }
#ponuka .unit-facts dt { grid-area: label; color: #455c51; font-size: 11px; line-height: 1.25; }
#ponuka .unit-facts dd { grid-area: value; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.25; color: #163d31; white-space: nowrap; }
#ponuka .unit-facts .unit-fact-status {
  grid-column: 1 / -1;
  grid-template-areas: "icon value";
  justify-content: start;
  grid-template-columns: auto auto;
}
#ponuka .unit-facts .unit-fact-status.sold :is(svg, dd) { color: #a12836; }
#ponuka .unit-facts .unit-fact-status.reserved :is(svg, dd) { color: #745406; }
@media (max-width: 700px) {
  #benefity { min-height: clamp(470px, 82svh, 640px); padding: 32px 24px 30px; }
  #benefity .benefit-bottom { position: static; margin-top: 20px; }
  #benefity .benefit-images img[data-scene="reception"] { inset: 0; height: 100%; object-position: 68% center; }
  #benefity .benefit-tabs { background: #073430d9; border-radius: 8px; padding: 0 9px; gap: 6px; }
  #benefity .benefit-tabs button { padding: 9px 0; font-size: 12px; }
  #benefity .benefit-metric { margin-top: 14px; }
  #vyhlady.horizon-experience { min-height: 580px; padding-top: 36px; padding-bottom: 28px; }
  #vyhlady .horizon-backdrop { top: 118px; }
  #vyhlady .horizon-foot { margin-top: 34px; }
  #najdite-byt.guided-finder { padding-top: 36px; }
  #ponuka .explorer-toolbar button { white-space: normal; padding: 6px 3px; line-height: 1.25; }
  #ponuka .unit-facts svg { width: 13px; height: 13px; }
  #ponuka .unit-facts dt { font-size: 10px; }
  #ponuka .unit-facts dd { font-size: 11px; }
}

.page-top {
  position: fixed;
  z-index: 40;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d6c39e;
  border-radius: 8px;
  background: #173f34;
  color: #fff;
  box-shadow: 0 4px 16px #071d2250;
}
.page-top svg { width: 21px; height: 21px; }
body:has(#compare-bar:not([hidden])) .page-top { bottom: 88px; }
#ponuka .catalogue-controls {
  display: grid;
  grid-template-columns: minmax(90px, .75fr) minmax(0, 1.25fr);
  align-items: end;
  gap: 10px;
  margin: 12px 0;
}
#ponuka #filter-toggle, #ponuka .catalogue-sort select {
  min-height: 46px;
  border: 1px solid #5e7b6e;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
}
#ponuka #filter-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #173f34;
  color: #fff;
}
#ponuka #filter-toggle svg { width: 16px; height: 16px; margin-left: auto; }
#ponuka .catalogue-sort { display: grid; gap: 4px; font-size: 13px; color: #173f34; min-width: 0; }
#ponuka .catalogue-sort select { width: 100%; background: #fffdf5; color: #173f34; }
#ponuka #catalogue-filters:not([hidden]) { padding: 10px 0; }
@media (max-width: 700px) {
  #benefity { padding-top: 108px; }
  #benefity .benefit-bottom { position: absolute; inset: 24px 24px auto; margin: 0; }
}

#domov .hero-balconies { object-position: 50% 87%; }
#domov:has(.hero-balconies.active) .cinema-shade {
  background: linear-gradient(90deg, #071f1bb8, transparent 68%),
    linear-gradient(0deg, #062c26c9, transparent 40%);
}
@media (max-width: 700px) {
  #domov .hero-balconies { object-position: 39% 86%; }
  #domov:has(.hero-balconies.active) .cinema-shade {
    background: linear-gradient(180deg, #071f1bb8, #071f1b94 36%, transparent 48%, transparent 65%, #062c26d9 93%);
  }
}
#vyhlady .horizon-backdrop img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .55s ease;
}
#vyhlady .horizon-backdrop img.is-current { opacity: 1; }
#horizon-description { min-height: 3lh; }
@media (prefers-reduced-motion: reduce) {
  #vyhlady .horizon-backdrop img { transition: none; }
}


#plan-markers { width: 100%; height: 100%; }
#plan-markers :is(polygon, path) {
  pointer-events: all;
  fill: var(--plan-color, #596965);
  fill-opacity: .12;
  stroke: transparent;
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  transition: fill-opacity .18s ease, stroke .18s ease;
}
#plan-markers a:is(:hover, :focus-visible, .highlighted) :is(polygon, path) {
  fill-opacity: .48;
  stroke: var(--plan-color, #596965);
}
:is(#plan-markers, .plan-status-legend) .sold { --plan-color: #ba242b; }
:is(#plan-markers, .plan-status-legend) .available { --plan-color: #14814c; }
:is(#plan-markers, .plan-status-legend) .reserved { --plan-color: #b48500; }
.plan-status-legend:not([hidden]) { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0; font-size: 13px; }
.plan-status-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--plan-color); margin-right: 6px; }
@media (prefers-reduced-motion: reduce) {
  #plan-markers :is(polygon, path) { transition: none; }
}
#plan-stage.plan-zoomed { min-width: 1450px; }

#rent-chart .rent-line-label { font-size: 21px; font-weight: 600; paint-order: stroke; stroke: #173f34; stroke-width: 4px; stroke-linejoin: round; }
#rent-chart .rent-income-line { fill: #f5d58d; }

#ponuka .unit-card .unit-buttons { grid-template-columns: minmax(0, 1fr); }
#plan-stage {
  aspect-ratio: 2 / 1;
  background: #fffdf8;
  border: 1px solid #dbe3d9;
}
#plan-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.floor-sheet .sheet-units { overflow-x: scroll; }
#ponuka[data-explorer="plan"] .floor-sheet .floor-rail {
  gap: 6px;
  margin: 6px 0 10px;
}
#ponuka[data-explorer="plan"] .floor-sheet .floor-rail button {
  width: auto;
  min-width: 36px;
  min-height: 36px;
  padding: 6px 10px;
}
#plan-markers :is(polygon, path) { fill-opacity: .06; }
#plan-markers a:is(:hover, :focus-visible, .highlighted) :is(polygon, path) { fill-opacity: .38; }

.program-portrait { position: relative; }
.program-portrait img[data-program-photo] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.program-portrait img.is-current { opacity: 1; }
.program-cost-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.program-cost-split section { padding: 16px; border: 1px solid #bdccbf; border-radius: 9px; background: #f9f7ee; }
.program-cost-split h3 { margin: 0 0 12px; font-size: clamp(17px, 2vw, 26px); line-height: 1.25; }
.program-cost-split ul { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 0; list-style: none; }
.program-cost-split li { padding: 6px 9px; border-radius: 5px; background: #e0e9de; color: #173f34; font-size: 13px; }
.program-cost-split section:nth-child(2) li { background: #efe6d2; }
.rent-price-field { display: grid; gap: 5px; margin-top: 15px; font-size: 14px; }
.rent-price-field input { width: 100%; min-width: 0; min-height: 44px; padding: 8px 12px; border: 1px solid #879b8b; border-radius: 6px; color: #173f34; background: #fffdf5; font: inherit; }
.rent-payback { display: grid; gap: 3px; margin-top: 12px; }
.rent-payback strong { font-size: 22px; }
.rent-payback small { font-size: 12px; }
#rental-calculator-title { scroll-margin-top: 14px; }
@media (max-width: 450px) {
  .program-cost-split { gap: 8px; }
  .program-cost-split section { padding: 10px; min-width: 0; }
  .program-cost-split li { font-size: 12px; padding: 5px 7px; }
}
#rental-calculator .rental-room-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#rental-calculator .rental-room-tabs button { min-width: 0; padding-inline: 4px; font-size: 14px; white-space: nowrap; }

#gallery-atlas-grid button:nth-child(n) { grid-column: auto; grid-row: auto; border-radius: 8px; }
.full-gallery .gallery-tile-label { position: absolute; bottom: 8px; left: 8px; max-width: calc(100% - 16px); padding: 5px 8px; border-radius: 5px; color: #fff; background: #103b30f0; font-size: 12px; }

main { --home-photo-overlap: 148px; }
#domov.home-cinema { z-index: 1; background: transparent; }
#domov.home-cinema::after { display: none; }
#domov .cinema-images, #domov .cinema-shade {
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--home-photo-overlap)), transparent);
}
#domov + #benefity {
  margin-top: calc(-1 * var(--home-photo-overlap));
  padding-top: calc(76px + var(--home-photo-overlap));
}
@media (max-width: 700px) {
  main { --home-photo-overlap: 112px; }
  #domov + #benefity { padding-top: calc(108px + var(--home-photo-overlap)); }
  #domov + #benefity .benefit-bottom { top: calc(24px + var(--home-photo-overlap)); }
}
.home-hero-cta {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  padding-inline: 22px;
}
.home-hero-cta { pointer-events: none; }
.home-photo-link {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  justify-items: center;
  gap: 5px;
  padding: 7px 18px 10px;
  color: #fff9ed;
  font-family: var(--hi-accent-font);
  font-size: clamp(23px, 3.7vw, 37px);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-shadow: 0 2px 10px #041b16;
  text-decoration: none;
  pointer-events: auto;
}
.home-photo-link::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -21px -30px;
  background: radial-gradient(ellipse, #06251ce8 18%, #06251cb0 49%, transparent 75%);
  pointer-events: none;
}
.home-photo-link-windows { width: 40px; height: 28px; color: #edcd8f; }
.home-photo-link-windows rect { fill: #edcd8f2e; transition: fill .2s ease; }
.home-photo-link-windows rect:nth-child(2n) { transition-delay: .05s; }
.home-photo-link-windows rect:nth-child(3n) { transition-delay: .1s; }
.home-photo-link > span { padding-bottom: 5px; border-bottom: 1px solid #e8c889; }
.home-photo-link:is(:hover, :focus-visible) .home-photo-link-windows rect { fill: #edcd8f; }
.home-photo-link:focus-visible { outline: 2px solid #fff9ed; outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .home-photo-link.is-in-view .home-photo-link-windows {
    animation: home-window-turn 1.55s ease-in-out both;
  }
  .home-photo-link.is-in-view:not(:hover, :focus-visible) .home-photo-link-windows rect {
    animation: home-window-light 1.1s ease-in-out var(--window-delay, 0s) both;
  }
  .home-photo-link-windows rect:nth-child(2) { --window-delay: .09s; }
  .home-photo-link-windows rect:nth-child(3) { --window-delay: .18s; }
  .home-photo-link-windows rect:nth-child(4) { --window-delay: .27s; }
  .home-photo-link-windows rect:nth-child(5) { --window-delay: .36s; }
  .home-photo-link-windows rect:nth-child(6) { --window-delay: .45s; }
}
@keyframes home-window-turn {
  0%, 100% { transform: perspective(110px) rotateY(0); }
  35% { transform: perspective(110px) translateY(-3px) rotateY(-28deg); }
  67% { transform: perspective(110px) translateY(-2px) rotateY(17deg); }
}
@keyframes home-window-light {
  0%, 100% { fill: #edcd8f2e; }
  42%, 59% { fill: #edcd8f; }
}
@media (prefers-reduced-motion: reduce) {
  .home-photo-link-windows rect { transition: none; }
}
#vyhlady.horizon-experience { min-height: 530px; padding-top: 64px; padding-bottom: 24px; }
#vyhlady .horizon-controls { margin-bottom: 0; }
.featured-home.section { color: #173b36; padding-top: 6px; padding-bottom: 42px; }
.featured-home .featured-heading { margin-bottom: 8px; }
#featured-track .featured-apartment {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border-radius: 8px;
}
#featured-track .featured-apartment > img { height: clamp(88px, 9vw, 118px); aspect-ratio: auto; }
#featured-track .featured-apartment-copy {
  grid-template-rows: 1fr auto;
  padding: 10px 9px;
  gap: 9px;
}
#featured-track .featured-apartment-copy strong {
  align-self: start;
  font-size: clamp(14px, 1.5vw, 20px);
  line-height: 1.25;
}
@media (max-width: 700px) {
  #vyhlady.horizon-experience { min-height: 455px; padding-top: 26px; padding-bottom: 18px; }
  #vyhlady .horizon-backdrop { top: 92px; }
  #featured-track .featured-apartment > img { height: clamp(120px, 32vw, 148px); }
}

#rental-calculator .rate-bars button { grid-template-columns: minmax(100px, auto) minmax(0, 1fr) auto; gap: 10px; }
#rental-calculator .rental-room-tabs button { font-size: clamp(11px, 3.1vw, 14px); }
.rent-payback {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 14px 15px;
  border: 1px solid #d5bc8173;
  border-radius: 21px 21px 21px 5px;
  background: #20483d;
  color: #fff9ec;
}
.rent-payback-icon { display: grid; place-items: center; width: 31px; height: 31px; color: #e4ca91; border: 1px solid #d5bc8173; border-radius: 50%; }
.rent-payback-icon svg { width: 17px; height: 17px; }
.rent-payback-copy { display: grid; gap: 4px; }
.rent-payback-copy > span { font-size: 12px; }
.rent-payback-copy .rent-payback-kicker { color: #e4ca91; font-family: var(--hi-accent-font); font-style: italic; font-size: 17px; }
.rent-payback-copy strong { font-size: clamp(17px, 4vw, 25px); line-height: 1.2; }
.rent-payback-copy small { color: #e3ebe4; font-size: 11px; line-height: 1.4; }
@media (max-width: 500px) {
  .rent-payback { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rent-payback-icon { position: absolute; top: 11px; right: 13px; }
  .rent-payback-copy .rent-payback-kicker { padding-right: 36px; }
}

/* Shared apartment pictograms and photo viewer */
.property-facts {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1.4vw, 12px);
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  font-size: clamp(11px, 3vw, 13px);
  line-height: 1.5;
}
.property-fact { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.property-fact .icon { width: 1em; height: 1em; flex: none; }
.property-fact.sold { color: #a12836; }
.property-fact.available { color: #146346; }
.property-fact.reserved { color: #745406; }
#featured-track .property-facts {
  display: grid;
  grid-template-columns: minmax(36px, .7fr) minmax(0, 1.3fr);
  gap: 8px;
  overflow: visible;
  font-size: clamp(10px, 2.8vw, 13px);
}
#featured-track .property-fact { gap: 4px; }
#dialog .property-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
}
#dialog .property-heading .property-facts { grid-column: 1 / -1; color: #dce9dd; padding-bottom: 3px; }
.property-heading .property-fact.sold { color: #ffafb4; }
.property-heading .property-fact.available { color: #a0e3bb; }
.property-heading .property-fact.reserved { color: #f1ce8c; }
#dialog .property-save {
  display: grid;
  place-items: center;
  padding: 0;
  width: 44px;
  min-height: 44px;
  border-radius: 50%;
}
#dialog .property-save .icon { width: 21px; height: 21px; }
#dialog .property-save[aria-pressed="true"] { color: #edc68d; }
#dialog .property-save[aria-pressed="true"] .icon { fill: currentColor; }
#dialog .facts-grid .icon { width: 16px; height: 16px; vertical-align: middle; }
#dialog .facts-grid .icon { margin-right: 5px; }

#lightbox.category-lightbox[open] { justify-content: center; padding: 54px 12px 14px; }
#lightbox.category-lightbox figure { width: min(100%, 1200px); max-width: calc(100% - 92px); min-width: 0; margin: 0; }
#lightbox.category-lightbox #lightbox-image { max-height: calc(100dvh - 175px); }
#lightbox :is(#lightbox-prev, #lightbox-next):not([hidden]) {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: #fff8e8;
  background: #14231be6;
}
#lightbox :is(#lightbox-prev, #lightbox-next) svg { width: 22px; height: 22px; }
#lightbox-thumbs:not([hidden]) {
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  margin-top: 8px;
  padding: 3px;
}
#lightbox-thumbs button { flex: none; width: 62px; height: 48px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 5px; }
#lightbox-thumbs button[aria-current="true"] { border-color: #edc68d; }
#lightbox-thumbs img { width: 100%; height: 100%; display: block; object-fit: cover; }
@media (max-width: 700px) {
  #lightbox.category-lightbox figure { max-width: 100%; }
  #lightbox.category-lightbox :is(#lightbox-prev, #lightbox-next) { position: absolute; top: 45%; z-index: 1; }
  #lightbox.category-lightbox #lightbox-prev { left: 6px; }
  #lightbox.category-lightbox #lightbox-next { right: 6px; }
}
#dialog .related-unit .property-facts { display: flex; margin: 4px 0 0; font-size: 12px; }
#dialog .related-unit .property-fact { display: inline-flex; margin: 0; font-size: inherit; color: inherit; }
#dialog .related-unit .property-value { display: inline; margin: 0; font-size: inherit; color: inherit; }
.recent-grid button > img { object-fit: cover; border-radius: 5px; flex: none; }
@media (max-width: 540px) {
  .recent-grid { grid-template-columns: minmax(0, 1fr); }
}


#dialog > .dialog-top {
  z-index: 20;
  background: #14231b;
  overflow: visible;
}
#dialog-kicker { flex: 1; }
#dialog-close,
#lightbox-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #fff8e8;
  background: #244439;
  border: 1px solid #8aa89a;
  border-radius: 8px;
}
#dialog-close .icon,
#lightbox-close .icon { width: 23px; height: 23px; }
#dialog-close:is(:hover, :focus-visible),
#lightbox-close:is(:hover, :focus-visible) { background: #365d4d; }
@media (max-width: 700px) {
  #dialog > .dialog-top { padding-block: 6px; }
  #dialog .property-heading .property-facts {
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 5px;
  }
  #dialog :is(.detail-tabs, .detail-actions) button {
    white-space: nowrap;
    overflow-wrap: normal;
    min-height: 44px;
  }
  #dialog .detail-tabs { gap: 5px; }
  #dialog .detail-tabs button { padding-inline: 7px; font-size: 12px; }
  #ponuka .explorer-toolbar button {
    white-space: nowrap;
    font-size: clamp(10px, 2.8vw, 12px);
    padding-inline: 2px;
  }
  #ponuka .unit-facts dd { font-size: clamp(10px, 2.8vw, 11px); }
  #ponuka .unit-facts dt { font-size: 10px; }
  #ponuka .unit-card :is(.unit-buttons button, .card-image-tabs button, .unit-head button) {
    white-space: nowrap;
    overflow-wrap: normal;
  }
  #ponuka .unit-card .unit-head h3 button { font-size: clamp(12px, 3.5vw, 17px); }
  #ponuka .unit-card .unit-buttons button { font-size: clamp(10px, 3vw, 13px); }
}


#dialog.original-demo-dialog {
  inset: 0;
  width: 100vw !important;
  height: 100dvh;
  max-width: none !important;
  margin: 0;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}
#dialog.original-demo-dialog > .dialog-top { display: none; }
#dialog.original-demo-dialog #dialog-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
#dialog .demo-toolbar {
  flex: none;
  display: flex;
  align-items: center;
  padding: max(4px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 4px max(8px, env(safe-area-inset-left));
  background: #14231b;
  border-bottom: 1px solid #526b59;
}
#dialog .demo-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff8e8;
  background: #244439;
  border: 1px solid #8aa89a;
  border-radius: 8px;
}
#dialog .demo-back .icon { width: 23px; height: 23px; }
#dialog.original-demo-dialog .original-demo-frame { flex: 1; min-height: 0; height: 0; }
#dialog .unit-description-details .fact-table { margin-top: 12px; }
#lightbox-caption:empty { display: none; }

html:has(body[data-main-view="domov"]),
body[data-main-view="domov"] { overflow-x: clip; }
#featured-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  gap: 12px;
  padding-bottom: 0;
}

#dialog .nearby-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
#dialog .nearby-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: #173b36;
  background: #f8f7ef;
  border: 1px solid #d4dacf;
  border-radius: 10px;
  text-align: left;
}
#dialog .nearby-card img { display: block; width: 100%; aspect-ratio: 1.65; object-fit: cover; }
#dialog .nearby-card > span { display: grid; gap: 6px; padding: 10px; }
#dialog .nearby-card strong {
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#dialog .nearby-card .property-facts {
  display: grid;
  grid-template-columns: minmax(30px, .65fr) minmax(64px, 1.1fr) minmax(28px, .65fr) auto;
  gap: 4px;
  overflow: visible;
  font-size: clamp(10px, 2.8vw, 12px);
}
#dialog .nearby-card .property-fact { white-space: nowrap; }
@media (min-width: 701px) {
  #featured-track {
    --featured-gap: 12px;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * var(--featured-gap)) / 3.25);
    gap: var(--featured-gap);
    overflow-x: auto;
    padding-block: 4px 10px;
    scroll-snap-type: x proximity;
  }
  #featured-track:focus-visible { outline: 2px solid #27654f; outline-offset: -2px; }
}
@media (max-width: 700px) {
  #featured-track { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .featured-home.section { padding-bottom: 12px; }
  body[data-main-view="domov"] #najomny-program.rental-intro {
    min-height: 0;
    justify-content: flex-start;
    padding-top: 24px;
    padding-bottom: 140px;
  }
  body[data-main-view="domov"] #najomny-program .rental-photo { top: 100px; }
}
@media (max-width: 820px) {
  #dialog .nearby-track {
    grid-template-columns: none;
    grid-auto-columns: 84%;
    grid-auto-flow: column;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  #dialog .nearby-card { scroll-snap-align: start; }
}

@media (max-width: 700px) {
  #rental-calculator .rental-simulator { row-gap: 22px; }
  #rental-calculator .rental-chart-panel { padding: 0; }
  #rental-calculator .rental-chart-panel .rental-range { margin: 0 0 20px; }
  #rental-calculator .rental-simulator > .rent-payback { margin-top: 0; }
}

#vybavenie.interior-tour {
  max-width: none;
  padding: clamp(36px, 7vw, 94px) max(5vw, calc((100vw - 1120px) / 2));
  color: #f5eee0;
  background: #143b32;
}
.interior-tour-heading { margin-bottom: 18px; }
#vybavenie .eyebrow { margin-bottom: 8px; color: #e4c28b; }
#vybavenie h2 { margin: 0; color: inherit; font-size: clamp(34px, 6.3vw, 65px); }
#vybavenie h2 em { color: #e5c58f; }
.interior-tour-media {
  position: relative;
  overflow: hidden;
  border: 1px solid #d9bd8055;
  border-radius: 12px;
  background: #102b25;
}
.interior-tour-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.interior-tour-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.interior-tour-toggle:focus-visible { outline: 2px solid #f0d9a6; outline-offset: -3px; }

#najdite-byt.guided-finder {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}
#najdite-byt .finder-intro { padding-inline: clamp(20px, 5vw, 80px); }
#najdite-byt .finder-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(4px, 1vw, 14px);
  padding: 0;
}
#najdite-byt .finder-choices button {
  min-width: 0;
  border-radius: 0;
}
#najdite-byt .finder-choices img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.55;
  object-fit: cover;
  border-radius: 0;
}
#najdite-byt .finder-choice-copy { padding: 10px 4px; }
#najdite-byt .finder-choice-copy strong { font-size: clamp(11px, 3.3vw, 20px); }

/* Final sale price in previews and the property header. */
#featured-track .featured-apartment-copy { grid-template-rows: auto auto 1fr; }

.preview-price,
#ponuka .unit-card .unit-price {
  display: grid;
  gap: 2px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.preview-price b,
#ponuka .unit-card .unit-price b {
  color: #173b36;
  font-size: clamp(15px, 3.8vw, 20px);
  white-space: nowrap;
}
.preview-price small,
#ponuka .unit-card .unit-price small,
#ponuka .unit-card .unit-price .price-sqm {
  color: #4e625b;
  font-size: 11px;
  line-height: 1.35;
  margin: 0;
}
#ponuka .unit-card .unit-price {
  margin: 3px 0 0;
  padding: 0;
}

#dialog .property-heading .price-large {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 0 0 5px;
  padding: 9px 14px;
  border: 1px solid #d5bc8173;
  border-radius: 8px;
  background: #20483d;
  line-height: 1.12;
  font-size: clamp(28px, 7vw, 48px);
  color: #ffe1a6;
}
#dialog .property-heading .price-large small,
#dialog .property-heading .price-large .price-sqm {
  margin: 0;
  color: #f2e8d4;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
#dialog .property-heading .price-large b { white-space: nowrap; }

#catalogue-filters .field[hidden] { display: none; }
#dialog .property-heading .property-furnishing {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0;
  padding: 11px 13px;
  border-radius: 8px;
  background: #20483d;
  color: #fff2d8;
  font-size: clamp(14px, 3.5vw, 17px);
  font-weight: 600;
  line-height: 1.4;
}
#dialog .property-furnishing .icon {
  width: 19px;
  height: 19px;
  flex: none;
  color: #f1ce8c;
}

.price-pair, #ponuka .unit-card .unit-price {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.price-pair > span { display: grid; align-content: start; gap: 3px; }
.price-pair > span + span { border-inline-start: 1px solid #aabdb270; padding-inline-start: 6px; }
.price-pair small { display: block; }
#featured-track .featured-apartment-copy {
  container: preview-card / inline-size;
  min-width: 0;
}
.recent-grid .recent-unit-copy {
  container: recent-card / inline-size;
  display: grid;
  flex: 1;
  gap: 5px;
  min-width: 0;
}
.recent-unit-summary {
  display: grid;
  justify-self: start;
  width: min(100%, 230px);
  padding: 7px 8px;
  border: 1px solid #d9e2d8;
  border-radius: 7px;
  background: #f8f9f3;
}
.recent-unit-summary .preview-price {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #dce4d9;
}
.recent-unit-summary .preview-price > span { gap: 2px; }
.recent-unit-summary .preview-price small {
  margin: 0;
  font-size: 10px;
}
.recent-unit-summary .preview-price b {
  font-size: 12px;
  white-space: normal;
}
.recent-unit-summary .property-facts {
  display: grid;
  grid-template-columns: 24px 66px 27px minmax(0, 1fr);
  gap: 3px 5px;
  padding-top: 6px;
  overflow: visible;
  font-size: 11px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.recent-unit-summary .property-fact .icon { width: 12px; height: 12px; }
@container recent-card (max-width: 218px) {
  .recent-unit-summary .property-facts { grid-template-columns: minmax(0, 1fr) minmax(64px, 1fr); }
}
@container recent-card (max-width: 153px) {
  .recent-unit-summary .preview-price { grid-template-columns: minmax(0, 1fr); }
  .recent-unit-summary .preview-price > span {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 3px;
    padding: 0;
    border: 0;
  }
}
#featured-track .preview-price {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 6px;
  margin-block: 2px 4px;
}
#featured-track .preview-price small {
  margin: 0;
  font-size: 10px;
}
#featured-track .preview-price b {
  font-size: clamp(11px, 6.3cqi, 15px);
  white-space: normal;
}
@container preview-card (max-width: 168px) {
  #featured-track .preview-price { grid-template-columns: minmax(0, 1fr); }
  #featured-track .preview-price > span {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 4px;
    padding: 0;
    border: 0;
  }
}
#dialog .property-heading .price-large { gap: 14px; }
#dialog .property-heading .price-large > span + span { padding-inline-start: 14px; }
#ponuka .unit-card .unit-head { min-height: 1.45em; margin-bottom: 4px; align-items: flex-start; }
#ponuka .unit-card .unit-compare {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 6px; margin-top: 8px; gap: 7px;
  color: #173f34; background: #f2f6ee; border: 1px solid #b5c6b9;
  border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.unit-compare input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.unit-compare:has(input:focus-visible) { outline: 2px solid #27654f; outline-offset: 2px; }
#ponuka .unit-card .unit-compare:has(input:checked) { color: #fff9ee; background: #275546; border-color: #275546; }
.compare-choice-icon { display: inline-flex; }
.compare-choice-icon svg { width: 16px; height: 16px; }
.compare-choice-icon svg:last-child, .unit-compare:has(input:checked) svg:first-child { display: none; }
.unit-compare:has(input:checked) svg:last-child { display: block; }
#compare-bar { color: #fff9ee; background: #173f34; border: 1px solid #b8a477; border-radius: 12px; gap: 10px; }
#compare-bar > button { border: 0; margin: 0; padding: 8px 10px; border-radius: 7px; }
#compare-bar #compare-open { background: #eddbad; color: #173f34; font-weight: 600; }
#compare-bar #compare-clear { min-width: 40px; min-height: 40px; }
#dialog .compare-scroll { border: 1px solid #648174; border-radius: 10px; }
#dialog .compare-table { min-width: min(100%, 580px); }
#dialog .compare-table th { background: #21483a; color: #fff9ee; }
#dialog .compare-table tbody tr:nth-child(even) { background: #1c3028; }
#dialog .compare-plan { display: block; width: 100%; min-width: 88px; max-width: 220px; height: clamp(76px, 18vw, 140px); object-fit: contain; background: #f5f3e8; border-radius: 6px; }
#ponuka .unit-table th[scope=row] { padding: 7px; font-weight: 600; }
#ponuka .unit-table .table-area-price { display: block; font-size: 11px; white-space: nowrap; }
#ponuka .table-status { display: inline-block; padding: 3px 6px; border-radius: 5px; background: #edf2e7; }
#ponuka .table-status.sold { color: #862d37; }
#ponuka .table-status.reserved { color: #745406; }
@media (max-width: 960px) {
  #ponuka #catalogue-results.table-mode { padding: 0; }
  #ponuka .unit-table { min-width: 0; table-layout: fixed; }
  #ponuka .unit-table .desktop-col { display: none; }
  #ponuka .unit-table :is(th, td) { padding: 8px 4px; font-size: 11px; letter-spacing: 0; white-space: normal; }
  #ponuka .unit-table th[scope=row] { padding: 7px 4px; }
  #ponuka .unit-table :is(.table-unit, strong) { font-size: 12px; }
  #ponuka .unit-table .table-area-price { font-size: 9px; white-space: normal; }
}

#ponuka .unit-table tbody tr { cursor: pointer; }
#dialog .detail-compare-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#dialog .detail-compare-actions .unit-compare,
#dialog .detail-compare-actions .button {
  margin: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #90ab9e;
  border-radius: 7px;
  color: #fff9ee;
}
#dialog .detail-compare-actions .unit-compare { display: inline-flex; position: static; cursor: pointer; }
#dialog .detail-compare-actions input { position: static; opacity: 1; width: 16px; height: 16px; }
#dialog .detail-compare-actions .unit-compare:has(input:checked) { background: #275546; }
#dialog .detail-compare-actions .button:disabled { opacity: .55; }

@media (max-width: 600px) {
  #ponuka .unit-card .unit-price b, .preview-price b { font-size: clamp(10px, 3vw, 15px); }
  #ponuka .unit-card .unit-price small, .preview-price small { font-size: 10px; }
}

.price-pair > span { grid-template-rows: auto auto; }
.price-pair small { line-height: 1.3; min-block-size: 2.6em; }
.price-pair b { line-height: 1.15; }
#dialog .property-heading .price-large { font-size: clamp(21px, 5.8vw, 40px); }
@supports (grid-template-rows: subgrid) {
  .price-pair > span { grid-row: span 2; grid-template-rows: subgrid; }
  .price-pair small { min-block-size: 0; }
}

#dialog .property-heading { row-gap: 5px; }
#dialog .property-heading h2 { margin-block: 0; }
#ponuka #catalogue-results.table-mode { overflow: visible; }
#ponuka .unit-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
#ponuka .unit-table thead th {
  position: sticky;
  top: 80px;
  z-index: 2;
  background: #edf0e8;
  box-shadow: 0 1px 0 #bdc9ba;
}
#ponuka .unit-table :is(th, td) { white-space: normal; overflow-wrap: anywhere; }
@media (min-width: 961px) {
  #ponuka .unit-table :is(th, td) { padding-inline: 6px; }
  #ponuka .unit-table th:nth-child(7),
  #ponuka .unit-table th:nth-child(10),
  #ponuka .unit-table th:nth-child(11) { width: 12%; }
  #ponuka .unit-table .table-area-price { white-space: normal; }
}
@media (max-width: 960px) {
  #ponuka .unit-table thead th { top: 70px; }
}

@media (max-width: 600px) {
  #ponuka .explorer-toolbar button {
    min-width: 0;
    padding-inline: 3px;
    white-space: normal;
    text-wrap: balance;
    line-height: 1.2;
  }
  #ponuka .unit-card :is(.unit-head button, .unit-buttons button) {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: normal;
  }
  #ponuka .unit-card .unit-head h3 { min-width: 0; }
  #ponuka .unit-card .unit-buttons { grid-template-columns: minmax(0, 1fr); }
  #ponuka .unit-card .unit-price b { white-space: normal; }
  #ponuka .unit-card .unit-facts > div { column-gap: 3px; padding-inline: 4px; }
  #ponuka .unit-card .unit-facts dd { white-space: normal; }
}
@media (max-width: 360px) {
  #ponuka .explorer-toolbar > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #ponuka #catalogue-results:not(.table-mode) { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  #ponuka .unit-card .unit-price b { font-size: 14px; }
}
