/* Local Tour Finder — styled to match tournaments.uskidsgolf.com
   Brand values taken from their live site: Montserrat (headings/body),
   Open Sans (menus), active blue #1F9CF2, 960px white card with a soft shadow. */
:root {
  --text: #3b3b3b;
  --heading: #2b2b2b;
  --menu: #2b2b2b;
  --muted: #666;
  --brand-blue: #1f9cf2;   /* their active-menu blue */
  --link: #0a6ab0;         /* darker blue for body links so small text stays readable */
  --link-hover: #074f85;
  --divider: #a3a3a3;      /* their secondary-menu dividers */
  --dots: #c4c4c4;
  --panel: #fafafa;        /* their sidebar link background */
  --red: #c8202f;
  --sans: Montserrat, "Open Sans", Helvetica, Arial, sans-serif;
  --menu-font: "Open Sans", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.5 var(--sans); }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; padding: 8px 12px; background: #fff; border: 2px solid var(--brand-blue); }

/* ---------- Header ---------- */
.site-head__top {
  max-width: 960px; margin: 0 auto; padding: 4px 15px 0;
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 24px;
}
.logo { display: block; padding-top: 2px; }
.logo img { display: block; width: 127px; height: auto; }
.account {
  margin-top: 6px; color: #444; font: 400 13.6px var(--menu-font); text-transform: uppercase;
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
}
.account img { width: 30px; height: auto; }
.account strong { color: var(--red); font-weight: 700; }
.account:hover { color: #000; text-decoration: underline; }

.main-menu {
  display: flex; justify-content: center; flex-wrap: nowrap; overflow-x: auto;
  max-width: 960px; margin: 0 auto;
}
.main-menu a {
  padding: 20px 15px; white-space: nowrap;
  font: 600 16px var(--menu-font); text-transform: uppercase; color: var(--menu); text-decoration: none;
}
.main-menu a:hover, .main-menu a[aria-current] { color: var(--brand-blue); }

/* ---------- Content card ---------- */
.card {
  max-width: 960px; margin: 0 auto 28px; padding: 14px 15px 28px;
  background: #fff; border-radius: 10px; box-shadow: 0 0 10.5px #999;
}
.sec-menu {
  display: flex; justify-content: center; overflow-x: auto; padding: 0 4px;
}
.sec-menu a {
  padding: 7px 5px; border-right: 1px solid var(--divider); white-space: nowrap;
  font: 400 12px var(--menu-font); text-transform: uppercase; color: #333; text-decoration: none;
}
.sec-menu a:last-child { border-right: 0; }
.sec-menu a:hover, .sec-menu a[aria-current] { color: var(--brand-blue); }

.crumbs { margin: 14px 0 6px; font-size: 12px; color: #000; }
.crumbs a { color: #000; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Main content first in the HTML (better on phones); sidebar shown on the left on desktop */
.layout { display: grid; grid-template-columns: 182px minmax(0, 1fr); grid-template-areas: "side page"; gap: 0 26px; }
.page { grid-area: page; min-width: 0; }
.side { grid-area: side; padding-top: 18px; }

h1 { margin: 10px 0 14px; font: 600 30px/1.2 var(--sans); color: var(--heading); }
h2 { margin: 0; font: 700 16px var(--sans); color: #111; }

/* ---------- Search ---------- */
.search { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.search__label { font-size: 13px; color: var(--muted); }
.search__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.search__field { position: relative; flex: 1 1 320px; min-width: 0; }
.search__field svg { position: absolute; left: 16px; top: 15px; fill: none; stroke: #777; stroke-width: 2.2; stroke-linecap: round; }
.search__field input {
  width: 100%; height: 50px; padding: 0 18px 0 44px;
  font: 500 17px var(--sans); color: var(--heading);
  background: #fff; border: 2px solid #ddd; border-radius: 999px;
  -webkit-appearance: none; appearance: none;
}
.search__field input::placeholder { color: #8a8a8a; font-weight: 400; }
.search__field input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(31,156,242,.2); }

.scopes { display: flex; }
.scopes button {
  min-height: 44px; padding: 0 10px; background: none; border: 0; border-right: 1px solid var(--divider);
  font: 400 12px var(--menu-font); text-transform: uppercase; color: #333; cursor: pointer;
}
.scopes button:last-child { border-right: 0; }
.scopes button[aria-pressed="true"] { color: var(--brand-blue); font-weight: 700; }
.scopes .count { color: var(--muted); font-weight: 400; }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; font-size: 13px; color: var(--muted); }
.chips strong { font-weight: 600; }
.textbtn {
  min-height: 32px; padding: 0; background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: inherit; font-weight: 500; color: var(--link); text-decoration: underline; text-underline-offset: 2px;
}
.chips .textbtn { min-height: 40px; font-size: 13px; }

/* ---------- Sections ---------- */
.block { margin-bottom: 30px; }
.block__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px;
  padding: 0 0 8px; margin-bottom: 6px; border-bottom: 2px dotted var(--dots);
}
.block__meta { margin: 0; font-size: 12px; color: var(--muted); }
.results__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  padding: 8px 12px; background: #f2f2f2; border-radius: 6px;
}
.results__head h2 { font-size: 15px; font-weight: 600; }
.results__head .textbtn { font-size: 13px; }
.empty { margin: 0; padding: 16px 0; border-bottom: 1px dotted var(--dots); }
.loading { color: var(--muted); }

/* ---------- Tour rows ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 4px; border-bottom: 1px dotted var(--dots); }
.row__who { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.row__title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.row__title h3 { margin: 0; font: 600 16px var(--sans); color: var(--heading); }
.row__loc { font-size: 13px; color: var(--muted); }
.row__note { font-size: 12px; font-weight: 600; color: var(--link); }
.row__tag { font: 700 11px var(--menu-font); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.row__links { flex: 1 1 360px; display: flex; }
.row__links a {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px;
  font: 600 12px var(--menu-font); text-transform: uppercase; text-decoration: none; color: var(--link);
  border-right: 1px solid var(--divider);
}
.row__links a:last-child { border-right: 0; }
.row__links a:hover { color: var(--link-hover); background: #f2f8fd; }
.star { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.star svg { fill: none; stroke: #8a8a8a; stroke-width: 1.6; stroke-linejoin: round; }
.star[aria-pressed="true"] svg { fill: var(--brand-blue); stroke: var(--link); }

/* ---------- Browse index (dot leaders, like their sidebar) ---------- */
.index { column-width: 190px; column-gap: 28px; }
.index button {
  display: flex; align-items: baseline; gap: 6px; width: 100%; min-height: 40px; padding: 10px 2px 0;
  break-inside: avoid; background: none; border: 0; cursor: pointer; text-align: left;
  font: 400 14px var(--menu-font); color: var(--text);
}
.index button:hover .index__name { color: var(--link); text-decoration: underline; }
.index__dots { flex: 1 1 auto; border-bottom: 2px dotted var(--dots); }
.index__count { font-weight: 700; color: var(--heading); }

/* ---------- Sidebar (their Local Tours menu) ---------- */
.side__title { padding: 7px 15px 10px 5px; border-bottom: 2px dotted var(--dots); font: 700 16px var(--sans); color: #111; }
.side__menu, .side__menu ul { list-style: none; margin: 0; padding: 0; }
.side__menu li { border-bottom: 1px dotted var(--dots); }
.side__menu ul li:last-child { border-bottom: 0; }
.side__menu a {
  display: block; padding: 6px 13px 5px; background: var(--panel);
  font: 400 12px var(--menu-font); color: var(--muted); text-decoration: none;
}
.side__menu ul a { padding-left: 25px; }
.side__menu a:hover { color: #000; background: #f0f0f0; }
.side__menu a[aria-current] { color: #333; }

/* ---------- Footer ---------- */
.site-foot { padding: 6px 15px 30px; }
.site-foot nav {
  max-width: 960px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 40px;
  font: 400 11px var(--menu-font); color: #444;
}
.site-foot a { color: #444; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "page" "side"; }
  .side { padding-top: 8px; }
  .main-menu { justify-content: flex-start; }
  .main-menu a { padding: 14px 12px; font-size: 14px; }
  .sec-menu { justify-content: flex-start; }
  .card { border-radius: 0; box-shadow: none; border-top: 1px solid #e5e5e5; padding: 10px 14px 24px; }
  h1 { font-size: 24px; }
}
