/* ==========================================================================
   Blue Lagoon Resort — map embed page
   --------------------------------------------------------------------------
   Loaded only by map-embed.html, which sits in the Wix iframe.  The Wix page
   keeps its own header, booking bar and footer, so this page shows nothing but
   the map and stretches it to whatever height the iframe is given.

   Keep this file last in the <head>; it intentionally overrides the fixed
   .map3d heights from map3d.css.
   ========================================================================== */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  overflow: hidden;
  background: var(--cream);
}

html[data-theme='dark'] body {
  background: #131812;
}

/* The legend is absolutely positioned against .map-section on wide screens,
   and a static strip below the model under 1200px.  The section is a flex
   column here so the model takes whatever height is left once that strip has
   been laid out — no overflow, no scrollbar inside the iframe. */
.map-section {
  height: 100%;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

body .map-section .map3d {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}

body .map-section .map3d__legend {
  flex: none;
}

/* Give the legend a little more air when the iframe is short (phones). */
@media (max-height: 560px) {
  .map3d__legend {
    bottom: 12px;
    gap: 5px 12px;
  }
  .map3d__key {
    font-size: 9px;
  }
}

/* Thai: no extra letter spacing. Its vowel and tone marks sit badly when the
   letters of a label are spread out. */
html[lang='th'] .map-section * {
  letter-spacing: 0 !important;
}
