/* ============================================================
   DANCE FACTORY — Public Website
   Mobile-first · Dark theme · Red/Black/White
   ============================================================ */

:root {
  --bg:          #080808;
  --surface:     #111111;
  --surface-2:   #181818;
  --border:      #1e1e1e;
  --border-2:    #2a2a2a;
  --red:         #cc0000;
  --red-hover:   #e60000;
  --red-glow:    rgba(204, 0, 0, 0.18);
  --white:       #ffffff;
  --text:        #dcdcdc;
  --muted:       #767676;
  --muted-2:     #444444;
  --fh:          'Barlow Condensed', sans-serif;
  --fb:          'Barlow', sans-serif;
  --r:           3px;
  --ease:        0.2s ease;
  --max:         1200px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

h1, h2, h3 {
  font-family: var(--fh);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.5rem 0; }

@media (min-width: 768px) { .section { padding: 6.5rem 0; } }

.section__label {
  display: block;
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.section__title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--fh);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-hover); }

.btn-ghost {
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}

.nav.scrolled { border-bottom-color: var(--border); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__logo { height: 38px; width: auto; }

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 640px) { .nav__links { display: flex; } }

.nav__link {
  font-family: var(--fh);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--ease);
}
.nav__link:hover { color: var(--white); }

.nav__cta {
  display: none;
  padding: 0.5rem 1.25rem;
  font-size: 0.82rem;
}
@media (min-width: 768px) { .nav__cta { display: inline-flex; } }

/* ── Mobile bottom nav ───────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 100;
  display: flex;
  background: rgba(8, 8, 8, 0.97);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

@media (min-width: 640px) { .mobile-nav { display: none; } }

.mobile-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.6rem 0;
  font-family: var(--fh);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--ease);
}

.mobile-nav__item:hover { color: var(--white); }

.mobile-nav__bar {
  width: 20px;
  height: 2px;
  background: var(--red);
  border-radius: 1px;
  opacity: 0;
  transition: opacity var(--ease);
}

.mobile-nav__item:hover .mobile-nav__bar { opacity: 1; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 5rem 1.25rem 5rem;
}

@media (max-width: 639px) {
  .hero { padding-bottom: 6rem; } /* clear mobile nav */
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 50% 48%,
      rgba(204,0,0,0.16) 0%,
      rgba(204,0,0,0.04) 40%,
      transparent 70%),
    var(--bg);
}

.hero__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(82vmin, 660px);
  height: min(82vmin, 660px);
  border-radius: 50%;
  border: 1px solid rgba(204,0,0,0.10);
  pointer-events: none;
}

.hero__ring::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(204,0,0,0.06);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero__eyebrow {
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(4rem, 18vw, 9rem);
  line-height: 0.88;
  margin-bottom: 1.5rem;
}

.hero__title .red { color: var(--red); }

.hero__subtitle {
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.03em;
  max-width: 420px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
}

@media (min-width: 400px) {
  .hero__actions { flex-direction: row; justify-content: center; }
}

.hero__locations {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero__loc {
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-2);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}

/* ── Stats ─────────────────────────────────────────────────── */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  text-align: center;
  padding: 1.75rem 1rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

@media (max-width: 639px) {
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}

.stat__number {
  font-family: var(--fh);
  font-size: clamp(2.8rem, 7vw, 4rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat__label {
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Activities ──────────────────────────────────────────── */
.activities__intro {
  margin-bottom: 2.5rem;
}

.activities__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

@media (min-width: 480px) {
  .activities__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .activities__grid { grid-template-columns: repeat(3, 1fr); }
}

.activity-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: background var(--ease);
}

.activity-card::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.activity-card:hover { background: var(--surface-2); }
.activity-card:hover::after { transform: scaleY(1); }

/* Activity card with background image */
.activity-card--img {
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  min-height: 240px;
}

.activity-card--img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8,8,8,0.78) 0%,
    rgba(8,8,8,0.62) 40%,
    rgba(8,8,8,0.90) 100%
  );
  z-index: 0;
}

