/* Location Reveal — map/panel + amenities strip share one viewport */

.location-reveal {
  --lr-bg: #f3efe6;
  --lr-bg-soft: #1a1916;
  --lr-text: #f3efe6;
  --lr-muted: rgba(243, 239, 230, 0.72);
  --lr-gold: #c9a96e;
  --lr-gold-light: #e4d4b0;
  --lr-line: rgba(201, 169, 110, 0.28);
  --lr-font: var(--font-primary, "Open Sans", Arial, sans-serif);
  --lr-ink: #2b2e1d;
  --lr-ink-muted: #6f6a62;

  position: relative;
  width: 100%;
  background: var(--lr-bg);
  color: var(--lr-text);
  overflow: hidden;
}

.location-reveal__stack {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  min-height: 100svh;
}

.location-reveal__layout {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  direction: ltr;
  isolation: isolate;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.location-reveal__logo-intro {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.location-reveal__logo-intro-mark {
  display: block;
  width: clamp(4.25rem, 7.5vw, 6.25rem);
  height: auto;
  transform-origin: center center;
  will-change: transform, opacity;
  filter: brightness(0) saturate(100%) invert(14%) sepia(16%) saturate(920%)
    hue-rotate(38deg) brightness(0.5) contrast(1.08)
    drop-shadow(0 6px 20px rgba(43, 46, 29, 0.18));
}

/* Visual — left half, full-bleed background */
.location-reveal__visual {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 50%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #1a1916;
  background-image: url("../assets/location-reveal-aerial.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transform-origin: left center;
  will-change: transform;
}

.location-reveal__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 55%,
    rgba(16, 16, 14, 0.35) 78%,
    rgba(16, 16, 14, 0.65) 100%
  );
  pointer-events: none;
}

.location-reveal__map-btn {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: clamp(3.1rem, 4.2vw, 3.6rem);
  height: clamp(3.1rem, 4.2vw, 3.6rem);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 239, 230, 0.94);
  color: #2b2e1d;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(201, 169, 110, 0.35);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.location-reveal__map-btn:hover,
.location-reveal__map-btn:focus-visible {
  background: #f8f4ec;
  color: #1f2116;
  outline: none;
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(201, 169, 110, 0.55);
}

.location-reveal__map-btn-icon {
  position: relative;
  z-index: 2;
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  animation: location-map-float 3.4s ease-in-out infinite;
}

.location-reveal__map-btn-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.location-reveal__map-btn-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.55);
  animation: location-map-pulse 2.8s ease-out infinite;
  pointer-events: none;
}

.location-reveal__map-btn-ring--delay {
  animation-delay: 1.1s;
}

@keyframes location-map-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.85);
    opacity: 0;
  }
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}

@keyframes location-map-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Map sheet — slides in from the right */
.location-map-sheet {
  position: fixed;
  inset: 0;
  z-index: 12120;
  display: flex;
  justify-content: flex-end;
  direction: ltr;
  pointer-events: none;
  visibility: hidden;
}

.location-map-sheet[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.location-map-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}

.location-map-sheet__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(18, 17, 14, 0.48);
  cursor: pointer;
  opacity: 0;
}

.location-map-sheet__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(92vw, 68rem);
  max-width: 100%;
  height: 100%;
  background: #f3efe6;
  color: #2b2e1d;
  box-shadow: -18px 0 48px rgba(0, 0, 0, 0.28);
  transform: translate3d(100%, 0, 0);
  will-change: transform;
  pointer-events: auto;
}

.location-map-sheet__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.1rem, 2.8vw, 1.8rem);
  border-bottom: 1px solid rgba(43, 46, 29, 0.1);
  direction: rtl;
}

.location-map-sheet__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(43, 46, 29, 0.48);
}

.location-map-sheet__title {
  margin: 0;
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.2;
  color: #2b2e1d;
}

.location-map-sheet__address {
  margin: 0.35rem 0 0;
  font-family: "Noto Sans Hebrew", "Noto Sans", sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(43, 46, 29, 0.68);
}

.location-map-sheet__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.location-map-sheet__external {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(43, 46, 29, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #2b2e1d;
  font-family: "Noto Sans Hebrew", "Noto Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.location-map-sheet__external:hover,
.location-map-sheet__external:focus-visible {
  background: #f8f4ec;
  border-color: rgba(201, 169, 110, 0.55);
  outline: none;
}

.location-map-sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(43, 46, 29, 0.12);
  border-radius: 50%;
  background: #fff;
  color: #2b2e1d;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.location-map-sheet__close:hover,
.location-map-sheet__close:focus-visible {
  background: #f8f4ec;
  outline: none;
}

.location-map-sheet__frame {
  flex: 1 1 auto;
  min-height: 0;
  background: #ded9cf;
}

.location-map-sheet__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

body.is-location-map-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .location-reveal__map-btn-icon,
  .location-reveal__map-btn-ring,
  .location-reveal__map-btn-ring--delay {
    animation: none;
  }
}

/* Panel — right half, same height as visual */
.location-reveal__panel {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 50%;
  height: 100%;
  margin: 0;
  padding: clamp(2rem, 5vh, 4rem) clamp(2rem, 4vw, 3.5rem);
  background-color: rgba(80, 79, 68, 1);
  direction: rtl;
  will-change: transform;
  box-sizing: border-box;
  overflow: hidden;
}

.location-reveal__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 1.5vh, 1rem);
  width: 100%;
  max-width: none;
  text-align: center;
}

