:root {
  --hub-bg: #071019;
  --hub-bg-2: #0b1722;
  --hub-surface: #111b26;
  --hub-surface-2: #162433;
  --hub-ink: #f7f4ec;
  --hub-muted: rgba(247,244,236,.68);
  --hub-line: rgba(255,255,255,.12);
  --hub-navy: #0b2d4d;
  --hub-ocean: #0e7490;
  --hub-orange: #e77824;
  --hub-gold: #ffb45c;
  --hub-shadow: 0 22px 52px rgba(0,0,0,.32);
  --hub-card-shadow: 0 14px 36px rgba(0,0,0,.22);
  --gp-theme-toggle-border: rgba(255,255,255,.24);
  --gp-theme-toggle-color: #fff;
  --gp-theme-toggle-bg: rgba(7,16,25,.46);
}

html[data-theme="light"] {
  --hub-bg: #f3f0e8;
  --hub-bg-2: #eaf3f1;
  --hub-surface: #ffffff;
  --hub-surface-2: #f5f8f7;
  --hub-ink: #102834;
  --hub-muted: #60727a;
  --hub-line: rgba(7,45,62,.14);
  --hub-shadow: 0 22px 52px rgba(10,48,62,.12);
  --hub-card-shadow: 0 12px 30px rgba(10,48,62,.1);
  --gp-theme-toggle-border: rgba(255,255,255,.3);
  --gp-theme-toggle-color: #fff;
  --gp-theme-toggle-bg: rgba(7,29,41,.54);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.gp-category-page {
  min-width: 320px;
  margin: 0;
  color: var(--hub-ink);
  background:
    radial-gradient(circle at 8% -5%, rgba(231,120,36,.2), transparent 27rem),
    radial-gradient(circle at 96% 16%, rgba(14,116,144,.22), transparent 30rem),
    linear-gradient(180deg, var(--hub-bg), var(--hub-bg-2) 52%, var(--hub-bg));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

body.gp-category-page::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image:
    linear-gradient(90deg, currentColor 1px, transparent 1px),
    linear-gradient(currentColor 1px, transparent 1px);
  background-size: 46px 46px;
}

.hub-wrap {
  width: min(1220px, 100%);
  margin-inline: auto;
}

.hub-hero {
  padding: 18px;
}

.hub-hero__inner {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 5%, rgba(24,110,137,.72), transparent 32%),
    linear-gradient(145deg, #06131c, #0b3041 68%, #075d63);
  box-shadow: var(--hub-shadow);
  isolation: isolate;
}

.hub-hero__inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -125px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255,255,255,.05), 0 0 0 48px rgba(255,255,255,.03);
}

.hub-topbar {
  position: absolute;
  top: 24px;
  right: 24px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 6px 15px 6px 7px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(7,16,25,.38);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.hub-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.hub-topbar__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hub-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 999px;
  color: #fff;
  background: rgba(7,16,25,.42);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.hub-home-link:hover { border-color: var(--hub-gold); }

.hub-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #bcd0d9;
  font-size: 12px;
  font-weight: 750;
}

.hub-crumb a {
  color: var(--hub-gold);
  text-decoration: none;
}

.hub-eyebrow {
  margin: 0 0 10px;
  color: var(--hub-gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hub-hero h1 {
  max-width: 880px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 7vw, 5.6rem);
  font-weight: 850;
  line-height: .92;
  letter-spacing: -.06em;
}

.hub-hero__lead {
  max-width: 750px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.8);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.hub-main {
  padding: 36px 20px 82px;
}

.hub-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.hub-summary h2 {
  margin: 0;
  color: var(--hub-ink);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1;
  letter-spacing: -.04em;
}

.hub-summary p:last-child {
  margin: 10px 0 0;
  color: var(--hub-muted);
}

.hub-count {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 92px;
  min-height: 74px;
  padding: 10px 16px;
  border: 1px solid var(--hub-line);
  border-radius: 20px;
  color: var(--hub-gold);
  background: var(--hub-surface);
  box-shadow: var(--hub-card-shadow);
}

.hub-count strong { font-size: 25px; line-height: 1; }
.hub-count span { margin-top: 5px; color: var(--hub-muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

.hub-filters-shell {
  position: sticky;
  z-index: 20;
  top: 0;
  margin: 25px -8px 0;
  padding: 10px 8px;
  background: color-mix(in srgb, var(--hub-bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.hub-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 5px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(231,120,36,.5) transparent;
}

.hub-filter {
  flex: none;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--hub-line);
  border-radius: 999px;
  color: var(--hub-ink);
  background: var(--hub-surface);
  font: 850 11px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  scroll-snap-align: start;
}

.hub-filter:hover { border-color: rgba(231,120,36,.7); }

.hub-filter[aria-pressed="true"] {
  border-color: var(--hub-orange);
  color: #071019;
  background: linear-gradient(135deg, var(--hub-orange), var(--hub-gold));
  box-shadow: 0 8px 22px rgba(231,120,36,.2);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 19px;
  margin-top: 22px;
}

.hub-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hub-line);
  border-radius: 26px;
  color: var(--hub-ink);
  background: linear-gradient(180deg, var(--hub-surface), var(--hub-surface-2));
  box-shadow: var(--hub-card-shadow);
  flex-direction: column;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231,120,36,.5);
  box-shadow: 0 20px 44px rgba(0,0,0,.28);
}

html[data-theme="light"] .hub-card:hover { box-shadow: 0 20px 44px rgba(10,48,62,.15); }

.hub-card[hidden] { display: none; }

.hub-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #18384a;
}

.hub-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, rgba(7,16,25,.5));
}

.hub-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .4s ease;
}

