/* ============================================================================
   LPL · THE EMIRATES MAP                                     (2026-11-26)
   Little Party Lab's additions to section 7, kept out of styles.css so the
   template's own file stays as it ships. Loaded after styles.css.

   The Google embed is gone: lpl-map.js draws a MapLibre map in the brand
   palette into .location-map__canvas and flies it to whichever emirate is
   picked in the panel. This file sizes that canvas where the iframe was,
   styles the panel's rows as buttons, and draws the pins.
   ============================================================================ */

/* The map's land is the brand's cream (lpl-map.js paints the same value),
   so the band's foot fades from it into the reviews sky with no step. */
.section--map {
  --map-land: #FBF6E6;
}
.location-map { background: var(--map-land); }

/* The canvas takes the box the iframe had, less the foot. No bleed: the
   bleed hid Google's own UI along the top, and MapLibre draws none there. */
.location-map__canvas {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(100% - var(--map-foot));
}
/* The map feathers out over its last 72px into the cream under it, which
   runs on into the foot's fade, so roads and sea do not stop on a hard
   line. Only the drawn map fades (the <canvas> itself: its container has
   no height of its own, so a mask there hides everything); the pins, the
   zoom buttons and the credit stay crisp. */
.location-map__canvas .maplibregl-canvas {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent);
}
.location-map__canvas .maplibregl-ctrl-attrib { font-size: 11px; }
.location-map__canvas .maplibregl-ctrl-group {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgb(93 0 69 / 0.16);
}

/* ---- the panel: rows are buttons --------------------------------------- */
.location-panel__pick {
  appearance: none;
  margin: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  transition: background-color var(--dur-crossfade, 240ms) var(--ease-out, ease-out);
}
/* The row keeps styles.css's grid; it only gains a little side padding,
   taken back out with a negative margin, so the tint has room around the
   words without the columns moving. */
.location-panel__row.location-panel__pick {
  width: calc(100% + 2 * var(--space-2));
  margin-inline: calc(-1 * var(--space-2));
  padding-inline: var(--space-2);
}
/* Names only (no price column, no button under the list): one column at
   every width, in the primary ink, and the list closes the panel. */
.location-panel__row.location-panel__pick,
.location-panel .location-panel__row.location-panel__pick { grid-template-columns: minmax(0, 1fr); }
.location-panel__pick .location-panel__from { color: var(--color-text-primary); }
.location-panel__list { margin-bottom: 0; }

/* The hairline between rows moves to the <li>s, since the rows are no
   longer siblings of each other. */
.location-panel__list > li + li { border-top: 1px solid var(--color-border-subtle); }

.location-panel__all {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: calc(100% + 2 * var(--space-2));
  margin: calc(-1 * var(--space-1)) calc(-1 * var(--space-2));
  padding: var(--space-1) var(--space-2);
}
.location-panel__all .icon { color: var(--color-fg-brand); }

.location-panel__pick:hover {
  background: color-mix(in oklab, var(--accent-base) 18%, transparent);
}
.location-panel__pick[aria-pressed="true"] {
  background: color-mix(in oklab, var(--accent-base) 34%, transparent);
}
.location-panel__pick[aria-pressed="true"] .location-panel__from { color: var(--color-text-primary); }
.location-panel__pick:focus-visible { outline-offset: 2px; }

.location-panel__hint {
  margin: var(--space-2) 0 var(--space-1);
  color: var(--color-text-tertiary, var(--color-text-secondary));
}

/* ---- the pins ------------------------------------------------------------
   One per emirate, placed by lpl-map.js as MapLibre markers. A plum dot on a
   cream ring; the picked one grows, takes the accent ring, raises its name in
   a plum chip and sends out the template's sonar rings (location-ping, from
   styles.css). Hovering any pin shows its name. Hidden from assistive tech:
   the panel's buttons are the accessible way to pick an emirate. */
