/* Bars directory, bar page and match page */

.page-head { padding: 32px 0 20px; }
.page-head .wrap { display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-size: clamp(34px, 7vw, 60px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 600; min-height: 44px; align-self: flex-start; }
.back-link:hover { color: var(--white); }
.back-link svg { width: 18px; height: 18px; }

.sample-note { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.sample-note .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; font-size: 15px; color: var(--muted); }

/* Map */
.map { width: 100%; height: 340px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--surface); z-index: 0; }
.map .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(0.9) saturate(0.6); }
.map .leaflet-control-attribution { background: rgba(10, 10, 10, 0.75); color: var(--muted); font-size: 11px; }
.map .leaflet-control-attribution a { color: var(--white); }
.map .leaflet-bar a { background: var(--surface-2); color: var(--white); border-color: var(--line); }
.map .leaflet-popup-content-wrapper, .map .leaflet-popup-tip { background: var(--surface-2); color: var(--white); }
.map .leaflet-popup-content { font: 500 15px var(--font-body); margin: 12px 16px; line-height: 1.45; }
.map .leaflet-popup-content a { color: var(--orange); font-weight: 700; }
.map .leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.kb-pin {
  display: block; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--black); box-shadow: 0 0 0 2px var(--orange);
}
.kb-pin-sound { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.kb-pin-active { transform: scale(1.25); box-shadow: 0 0 0 3px var(--white); }
.map-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); display: inline-block; }
.map-legend i.g { background: var(--green); }
@media (min-width: 900px) { .map { height: 440px; } }

/* Layout: content plus side column */
.split { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 28px; padding-bottom: 72px; }
.split-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split-side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .split-side.sticky { position: sticky; top: 88px; } }

/* Area chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--white); font: 600 15px var(--font-body); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--black); }

/* Bar cards */
.bar-cards { display: grid; gap: 14px; }
@media (min-width: 640px) { .bar-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bar-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--white);
  transition: border-color .15s, transform .15s;
}
.bar-card:hover { border-color: var(--orange); color: var(--white); transform: translateY(-2px); }
.bar-card h3 { font-size: 22px; }
.bar-card .area { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.bar-card .area svg { width: 16px; height: 16px; color: var(--orange); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; color: var(--muted); }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 16px; height: 16px; }
.bar-card .next { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; font-weight: 600; }
.bar-card .next .go { color: var(--orange); display: inline-flex; align-items: center; gap: 6px; }
.bar-card .next .go svg { width: 18px; height: 18px; }

/* Bar page */
.bar-hero { display: grid; gap: 24px; padding: 8px 0 8px; }
@media (min-width: 900px) { .bar-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; } }
.photo-ph {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, rgba(255,107,53,0.10) 0 14px, transparent 14px 28px),
    radial-gradient(circle at 30% 20%, rgba(61,220,151,0.25), transparent 60%), var(--surface);
  display: grid; place-items: center;
}
.photo-ph img { width: 42%; max-width: 220px; border-radius: 50%; }
.photo-ph .ph-label { position: absolute; left: 14px; bottom: 14px; }
.bar-info { display: flex; flex-direction: column; gap: 16px; }
.bar-info h1 { font-size: clamp(36px, 7vw, 60px); }
.bar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.info-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.info-box h2 { font-size: 22px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; }
.info-row svg { width: 20px; height: 20px; color: var(--orange); flex: none; margin-top: 3px; }