.location-reveal__header > .mask-reveal:not(.mask-reveal--inline) {
  width: 100%;
}

.location-reveal__title {
  margin: 0;
  font-family: var(--lr-font);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.7953px;
  text-align: center;
  max-width: 18ch;
  background-image: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: rgba(172, 138, 101, 1);
}

.location-reveal__rule {
  display: block;
  width: clamp(3.5rem, 8vw, 5rem);
  height: 1px;
  margin-inline: auto;
  background: rgba(172, 138, 101, 1);
}

.location-reveal__intro {
  margin: 0;
  font-size: 23px;
  font-weight: 300;
  line-height: 43.66px;
  letter-spacing: 0.354px;
  color: rgba(255, 255, 255, 1);
  width: 100%;
  max-width: 34ch;
  margin-inline: auto;
  text-align: center;
}

/* Amenities strip — 4 per row, icon above text */
.location-reveal__amenities {
  flex: 0 0 auto;
  width: 100%;
  padding: clamp(1.5rem, 3.2vh, 2.25rem) clamp(1.25rem, 3.5vw, 2.75rem)
    clamp(1.65rem, 3.4vh, 2.5rem);
  background-color: rgba(255, 255, 255, 1);
  border-top: 1px solid rgba(43, 46, 29, 0.1);
  box-sizing: border-box;
  direction: rtl;
}

.location-reveal__amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.15rem, 2.4vh, 1.75rem) clamp(0.85rem, 1.8vw, 1.75rem);
  width: 100%;
  max-width: min(72rem, 96vw);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.location-reveal__amenity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(0.6rem, 1.2vh, 0.9rem);
  min-width: 0;
  text-align: center;
}

.location-reveal__amenity-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.5rem, 5vw, 4.5rem);
  height: clamp(3.5rem, 5vw, 4.5rem);
  border-radius: 50%;
  border: 2px solid rgba(43, 46, 29, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 1px 3px rgba(43, 46, 29, 0.08),
    0 4px 10px rgba(43, 46, 29, 0.12);
}

.location-reveal__amenity-icon img {
  display: block;
  width: 54%;
  height: 54%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(16%) sepia(12%) saturate(780%)
    hue-rotate(28deg) brightness(0.95);
}

.location-reveal__amenity-label {
  font-size: clamp(0.84rem, 1.05vw, 1rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: rgba(80, 79, 68, 1);
  max-width: 18ch;
}

.location-reveal__amenity-icon,
.location-reveal__amenity-label {
  will-change: transform, opacity, clip-path;
}

/* Scroll reveal */
.location-reveal__title,
.location-reveal__rule,
.location-reveal__intro {
  will-change: transform, opacity, filter, clip-path;
}

@media (max-width: 1024px) {
  .location-reveal__stack {
    min-height: auto;
  }

  .location-reveal__layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
    height: auto;
  }

  .location-reveal__visual {
    position: relative;
    width: 100%;
    height: clamp(18rem, 44vw, 26rem);
    min-height: clamp(18rem, 44vw, 26rem);
  }

  .location-reveal__map-btn {
    top: auto;
    bottom: 1.15rem;
    left: auto;
    right: 1.15rem;
    transform: none;
  }

  .location-map-sheet__panel {
    width: 100vw;
  }

  .location-map-sheet__top {
    flex-wrap: wrap;
  }

  .location-map-sheet__external {
    font-size: 0.78rem;
    padding: 0.48rem 0.8rem;
  }

  .location-reveal__panel {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: clamp(2rem, 5vh, 2.75rem) clamp(1.25rem, 4vw, 2rem);
  }

  .location-reveal__header {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .location-reveal__amenities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 0.85rem;
  }

  .location-reveal__amenity-icon {
    width: 3.35rem;
    height: 3.35rem;
  }

  .location-reveal__amenity-label {
    max-width: 18ch;
    font-size: 0.82rem;
  }

  .location-reveal__title {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }

  .location-reveal__intro {
    font-size: clamp(0.9rem, 3.6vw, 1rem);
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-reveal.is-init .location-reveal__title,
  .location-reveal.is-init .location-reveal__rule,
  .location-reveal.is-init .location-reveal__intro {
    opacity: 1;
  }

  .location-reveal__visual,
  .location-reveal__panel {
    clip-path: none !important;
    transform: none !important;
  }

  .location-reveal__logo-intro {
    display: none !important;
  }
}
