/* guide-map.css — step 6.2: the GuideMap island's non-critical styles.
   Loaded NON-BLOCKING by guide pages that carry the map (first:
   bbq-pilgrimage): the split layout, the map box and the placeholder /
   fallback rules are inlined in the page <head> instead, so this file
   never delays first paint. Brand: white base, ink text, red #c8321c,
   Cormorant Garamond headings, Inter Tight body, lowercase UI labels
   (Appendix A). */

/* ---- island chrome ------------------------------------------------------- */
.gm { font-family: 'Inter Tight', system-ui, sans-serif; color: #211d19; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.75rem; }
.gm-chip {
  font: 600 0.8rem/1 'Inter Tight', system-ui, sans-serif; text-transform: lowercase;
  padding: 0.5rem 0.85rem; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(33, 29, 25, 0.35); background: #fff; color: #211d19;
}
.gm-chip.is-on { background: #c8321c; border-color: #c8321c; color: #fff; }
.gm-chip-area { cursor: default; display: inline-flex; align-items: center; }

.gm-map .maplibregl-ctrl-attrib {
  font-size: 10px; background: rgba(255, 255, 255, 0.82); color: #57534a;
}
.gm-map .maplibregl-ctrl-attrib a { color: #57534a; }
/* The attribution (bottom-right) never runs under the zoom buttons
   (bottom-left): its corner is capped short of them, and the credit
   wraps onto a second line on narrow maps instead of overlapping. */
.gm-map .maplibregl-ctrl-bottom-right { max-width: calc(100% - 76px); }
.gm-map .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib { max-width: 100%; white-space: normal; }

.gm-area-btn {
  position: absolute; z-index: 3; cursor: pointer;
  font: 600 0.8rem/1 'Inter Tight', system-ui, sans-serif; text-transform: lowercase;
  padding: 0.6rem 1rem; border-radius: 999px; border: none;
  box-shadow: 0 4px 16px rgba(33, 29, 25, 0.22);
}
.gm-area-btn { top: 12px; left: 50%; transform: translateX(-50%); background: #c8321c; color: #fff; }

.gm-count { margin: 0.6rem 0 0; font-size: 0.82rem; color: #6f6a5e; }

/* ---- place card (desktop overlay + phone sheet share the markup) -------- */
.gm-card-slot { position: absolute; left: 12px; bottom: 12px; z-index: 4; max-width: min(330px, calc(100% - 24px)); }
@media (max-width: 899px) { .gm-card-slot { display: none; } }
.gm-card {
  position: relative; background: #fff; border-radius: 14px; padding: 0.9rem 1rem 1rem;
  box-shadow: 0 12px 32px rgba(33, 29, 25, 0.25);
}
.gm-card-close {
  position: absolute; top: 4px; right: 8px; z-index: 2;
  background: none; border: none; font-size: 1.35rem; line-height: 1;
  color: #211d19; cursor: pointer; padding: 0.3rem;
}
.gm-card-photo { margin: -0.9rem -1rem 0.7rem; position: relative; }
.gm-card-photo img {
  display: block; width: 100%; height: 128px; object-fit: cover;
  border-radius: 14px 14px 0 0;
}
.gm-card-photo figcaption {
  position: absolute; right: 8px; bottom: 6px;
  font-size: 0.62rem; color: #fff; background: rgba(33, 29, 25, 0.55);
  padding: 0.14rem 0.45rem; border-radius: 999px;
}
.gm-card-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.45rem; line-height: 1.08; margin: 0 1.2rem 0.25rem 0; text-transform: none;
}
.gm-card-meta { margin: 0 0 0.35rem; font-size: 0.8rem; color: #6f6a5e; }
.gm-card-verdict { margin: 0 0 0.7rem; font-size: 0.9rem; line-height: 1.4; }
.gm-card-actions { display: flex; gap: 0.5rem; margin: 0; }
.gm-btn {
  font: 600 0.8rem/1 'Inter Tight', system-ui, sans-serif; text-transform: lowercase;
  text-decoration: none; padding: 0.6rem 1rem; border-radius: 999px;
  border: 1.5px solid #211d19; color: #211d19; background: #fff;
}
.gm-btn-primary { background: #c8321c; border-color: #c8321c; color: #fff; }

/* ---- phone bottom sheet (vaul) ------------------------------------------- */
.gm-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff; border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 34px rgba(33, 29, 25, 0.22);
  /* Fixed height: vaul measures the drawer to place its snap points, so the
     rendered height must equal the measured height (a max-height cap made
     vaul park the sheet off-screen). */
  height: 92dvh; display: flex; flex-direction: column;
  padding: 0.4rem 1rem 1rem; outline: none;
}
@media (min-width: 900px) { .gm-sheet { display: none; } }
.gm-sheet-handle {
  width: 44px; height: 5px; border-radius: 999px; background: rgba(33, 29, 25, 0.25);
  margin: 0.35rem auto 0.6rem; flex: none;
}
.gm-sheet-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.3rem; margin: 0 0 0.5rem; text-transform: lowercase;
}
.gm-sheet-card .gm-card { box-shadow: none; border: 1.5px solid rgba(33, 29, 25, 0.14); margin-bottom: 0.6rem; }
.gm-sheet-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.gm-sheet-row {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  background: none; border: none; border-top: 1px solid rgba(33, 29, 25, 0.1);
  padding: 0.8rem 0.1rem; cursor: pointer; text-align: left; color: #211d19;
  font-family: 'Inter Tight', system-ui, sans-serif;
}
.gm-sheet-row-name { font-weight: 600; font-size: 0.98rem; }
.gm-sheet-row-meta { font-size: 0.8rem; color: #6f6a5e; white-space: nowrap; }
.gm-sheet-row.is-on .gm-sheet-row-name { color: #c8321c; }

/* ---- server-card states driven by the bridge ------------------------------ */
.guide-split-list .is-filtered-out { display: none !important; }
.guide-split-list .is-map-selected {
  outline: 2.5px solid #c8321c; outline-offset: 4px; border-radius: 10px;
}

/* The picks section keeps its own .wrap inside the split's list column;
   neutralize the nested wrap so the two columns align. */
.guide-split-list .wrap { max-width: none; padding-left: 0; padding-right: 0; }

/* ---- visible focus states -------------------------------------------------- */
.gm-mapwrap:focus-visible,
.gm-chip:focus-visible,
.gm-area-btn:focus-visible,
.gm-sheet-row:focus-visible,
.gm-card-close:focus-visible,
.gm-btn:focus-visible,
.guide-map-toggle button:focus-visible {
  outline: 2.5px solid #c8321c; outline-offset: 2px;
}
.guide-split-list .place-card:focus-within {
  outline: 2.5px solid #c8321c; outline-offset: 4px; border-radius: 10px;
}

/* ---- phone fix pass: one scrollable chip row, branded map controls ---- */
@media (max-width: 899px) {
  .gm-chips {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-right: -0.25rem; padding-right: 0.25rem;
  }
  .gm-chips::-webkit-scrollbar { display: none; }
  .gm-chip { flex: none; }
}
/* Zoom controls in brand dress: paper face, ink border, no default grey. */
.gm-map .maplibregl-ctrl-group {
  background: #fff; border: 1.5px solid #211d19; border-radius: 12px;
  box-shadow: 0 4px 16px rgba(33, 29, 25, 0.18); overflow: hidden;
}
.gm-map .maplibregl-ctrl-group button { width: 36px; height: 36px; background: #fff; }
.gm-map .maplibregl-ctrl-group button + button { border-top: 1px solid rgba(33, 29, 25, 0.16); }
.gm-map .maplibregl-ctrl-group button:hover { background: #f7f4ee; }
.gm-map .maplibregl-ctrl-group button:focus-visible { outline: 2.5px solid #c8321c; outline-offset: -2.5px; }
/* zoom buttons live bottom-left, clear of the Expand map button and the attribution */
.gm-map .maplibregl-ctrl-bottom-left { margin: 0 0 6px 6px; }
.gm-map .maplibregl-ctrl-bottom-left .maplibregl-ctrl-group { border-radius: 10px; overflow: hidden; box-shadow: 0 6px 18px rgba(33, 29, 25, .16); }
/* Mobile: the list column must shrink to the screen (was 64px wider on phones, 2026-11-22) */
.guide-split > *, .guide-split-list > .section { min-width: 0; max-width: 100%; }