/* Shared match row (bar page) */
.match-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--white);
}
.match-row:hover { border-color: var(--orange); color: var(--white); }
.match-row .t { grid-row: 1 / span 2; font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: 1; text-align: center; min-width: 70px; }
.match-row .t small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: 0.06em; margin-top: 4px; }
.match-row .name { font-weight: 700; font-size: 18px; line-height: 1.25; }
.match-row .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.match-row.is-live { border-color: var(--orange); }
.day-head { font-family: var(--font-head); font-weight: 800; font-size: 22px; margin: 10px 0 2px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.badge-quiet { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.live-badge { background: transparent; color: var(--orange); border: 1px solid var(--orange); }

/* Match page */
.match-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.match-hero.is-live { border-color: var(--orange); }
.match-hero .big-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.match-hero .big-time strong { font-family: var(--font-head); font-size: clamp(44px, 9vw, 72px); line-height: 1; }
.match-hero .big-time .tz { color: var(--green); font-weight: 700; letter-spacing: 0.06em; }
.match-hero .big-time .date { color: var(--muted); font-size: 18px; font-weight: 600; }
.match-hero .vs-line { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.match-hero .vs-line .team { font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 5vw, 40px); line-height: 1.05; }
.match-hero .vs-line .team:last-child { text-align: right; }
.match-hero .vs-line .vs { color: var(--muted); font-weight: 700; }
.match-hero .event { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px, 5vw, 42px); line-height: 1.05; }
.match-hero .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; min-height: 44px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-track { width: 52px; height: 30px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; flex: none; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .15s; }
.toggle input:checked + .toggle-track { background: var(--green); border-color: var(--green); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(22px); background: var(--black); }
.toggle input:focus-visible + .toggle-track { outline: 3px solid var(--green); outline-offset: 3px; }
.venue-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.venue-row .name { font-weight: 700; font-size: 18px; color: var(--white); text-decoration: none; }
.venue-row .name:hover { color: var(--orange); }
.venue-row .sub { grid-column: 1; font-size: 14px; color: var(--muted); }
.venue-row .side { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.venue-row .side a { font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.venue-row .side a svg { width: 16px; height: 16px; }
.area-head { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-top: 8px; }

.empty { text-align: center; padding: 40px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty img { width: 100px; height: 100px; border-radius: 50%; }

/* On phones, show the map above the bar list on /bars */
@media (max-width: 899px) { .bars-split .split-side { order: -1; } .bars-split .map { height: 260px; } }

/* Book a table dialog */
.book-dialog {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 1px solid var(--line);
  border-top: 4px solid var(--orange); border-radius: 22px; background: var(--surface); color: var(--white);
}
.book-dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
.book-form { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.book-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.book-head h2 { font-size: 28px; margin-top: 4px; }
.book-area { font-size: 15px; margin-top: 4px; }
.icon-close { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--white); cursor: pointer; }
.icon-close svg { width: 20px; height: 20px; }
.book-step { display: flex; flex-direction: column; gap: 14px; }
.book-step[hidden] { display: none; }
.book-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field-l { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.field-l small { font-weight: 500; }
.field-l input, .field-l select {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--black); color: var(--white); font: 500 16px var(--font-body); color-scheme: dark;
}
.field-l select { appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field-l input:focus, .field-l select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.book-error { color: #FF9C7A; font-weight: 700; }
.book-error[hidden] { display: none; }
.book-submit { width: 100%; }
.book-small { font-size: 13px; color: var(--muted); text-align: center; }
.sent-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--black); display: grid; place-items: center; }
.sent-icon svg { width: 30px; height: 30px; }
.book-step h3 { font-size: 24px; }
.sent-msg { white-space: pre-wrap; word-break: break-word; font: 500 15px/1.5 var(--font-body); background: var(--black); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin: 0; max-height: 200px; overflow: auto; }
.text-link { background: none; border: 0; color: var(--white); text-decoration: underline; font: 600 15px var(--font-body); cursor: pointer; min-height: 44px; align-self: center; }
@media (max-width: 560px) {
  .book-dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 22px 22px 0 0; max-height: 92vh; }
}

/* Book button inside lists */
.book-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--orange); color: var(--black); font: 700 14px var(--font-body); border: 0; cursor: pointer; text-decoration: none; }
.book-link:hover { background: var(--orange-hover); color: var(--black); }
.book-link svg { width: 16px; height: 16px; }
.match-row-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
