/* Simplified sales journey: photograph fades into the page, three clear actions. */
.home-cinema{border-radius:0!important;background:#f5f2ec;min-height:780px;overflow:hidden}
.home-cinema:after{content:'';position:absolute;inset:auto 0 0;height:200px;background:linear-gradient(transparent,#f5f2ec);pointer-events:none;z-index:2}
.home-cinema .hero-copy{padding-bottom:190px}
.home-cinema .hero-actions{margin-top:70px;display:flex;flex-wrap:wrap;gap:12px;position:relative;z-index:3}
.hero-actions .button,.hero-actions .hero-rental-link{min-height:54px;border-radius:40px;padding:16px 24px;display:inline-flex;align-items:center;justify-content:center;font-size:15px;line-height:1.3;white-space:nowrap}
.hero-actions .outline,.hero-actions .hero-rental-link{background:#153a37e8!important;border:1px solid #ffffff85;color:white!important;text-decoration:none}
.featured-home{background:#f5f2ec;overflow:hidden;padding-top:65px;padding-bottom:75px}
.featured-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:32px}
.featured-heading h2{font-size:clamp(36px,4.5vw,64px);line-height:1.15}
.featured-heading h2 em{display:inline!important}

#featured-track{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 0 24px;scrollbar-color:#8b9b90 #e6e4dc}
.featured-apartment{flex:0 0 34%;min-width:290px;border:0;text-align:left;background:#fff;color:#173b36;padding:0;border-radius:14px;overflow:hidden;scroll-snap-align:start;font:inherit;cursor:pointer}
.featured-apartment>img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;transition:filter .25s}.featured-apartment:hover>img{filter:brightness(1.07)}
.featured-apartment-copy{display:grid;gap:8px;padding:24px}.featured-apartment-copy strong{font-size:27px;font-weight:500}.featured-apartment-copy small{font-size:13px;color:#4e625b;line-height:1.6}.featured-apartment-copy>span{font-size:22px}
#floor-controls button small,#floor-count{display:none!important}
#floor-controls button{min-width:42px;justify-content:center;padding:10px!important}#floor-controls button span{font-size:17px}
#plan-stage{position:relative;background:white;width:100%;overflow:hidden;border-radius:12px}#plan-stage>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;margin:0}
#sheet-zoom{display:block;width:auto!important;margin:16px auto;padding:10px 20px!important;border-radius:30px;background:#eef1eb;color:#173b36;border:1px solid #a9b8ae;font:inherit;font-size:14px}
.horizon-foot{justify-content:flex-end}
@media(max-width:700px){.home-cinema{min-height:730px}.home-cinema .hero-copy{padding-bottom:180px}.home-cinema .hero-actions{margin-top:45px;display:flex}.hero-actions .button,.hero-actions .hero-rental-link{font-size:13px;padding:14px 18px;flex:1 1 auto}.hero-actions>a:first-child{flex-basis:100%}.featured-apartment{flex-basis:83%;min-width:260px}.featured-heading{align-items:start;flex-direction:column}.floor-sheet{padding:8px!important}.explorer-toolbar>div{display:flex}.explorer-toolbar button{font-size:12px!important;padding:12px!important}}
@media(prefers-reduced-motion:reduce){.featured-apartment>img{transition:none}}
#ponuka[data-explorer=plan] .floor-shop{grid-template-columns:1fr}
#ponuka[data-explorer=plan] .building-column{width:100%;max-width:none;position:relative;top:auto}
.plan-scroll{width:100%;overflow-x:auto;scrollbar-color:#8b9b90 #eee}
#plan-stage{min-width:760px;max-width:1200px;margin:auto}
#ponuka[data-explorer=plan] .floor-shop{grid-template-columns:minmax(0,1fr)}
#ponuka[data-explorer=plan] .building-column,.floor-sheet,.plan-scroll{min-width:0;max-width:100%;box-sizing:border-box}

.floor-sheet { scroll-margin-top: 96px; }
.plan-apartments { margin: 1.25rem 0 1.75rem; }
.plan-apartments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: .75rem;
}
.plan-apartments-header h3 { margin: 0; color: #173b36; font-size: 1rem; font-weight: 600; }
.plan-apartments-nav { display: flex; gap: .5rem; }
.plan-apartments-nav button {
  width: auto;
  min-height: 40px;
  padding: .5rem .9rem;
  border: 1px solid #a7b6ad;
  border-radius: 999px;
  background: #fff;
  color: #173b36;
  font-size: .75rem;
}
.plan-apartments-nav button:disabled { opacity: .45; cursor: default; }
.floor-sheet .sheet-units {
  flex-wrap: nowrap;
  display: flex;
  gap: .85rem;
  overflow-x: auto;
  padding: 4px 4px .85rem;
  scroll-padding-inline: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #8b9b90 #edf0eb;
}
.floor-sheet .plan-apartment-card {
  display: grid;
  gap: .25rem;
  flex: 0 0 clamp(160px, 52vw, 218px);
  align-content: center;
  min-height: 126px;
  padding: 1.15rem 1.25rem;
  text-align: left;
  scroll-snap-align: start;
  border: 1px solid #e2dccd;
  border-radius: 30px 30px 12px 12px;
  background: linear-gradient(140deg, #f8f5ec, #eeebe1);
  color: #173b36;
  transition: background .2s, border-color .2s, color .2s;
}
.floor-sheet .plan-apartment-card:hover,
.floor-sheet .plan-apartment-card:focus-visible {
  background: #173b36;
  color: #fff;
  border-color: #173b36;
}
.plan-card-name { font-size: .85rem; font-weight: 600; }
.plan-apartment-card strong {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
  font-weight: 500;
  white-space: nowrap;
}
.plan-card-label { font-size: .7rem; }
#plan-markers { position: absolute; inset: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .floor-sheet .plan-apartment-card { transition: none; }
}

/* Photo-led apartment choices on the homepage. */
.guided-finder .finder-choices button {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #dce1d7;
  border-radius: 14px;
  background: #fff;
  color: #173b36;
}
.guided-finder .finder-choices button:hover {
  background: #fff;
  border-color: #b89456;
  transform: none;
}
.guided-finder .finder-choices img,
.guided-finder .finder-result img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
}
.guided-finder .finder-choice-copy {
  min-height: 0;
  margin: 0;
  padding: .7rem .85rem .85rem;
}
.finder-choice-copy strong,
.finder-choice-copy small { display: block; }
.guided-finder .finder-choice-copy strong {
  color: #173b36;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.35;
}
.finder-choice-copy small {
  margin-top: .25rem;
  color: #4e625b;
  font-size: .75rem;
  line-height: 1.45;
}

/* A quieter hierarchy gives the photography and primary actions more space. */
.guided-finder {
  display: block;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(48px, 6vw, 88px);
}
.finder-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.finder-intro h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.18;
}
.finder-intro h2 em { display: inline; }
.finder-intro .text-link { flex-shrink: 0; margin: 0; }
.finder-panel { max-width: none; }
.guided-finder .finder-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.guided-finder .finder-choices button {
  background: transparent;
  border: 0;
  border-radius: 10px;
}
.guided-finder .finder-choices button:hover { background: transparent; }
.guided-finder .finder-choice-copy { padding: 14px 0 2px; }
.guided-finder .finder-choice-copy strong { font-size: 20px; }
.guided-finder .finder-choices img { border-radius: 10px; }
.featured-apartment { flex-basis: calc((100% - 48px) / 3); min-width: 260px; }
.featured-apartment-copy { gap: 7px; padding: 20px; }
.featured-apartment-copy strong { font-size: 24px; }
.featured-apartment-copy > span { font-size: 21px; }
.featured-heading { align-items: center; }
.program-heading { max-width: 780px; margin-bottom: 38px; }
.program-heading > p:last-child { max-width: 620px; line-height: 1.65; }
.program-stages button { padding: 18px 12px; }
.program-explanation { padding-top: 24px; }
.program-explanation h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.program-explanation > p:not(.eyebrow) { max-width: 540px; font-size: 17px; line-height: 1.75; }
.responsibility-disclosure, .program-conditions { margin-top: 14px; }
.selection-title { margin-bottom: 24px; }
.collection-cards { gap: 20px; }
.explorer-toolbar { margin-top: 28px; }
.availability-note { border: 0; border-left: 2px solid #b79b68; background: transparent; padding: 10px 18px; }
.atmosphere-foot { justify-content: flex-end; }
#novinky .faq-cta { margin-top: 32px; }
@media (max-width: 700px) {
  .finder-intro { align-items: start; flex-direction: column; gap: 16px; }
  .guided-finder .finder-choices {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
    scrollbar-color: #8b9b90 #e6e4dc;
  }
  .guided-finder .finder-choices button { flex: 0 0 73%; scroll-snap-align: start; }
  .featured-apartment { flex-basis: 83%; }
  .featured-heading { align-items: start; }
  .program-heading { margin-bottom: 26px; }
  .program-stages button { padding: 14px 8px; }
}

/* Compact reading rhythm and a short appointment request. */
.rich-content p { margin-bottom: 1rem; }
.program-heading > p { margin-top: 14px; margin-bottom: 16px; }
.program-explanation > p { margin-top: 12px; margin-bottom: 16px; }
.viewing-form { max-width: 600px; }
.viewing-form h2 { margin-bottom: 10px; }
.viewing-form > p { margin: 0 0 18px; line-height: 1.5; }
.viewing-form .form-grid { gap: 14px 18px; }
.viewing-form .field { gap: 7px; margin-bottom: 0; font-size: 14px; letter-spacing: 0; }
.viewing-form .field input,
.viewing-form .field select,
.viewing-form .field textarea {
  min-width: 0;
  min-height: 48px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #b7c4b9;
  border-radius: 9px;
  background: #fff;
  color: #173b36;
  font: inherit;
  font-size: 16px;
  color-scheme: light;
}
.viewing-form .field input:focus-visible,
.viewing-form .field select:focus-visible,
.viewing-form .field textarea:focus-visible { outline: 2px solid #a28249; outline-offset: 2px; }
.viewing-extra { margin-top: 18px; }
.viewing-extra summary { cursor: pointer; font-size: 14px; padding: 10px 0; }
.viewing-extra .field { margin: 10px 0; }
.viewing-form .consent-label { margin: 16px 0; font-size: 14px; color: #c5d5c7; line-height: 1.5; }
.viewing-form .consent-label input { flex-shrink: 0; margin-top: 3px; }
.viewing-form .consent-label button { font-size: inherit; }
.viewing-form .viewing-delivery { margin: 12px 0 0; font-size: 14px; color: #b4c8ba; }
.viewing-form .viewing-unit { color: #e5e9dc; font-weight: 500; }
.viewing-form .button { width: 100%; min-height: 50px; }
.guided-finder .finder-choices button,
.featured-apartment,
.unit-card { transition: transform .28s ease, box-shadow .28s ease; }
@media (hover: hover) {
  .guided-finder .finder-choices button:hover,
  .featured-apartment:hover { transform: translateY(-4px); }
  .unit-card:hover { box-shadow: 0 14px 32px #123e3214; }
}
@keyframes viewing-appear {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.viewing-form { animation: viewing-appear .35s ease both; }
.finder-choices button { animation: viewing-appear .5s ease both; }
.finder-choices button:nth-child(2) { animation-delay: .06s; }
.finder-choices button:nth-child(3) { animation-delay: .12s; }
.finder-choices button:nth-child(4) { animation-delay: .18s; }
@media (max-width: 600px) {
  .viewing-form .form-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .viewing-form, .finder-choices button { animation: none; }
  .guided-finder .finder-choices button, .featured-apartment, .unit-card { transition: none; }
  .guided-finder .finder-choices button:hover, .featured-apartment:hover { transform: none; }
}

/* Keep modal surfaces inside the viewport; only their contents scroll vertically. */
#dialog,
#lightbox {
  box-sizing: border-box;
  max-inline-size: calc(100vw - 16px);
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}
#dialog-body,
#dialog .contact-form,
#dialog .form-grid,
#dialog .field,
#dialog .viewing-extra,
#dialog .consent-label,
#dialog .consent-label > span {
  min-inline-size: 0;
  max-inline-size: 100%;
  box-sizing: border-box;
}
#dialog-body { overflow-x: hidden; overflow-wrap: anywhere; }
#dialog .contact-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#dialog .contact-form .field :is(input, select, textarea) {
  display: block;
  box-sizing: border-box;
  min-inline-size: 0;
  inline-size: 100%;
  max-inline-size: 100%;
}
#dialog .contact-form :is(input[type=date], input[type=time]) {
  -webkit-appearance: none;
  appearance: none;
}
#dialog .contact-form input::-webkit-date-and-time-value { min-width: 0; text-align: left; }
#dialog .contact-form input::-webkit-datetime-edit { padding: 0; min-width: 0; }
#dialog .consent-label { align-items: flex-start; }
#dialog .consent-label > input {
  inline-size: 16px;
  min-inline-size: 16px;
  max-inline-size: 16px;
  block-size: 16px;
}
#dialog .contact-form .button {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
  padding-inline: 14px;
}
#dialog .table-wrap { overflow-x: auto; touch-action: pan-x pan-y pinch-zoom; }
@media (max-width: 600px) {
  #dialog .contact-form .form-grid { grid-template-columns: minmax(0, 1fr); }
  #dialog:not(.original-demo-dialog) { inline-size: calc(100vw - 16px); margin-inline: auto; }
  #dialog:not(.original-demo-dialog) #dialog-body { padding: 22px 16px; }
  #dialog .contact-form h2 { max-inline-size: 100%; font-size: clamp(23px, 7vw, 28px); }
  #dialog .dialog-top { min-inline-size: 0; gap: 8px; }
  #dialog .dialog-top > span { min-inline-size: 0; overflow-wrap: anywhere; }
}

.viewing-slot {
  margin: 20px 0;
  padding: 18px;
  min-width: 0;
  border: 1px solid #cdb58466;
  border-radius: 16px;
  background: linear-gradient(130deg, #e7d9af12, #ffffff05);
}
.viewing-slot-heading {
  display: block;
  margin-bottom: 14px;
  color: #dfc494;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.viewing-form .viewing-slot select { background: #f7f2e6; border-color: #d9c8a4; font-weight: 500; }
.viewing-hours { display: block; margin-top: 12px; color: #c2d0c3; font-size: 13px; line-height: 1.4; }
#dialog .viewing-form .viewing-slot .form-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 600px) {
  .viewing-slot { padding: 14px; margin: 16px 0; }
  #dialog .viewing-form .viewing-slot .form-grid { grid-template-columns: minmax(0, 1fr); }
}
#dialog:not(.original-demo-dialog) { max-inline-size: min(1150px, calc(100vw - 16px)); }
#dialog .contact-form { inline-size: 100%; max-inline-size: min(600px, 100%); }
