/* =========================================================
   PlayGloba – inner pages (loads after styles.css)
   Uses the same tokens: --green, --ink, --line, --radius ...
   ========================================================= */

[hidden] { display: none !important; }
.nav-menu-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.nav-link.is-current { color: var(--green); }

/* Avatar colour variations (.av-1 ... .av-6) moved to styles.css, so every page has them. */

/* Page hero + breadcrumbs: moved to styles.css (sign-up pages load only forms.css and showed a giant logo). */

/* Search bar with a text box (Explore + list pages) */
.search-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink);
}
.search-field input:focus { outline: none; }
.search-field input::placeholder { color: var(--muted); }

/* ---------- List layout ---------- */
.list-wrap { padding: 28px 0 56px; }
.list-layout { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; }

.filter-panel {
  position: sticky; top: 88px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  max-height: calc(100vh - 110px); display: flex; flex-direction: column;
}
.filter-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.filter-head h2 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.filter-head .icon-btn { display: none; }
.filter-body { overflow-y: auto; padding: 4px 16px 8px; }
.filter-foot { display: flex; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); gap: 10px; background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.filter-foot .btn { flex: 1; }
.filter-foot .filter-clear { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.filter-foot .filter-clear:hover { color: var(--green); }

.f-group { border: 0; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.f-group:last-child { border-bottom: 0; }
.f-group legend { float: left; }
.f-group legend + * { clear: both; }
.f-group legend, .f-label { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 10px; display: flex; justify-content: space-between; width: 100%; }
.f-label output { font-weight: 500; color: var(--green); font-size: 12px; }

.f-input, .f-select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px;
  font: inherit; font-size: 13px; color: var(--ink); background: #fff;
}
.f-select {
  appearance: none; padding-right: 32px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102a1e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
}
.f-select:disabled { color: var(--muted); background-color: var(--bg-soft); cursor: not-allowed; }
.f-input:focus, .f-select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.f-stack { display: grid; gap: 8px; }

/* Checkbox rows */
.check { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 4px 0; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--green); margin: 0; }

