/* Beach-style page layout shared by Trips, Outdoors, Golf, Parties and Sports.
   Load after veabird.css (or the site's own CSS). Mirrors beach/ (css/style.css):
   page header with a pill search bar, tall sticky map with a legend underneath,
   collapsible "current conditions" card, letter-grade chips. */
.top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; padding: 14px 20px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1000; }
.top h1 { font: 800 22px/1.15 var(--vb-display, system-ui); letter-spacing: -.025em; margin: 0; }
.top .sub { margin: 0; color: var(--muted); font-size: 13px; }
.top .controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 0; }
.top .controls label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }
.top ~ .layout { grid-template-columns: minmax(320px, 1fr) minmax(360px, 640px); }
.top ~ .layout .mapwrap { position: sticky; top: 90px; height: calc(100vh - 110px); }
.top ~ .layout .map, .top ~ .layout #map { flex: 1; min-height: 320px; }
.maplegend { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; }
.maplegend label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 2px; }
.legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 4px; vertical-align: -1px; }
.resorthead { padding: 2px 2px 12px; }
.resorthead h2 { margin: 0 0 4px; }
.chip { white-space: nowrap; display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: var(--c, #888); }
.chip.soft { background: var(--brand-2, var(--vb-sky)); color: var(--ink); font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat .d { font-size: 12px; color: var(--muted); }
.now .row { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; margin-bottom: 8px; }
.now .big { font-size: 34px; font-weight: 700; }
.nowfold > summary { cursor: pointer; list-style: none; }
.nowfold > summary::-webkit-details-marker { display: none; }
.nowfold > summary h3 { display: inline; }
.nowfold > summary::after { content: " ›"; color: var(--muted); }
.nowfold[open] > summary::after { content: " ⌄"; }
.nowfold[open] > summary { margin-bottom: 8px; }

/* search */
.searchbox { position: relative; display: flex; align-items: center; }
.searchbox > svg { position: absolute; left: 12px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.searchbox input { width: 100%; min-width: 320px; padding: 10px 14px 10px 38px; border-radius: 999px; font-size: 15px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.searchbox input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.searchlist { position: absolute; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(11,27,51,.16); max-height: min(460px, 70vh); overflow-y: auto; overscroll-behavior: contain; z-index: 2000; }
.searchlist .sh { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; position: sticky; top: -6px; background: var(--card); z-index: 1; }
.searchlist [role=option] { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 9px; cursor: pointer; }
.searchlist [role=option][aria-selected=true], .searchlist [role=option]:hover { background: var(--brand-2, var(--vb-sky)); }
.searchlist .ic { font-size: 16px; width: 22px; text-align: center; }
.searchlist b { display: block; font-weight: 600; }
.searchlist small { color: var(--muted); font-size: 12px; }
.searchlist .nm { flex: 1; min-width: 0; }
.searchlist .nm b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* grades: colored letter chips, A+ (best) to F */
.grade { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--c); color: #fff !important; font: 700 13px/1 var(--vb-ui, system-ui); letter-spacing: -.01em; font-variant-numeric: tabular-nums; vertical-align: middle; }
.grade.big { min-width: 64px; height: 64px; border-radius: 16px; font: 800 30px/1 var(--vb-display, system-ui); letter-spacing: -.03em; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.kpi b .grade, .stat .v .grade { height: 28px; min-width: 38px; font-size: 16px; }
.sc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.sc-head h3 { margin: 0 0 2px; font-size: 17px; }

@media (max-width: 900px) {
  .top { position: static; padding: 12px 16px; }
  .top .controls, .searchbox { width: 100%; }
  .searchbox input { min-width: 0; }
  .top ~ .layout { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; }
  .top ~ .layout .mapwrap { position: static; height: auto; }
  .top ~ .layout .map, .top ~ .layout #map { flex: none; height: 340px; }
}
