/* Galilea Sport Hall
   Palette pulled from the building itself: charcoal steel and glass,
   warm stone/cream walls, brass fixtures in the pool changing area.
   Two core colors (charcoal, cream) plus one brass accent. */

:root {
  --ink: #1b1e22;
  --muted: #5c6470;
  --charcoal: #1c2126;
  --charcoal-2: #262c33;
  --cream: #f6f1e6;
  --cream-2: #ece2cd;
  --border: #ddd2ba;
  --brass: #a97a3e;
  --brass-dark: #8a6231;
  --white: #ffffff;
  --error: #b3261e;
  --error-bg: #fbeceb;
  --success: #2c6e4f;
  --success-bg: #eaf4ee;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a {
  color: var(--brass-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: var(--white);
  padding: 0.75em 1.25em;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* Header */

.site-header {
  background: var(--charcoal);
  color: var(--white);
}

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 20;
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #d8d2c4;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--white);
}

/* Footer */

.site-footer {
  background: var(--charcoal-2);
  color: #c9c2b2;
  margin-top: 4rem;
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: #d8d2c4;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.8em 1.5em;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.08s ease, background-color 0.15s ease;
}

.btn--small {
  padding: 0.5em 1em;
  font-size: 0.85rem;
}

.btn--accent {
  background: var(--brass);
  color: var(--white);
}

.btn--accent:hover {
  background: var(--brass-dark);
}

.btn--accent:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.hero .btn--ghost {
  color: var(--white);
}

.hero .btn--ghost:hover {
  background: rgba(255,255,255,0.12);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Liquid glass: frosted, translucent surfaces used sparingly on the hero
   photo, where a solid fill would fight the image instead of sitting on it. */

.btn--glass {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.85em 1.75em;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 24px rgba(0,0,0,0.18);
}

.btn--glass:hover {
  background: rgba(255,255,255,0.22);
}

/* Hero: full-bleed, no card, no border */

.hero {
  background-size: cover;
  background-position: center 60%;
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 1.5rem 2rem;
}

.hero__inner {
  max-width: 720px;
  width: 100%;
}

.hero h1 {
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero__lede {
  font-size: 1.15rem;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  color: #eee7d8;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero__caption {
  margin: 3rem 0 0;
  color: #cfc9ba;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
  max-width: 52ch;
}

/* Facility sections */

.facility {
  max-width: 1120px;
  margin: 4.5rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.facility--reverse {
  direction: rtl;
}

.facility--reverse > * {
  direction: ltr;
}

.facility__media img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.facility__facts {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.facility__facts li::before {
  content: "\2022";
  color: var(--brass);
  font-weight: 700;
  margin-right: 0.5em;
}

/* Notice */

.notice {
  background: var(--cream-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
}

.notice__grid {
  max-width: 1120px;
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.notice h2 {
  max-width: 1120px;
  margin: 0 auto;
}

.notice__grid p {
  color: var(--muted);
  margin: 0;
}

/* Forms (booking, lookup, admin filters, login) */

.booking, .lookup, .admin {
  max-width: 640px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.admin {
  max-width: 1120px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--brass-dark);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
}

.google-btn:hover {
  background: var(--cream-2);
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.radio-group {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  cursor: pointer;
}

.radio-group input {
  width: auto;
}

.review-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.25rem 0 0;
}

.booking__form, .lookup__form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label, .field__label {
  font-weight: 600;
  font-size: 0.9rem;
}

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

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.65em 0.8em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  width: 100%;
}

textarea {
  resize: vertical;
}

.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slots__status {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.slot-btn {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.55em 0.9em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--ink);
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--brass);
}

.slot-btn[aria-pressed="true"] {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--white);
}

.slot-btn:disabled {
  color: #a9a297;
  text-decoration: line-through;
  cursor: not-allowed;
  background: var(--cream-2);
}

.form-message {
  border-radius: var(--radius-sm);
  padding: 0.4em 0;
  font-size: 0.95rem;
}

.form-message:empty {
  display: none;
}

.form-message--error {
  color: var(--error);
  background: var(--error-bg);
  padding: 0.75em 1em;
  border-radius: var(--radius-sm);
}

.form-message--success {
  color: var(--success);
  background: var(--success-bg);
  padding: 0.75em 1em;
  border-radius: var(--radius-sm);
}

.empty-state {
  color: var(--muted);
  padding: 2rem 0;
}

/* Lookup results */

.reservation-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--white);
}

.reservation-card__details {
  font-size: 0.95rem;
  color: var(--muted);
}

.reservation-card__details strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: block;
}

.status {
  display: inline-block;
  padding: 0.2em 0.7em;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status--approved {
  background: var(--success-bg);
  color: var(--success);
}

.status--pending {
  background: #fbf1de;
  color: var(--brass-dark);
}

.status--rejected {
  background: var(--error-bg);
  color: var(--error);
}

.status--cancelled {
  background: #f1eee7;
  color: var(--muted);
}

/* Admin */

.admin__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin__filters {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  background: var(--white);
}

th, td {
  text-align: left;
  padding: 0.7em 0.9em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

thead th {
  background: var(--cream-2);
  font-family: var(--font-display);
  font-weight: 600;
}

/* Responsive */

@media (max-width: 760px) {
  .facility {
    grid-template-columns: 1fr;
  }
  .facility--reverse {
    direction: ltr;
  }
  .facility__media img {
    height: 220px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .site-header:not(.site-header--overlay) .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-header--overlay .main-nav {
    gap: 1rem;
  }
  .hero {
    padding: 5.5rem 1.25rem 2rem;
  }
  .hero__caption {
    font-size: 0.8rem;
    margin-top: 2rem;
  }
}