.activity-card--img::after { z-index: 1; }

.activity-card--img > * { position: relative; z-index: 1; }

.activity-card--img:hover { background-color: var(--surface); }

.activity-card__level {
  font-family: var(--fh);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.activity-card__name {
  font-family: var(--fh);
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 0.65rem;
}

.activity-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Schedule ────────────────────────────────────────────── */
.schedule { background: var(--surface); }

.schedule__intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .schedule__intro {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.schedule__filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-label {
  font-family: var(--fh);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-btn {
  padding: 0.45rem 1rem;
  font-family: var(--fh);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  color: var(--muted);
  background: var(--bg);
  transition: all var(--ease);
}

.filter-btn:hover { border-color: var(--white); color: var(--white); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* Day tabs (mobile) */
.schedule__days-nav {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.125rem;
  margin-bottom: 1.25rem;
}
.schedule__days-nav::-webkit-scrollbar { display: none; }

@media (min-width: 768px) { .schedule__days-nav { display: none; } }

.day-tab {
  flex-shrink: 0;
  padding: 0.45rem 1rem;
  font-family: var(--fh);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  color: var(--muted);
  background: var(--bg);
  transition: all var(--ease);
}

.day-tab:hover:not([disabled]) { border-color: var(--white); color: var(--white); }
.day-tab.active { background: var(--white); border-color: var(--white); color: var(--bg); }
.day-tab.disabled { opacity: 0.3; cursor: not-allowed; }

/* Schedule grid */
.schedule__grid {
  display: block;           /* mobile: single column */
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}

@media (min-width: 768px) {
  .schedule__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background: var(--border);
  }
}

/* Mobile: hide all days except active */
@media (max-width: 767px) {
  .schedule__day         { display: none; }
  .schedule__day.mobile-active { display: block; }
}

.schedule__day { background: var(--surface-2); }

.schedule__day-header {
  padding: 0.6rem 1rem;
  font-family: var(--fh);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.schedule__class {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.schedule__class:last-child { border-bottom: none; }
.schedule__class:hover { background: var(--surface); }

.schedule__class-time {
  font-family: var(--fh);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.schedule__class-name {
  font-family: var(--fh);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
}

.schedule__class-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.schedule__empty {
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
  color: var(--muted-2);
  text-align: center;
}

.schedule__no-classes {
  padding: 3rem;
  text-align: center;
  font-family: var(--fh);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.schedule-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

/* ── Registration ─────────────────────────────────────────── */
.register__inner {
  max-width: 600px;
  margin: 0 auto;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 480px) {
  .form__row--2 { grid-template-columns: 1fr 1fr; }
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form__label {
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form__label .req { color: var(--red); margin-left: 2px; }

.form__input,
.form__select {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form__input:focus,
.form__select:focus { border-color: var(--red); }

.form__input::placeholder { color: var(--muted-2); }

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form__select option { background: #1a1a1a; }

.form__error {
  font-size: 0.75rem;
  color: #ff5555;
  min-height: 1rem;
  display: none;
}

.form__group.has-error .form__input,
.form__group.has-error .form__select { border-color: #ff5555; }
.form__group.has-error .form__error  { display: block; }

.form__check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form__checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--red);
  cursor: pointer;
}

.form__check-label {
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.6;
}

.form__check-label a { color: var(--red); text-decoration: underline; }

.form__submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  justify-content: center;
}

.form__submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* Success state */
.register-success {
  display: none;
  text-align: center;
  padding: 3.5rem 2rem;
}

.register-success.visible { display: block; }

.register-success__mark {
  font-family: var(--fh);
  font-size: 4rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 1rem;
}

.register-success__title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.register-success__text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 420px;
  margin: 0 auto;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
}

@media (max-width: 639px) {
  .footer { padding-bottom: calc(3.5rem + 56px + env(safe-area-inset-bottom, 0px)); }
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer__logo { height: 44px; width: auto; margin-bottom: 0.875rem; }

.footer__tagline {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 260px;
}

.footer__head {
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__list { display: flex; flex-direction: column; gap: 0.5rem; }

.footer__list-item {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.footer__list-item b { color: var(--text); font-weight: 500; }

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

.footer__copy { font-size: 0.78rem; color: var(--muted); }

/* ── Scroll to top ─────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: calc(56px + 1rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 42px;
  height: 42px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--fh);
  font-size: 1.1rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease), background var(--ease);
}

.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover   { background: var(--red); border-color: var(--red); }

@media (min-width: 640px) {
  .scroll-top { bottom: 1.5rem; }
}

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(56px + 0.75rem);
  transform: translateX(-50%) translateY(8px);
  z-index: 200;
  max-width: calc(100vw - 2.5rem);
  padding: 0.75rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast--error { border-color: #ff5555; color: #ff5555; }

@media (min-width: 640px) { .toast { bottom: 1.5rem; } }

/* ── Spinner ───────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

.btn-spinner { width: 16px; height: 16px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Load error ────────────────────────────────────────────── */
.load-error {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Divider line ──────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Gallery ────────────────────────────────────────────────── */
.gallery__intro { margin-bottom: 2rem; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

@media (min-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .gallery__grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 260px;
  }
  /* Mosaic layout: tall | 2×2 | tall-wide */
  .gallery__item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
  .gallery__item:nth-child(2) { grid-column: span 4; }
  .gallery__item:nth-child(3) { grid-column: span 3; }
  .gallery__item:nth-child(4) { grid-column: span 3; }
  .gallery__item:nth-child(5) { grid-column: span 4; }
  .gallery__item:nth-child(6) { grid-column: span 5; }
}

.gallery__item {
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4/3;
}

@media (min-width: 900px) { .gallery__item { aspect-ratio: unset; } }

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

.gallery__item:hover img { transform: scale(1.07); }

/* ── Location pill links ─────────────────────────────────────── */
.hero__loc { display: inline-block; transition: all var(--ease); }
.hero__loc:hover { border-color: var(--red); color: var(--white); }

/* ── Location pages ──────────────────────────────────────────── */
.loc-hero {
  position: relative;
  height: 55vw;
  min-height: 300px;
  max-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.loc-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,8,8,0.92) 0%,
    rgba(8,8,8,0.50) 50%,
    rgba(8,8,8,0.20) 100%
  );
}

.loc-hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.loc-hero__back {
  display: inline-block;
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  transition: color var(--ease);
}
.loc-hero__back:hover { color: var(--white); }

.loc-hero__label {
  font-family: var(--fh);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.loc-hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

/* Location info grid */
.loc-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .loc-info { grid-template-columns: 1fr 1fr; align-items: start; }
}

.loc-map {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
  line-height: 0;
}

.loc-map iframe {
  width: 100%;
  height: 320px;
  border: none;
  display: block;
  filter: invert(90%) hue-rotate(180deg); /* dark map */
}

.loc-contact { display: flex; flex-direction: column; gap: 1.5rem; }

.loc-contact__item { display: flex; flex-direction: column; gap: 0.25rem; }

.loc-contact__label {
  font-family: var(--fh);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.loc-contact__value {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.loc-contact__value a { color: var(--text); transition: color var(--ease); }
.loc-contact__value a:hover { color: var(--white); }

/* Location gallery (4-photo grid) */
.loc-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

@media (min-width: 640px) {
  .loc-gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
  }
  .loc-gallery__item:nth-child(1) { grid-column: span 2; }
}

.loc-gallery__item {
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 3/2;
}

@media (min-width: 640px) { .loc-gallery__item { aspect-ratio: unset; } }

.loc-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.loc-gallery__item:hover img { transform: scale(1.06); }

/* Location other sede CTA */
.loc-other {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.loc-other__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
}

.loc-other__subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}
