/* Venue-first home page. The venue directory remains the source of truth. */
body.home .uijan-hero,
body.home .uijan-hero-inner {
  min-height: 530px;
}

body.home .uijan-hero-inner {
  padding-top: 90px;
  padding-bottom: 84px;
}

body.home .uijan-hero-script {
  top: 10%;
  font-size: clamp(34px, 4vw, 54px);
}

body.home .uijan-hero h1 {
  font-size: clamp(48px, 5.9vw, 78px);
}

body.home .uijan-hero-places-link {
  margin-top: 23px;
}

body.home .uijan-spots,
body.home .uijan-suggest {
  position: relative;
  z-index: 1;
}

body.home .uijan-spots {
  padding: 0 0 100px;
  background: #f5f8f6;
  border-bottom: 1px solid var(--uijan-line);
  scroll-margin-top: 18px;
}

body.home .uijan-spots-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: #132c22;
}

body.home .uijan-spots-feature-photo {
  position: absolute;
  inset: 0;
  margin: 0;
}

body.home .uijan-spots-feature-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
}

body.home .uijan-spots-hero-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 29, 21, .9), rgba(8, 30, 22, .72) 44%, rgba(8, 30, 22, .23));
}

body.home .uijan-spots-feature-photo figcaption {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 15px;
  color: #fff;
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
  text-shadow: 0 1px 5px #10281e;
}

body.home .uijan-spots-feature-photo figcaption a { color: inherit; }

body.home .uijan-spots-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 58px;
  padding-bottom: 64px;
}

body.home .uijan-spots-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

body.home .uijan-spots-intro-copy { max-width: 820px; }