.hub-card__favorite {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 5px 12px 5px 8px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg,#ff7480,#ef3f3b);
  box-shadow: 0 0 0 4px rgba(255,95,109,.18), 0 9px 24px rgba(0,0,0,.32);
  font: inherit;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}

.hub-card__favorite:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.05); }
.hub-card__favorite:focus-visible { outline: 3px solid var(--hub-gold); outline-offset: 3px; }
.hub-card__favorite span { font-size: 21px; font-weight: 950; line-height: 1; }
.hub-card__favorite strong { font-size: 9px; font-weight: 950; letter-spacing: .04em; text-transform: uppercase; }
.hub-card__favorite.is-active { background: linear-gradient(135deg,#e53935,#b71c1c); }

.hub-card:hover .hub-card__media img { transform: scale(1.035); }

.hub-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.hub-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 25px;
  color: var(--hub-gold);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hub-card__plan {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  color: #fff;
  background: #15364a;
  font-size: 8px;
  letter-spacing: .06em;
}

.hub-card h3 {
  margin: 10px 0 8px;
  font-size: 1.24rem;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.hub-card h3 a { color: var(--hub-ink); text-decoration: none; }

.hub-card__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 11px;
}

.hub-card__distance,
.hub-card__reviews {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(117,167,255,.35);
  border-radius: 999px;
  color: #a9caff;
  background: rgba(24,82,150,.18);
  font: inherit;
  text-decoration: none;
}

.hub-card__distance { cursor: pointer; }
.hub-card__distance strong,
.hub-card__reviews strong { overflow: hidden; font-size: 9px; font-weight: 900; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.hub-card__distance span { color: #ff6f61; font-size: 14px; }
.hub-card__distance.is-ready { color: #2f6fd3; background: #eaf2ff; border-color: #bad2ff; }
.hub-card__reviews { color: var(--hub-gold); border-color: rgba(255,180,92,.42); background: rgba(255,180,92,.08); }
.hub-card__reviews.has-score { color: #071019; border-color: transparent; background: linear-gradient(135deg,var(--hub-gold),#ffcf78); }
.hub-card__distance:hover,
.hub-card__reviews:hover { transform: translateY(-1px); filter: brightness(1.06); }
.hub-card__distance:focus-visible,
.hub-card__reviews:focus-visible { outline: 3px solid rgba(255,180,92,.65); outline-offset: 2px; }

html[data-theme="light"] .hub-card__distance { color: #275ea9; background: #eef5ff; border-color: #c5d9f7; }

.hub-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--hub-muted);
  font-size: .86rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hub-card__go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 17px;
  color: var(--hub-gold);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.hub-empty {
  margin-top: 24px;
  padding: 34px;
  border: 1px solid var(--hub-line);
  border-radius: 22px;
  color: var(--hub-muted);
  background: var(--hub-surface);
  box-shadow: var(--hub-card-shadow);
}

.hub-footer {
  padding: 44px 20px 120px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #a9bbc2;
  background: #06131c;
}

.hub-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.hub-footer h2,
.hub-footer h3 { margin: 0 0 12px; color: #fff; }
.hub-footer h2 { font-size: 1.45rem; }
.hub-footer h3 { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.hub-footer p { max-width: 430px; margin: 0; font-size: .78rem; line-height: 1.65; }
.hub-footer nav { display: grid; align-content: start; gap: 9px; }
.hub-footer a { color: #afc1c7; font-size: .78rem; text-decoration: none; }
.hub-footer a:hover { color: var(--hub-gold); }

@media (max-width: 980px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hub-footer__grid { grid-template-columns: 1.2fr 1fr; }
  .hub-footer__grid > :last-child { grid-column: 2; }
}

@media (max-width: 680px) {
  .hub-hero { padding: 9px; }

  .hub-hero__inner {
    min-height: 430px;
    padding: 25px 20px 34px;
    border-radius: 26px;
  }

  .hub-topbar { top: 14px; right: 14px; left: 14px; }
  .hub-brand { min-height: 44px; padding-right: 11px; font-size: 12px; }
  .hub-brand img { width: 32px; height: 32px; }
  .hub-home-link { display: none; }
  .hub-crumb { margin-bottom: 13px; }
  .hub-hero h1 { font-size: clamp(2.45rem, 13vw, 4.2rem); }
  .hub-hero__lead { margin-top: 15px; font-size: .95rem; line-height: 1.55; }

  .hub-main { padding: 30px 14px 65px; }
  .hub-summary { align-items: flex-start; }
  .hub-summary h2 { font-size: 1.8rem; }
  .hub-summary p:last-child { font-size: .86rem; }
  .hub-count { min-width: 72px; min-height: 65px; padding: 8px 10px; }
  .hub-count strong { font-size: 21px; }

  .hub-filters-shell { margin-right: -14px; margin-left: -14px; padding-right: 14px; padding-left: 14px; }
  .hub-grid { grid-template-columns: 1fr; gap: 14px; }
  .hub-card { border-radius: 22px; }
  .hub-card__media { aspect-ratio: 16/9; }
  .hub-card__body { padding: 16px; }
  .hub-card__favorite { top: 12px; right: 12px; width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .hub-card__favorite strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hub-card__signals { gap: 6px; }
  .hub-card__distance,
  .hub-card__reviews { max-width: 100%; }

  .hub-footer { padding: 36px 18px 125px; }
  .hub-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hub-footer__grid > :last-child { grid-column: auto; }
}

@media (max-width: 390px) {
  .hub-summary { flex-direction: column; }
  .hub-count { grid-auto-flow: column; gap: 7px; min-height: 46px; }
  .hub-count span { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hub-card,
  .hub-card__media img { transition: none; }
}