.lpl-pin {
  position: relative;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.lpl-pin__dot {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #5D0045;
  box-shadow: 0 0 0 3px #FBF6E6, 0 2px 8px rgb(93 0 69 / 0.35);
  transition: transform 300ms var(--ease-out, ease-out), box-shadow 300ms var(--ease-out, ease-out);
}
.lpl-pin.is-active { z-index: 2; }
.lpl-pin.is-active .lpl-pin__dot {
  transform: scale(1.5);
  box-shadow: 0 0 0 3px #FFC347, 0 3px 10px rgb(93 0 69 / 0.4);
}
.lpl-pin__halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7rem;
  height: 7rem;
  margin: -3.5rem 0 0 -3.5rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent-base) 38%, transparent) 0, transparent 62%);
  transition: opacity 300ms var(--ease-out, ease-out);
}
.lpl-pin__halo::before,
.lpl-pin__halo::after {
  content: "";
  position: absolute;
  inset: 0.5rem;
  border-radius: 50%;
  border: 2px solid var(--accent-base);
  opacity: 0;
  transform: scale(0.16);
  animation: location-ping 2800ms var(--ease-out, ease-out) infinite;
}
.lpl-pin__halo::after { animation-delay: 1400ms; }
.lpl-pin.is-active .lpl-pin__halo { opacity: 1; }

.lpl-pin__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translate(-50%, 4px);
  padding: 6px 12px;
  border-radius: 999px;
  background: #5D0045;
  color: #FBF6E6;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 4px 14px rgb(93 0 69 / 0.25);
  transition: opacity 200ms var(--ease-out, ease-out), transform 200ms var(--ease-out, ease-out);
}
.lpl-pin.is-active .lpl-pin__label,
.lpl-pin:hover .lpl-pin__label {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- home base: "This is us" ---------------------------------------------
   The first row in the panel: the balloon logo beside a two-line label, the
   line and the address under it. On the map, the home pin is the one in the
   sun's yellow with a plum ring, a size up from the emirates' pins, and its
   chip reads "This is us!". */
.location-panel__row.location-panel__home {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-2);
}
.location-panel__home-mark {
  flex: none;
  width: 2.75rem;
  height: auto;
}
.location-panel__home-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.location-panel__home .location-panel__from {
  white-space: normal;
  font-weight: var(--fw-semibold);
}
.location-panel__home-address { color: var(--color-text-secondary); }

.lpl-pin--home { width: 24px; height: 24px; z-index: 1; }
.lpl-pin--home .lpl-pin__dot {
  background: #FFC347;
  box-shadow: 0 0 0 3px #5D0045, 0 0 0 6px #FBF6E6, 0 3px 10px rgb(93 0 69 / 0.4);
}
.lpl-pin--home.is-active .lpl-pin__dot {
  box-shadow: 0 0 0 3px #5D0045, 0 0 0 6px #FFC347, 0 3px 12px rgb(93 0 69 / 0.45);
}
.lpl-pin--home .lpl-pin__label { background: #FFC347; color: #5D0045; }

/* The home row is the bold one in the menu (2026-11-26): solid plum, cream
   type, the cream-lettered logo, a little more padding and a lift, so "this
   is us" reads first. Hover lightens it a step; picked, it keeps the plum
   and takes a ring in the sun's yellow instead of the yellow wash the other
   rows get. Only the menu changes; the map's home pin is as above. */
.location-panel__row.location-panel__home {
  margin-block: var(--space-1) var(--space-2);
  padding: var(--space-3);
  background: #5D0045;
  color: #FBF6E6;
  box-shadow: 0 6px 18px rgb(93 0 69 / 0.28);
}
.location-panel__home .location-panel__from,
.location-panel__home[aria-pressed="true"] .location-panel__from { color: #FBF6E6; }  /* beats the picked rows' ink */
.location-panel__home .location-panel__home-address { color: rgb(251 246 230 / 0.78); }
.location-panel__row.location-panel__home:hover { background: #74125B; }
.location-panel__row.location-panel__home[aria-pressed="true"] {
  background: #5D0045;
  box-shadow: 0 0 0 3px #FFC347, 0 6px 18px rgb(93 0 69 / 0.28);
}
.location-panel__row.location-panel__home:focus-visible { outline: 2px solid #FFC347; outline-offset: 3px; }
/* No hairline under the plum row: the block carries its own edge. */
.location-panel__list > li:first-child + li { border-top: 0; }
