/* ==========================================================================
   BingOhio locator — builds on /css/styles.css (colors, fonts, buttons, cards).
   Mobile first. Large tap targets (min 44px) for phone users.
   ========================================================================== */

.loc-footer { padding: 28px 0; font-size: .95rem; }
.loc-footer p { margin: 0 0 8px; }

/* ---------------------------------------------------------- Search bar */
.loc-search {
  background: var(--yellow-soft);
  border-bottom: 1px solid var(--line);
  padding: 14px 0 10px;
}
.loc-title { font-size: 1.35rem; margin: 0 0 10px; }
.loc-searchbar {
  display: flex; gap: 8px; align-items: stretch;
}
.loc-searchbar input {
  flex: 1 1 auto; min-width: 0; min-height: 50px;
  padding: 10px 14px; font: inherit; font-size: 1.05rem; /* >=16px stops iOS zoom */
  border: 2px solid var(--blue); border-radius: 999px; background: #fff; color: var(--ink);
}
.loc-searchbar input:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.loc-geo {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  border: 2px solid var(--blue); background: #fff; color: var(--blue); cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.loc-geo svg { width: 24px; height: 24px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.loc-geo svg circle[fill="none"] { fill: none; }
.loc-geo.is-busy { opacity: .6; }
.loc-go { background: var(--red); color: #fff; min-height: 50px; padding: 10px 18px; }
.loc-go:hover { background: var(--red-dark); color: #fff; }

.loc-chips {
  display: flex; gap: 8px; margin-top: 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 4px; align-items: flex-start;
}
.loc-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: #fff; border: 1px solid #cfd5e6; color: var(--blue-dark);
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap;
}
.chip input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
.chip--tonight:has(input:checked) { background: var(--red); border-color: var(--red); color: #fff; }
.chip--tonight:has(input:checked) input { accent-color: #fff; }
.chip--select { padding: 0 4px 0 0; }
.chip select {
  font: inherit; color: inherit; border: 0; background: transparent; min-height: 42px;
  padding: 0 6px 0 14px; border-radius: 999px; cursor: pointer;
}
.chip--more { position: relative; padding: 0; display: block; }
.chip--more summary { list-style: none; display: flex; align-items: center; min-height: 44px; padding: 0 14px; }
.chip--more summary::-webkit-details-marker { display: none; }
.chip--more summary::after { content: "▾"; margin-left: 6px; font-size: .8em; }
.chip--more[open] { border-color: var(--blue); }
.loc-more {
  white-space: normal; padding: 4px 14px 12px; display: grid; gap: 4px;
  font-family: var(--font-body); font-weight: 400; font-size: 1rem; min-width: 260px;
}
.loc-more label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; }
.loc-more input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.loc-more small { color: var(--muted); }
.loc-note { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }

/* ---------------------------------------------------------- Results + map */
.loc-body { display: flex; flex-direction: column; }
.loc-map-wrap { position: relative; }
.loc-map {
  height: 42vh; min-height: 260px; max-height: 460px; background: #e9eef7;
}
.loc-map.is-hidden { display: none; }
.loc-map-wrap.is-big .loc-map { height: 78vh; max-height: none; }
.loc-map-expand {
  position: absolute; left: 10px; bottom: 10px; z-index: 2;
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--blue-dark); font-family: var(--font-head); font-weight: 600; box-shadow: var(--shadow); cursor: pointer;
}
.loc-results { padding: 16px var(--gutter) 32px; }
.loc-status h2, .loc-count { font-size: 1.05rem; font-family: var(--font-head); color: var(--blue-dark); margin: 0 0 12px; }
.loc-welcome h2 { font-size: 1.3rem; }
.loc-error { background: #fdecea; color: #8c1b12; border: 1px solid #f5c1bb; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.loc-empty { color: var(--muted); }
.loc-loading { color: var(--muted); }

.loc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

/* ---------------------------------------------------------- Result card */
.hall-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: 0 1px 2px rgba(16, 36, 98, .05);
  border-left: 5px solid var(--blue);
  scroll-margin-top: 90px;
}
.hall-card.is-tonight { border-left-color: var(--red); }
.hall-card.is-active { outline: 3px solid var(--orange); outline-offset: 0; }
.hall-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.hall-name { font-size: 1.08rem; margin: 0; line-height: 1.25; }
.hall-name a { color: var(--blue-dark); text-decoration: none; }
.hall-name a:hover { text-decoration: underline; color: var(--red); }
.hall-dist { flex: none; font-weight: 700; color: var(--blue); font-size: .95rem; }
.hall-addr { margin: 4px 0 6px; color: var(--muted); font-size: .98rem; line-height: 1.35; }
.hall-nosched { margin: 6px 0; color: var(--muted); font-style: italic; font-size: .95rem; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; margin: 2px 4px 2px 0;
  background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: .85rem;
}
.badge--tonight { background: var(--red); color: #fff; }
p.badge { margin: 4px 0 6px; }

.hall-days { display: flex; gap: 4px; margin: 6px 0 8px; flex-wrap: wrap; }
.day {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-size: .78rem; font-weight: 700; font-family: var(--font-head);
  background: var(--bg-alt); color: #a1a7b6; border: 1px solid transparent;
}
.day.on { background: var(--blue); color: #fff; }
.day.today { border-color: var(--orange); }
.day.on.today { background: var(--red); }

.hall-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn--small { min-height: 44px; padding: 8px 16px; font-size: .92rem; }
.hall-actions .btn:not(.btn--ghost) { background: var(--blue); color: #fff; }
.hall-actions .btn:not(.btn--ghost):hover { background: var(--blue-dark); }

/* Map markers (bingo balls) */
.pin {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  background: radial-gradient(circle, #fff 0 34%, transparent 36%), var(--c, var(--blue));
}
.pin--tonight { --c: var(--red); width: 36px; height: 36px; }
.pin--nosched { --c: #8a93a8; width: 24px; height: 24px; }
.pin.is-active { transform: scale(1.3); z-index: 3; }
.pin-origin { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(247, 166, 0, .3); }
.maplibregl-popup-content { border-radius: 12px; padding: 12px 14px; font-family: var(--font-body); font-size: .95rem; box-shadow: var(--shadow-lg); }
.maplibregl-popup-content strong { font-family: var(--font-head); color: var(--blue-dark); display: block; margin-bottom: 2px; }
.maplibregl-popup-content a { font-weight: 700; }
.maplibregl-popup-close-button { font-size: 22px; width: 32px; height: 32px; }

/* ---------------------------------------------------------- Desktop: side by side */
@media (min-width: 900px) {
  .loc-title { font-size: 1.6rem; }
  .loc-searchbar { max-width: 720px; }
  .loc-body {
    flex-direction: row-reverse; height: calc(100vh - 210px); min-height: 520px;
    border-bottom: 1px solid var(--line);
  }
  .loc-map-wrap { flex: 1 1 auto; }
  .loc-map, .loc-map-wrap.is-big .loc-map { height: 100%; max-height: none; }
  .loc-map-expand { display: none; }
  .loc-results { flex: 0 0 420px; overflow-y: auto; padding: 16px 18px 32px; border-right: 1px solid var(--line); }
  .loc-more { position: absolute; top: 100%; left: 0; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 20; padding-top: 10px; }
  .loc-chips { overflow: visible; }
}

/* ---------------------------------------------------------- Hall detail page */
.loc-page { padding-top: 16px; padding-bottom: 40px; }
.crumbs { margin: 0 0 8px; }
.crumbs a { font-weight: 600; text-decoration: none; display: inline-block; padding: 8px 0; }
.hall-head h1 { margin-bottom: 4px; font-size: clamp(1.6rem, 6vw, 2.4rem); }
.hall-org { margin: 0 0 6px; color: var(--muted); }
.hall-badges { margin: 8px 0; }
.hall-actions--big .btn { flex: 1 1 140px; }
.hall-actions--big .btn:not(.btn--ghost) { background: var(--red); }
.hall-actions--big .btn:not(.btn--ghost):hover { background: var(--red-dark); }
.hall-grid { display: grid; gap: 16px; margin-top: 20px; }
.hall-grid .card { padding: 18px; }
.hall-grid h2, .hall-claim h2, .hall-nearby h2 { font-size: 1.2rem; }
.sched { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.sched th, .sched td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sched thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-family: var(--font-head); }
.sched tbody th { font-family: var(--font-head); color: var(--blue-dark); }
.sched tr.is-today { background: #fff4e0; }
.sched-note td { color: var(--muted); font-size: .92rem; padding-top: 0; }
.today-tag { display: inline-block; background: var(--red); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .75rem; margin-left: 4px; vertical-align: 2px; }
.hall-where address { font-style: normal; font-size: 1.05rem; margin-bottom: 12px; }
.hall-map { height: 220px; border-radius: var(--radius-sm); overflow: hidden; background: #e9eef7; }
.hall-contact { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; }
.hall-contact dt { font-weight: 700; color: var(--blue-dark); }
.hall-contact dd { margin: 0; word-break: break-word; }
.amenities { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.amenities li::before { display: inline-block; width: 1.4em; font-weight: 800; }
.amenities li.yes::before { content: "✓"; color: var(--green); }
.amenities li.no::before { content: "✕"; color: var(--red); }
.amenities li.unknown { color: var(--muted); }
.amenities li.unknown::before { content: "?"; }
.card--soft { background: var(--yellow-soft); border-color: #f3e3a0; box-shadow: none; margin-top: 20px; }
.hall-nearby { margin-top: 28px; }
@media (min-width: 760px) {
  .hall-grid { grid-template-columns: 1.2fr 1fr; }
  .hall-sched { grid-row: span 2; }
  .hall-actions--big .btn { flex: 0 0 auto; }
  .hall-nearby .loc-list { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pin.is-active { transform: none; }
}

/* ---------------------------------------------------------- Claim form */
.claim-form { display: grid; gap: 14px; max-width: 560px; }
.claim-form .field { display: flex; flex-direction: column; gap: 4px; border: 0; padding: 0; margin: 0; }
.claim-form label { font-weight: 600; }
.claim-form input:not([type=radio]):not([type=checkbox]) { font: inherit; min-height: 48px; padding: 10px 12px; border: 1px solid #b9c0d4; border-radius: 10px; }
.claim-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.claim-form .check input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.claim-steps li { margin-bottom: 6px; }
