/* The venue panel is shared by search cards and future map pins. */
.venue-title-button { display:block; width:100%; border:0; padding:0; background:none; color:inherit; text-align:left; font:inherit; line-height:inherit; }
.court-result-card .venue-title-button:hover { color:var(--v-green); }
.court-result-card:not(.catalog-venue-card) .venue-title-button { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.venue-details-open { overflow:hidden; }
.venue-details-dialog { width:min(680px,calc(100% - 40px)); height:min(900px,calc(var(--visible-viewport-height,100dvh) - 48px)); max-height:none; max-width:none; padding:0; border:0; border-radius:24px; color:var(--ink); background:#fff; overflow:hidden; box-shadow:0 24px 100px #00291e40; }
.venue-details-dialog::backdrop { background:#00271e66; backdrop-filter:blur(4px); }
.venue-details-dialog[open] { display:flex; }
.venue-panel { display:flex; flex-direction:column; width:100%; height:100%; min-width:0; min-height:0; }
.venue-toolbar { display:flex; flex-shrink:0; justify-content:space-between; align-items:center; padding:8px 18px 8px 24px; min-height:56px; border-bottom:1px solid #eff2ef; background:#fff; }
.venue-toolbar > span { font-size:11px; text-transform:uppercase; letter-spacing:1.4px; color:var(--muted); font-weight:600; }
.venue-close { width:40px; height:40px; border:0; border-radius:50%; background:#f0f4f1; color:var(--ink); font-size:26px; line-height:1; }
.venue-panel-scroll { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; scroll-behavior:smooth; }
.venue-hero { position:relative; background:#edf3ec; }
.venue-photo-track { display:flex; height:238px; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:none; }
.venue-photo-track::-webkit-scrollbar { display:none; }
.venue-photo-track figure { flex:0 0 100%; min-width:0; height:100%; margin:0; scroll-snap-align:center; scroll-snap-stop:always; }
.venue-photo-track img { width:100%; height:100%; display:block; object-fit:cover; }
.venue-photo-controls { position:absolute; right:12px; bottom:12px; display:flex; align-items:center; gap:3px; padding:2px; background:#ffffffee; border-radius:22px; box-shadow:0 2px 10px #001c2226; }
.venue-photo-controls button { width:36px; height:36px; border:0; border-radius:50%; color:var(--ink); background:none; font-size:24px; }
.venue-photo-page { min-width:40px; text-align:center; font-variant-numeric:tabular-nums; font-size:11px; font-weight:600; }
.venue-info { padding:24px 26px 20px; }
.venue-details-status { display:inline-block; padding:5px 8px; background:#f4f2e8; border-radius:6px; font-size:10px; font-weight:600; color:#796d42; }
.venue-details-status.is-live { color:#01523c; background:#e8f7ef; letter-spacing:1px; }
.venue-info h2 { font-size:29px; line-height:1.13; letter-spacing:-.65px; margin:12px 0 14px; overflow-wrap:anywhere; }
.venue-info-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; justify-content:space-between; margin-bottom:17px; }
.venue-favorite { display:inline-flex; gap:6px; align-items:center; min-height:38px; border:1px solid var(--line); padding:6px 11px; border-radius:20px; background:#fff; font-size:12px; color:var(--ink); }
.venue-favorite span { font-size:19px; line-height:1; }
.venue-favorite[aria-pressed=true] { background:#eef7f1; border-color:#c7e0d2; }
.venue-from-price { font-size:15px; font-weight:700; }
.venue-address { font-size:14px; line-height:1.4; margin:0 0 5px; color:#52615b; overflow-wrap:anywhere; }
.venue-detail-distance { margin:5px 0; font-size:12px; font-weight:600; color:#187c5e; }
.venue-metro { font-size:12px; margin:8px 0; color:#67736d; line-height:1.5; }
.venue-metro > span { color:#b63736; font-weight:700; }
.venue-features { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0 0; }
.venue-features > span { border-radius:6px; padding:6px 8px; background:#f1f4f1; font-size:11px; }
.venue-description { font-size:12px; line-height:1.5; color:var(--muted); margin:14px 0 0; }
.venue-contact-actions { display:flex; flex-wrap:wrap; gap:6px 18px; margin-top:12px; }
.venue-map-options { max-width:100%; font-size:12px; }
.venue-map-options summary { min-height:32px; display:flex; align-items:center; cursor:pointer; text-decoration:underline; text-underline-offset:4px; }
.venue-map-options div { display:flex; flex-wrap:wrap; gap:6px 14px; padding-bottom:6px; }
.venue-contact-actions a { min-height:32px; display:inline-flex; align-items:center; font-size:12px; color:var(--v-dark); text-underline-offset:4px; overflow-wrap:anywhere; max-width:100%; }
.venue-availability { border-top:6px solid #f5f7f4; padding:22px 26px 26px; }
.venue-availability-heading { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:8px; margin-bottom:16px; }
.venue-availability h3 { font-size:19px; letter-spacing:-.3px; margin:0; }
.venue-watch-link { padding:6px 0; border:0; background:none; color:#16825f; font-size:12px; font-weight:600; min-height:32px; }
.venue-dates { display:flex; gap:6px; overflow-x:auto; padding-bottom:7px; scrollbar-width:thin; scrollbar-color:#cbdacf transparent; overscroll-behavior-x:contain; }
.venue-dates button { flex:0 0 auto; border:1px solid #e2e8e3; border-radius:11px; min-height:44px; padding:9px 14px; color:var(--ink); background:white; font-size:12px; }
.venue-dates button[aria-pressed=true] { background:#01523c; border-color:#01523c; color:#fff; }
.venue-duration { display:flex; background:#f0f3ef; padding:3px; border-radius:10px; margin:12px 0; }
.venue-duration button { flex:1; min-height:36px; border:0; border-radius:7px; background:transparent; color:#6c776f; font-size:12px; }
.venue-duration button[aria-pressed=true] { background:#fff; color:#01523c; font-weight:600; box-shadow:0 2px 4px #0027190c; }
.venue-search-preferences { margin-bottom:18px; font-size:12px; color:#54685c; }
.venue-search-preferences summary { cursor:pointer; line-height:1.5; padding:5px 0; }
.venue-search-preferences summary > span { color:#12845f; margin-left:6px; text-decoration:underline; text-underline-offset:3px; }
.venue-preferences-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding-top:12px; }
.venue-preferences-grid label,.watch-prefill-form label { display:flex; flex-direction:column; gap:5px; min-width:0; font-size:11px; color:var(--muted); }
.venue-preferences-grid input,.venue-preferences-grid select,.watch-prefill-form input,.watch-prefill-form select { display:block; width:100%; min-width:0; min-height:42px; padding:9px 8px; border:1px solid #dce5dc; background:#fff; color:var(--ink); border-radius:8px; font-size:13px; }
.venue-small-button { align-self:end; min-height:42px; border:0; border-radius:8px; background:#e8f3ec; color:#01523c; font-size:12px; font-weight:600; }
.venue-time-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.venue-time-options button { display:flex; flex-direction:column; align-items:flex-start; gap:5px; min-height:58px; padding:10px; border:1px solid #dfe8df; border-radius:10px; background:#fff; color:var(--ink); font-variant-numeric:tabular-nums; }
.venue-time-options button strong { font-size:12px; white-space:nowrap; }
.venue-time-options button span { font-size:10px; color:#778179; }
.venue-time-options button[aria-pressed=true] { border-color:#0d7c57; background:#edf7f0; box-shadow:inset 0 0 0 .5px #0d7c57; }
.venue-court-heading { display:flex; align-items:center; gap:10px; justify-content:space-between; margin:22px 0 10px; }
.venue-court-heading h4 { font-size:14px; margin:0; }
.venue-court-heading > span { color:var(--muted); font-size:11px; white-space:nowrap; }
.venue-court-options { display:grid; gap:8px; }
.venue-court-option { display:flex; align-items:center; gap:10px; border:1px solid #e3e9e1; border-radius:13px; padding:14px 12px; cursor:pointer; min-width:0; }
.venue-court-option.is-selected { background:#f2f9ee; border-color:#45996a; box-shadow:inset 0 0 0 .5px #45996a; }
.venue-court-option input { accent-color:#087950; width:17px; height:17px; margin:0; flex-shrink:0; }
.venue-court-copy { display:flex; flex-direction:column; min-width:0; flex:1; gap:5px; }
.venue-court-copy strong { font-size:14px; line-height:1.3; overflow-wrap:anywhere; }
.venue-court-copy small { font-size:10px; line-height:1.45; color:var(--muted); }
.venue-court-price { font-size:14px; font-weight:700; text-align:right; max-width:38%; line-height:1.3; }
.venue-booking-note { margin:13px 0 0; font-size:10px; color:#808c83; line-height:1.5; }
.venue-partial { font-size:12px; color:#826d35; background:#f9f6ec; border-radius:8px; padding:11px; line-height:1.5; }
.venue-availability-message,.venue-schedule-loading { border-radius:14px; padding:22px 18px; background:#f3f7f0; min-height:132px; }
.venue-availability-message h4,.venue-availability-message h3 { font-size:16px; line-height:1.4; margin:0 0 8px; }
.venue-availability-message p,.venue-catalog-message p { font-size:12px; line-height:1.6; color:#778272; margin:0; }
.venue-availability-message button { padding:10px 16px; margin-top:12px; border:0; border-radius:8px; color:#fff; background:#01523c; }
.venue-catalog-message h3 { font-size:18px; margin:0 0 8px; }
.venue-schedule-loading { font-size:13px; color:var(--muted); }
.venue-schedule-loading i { display:block; height:14px; width:85%; border-radius:6px; background:#e5ece2; margin-top:16px; }
.venue-schedule-loading i:last-child { width:55%; }
.venue-booking-bar { display:flex; flex-shrink:0; align-items:center; gap:14px; padding:14px 24px max(14px,var(--safe-bottom)); border-top:1px solid #e4eae2; background:#fff; box-shadow:0 -7px 25px #15351505; }
.venue-booking-bar:empty { display:none; }
.venue-selection-summary { flex:1; display:flex; flex-direction:column; min-width:0; gap:4px; }
.venue-selection-summary strong { font-size:12px; line-height:1.4; }
.venue-selection-summary span { font-size:11px; color:#758071; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.venue-book-button { display:flex; align-items:center; justify-content:center; gap:18px; min-height:48px; border:0; border-radius:12px; background:#01523c; color:#fff; padding:12px 18px; font-size:14px; font-weight:600; text-decoration:none; }
.venue-book-button:only-child { width:100%; }
.venue-book-button span { font-size:19px; line-height:1; }
.venue-book-button:disabled { background:#eaf0e8; color:#879580; cursor:default; }
.venue-missing-title { margin:24px; font-size:23px; }
.venue-details-dialog button:focus-visible,.venue-details-dialog a:focus-visible,.venue-title-button:focus-visible { outline:3px solid #a5ce37; outline-offset:3px; }
.watch-prefill-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; text-align:left; }
.watch-prefill-form .watch-wide { grid-column:1/-1; }
@media(max-width:600px) {
  .venue-details-dialog { width:calc(100% - var(--safe-left) - var(--safe-right)); height:calc(min(100dvh,var(--tg-viewport-height,100dvh),var(--visible-viewport-height,100dvh)) - var(--safe-top) - 10px); margin:auto auto 0; border-radius:22px 22px 0 0; bottom:max(0px,calc(100dvh - var(--tg-viewport-height,100dvh))); }
  .venue-toolbar { min-height:49px; padding:5px 12px 5px 18px; }
  .venue-panel-scroll { scrollbar-gutter:auto; }
  .venue-photo-track { height:174px; }
  .venue-info { padding:18px 18px 17px; }
  .venue-info h2 { font-size:24px; letter-spacing:-.45px; margin:10px 0 12px; }
  .venue-info-actions { margin-bottom:12px; }
  .venue-address { font-size:12px; }
  .venue-availability { padding:18px 18px 24px; }
  .venue-time-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .venue-booking-bar { flex-direction:column; align-items:stretch; gap:8px; padding:10px 16px max(12px,var(--safe-bottom)); }
  .venue-selection-summary { flex-direction:row; align-items:baseline; justify-content:space-between; gap:10px; }
  .venue-selection-summary strong { white-space:nowrap; }
  .venue-selection-summary span { font-size:10px; }
  .venue-book-button { min-height:47px; }
}
@media(max-width:350px) {
  .venue-info,.venue-availability { padding-left:14px; padding-right:14px; }
  .venue-info h2 { font-size:22px; }
  .venue-photo-track { height:150px; }
  .venue-features { gap:5px; }
  .venue-features > span { font-size:10px; }
  .venue-court-option { padding:12px 9px; gap:8px; }
  .venue-court-copy strong,.venue-court-price { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) { .venue-panel-scroll { scroll-behavior:auto; } }
