.maplace-skip-link {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  background: #f8fbff;
  border: 1px solid var(--border);
  color: #273c5f;
  font-family: "Libre Baskerville", "Cormorant Garamond", serif;
  font-size: 0.95rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.maplace-skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

.maplace-main {
  margin: 0;
  padding: var(--topbar-height) 4% 32px;
  display: flex;
  justify-content: center;
}

.maplace-stack {
  width: 100%;
  max-width: 680px;
  display: grid;
  gap: 22px;
  justify-items: stretch;
}

.maplace-intro {
  text-align: center;
  padding: 34px 26px 30px;
}

.maplace-intro-inner {
  margin: 0 auto;
}

.maplace-logo {
  width: clamp(72px, 14vw, 92px);
  height: auto;
  margin: 0 auto 12px;
  display: block;
}

.maplace-heading {
  margin: 0 0 10px;
  font-family: "Libre Baskerville", "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 500;
  color: #304973;
  line-height: 1.15;
}

.maplace-lead {
  margin: 0 auto;
  max-width: 480px;
  font-size: 1.2rem;
  color: #364661;
  line-height: 1.55;
}

.maplace-noscript {
  margin: 0 auto 18px;
  max-width: 680px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #e8f0ff;
  border: 1px solid #adc2e6;
  color: #273c5f;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.5;
}


.maplace-search-wrap.place-wrap {
  margin: 0;
  padding: 24px 18px;
  border-radius: 18px;
  position: relative;
}

.maplace-search-card {
  margin: 0 auto;
  width: 100%;
  padding: 28px 22px 24px;
}

.maplace-search-form {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.maplace-field {
  margin: 0;
  justify-items: center;
  position: relative;
  width: 100%;
}

.maplace-field label {
  width: 100%;
  text-align: center;
  letter-spacing: 0.2em;
}

.maplace-field input {
  width: 100%;
  min-height: 52px;
  font-size: 1.3rem;
  text-align: center;
}

.maplace-search-wrap.is-loading-guests .maplace-field::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 16px;
  width: 16px;
  height: 16px;
  border: 2px solid #a4badf;
  border-top-color: var(--accent-dark);
  border-radius: 50%;
  animation: maplaceSpin 0.7s linear infinite;
  pointer-events: none;
}

[dir="rtl"] .maplace-search-wrap.is-loading-guests .maplace-field::after {
  right: auto;
  left: 14px;
}

@keyframes maplaceSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .maplace-search-wrap.is-loading-guests .maplace-field::after {
    animation: none;
    opacity: 0.65;
  }
}

.maplace-outcome {
  min-height: 0;
  padding: 22px 24px 26px;
  text-align: center;
}

.maplace-outcome:has(.maplace-status:empty):has(.maplace-results:empty):has(.maplace-selected[hidden]) {
  display: none;
}

.maplace-field input:disabled {
  opacity: 0.65;
  cursor: wait;
}

.maplace-status {
  min-height: 1.25rem;
  text-align: center;
  font-size: 1.05rem;
  color: #435168;
}