body.home .uijan-spots-eyebrow {
  margin: 0 0 15px;
  color: var(--uijan-green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
}

body.home .uijan-spots-hero .uijan-spots-eyebrow { color: #c6efd5; }

body.home .uijan-spots-intro h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(56px, 6vw, 78px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.02em;
}

body.home .uijan-spots-intro-copy > p:not(.uijan-spots-eyebrow) { margin: 22px 0 0; color: #eef7f1; font-size: 17px; line-height: 1.75; }

body.home .uijan-spots-guide,
body.home .uijan-spots-results-head > a {
  flex: none;
  color: var(--uijan-green-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 7px;
}

body.home .uijan-spots-guide { display: inline-block; margin-top: 22px; color: #fff; }

body.home .uijan-spots-guide span,
body.home .uijan-spots-results-head > a span { margin-left: 14px; }

body.home .uijan-spots-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 15px 20px;
  align-items: end;
  max-width: 960px;
  margin-top: 32px;
  padding: 23px 28px 19px;
  color: var(--uijan-ink);
  background: #fff;
  border: 1px solid #dce7e1;
  box-shadow: 0 18px 48px rgba(5, 20, 13, .16);
}

body.home .uijan-spots-area,
body.home .uijan-spots-filters {
  min-width: 0;
}

body.home .uijan-spots-area > span,
body.home .uijan-spots-filters legend {
  display: block;
  margin-bottom: 12px;
  color: #46534d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}

body.home .uijan-spots-area select {
  width: 100%;
  height: 53px;
  padding: 0 15px;
  color: var(--uijan-ink);
  background: #fff;
  border: 1px solid #cbd9d0;
  border-radius: 0;
  font: inherit;
  font-size: 15px;
}

body.home .uijan-spots-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

body.home .uijan-spots-filters legend { width: 100%; margin-bottom: 8px; }

body.home .uijan-spots-filters label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 37px;
  padding: 6px 11px;
  color: #2e3b34;
  background: #f5f8f6;
  border: 1px solid #dbe6df;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.3;
}

body.home .uijan-spots-filters input { margin: 0; accent-color: var(--uijan-green-dark); }
body.home .uijan-spots-filters label:has(input:checked) { color: var(--uijan-green-dark); background: #e6f2eb; border-color: var(--uijan-green-dark); }

body.home .uijan-spots-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

body.home .uijan-spots-actions button {
  min-width: 165px;
  min-height: 53px;
  padding: 11px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 17px;
  color: #fff;
  background: var(--uijan-green-dark);
  border: 1px solid var(--uijan-green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

body.home .uijan-spots-actions button:hover { background: var(--uijan-green); }
body.home .uijan-spots-actions > a { color: var(--uijan-green-dark); font-size: 12px; text-align: right; }
body.home .uijan-spots-filter-note { grid-column: 1 / -1; margin: 0; color: #67766d; font-size: 11px; line-height: 1.5; }

body.home .uijan-spots-results-head { margin: 90px 0 12px; }
body.home .uijan-spots-results-head h3 { margin: 0; font-size: clamp(27px, 2.7vw, 38px); line-height: 1.3; }
body.home .uijan-spots-results-head h3 span { margin-left: 9px; color: var(--uijan-green-dark); font-size: 15px; font-weight: 700; white-space: nowrap; }
body.home .uijan-spots-research-note { margin: 0 0 25px; color: #5e6b64; font-size: 12px; line-height: 1.7; }

body.home .uijan-spots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

body.home .uijan-spot-card {
  min-width: 0;
  background: #fff;
  border: 1px solid #dfe9e3;
  transition: border-color .2s ease, box-shadow .2s ease;
}

body.home .uijan-spot-card:hover,
body.home .uijan-spot-card:focus-within { border-color: var(--uijan-green-dark); box-shadow: 0 8px 24px rgba(14, 52, 34, .08); }
body.home .uijan-spot-card-inner { display: flex; flex-direction: column; min-height: 245px; height: 100%; color: var(--uijan-ink); text-decoration: none; }
body.home .uijan-spot-card-media { display: block; height: 190px; overflow: hidden; }
body.home .uijan-spot-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
body.home .uijan-spot-card:hover .uijan-spot-card-media img { transform: scale(1.025); }
body.home .uijan-spot-card-top { display: flex; justify-content: space-between; margin: 20px 22px 0; color: var(--uijan-green-dark); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
body.home .uijan-spot-card-top span:last-child { font-size: 18px; line-height: 1; }
body.home .uijan-spot-card-title { display: block; margin: 16px 22px 0; font-size: 20px; font-weight: 700; line-height: 1.45; }
body.home .uijan-spot-card-tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; margin: 16px 22px 0; }
body.home .uijan-spot-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; color: #375b46; background: #edf5ef; border: 1px solid #dceadf; border-radius: 4px; font-size: 11px; line-height: 1.35; }
body.home .uijan-spot-tag-station { color: #364f5b; background: #eef4f6; border-color: #dce8ed; }
body.home .uijan-spot-tag-fee { color: #624d30; background: #f8f3e9; border-color: #eee3d0; }
body.home .uijan-spot-card-link { display: flex; justify-content: space-between; gap: 14px; margin: auto 22px 0; padding: 24px 0 19px; color: var(--uijan-green-dark); font-size: 12px; font-weight: 700; }
body.home .uijan-spot-card-inner:hover .uijan-spot-card-link { text-decoration: underline; text-underline-offset: 4px; }
body.home .uijan-spots-empty { padding: 35px; background: #fff; border: 1px solid #dfe9e3; color: #46534d; }
body.home .uijan-spots-all { display: block; width: fit-content; margin: 34px auto 0; color: var(--uijan-green-dark); font-size: 14px; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 8px; }

body.home .uijan-suggest { padding: 72px 0; background: #e7f0ea; border-bottom: 1px solid #d4e3d9; }
body.home .uijan-suggest-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
body.home .uijan-suggest h2 { margin: 0; color: var(--uijan-ink); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.42; }
body.home .uijan-suggest-inner p:last-child { margin: 16px 0 0; color: #4f6255; font-size: 14px; }
body.home .uijan-suggest-inner > a { flex: none; min-width: 230px; min-height: 58px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #fff; background: var(--uijan-green-dark); font-size: 14px; font-weight: 700; text-decoration: none; }
body.home .uijan-suggest-inner > a:hover { background: var(--uijan-green); }

/* The app follows the finder as a compact secondary feature. */
body.home .uijan-tournament { padding: 92px 0 105px; }
body.home .uijan-tournament .uijan-section-grid { grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr); gap: 42px; align-items: center; }
body.home .uijan-tournament .uijan-section-head h2 { font-size: clamp(38px, 3.5vw, 52px); }
body.home .uijan-tournament .uijan-device-stage { min-height: 300px; }
body.home .uijan-tournament .uijan-laptop { width: min(520px, 80%); }
body.home .uijan-tournament .uijan-phone { width: 100px; }

body.home a:focus-visible,
body.home button:focus-visible,
body.home select:focus-visible,
body.home input:focus-visible { outline: 3px solid var(--uijan-green); outline-offset: 3px; }

@media (max-width: 980px) {
  body.home .uijan-spots-hero-shade { background: linear-gradient(90deg, rgba(7, 29, 21, .9), rgba(8, 30, 22, .58)); }
  body.home .uijan-spots-search { grid-template-columns: minmax(0, 1fr) 190px; }
  body.home .uijan-spots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .uijan-tournament .uijan-section-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body.home .uijan-hero,
  body.home .uijan-hero-inner { min-height: 520px; }
  body.home .uijan-hero-inner { padding-top: 112px; padding-bottom: 62px; }
  body.home .uijan-hero-script { top: 10%; font-size: 39px; }
  body.home .uijan-hero h1 { font-size: clamp(36px, 9.4vw, 50px); }
  body.home .uijan-hero-more-links { justify-content: center; }
  body.home .uijan-spots { padding-bottom: 82px; }
  body.home .uijan-spots-hero { min-height: 0; }
  body.home .uijan-spots-feature-photo img { object-position: 62% center; }
  body.home .uijan-spots-hero-shade { background: linear-gradient(90deg, rgba(7, 29, 21, .92), rgba(8, 30, 22, .62)); }
  body.home .uijan-spots-hero-content { padding-top: 53px; padding-bottom: 71px; }
  body.home .uijan-spots-hero .uijan-spots-eyebrow { margin-bottom: 14px; }
  body.home .uijan-spots-intro h1 { font-size: clamp(43px, 10.5vw, 55px); letter-spacing: -.035em; }
  body.home .uijan-spots-intro h1 span { display: block; }
  body.home .uijan-spots-intro-copy > p:not(.uijan-spots-eyebrow) { margin-top: 20px; font-size: 14px; }
  body.home .uijan-spots-results-head { display: block; }
  body.home .uijan-spots-guide { margin-top: 18px; }
  body.home .uijan-spots-search { grid-template-columns: 1fr; margin-top: 26px; padding: 19px; gap: 18px; }
  body.home .uijan-spots-filters { gap: 8px; }
  body.home .uijan-spots-filters label { font-size: 12px; }
  body.home .uijan-spots-actions button { width: 100%; }
  body.home .uijan-spots-feature-photo figcaption { right: 17px; bottom: 12px; font-size: 9px; }
  body.home .uijan-spots-results-head { margin-top: 68px; }
  body.home .uijan-spots-results-head > a { display: inline-block; margin-top: 18px; }
  body.home .uijan-spots-grid { grid-template-columns: 1fr; }
  body.home .uijan-spot-card-inner { min-height: 220px; }
  body.home .uijan-suggest { padding: 65px 0; }
  body.home .uijan-suggest-inner { display: block; }
  body.home .uijan-suggest-inner > a { margin-top: 28px; }
  body.home .uijan-tournament { padding: 70px 0 80px; }
  body.home .uijan-tournament .uijan-section-grid { grid-template-columns: 1fr; gap: 28px; }
  body.home .uijan-tournament .uijan-device-stage { min-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  body.home .uijan-spot-card { transition: none; }
}
