:root {
  --court-blue: #2f6fe4;
  --court-blue-dark: #1a4bb0;
  --court-green: #37a34a;
  --court-green-dark: #1f7a34;
  --accent-lime: #c6e83f;
  --accent-lime-dark: #9dbf24;
  --ink: #17241f;
  --muted: #5c6b66;
  --bg: #f4faf6;
  --card: #ffffff;
  --border: #e2ece4;
  --danger: #c0392b;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(26, 75, 176, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a { color: var(--court-blue-dark); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header.site-header {
  background: linear-gradient(100deg, var(--court-blue) 0%, var(--court-green) 100%);
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(20, 60, 40, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li + li { margin-left: 22px; }

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.95;
}

.nav-links a:hover { opacity: 1; text-decoration: underline; }

.cta-btn {
  background: var(--accent-lime);
  color: #2b4a12;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 0 var(--accent-lime-dark);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--accent-lime-dark);
}

/* Hero */
.hero {
  position: relative;
  color: white;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(155deg, #1a4bb0, #1f7a34);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(155deg, rgba(24,64,170,0.68), rgba(26,120,70,0.72));
  z-index: 1;
}

.hero-slideshow {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero-slide.active {
  opacity: 1;
  animation: heroKenBurns 8s ease-in-out forwards;
}

@keyframes heroKenBurns {
  from { transform: scale(1.18); }
  to { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active { animation: none; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 100px 20px 80px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 12px;
  font-weight: 800;
}

.hero-logo {
  width: min(420px, 78vw);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.4));
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.97;
  margin-bottom: 28px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.btn-primary {
  background: var(--accent-lime);
  color: #2b4a12;
  box-shadow: 0 4px 0 var(--accent-lime-dark);
}
.btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--accent-lime-dark);
}

.btn-outline {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 2px solid rgba(255,255,255,0.85);
  backdrop-filter: blur(2px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* Sections */
section { padding: 64px 0; }
section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--court-blue-dark);
}
.section-lead {
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 620px;
}

.rate-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: linear-gradient(100deg, var(--court-blue), var(--court-green));
  color: white;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.rate-badge .amount { font-size: 1.4rem; }

/* Info cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(26, 75, 176, 0.16);
}
.info-card:nth-child(odd) .icon {
  background: linear-gradient(135deg, var(--court-blue), #5b93f2);
}
.info-card:nth-child(even) .icon {
  background: linear-gradient(135deg, var(--court-green), #66c47a);
}
.info-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: white;
}
.info-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.info-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform .2s ease, border-color .2s ease;
}
.gallery img:hover {
  transform: scale(1.03) rotate(-0.5deg);
  border-color: var(--accent-lime);
}

/* Location */
.location-card {
  background: linear-gradient(120deg, rgba(47,111,228,0.06), rgba(55,163,74,0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.location-card .addr h3 { margin: 0 0 6px; color: var(--court-green-dark); }
.location-card .addr p { margin: 0; color: var(--muted); }

/* Booking */
.booking-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  max-width: 720px;
  margin: 0 auto;
  border-top: 5px solid;
  border-image: linear-gradient(100deg, var(--court-blue), var(--court-green)) 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--court-blue-dark);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--court-blue);
  box-shadow: 0 0 0 3px rgba(47,111,228,0.15);
}

.duration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.duration-btn {
  padding: 12px 8px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  transition: transform .12s ease, border-color .12s ease;
}
.duration-btn:hover { border-color: var(--court-blue); transform: translateY(-1px); }
.duration-btn.selected {
  background: linear-gradient(100deg, var(--court-blue), var(--court-green));
  border-color: transparent;
  color: white;
}

.slots-label {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 4px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--court-blue-dark);
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.slot-btn {
  padding: 10px 8px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
  transition: transform .12s ease, border-color .12s ease;
}
.slot-btn:hover:not(:disabled) {
  border-color: var(--court-green);
  transform: translateY(-1px);
}
.slot-btn.selected {
  background: linear-gradient(100deg, var(--court-blue), var(--court-green));
  border-color: transparent;
  color: white;
}
.slot-btn:disabled {
  background: #f0f0f0;
  color: #aaa;
  text-decoration: line-through;
  cursor: not-allowed;
}

.slots-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 10px 0;
}

.summary {
  background: linear-gradient(100deg, rgba(47,111,228,0.08), rgba(55,163,74,0.1));
  border: 1px dashed var(--court-green);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.summary strong { color: var(--court-green-dark); }

.form-msg {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-msg.error { background: #fdecea; color: var(--danger); }
.form-msg.success { background: #e9f7ef; color: var(--court-green-dark); }

.submit-btn {
  width: 100%;
  background: linear-gradient(100deg, var(--court-blue), var(--court-green));
  color: white;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26, 75, 176, 0.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(26, 75, 176, 0.38);
}
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

#formMsgBottom:not(:empty) { margin-top: 16px; }
#formMsgBottom .form-msg { margin-bottom: 0; }

.no-account-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 14px;
}

/* Footer */
footer {
  background: linear-gradient(100deg, var(--court-blue-dark), var(--court-green-dark));
  color: rgba(255,255,255,0.9);
  padding: 32px 0;
  text-align: center;
  font-size: 0.9rem;
}
footer a { color: var(--accent-lime); font-weight: 700; }

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(10, 20, 30, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* mobile nav */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: white;
  margin: 0 auto;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-links-mobile {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.nav-links-mobile.open {
  max-height: 260px;
}
.nav-links-mobile li a {
  display: block;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.nav-links-mobile li a:active { background: rgba(255,255,255,0.1); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links-mobile { display: block; }
  .nav-right .cta-btn { display: none; }
  .brand-logo { height: 36px; }
  .nav { padding: 8px 16px; }
}

/* Confirmation modal */
.modal-overlay {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(10, 24, 20, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(10, 30, 20, 0.35);
  border-top: 5px solid;
  border-image: linear-gradient(100deg, var(--court-blue), var(--court-green)) 1;
}
.modal-box h3 {
  margin: 0 0 6px;
  color: var(--court-blue-dark);
  font-size: 1.3rem;
}
.modal-lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 18px;
}

.confirm-details {
  background: linear-gradient(100deg, rgba(47,111,228,0.06), rgba(55,163,74,0.08));
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 22px;
}
.confirm-details .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.confirm-details .row:last-child { border-bottom: none; }
.confirm-details .row .label { color: var(--muted); }
.confirm-details .row .value { font-weight: 700; color: var(--ink); text-align: right; }
.confirm-details .row.total .value { color: var(--court-green-dark); font-size: 1.15rem; }

.modal-actions {
  display: flex;
  gap: 12px;
}
.btn-modal-edit {
  flex: 1;
  padding: 13px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: white;
  font-weight: 700;
  cursor: pointer;
}
.btn-modal-edit:hover { border-color: var(--court-blue); }
.btn-modal-confirm {
  flex: 1.4;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(100deg, var(--court-blue), var(--court-green));
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26, 75, 176, 0.3);
}
.btn-modal-confirm:hover:not(:disabled) { transform: translateY(-1px); }
.btn-modal-confirm:disabled { opacity: 0.6; cursor: not-allowed; }