/* Radio "pill" groups */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12.5px; cursor: pointer; transition: all .15s;
}
.seg span:hover { border-color: #bfe0cd; }
.seg input:checked + span { background: var(--green-soft); border-color: var(--green); color: var(--green); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }

input[type="range"] { width: 100%; accent-color: var(--green); }
.range-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

/* Results bar */
.results-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-bar h2 { font-size: 16px; font-weight: 700; margin-right: auto; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort .f-select { width: auto; padding-top: 7px; padding-bottom: 7px; }
.btn-filters { display: none; position: relative; }
.btn-filters .badge {
  min-width: 18px; height: 18px; border-radius: 999px; background: var(--green); color: #fff;
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 600;
}
.chip .ic { width: 12px; height: 12px; }
.chip:hover { background: #d7efe2; }
.chip-clear { font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: underline; padding: 5px 6px; }
.chip-clear:hover { color: var(--ink); }

.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.load-more { display: flex; margin: 24px auto 0; }

/* ---------- Result card ---------- */
.r-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.r-card:hover { border-color: #cde6d8; box-shadow: var(--shadow); }
.r-card-top { display: flex; gap: 14px; align-items: flex-start; }
.r-card .avatar { width: 56px; height: 56px; font-size: 18px; }
.r-card-body { min-width: 0; flex: 1; }
.r-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.r-sub { font-size: 12.5px; color: var(--text); margin-bottom: 6px; }
.verified { color: var(--green); display: inline-flex; }
.verified .ic { width: 16px; height: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11.5px; padding: 3px 9px; border-radius: 6px; background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); }
.tag-sport { background: #fff; border-color: #cfe9da; color: var(--green); font-weight: 600; }
.r-card-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line); }
.r-card-foot .price { margin: 0; }
.r-card-foot .pill { margin: 0; }
.r-card-foot .btn { margin-left: auto; }
.r-active { font-size: 11.5px; color: var(--muted); }
.r-card .media-row .thumb { width: 92px; height: 80px; }

.date-tile {
  width: 64px; height: 72px; border-radius: 12px; flex-shrink: 0;
  background: var(--pink-soft); color: var(--pink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.date-tile b { font-size: 24px; font-weight: 800; }
.date-tile span { font-size: 12px; font-weight: 600; }

/* Empty state */
.empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border: 1px dashed #cfe0d6; border-radius: var(--radius); background: var(--bg-soft); }
.empty-ic { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--green); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.empty h3 { font-size: 16px; margin-bottom: 6px; }
.empty p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

/* ---------- Explore ---------- */
.xtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.xtabs::-webkit-scrollbar { display: none; }
.xtab { padding: 12px 14px; font-size: 14px; font-weight: 500; color: var(--ink); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.xtab small { font-size: 11px; color: var(--muted); background: var(--bg-soft); padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.xtab:hover { color: var(--green); }
.xtab.is-active { color: var(--green); border-bottom-color: var(--green); font-weight: 600; }
.xtab.is-active small { background: var(--green-soft); color: var(--green); }

.x-section { margin-bottom: 36px; }
.x-section .section-head { margin-bottom: 14px; }
.x-summary { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.x-summary strong { color: var(--ink); }

.quick-sports { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.quick-sports a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink);
}
.quick-sports a:hover, .quick-sports a.is-active { border-color: var(--green); color: var(--green); }
.quick-sports .ic { width: 16px; height: 16px; }

/* ---------- Sport page ---------- */
.sport-hero { padding: 30px 0 34px; }
.sport-hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.sport-title { display: flex; align-items: center; gap: 18px; }
.sport-badge { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 0 10px rgba(255,255,255,.7); }
.sport-badge .ic { width: 38px; height: 38px; }
.sport-hero .lead { font-size: 16px; }
.sport-hero .city-line { display: flex; gap: 10px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.sport-hero .city-line .f-select { width: auto; min-width: 170px; }

.stat-card { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: 0 10px 30px rgba(16, 42, 30, 0.07); }
.stat-card h2 { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-list a { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid transparent; }
.stat-list a:hover { border-color: #cde6d8; }
.stat-list strong { font-size: 22px; color: var(--ink); line-height: 1.1; }
.stat-list span { font-size: 12px; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.about-grid p { font-size: 14.5px; }
.gear { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.gear h3 { font-size: 14px; margin-bottom: 10px; }

.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.level-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
.level-card .bars { display: flex; gap: 3px; align-items: flex-end; height: 22px; margin-bottom: 12px; }
.level-card .bars i { width: 6px; border-radius: 2px; background: var(--line); }
.level-card .bars i:nth-child(1) { height: 8px; } .level-card .bars i:nth-child(2) { height: 15px; } .level-card .bars i:nth-child(3) { height: 22px; }
.level-card .bars i.on { background: var(--green); }
.level-card h3 { font-size: 15px; margin-bottom: 6px; }
.level-card p { font-size: 13px; color: var(--text); margin-bottom: 12px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--muted); }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--green); }
.faq details p { padding: 0 0 16px; font-size: 14px; max-width: 720px; }

/* Sports index (sport.html with no ?s=) */
.sport-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.sport-tile { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sport-tile:hover { border-color: #cde6d8; box-shadow: var(--shadow); }
.sport-tile h3 { font-size: 16px; }
.sport-tile p { font-size: 13px; color: var(--muted); }
.sport-tile .meta { margin: 0; }

/* ---------- Join landing ---------- */
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.role-card {
  display: flex; flex-direction: column; gap: 12px; padding: 22px 20px;
  border-radius: var(--radius-lg); border: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.role-card:hover { box-shadow: var(--shadow); }
.role-card h3 { font-size: 18px; }
.role-card > p { font-size: 13px; color: var(--text); }
.role-card .checks { margin: 4px 0 8px; }
.role-card .checks li { color: var(--text); align-items: flex-start; }
.role-card .checks .ic { margin-top: 3px; }
.role-card .btn { margin-top: auto; align-self: flex-start; }
.role-card .feature-icon .ic { width: 24px; height: 24px; }
.role-card.tone-green .btn { background: var(--green); color: #fff; }
.role-card.tone-blue .btn { background: var(--blue); color: #fff; }
.role-card.tone-orange .btn { background: var(--orange); color: #fff; }
.role-card.tone-pink .btn { background: var(--pink); color: #fff; }
.role-card .btn:hover { filter: brightness(.93); }
.role-card .who { font-size: 12px; color: var(--muted); }

/* Header account link: moved to styles.css (the header is on every page, pages.css is not). */


/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .role-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .list-layout { grid-template-columns: 1fr; }
  .btn-filters { display: inline-flex; }

  /* Filters become a slide-up drawer on tablets/phones */
  .filter-panel {
    position: fixed; inset: auto 0 0 0; top: 10vh; z-index: 80; max-height: none;
    border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(16,42,30,.15);
    transform: translateY(100%); transition: transform .25s ease;
  }
  .filter-panel.open { transform: translateY(0); }
  .filter-head .icon-btn, .filter-foot { display: flex; }
  .filter-body { flex: 1; }
  .filter-foot .btn { flex: 1; }

  .sport-hero-inner, .about-grid { grid-template-columns: 1fr; }
  .level-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .role-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .sport-title { gap: 14px; }
  .sport-badge { width: 60px; height: 60px; }
  .sport-badge .ic { width: 30px; height: 30px; }
  .sort span { display: none; }
}

/* ---------- City & locality pages ---------- */
.city-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.city-tile { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius-lg); border: 1px solid transparent; transition: box-shadow .2s; }
.city-tile:hover { box-shadow: var(--shadow); }
.city-tile h3 { font-size: 20px; color: var(--ink); }
.city-tile .meta { margin: 0; }
.city-locs { font-size: 12.5px; color: var(--text); }
.loc-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.loc-links a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; font-size: 14px; color: var(--ink); }
.loc-links a:hover { border-color: var(--green); color: var(--green); }
.loc-links small { font-weight: 400; font-size: 12px; color: var(--muted); }
.loc-group { margin-bottom: 28px; }
.loc-group h2 { font-size: 18px; margin-bottom: 12px; }
.loc-group h2 a:hover { color: var(--green); }
.loc-search { position: relative; display: flex; max-width: 460px; margin-top: 18px; }
.loc-search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.loc-search .f-input { padding: 12px 12px 12px 40px; font-size: 14px; }
.sport-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.sport-bar { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sport-bar:hover { border-color: #cde6d8; }
.sport-bar .sport-ic { width: 40px; height: 40px; margin: 0; }
.sport-bar .sport-ic .ic { width: 20px; height: 20px; }
.sport-bar strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.sport-bar > span:last-child { font-size: 12px; color: var(--muted); }
.progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress b { display: block; height: 100%; background: var(--green); }

/* ===== Server-side pagination (added for the JSP version) ===== */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 28px 0 0; }
.pager-info { font-size: 14px; color: var(--muted); }
.pager .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- SEO pages: classes, city, sport ---------- */
.tab-bar { display: none; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.js-tabs .tab-bar { display: flex; }
.tab-btn { padding: 10px 18px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab-btn .count { display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 12px; border-radius: 999px; background: var(--bg-soft); color: var(--text); }
.tab-btn[aria-selected="true"] { color: var(--green); border-bottom-color: var(--green); }
.tab-btn[aria-selected="true"] .count { background: var(--green-soft); color: var(--green); }
.tab-panel[hidden] { display: none; }
.panel-title { font-size: 20px; margin: 22px 0 14px; }
.tab-panel .panel-title { margin-top: 4px; }
.see-all { margin-top: 18px; text-align: center; }
.seo-starter p { margin: 0 0 8px; }
.seo-content { font-size: 16px; line-height: 1.75; color: var(--text); }
.seo-content h2, .seo-content h3 { color: var(--ink); margin: 28px 0 10px; }
.seo-content ul, .seo-content ol { padding-left: 22px; margin: 10px 0; }
.seo-content a { color: var(--green); text-decoration: underline; }
.seo-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.seo-content th, .seo-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.seo-img { width: 100%; height: auto; border-radius: var(--radius); margin: 16px 0; }
.faq-list { display: grid; gap: 10px; margin-top: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq-item summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--ink); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--green); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer { padding: 0 16px 14px; color: var(--text); line-height: 1.7; }
.hero-links { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.container.narrow { max-width: 820px; }

/* /localities: city chooser when there are many cities */
.locality-city-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; max-width: 520px; }
.locality-city-form .input, .locality-city-form .cp-wrap { flex: 1; min-width: 220px; }