.maplace-status-row {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.maplace-retry-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 18px;
  border: 1px solid #a4badf;
  border-radius: 12px;
  background: #f5f8fd;
  color: #273c5f;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.maplace-retry-btn:hover,
.maplace-retry-btn:focus-visible {
  background: #dee7f5;
  outline: none;
}

.maplace-results {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
}

.maplace-results:not(:empty) {
  margin-top: 10px;
}

.maplace-result-btn {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f5f8fd;
  padding: 16px 18px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.maplace-result-btn:hover,
.maplace-result-btn:focus-visible {
  background: #dee7f5;
  border-color: #a4badf;
  outline: none;
}

.maplace-result-name {
  margin: 0;
  font-family: "Libre Baskerville", "Noto Serif Hebrew", "Cormorant Garamond", serif;
  font-size: 1.35rem;
  color: #304973;
  font-weight: 500;
  line-height: 1.3;
}

.maplace-tables-line,
.maplace-result-tables {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  margin: 12px 0 0;
  font-family: "Libre Baskerville", "Cormorant Garamond", serif;
  font-size: 0.92rem;
  color: #435168;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.maplace-result-tables {
  margin-top: 6px;
}

.maplace-table-segment {
  white-space: nowrap;
}

.maplace-table-ref {
  font-weight: 700;
  font-size: 1.18em;
  color: #273c5f;
  letter-spacing: 0.02em;
  text-shadow: 0.4px 0 0 currentColor, -0.4px 0 0 currentColor;
}

.maplace-table-sep {
  margin: 0 0.45em;
  color: #8599bd;
  font-weight: 400;
  letter-spacing: 0;
}

.maplace-result-meta {
  margin: 6px 0 0;
  font-family: "Libre Baskerville", "Cormorant Garamond", serif;
  font-size: 0.92rem;
  color: #435168;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.maplace-selected {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 6px 0 2px;
}

.maplace-selected:not([hidden]) {
  margin-top: 6px;
}

.maplace-guest-name {
  margin: 0;
  font-family: "Libre Baskerville", "Noto Serif Hebrew", "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  font-weight: 500;
  font-style: normal;
  color: #304973;
  line-height: 1.3;
}

.maplace-guest-meta {
  margin: 10px 0 0;
  font-family: "Libre Baskerville", "Cormorant Garamond", serif;
  font-size: 0.96rem;
  color: #435168;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

.maplace-empty {
  margin: 8px 0 0;
  text-align: center;
  font-size: 1.05rem;
  color: #435168;
  line-height: 1.5;
}

[dir="rtl"] .maplace-field label,
[dir="rtl"] .maplace-field input,
[dir="rtl"] .maplace-result-btn,
[dir="rtl"] .maplace-tables-line,
[dir="rtl"] .maplace-result-tables {
  text-align: center;
}

/* ── Plan de la salle ─────────────────────────────────────────── */
.maplace-map-card {
  padding: 26px 22px 22px;
  scroll-margin-top: calc(var(--topbar-height) + 12px);
}

.maplace-map-head {
  text-align: center;
  margin-bottom: 16px;
}

.maplace-map-kicker {
  margin: 0 0 8px;
}

.maplace-map-hint {
  margin: 0 auto;
  max-width: 460px;
  font-size: 1.02rem;
  color: #435168;
  line-height: 1.5;
  transition: color 0.25s ease;
}

.maplace-map-hint.is-active {
  color: var(--accent-dark);
  font-weight: 600;
}

.maplace-map-canvas {
  position: relative;
  width: 100%;
  border-radius: 14px;
  background: #eff3fa;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  min-height: 220px;
}

.maplace-map-canvas.is-panning {
  cursor: grabbing;
}

.maplace-map-stage {
  width: 100%;
  transform-origin: 0 0;
  will-change: transform;
}

.maplace-map-svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-width: 0;
  vertical-align: top;
  pointer-events: none;
}

.maplace-map-zoom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 12px 0 0;
  text-align: center;
}

.maplace-map-zoom-btn {
  box-sizing: border-box;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #a4badf;
  border-radius: 12px;
  background: #f8fbff;
  color: #304973;
  font-family: "Libre Baskerville", "Cormorant Garamond", serif;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.maplace-map-zoom-btn:hover,
.maplace-map-zoom-btn:focus-visible {
  color: #273c5f;
  border-color: #839fcf;
  background: #dee7f5;
  outline: none;
}

.maplace-map-zoom-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.maplace-map-pinch-hint {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  background: rgba(245, 248, 253, 0.78);
  color: #273c5f;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.maplace-map-pinch-hint[hidden] {
  display: none !important;
}

.maplace-map-pinch-hint.is-fading {
  opacity: 0;
}

.maplace-map-pinch-icon {
  width: 52px;
  height: 52px;
  border: 2px solid #839fcf;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 1.35rem;
  background: #f8fbff;
  box-shadow: 0 6px 18px rgba(52, 72, 107, 0.12);
}

.maplace-map-pinch-text {
  margin: 0;
  max-width: 220px;
  text-align: center;
  font-family: "Libre Baskerville", "Cormorant Garamond", serif;
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.map-hall {
  fill: #f5f8fd;
  stroke: #c9d4e6;
  stroke-width: 2;
}

.map-zone--men {
  fill: rgba(90, 130, 175, 0.2);
}

.map-zone--women {
  fill: rgba(196, 110, 130, 0.2);
}

.map-mehitza {
  fill: #b2c1dc;
}

.map-mehitza-label {
  fill: #5d77a5;
  font-family: "Libre Baskerville", "Cormorant Garamond", serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-landmark-box {
  fill: #dee5f1;
  stroke: #b7c7e1;
  stroke-width: 1.5;
}

.map-landmark-box--dj,
.map-landmark-box--bar {
  fill: #d1dbed;
}

.map-landmark-label {
  fill: #536b95;
  font-family: "Libre Baskerville", "Cormorant Garamond", serif;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.map-floor {
  fill: none;
  stroke: #9fb4d8;
  stroke-width: 1.6;
  stroke-dasharray: 6 6;
}

.map-floor-label {
  fill: #5a77ab;
  font-family: "Libre Baskerville", "Cormorant Garamond", serif;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.map-table {
  cursor: default;
}

.map-table-shape {
  fill: #f8fbff;
  stroke: #839fcf;
  stroke-width: 1.6;
  transition: fill 0.25s ease, stroke 0.25s ease;
}

.map-table-num {
  fill: #304973;
  font-family: "Libre Baskerville", "Cormorant Garamond", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  pointer-events: none;
}

.map-table--men .map-table-shape {
  fill: #eef3f9;
  stroke: #5f84ad;
  stroke-width: 2;
}

.map-table--women .map-table-shape {
  fill: #faf0f3;
  stroke: #c46e82;
  stroke-width: 2;
}

.map-table.is-active .map-table-shape {
  fill: var(--accent);
  stroke: var(--accent-dark);
  stroke-width: 3.4;
  filter: drop-shadow(0 0 8px rgba(62, 104, 176, 0.7));
  animation: maplaceTablePulse 1.5s ease-in-out infinite;
}

.map-table.is-active .map-table-num {
  fill: #ffffff;
  font-size: 26px;
  font-weight: 700;
}

@keyframes maplaceTablePulse {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(62, 104, 176, 0.45));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(62, 104, 176, 0.85));
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-table.is-active .map-table-shape {
    animation: none;
  }
}

.maplace-map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 16px;
  font-family: "Libre Baskerville", "Cormorant Garamond", serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #435168;
}

.maplace-page .contact-icon {
  width: 44px;
  height: 44px;
}

.maplace-page .contact-icon svg {
  width: 20px;
  height: 20px;
}

.maplace-page .site-credit-trigger {
  min-height: 44px;
  padding: 10px 8px;
}

.maplace-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.maplace-map-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.6px solid #839fcf;
  background: #f8fbff;
}

.maplace-map-legend-swatch--you {
  background: var(--accent);
  border-color: var(--accent-dark);
}

.maplace-map-legend-swatch--men {
  border-color: #5f84ad;
  background: rgba(90, 130, 175, 0.28);
}

.maplace-map-legend-swatch--women {
  border-color: #c46e82;
  background: rgba(196, 110, 130, 0.28);
}

.site-credit .contact-actions {
  direction: ltr;
  flex-direction: row;
}

@media (max-width: 640px) {
  .maplace-main {
    padding-top: var(--topbar-height);
    padding-inline: 5%;
  }

  .maplace-stack {
    gap: 18px;
  }

  .maplace-intro,
  .maplace-outcome {
    padding-inline: 18px;
  }

  .maplace-map-card {
    padding: 20px 10px 16px;
  }

  .maplace-search-wrap.place-wrap {
    padding: 18px 12px;
  }

  .maplace-search-card {
    padding: 22px 16px 20px;
  }

  .maplace-field input {
    font-size: 1.2rem;
  }
}

@media (max-width: 420px) {
  .maplace-stack {
    max-width: 100%;
  }

  .maplace-map-card {
    margin-inline: -2%;
    border-radius: 14px;
  }

  .maplace-map-canvas {
    min-height: 200px;
  }
}

@media (min-width: 700px) {
  .maplace-stack {
    max-width: 920px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .maplace-intro {
    grid-column: 1 / -1;
  }

  .maplace-search-wrap,
  .maplace-outcome {
    grid-column: 1;
  }

  .maplace-map-card {
    grid-column: 2;
    grid-row: 2 / span 2;
    position: sticky;
    top: calc(var(--topbar-height) + 12px);
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .maplace-main {
    padding-top: var(--topbar-height);
    padding-bottom: 16px;
  }

  .maplace-intro {
    padding: 18px 18px 14px;
  }

  .maplace-logo {
    width: 56px;
    margin-bottom: 6px;
  }

  .maplace-heading {
    font-size: clamp(1.4rem, 4vw, 1.9rem);
  }

  .maplace-lead {
    font-size: 1.05rem;
  }

  .maplace-map-canvas {
    max-height: min(58vh, 360px);
  }

  .maplace-map-svg {
    max-height: min(58vh, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .maplace-skip-link,
  .maplace-map-pinch-hint,
  .maplace-map-hint {
    transition: none;
  }
}
