/* The published BRIZO styles provide the shell, palette, tower imagery and contact controls. */
.hero-caption .hero-subtitle,
.hero-caption .deal-kicker,
.eyebrow { text-transform: uppercase; }
.hero-facts.sale-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.offer-panel .offer-registration { font-size: 1rem; line-height: 1.5; }
.offer-panel .hero-facts.sale-metrics strong { white-space: nowrap; }
.eyebrow[dir="ltr"] { text-align: start; }
[dir="rtl"] .eyebrow[dir="ltr"] { text-align: right; }
[dir="rtl"] .eyebrow, [dir="rtl"] .hero-caption .hero-subtitle { letter-spacing: 0; }
main { max-width: none; }
main > .hero { max-width: 1440px; margin-inline: auto; }
.hero .hero-image-frame {
  position: relative;
  display: block;
  height: clamp(560px, 50vw, 740px);
  container-type: size;
  cursor: zoom-in;
}
/* The photograph and its traced balcony share the same uncropped coordinate space. */
.hero-photo-plane {
  position: absolute;
  display: block;
  width: max(100cqw, calc(100cqh * 1568 / 2720));
  aspect-ratio: 1568 / 2720;
  top: 23%;
  left: 50%;
  transform: translate(-50%, -23%);
}
.hero .hero-photo-plane .hero-media, .balcony-mask {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.hero .hero-visual::after {
  background: linear-gradient(180deg, rgb(5 7 8 / 58%), transparent 20%, transparent 41%, rgb(5 7 8 / 20%) 62%, rgb(5 5 5 / 94%) 100%);
}
@media (min-width: 701px) {
  .hero .hero-caption { inset-inline-start: 5%; bottom: clamp(60px, 5.8vw, 82px); }
}
.hero-image-frame:focus-visible { outline-offset: -4px; }
.project.living-preview { display: block; width: 100%; padding: 0; margin-inline: 0; }
.photo-copy { width: min(100%, 1200px); margin-inline: auto; padding: clamp(1.7rem, 4vw, 3.6rem) clamp(20px, 5vw, 72px); }
.project.living-preview .project-copy { margin-block: 0; }
.project.living-preview .project-copy h2 { margin-bottom: .65rem; }
.project.living-preview .project-copy > p:last-child { margin-bottom: 0; }
.property-photo { color: inherit; text-decoration: none; }
.kitchen-copy h3, .master-bedroom h3 { margin: 0; font: 500 clamp(1.65rem, 2.7vw, 2.4rem)/1.16 Manrope, Arial, Assistant, sans-serif; letter-spacing: -.025em; }
.kitchen-copy p { margin: 1rem 0 0; color: var(--muted); line-height: 1.55; font-size: 1.125rem; }
.private-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.private-layout .story-head { display: block; grid-column: 2; grid-row: 1; margin: 0; }
.private-layout .story-head .eyebrow { margin-bottom: 1rem; }
.private-layout .story-head > p:last-child { margin-top: 1rem; }
.private-tiles { display: grid; grid-column: 1; grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; scroll-margin-top: 1rem; }
.private-tiles .property-photo { position: relative; aspect-ratio: 1; }
.private-tiles .property-photo img { height: 100%; object-fit: cover; }
.private-tiles .property-photo:first-child img { object-position: 59% center; }
.private-tiles .property-photo:last-child img { object-position: 54% center; }
.tile-label { position: absolute; inset: auto 0 0; padding: 23% 7% 6%; background: linear-gradient(transparent, rgb(0 0 0 / 83%)); color: #fff; font: 500 clamp(.9rem, 1.55vw, 1.3rem)/1.2 Manrope, Arial, Assistant, sans-serif; }
.master-bedroom { margin-block: clamp(2rem, 5vw, 4rem) 1rem; }
.master-bedroom h3 { margin-bottom: 1rem; }
.private-story { border-top: 0; padding-top: 0; }
.location-section .story-head h2 { margin: 0; font-family: Manrope, Arial, Assistant, sans-serif; font-weight: 500; letter-spacing: -.025em; }
.location-photos {
  display: grid;
  /* Preserve both portrait photographs uncropped at the same displayed height. */
  grid-template-columns: minmax(0, 0.74446240fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(8px, 1.5vw, 12px);
  width: min(100%, 26rem);
  margin: clamp(12px, 1.5vw, 18px) auto 0;
}
.sale { padding-bottom: clamp(1.5rem, 3vw, 3rem); }
.architecture .architecture-copy { margin-bottom: 1.75rem; }
.terrace-detail { width: min(100%, 680px); margin: clamp(14px, 3vw, 38px) auto 0; }
.tower-panorama { padding: 0 5%; margin: clamp(30px, 5vw, 68px) auto; }
.tower-panorama figcaption { margin-top: 1rem; padding-top: .78rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.contact .license { font-size: .8125rem; }
footer { padding-inline: max(6%, 76px); }
.whatsapp-float[hidden] { display: none; }

html.photo-open { overflow: hidden; }
.photo-viewer { box-sizing: border-box; inset: 0; margin: 0; padding: 0; width: 100vw; max-width: none; height: 100%; height: 100dvh; max-height: none; border: 0; color: #fff; background: #090908; }
.photo-viewer::backdrop { background: rgba(0,0,0,.93); }
.viewer-stage { direction: ltr; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; height: 100%; padding: 55px 18px 14px; }
.viewer-stage figure { margin: 0; min-width: 0; }
.viewer-stage img { display: block; width: 100%; height: calc(100dvh - 153px); object-fit: contain; }
.viewer-stage figcaption { display: flex; gap: 16px; justify-content: center; align-items: baseline; margin: .7rem 0 0; font-size: 1rem; text-align: center; line-height: 1.35; }
[dir="rtl"] .viewer-description { direction: rtl; }
.viewer-counter { color: #dba786; font-variant-numeric: tabular-nums; white-space: nowrap; }
.viewer-stage button { min-width: 44px; min-height: 44px; border: 1px solid #745441; border-radius: 50%; padding: 0; background: #161411; color: white; font: 32px/1 Arial, sans-serif; cursor: pointer; }
.viewer-stage button:hover, .viewer-stage button:focus-visible { border-color: var(--accent); background: #3a2b24; }
.viewer-close { position: absolute; top: max(9px, env(safe-area-inset-top)); right: max(13px, env(safe-area-inset-right)); }
@media (max-width: 700px) {
  .hero .hero-image-frame { height: clamp(545px, 143vw, 650px); }
  .hero .hero-caption { bottom: clamp(52px, 14vw, 66px); }
  .hero-facts.sale-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .hero-caption .hero-subtitle { font-size: .8125rem; }
  .hero-visual .languages a { min-width: auto; }
  .hero .offer-panel { padding-bottom: 1.5rem; }
  .offer-panel .offer-registration { margin-top: 18px; font-size: .95rem; }
  .hero-caption .hero-address { font-size: 1.05rem; }
  .kitchen-copy h3 { font-size: 1.75rem; }
  .tower-panorama { padding-inline: 20px; }
  .location-photos,
  .master-bedroom > .property-photo,
  .apartment-story > .bath-first,
  .architecture .property-photo,
  .tower-panorama > .property-photo {
    width: 100vw;
    max-width: none;
    margin-inline: calc(50% - 50vw);
  }
  footer { padding: 22px 22px 76px; }
  .whatsapp-float { inset-inline-start: auto; inset-inline-end: 12px; left: auto; right: 12px; width: 52px; height: 52px; bottom: max(12px, env(safe-area-inset-bottom)); }
  [dir="rtl"] .whatsapp-float { left: 12px; right: auto; }
  .whatsapp-float svg { width: 31px; height: 31px; }
  .viewer-stage { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 0 12px; align-content: center; padding: 58px 12px max(14px, env(safe-area-inset-bottom)); }
  .viewer-stage figure { grid-column: 1/-1; grid-row: 1; }
  .viewer-stage img { height: calc(100dvh - 240px); }
  .viewer-stage figcaption { flex-direction: column; align-items: center; gap: 5px; min-height: 58px; }
  .viewer-prev { grid-row: 2; grid-column: 1; justify-self: end; }
  .viewer-next { grid-row: 2; grid-column: 2; justify-self: start; }
}
@media (max-width: 800px) {
  .private-layout { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .private-tiles { width: min(100%, 500px); align-self: center; gap: clamp(8px, 2.3vw, 12px); }
  .tile-label { font-size: clamp(.94rem, 4.25vw, 1.13rem); }
}
@media (min-width: 801px) {
  .living-preview .island-close img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; }
}
@media (min-width: 701px) and (max-width: 875px) {
  .hero-caption .hero-sale-price { font-size: 2.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.panorama-copy { margin-bottom: clamp(24px, 4vw, 48px); }

/* Photo positions stay the same across languages; Hebrew captions retain RTL. */
.location-photos, .private-tiles { direction: ltr; }
[dir="rtl"] .private-tiles .tile-label { direction: rtl; }

/* The cutaway follows the private-room block and precedes the terrace, without cropping. */
.penthouse-plan { padding: 0 0 clamp(30px, 5vw, 64px); scroll-margin-top: 20px; }
.penthouse-plan .plan-copy { padding-top: clamp(12px, 2vw, 24px); padding-bottom: clamp(20px, 3vw, 32px); }
.penthouse-plan h2 { margin: 0; font: 500 clamp(32px, 3.5vw, 44px)/1.2 Manrope, Arial, Assistant, sans-serif; letter-spacing: -.025em; }
@media (max-width: 700px) { .penthouse-plan h2 { font-size: 32px; line-height: 1.25; } }
.penthouse-plan .plan-photo { width: min(100%, 860px); margin-inline: auto; }
.penthouse-plan .plan-photo img { width: 100%; height: auto; object-fit: contain; }
