:root {
  --background: #0f0f0f;
  --background-deep: #050505;
  --surface: #171717;
  --surface-soft: #202020;
  --foreground: #ffffff;
  --muted: #a8a8a8;
  --muted-dark: #575757;
  --gold: #f5c800;
  --gold-dark: #cc9200;
  --gold-light: #ffe229;
  --border: rgba(255, 255, 255, 0.14);
  --border-dark: rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "DM Sans", Arial, sans-serif;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(16px, 5vw, 64px);
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 154px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-link {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.header-link:hover {
  color: var(--foreground);
}

.header-button,
.empty-state a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #080808;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0 20px;
  text-transform: uppercase;
  box-shadow: 0 0 24px rgba(245, 200, 0, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-button:hover,
.empty-state a:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(245, 200, 0, 0.32);
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  padding: 180px 0 145px;
  background: var(--background-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.82) 42%, rgba(5, 5, 5, 0.45) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.12) 52%, rgba(5, 5, 5, 0.82)),
    url("../assets/hero-gym-B6riDG8J.jpg") center / cover;
}

.hero::after {
  position: absolute;
  right: -10vw;
  bottom: -2px;
  left: -10vw;
  height: 8vw;
  min-height: 82px;
  background: #f4f4f4;
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 810px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--gold-dark);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 0.95;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  font-size: clamp(4.2rem, 12vw, 8.8rem);
}

h1 span {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-points span {
  border: 1px solid rgba(245, 200, 0, 0.34);
  border-radius: 999px;
  background: rgba(245, 200, 0, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  text-transform: uppercase;
}

.locator {
  position: relative;
  margin-top: -1px;
  padding: 98px 0 112px;
  background: #f4f4f4;
  color: #0d0d0d;
}

.locator-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.locator-heading h2 {
  font-size: clamp(3.2rem, 8vw, 6rem);
}

.locator-heading p {
  margin: 0;
  color: var(--muted-dark);
  font-size: 1rem;
  line-height: 1.7;
}

.filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.7fr) minmax(160px, 0.7fr) minmax(180px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #555;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #f7f7f7;
  color: #111;
  outline: none;
  padding: 0 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 200, 0, 0.18);
}

.field select:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.clear-button {
  min-height: 50px;
  border: 1px solid #161616;
  border-radius: 12px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 0 18px;
  text-transform: uppercase;
  transition: background 160ms ease, transform 160ms ease;
}

.clear-button:hover {
  background: #292929;
  transform: translateY(-1px);
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 30px;
  color: var(--muted-dark);
  font-size: 0.94rem;
}

.result-bar strong {
  color: #101010;
}

.unit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.unit-card {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.unit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.14);
}

.unit-image-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #151515;
}

.unit-image-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  content: "";
}

.unit-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.unit-card:hover .unit-image {
  transform: scale(1.04);
}

.unit-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  border-radius: 999px;
  background: var(--gold);
  color: #080808;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.unit-body {
  display: grid;
  gap: 20px;
  padding: 24px;
}

.unit-body h3 {
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.unit-meta {
  display: grid;
  gap: 12px;
  color: #343434;
  font-size: 0.98rem;
  line-height: 1.45;
}

.meta-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.meta-icon {
  display: inline-flex;
  width: 25px;
  min-width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(245, 200, 0, 0.18);
  color: #111;
  font-size: 0.76rem;
  font-weight: 900;
}

.unit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.unit-actions a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  padding: 0 16px;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.unit-actions a:hover {
  transform: translateY(-2px);
}

.unit-link {
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #080808;
  box-shadow: 0 0 24px rgba(245, 200, 0, 0.24);
}

.unit-link:hover {
  box-shadow: 0 0 34px rgba(245, 200, 0, 0.32);
}

.empty-state {
  display: grid;
  place-items: center;
  max-width: 720px;
  margin: 40px auto 0;
  border: 1px dashed rgba(0, 0, 0, 0.22);
  border-radius: 20px;
  padding: 44px 28px;
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-kicker {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.empty-state h3 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.empty-state p {
  max-width: 520px;
  margin: 14px 0 24px;
  color: var(--muted-dark);
  line-height: 1.65;
}

.site-footer {
  background: var(--background-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner img {
  width: 136px;
  opacity: 0.84;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
  }

  .locator-heading,
  .filters,
  .unit-grid {
    grid-template-columns: 1fr;
  }

  .result-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    width: 132px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .header-button {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero {
    min-height: auto;
    padding: 176px 0 112px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .locator {
    padding: 72px 0 84px;
  }

  .filters {
    padding: 14px;
  }

  .unit-body {
    padding: 20px;
  }

  .unit-actions a {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
