/* ===== Variables ===== */
:root {
  --color-bg: #faf9f7;
  --color-bg-alt: #f3f1ed;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-primary: #2d5a4a;
  --color-primary-dark: #1e3d33;
  --color-primary-light: #3d7a65;
  --color-accent: #c4a77d;
  --color-border: #e5e2dc;
  --color-success: #2d5a4a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --header-h: 76px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(250, 249, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

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

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(45, 90, 74, 0.85) 0%, rgba(30, 61, 51, 0.7) 100%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%232d5a4a" width="1200" height="800"/><circle fill="%233d7a65" cx="200" cy="150" r="180" opacity="0.3"/><circle fill="%231e3d33" cx="900" cy="600" r="250" opacity="0.4"/><circle fill="%23c4a77d" cx="700" cy="200" r="100" opacity="0.15"/></svg>') center/cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 640px;
  padding: 60px 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 36px;
  font-weight: 300;
}

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 550;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-full { width: 100%; }

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--color-text);
}

.section-desc {
  margin-top: 10px;
  color: var(--color-text-muted);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.about-features {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.about-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
}

.about-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ===== Schedule ===== */
.schedule-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.schedule-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.schedule-table th,
.schedule-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.schedule-table th {
  background: var(--color-bg-alt);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.schedule-table tbody tr:last-child td {
  border-bottom: none;
}

.schedule-table tbody tr:hover {
  background: rgba(45, 90, 74, 0.04);
}

.schedule-table .spots {
  font-weight: 500;
}

.schedule-table .spots.low {
  color: #b45309;
}

.schedule-table .spots.full {
  color: #b91c1c;
}

.btn-book {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: background var(--transition);
}

.btn-book:hover:not(:disabled) {
  background: var(--color-primary-dark);
}

.btn-book:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ===== Booking ===== */
.booking-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.booking-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 90, 74, 0.15);
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
}

.checkbox-group input {
  width: auto;
  margin-top: 3px;
}

.booking-info {
  padding: 8px 0;
}

.booking-info h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.booking-info ol {
  padding-left: 20px;
  margin-bottom: 24px;
  color: var(--color-text-muted);
}

.booking-info ol li {
  margin-bottom: 8px;
}

.booking-note {
  background: rgba(196, 167, 125, 0.15);
  border-left: 3px solid var(--color-accent);
  padding: 14px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.booking-contacts p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.booking-contacts a {
  display: block;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.booking-contacts a:hover {
  text-decoration: underline;
}

/* ===== Contacts ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-item {
  margin-bottom: 24px;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.contact-item a {
  color: var(--color-primary);
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.socials {
  display: flex;
  gap: 16px;
}

.socials a {
  color: var(--color-primary);
  font-weight: 500;
}

.map-placeholder {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-inner {
  text-align: center;
  padding: 32px;
}

.map-inner p:first-child {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.map-address {
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 32px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-brand .logo-mark {
  background: rgba(255,255,255,0.15);
}

.footer-copy {
  font-size: 0.88rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.88rem;
  opacity: 0.8;
}

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

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
}

.modal-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.modal-content h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.modal-content p {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid,
  .booking-layout,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }

  .burger { display: flex; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }
}

/* ===== Price box ===== */
.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(45, 90, 74, 0.08);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.price-box strong {
  font-size: 1.25rem;
  color: var(--color-primary);
}

/* ===== Payment modal ===== */
.modal-payment {
  max-width: 440px;
  text-align: left;
}

.modal-payment h3 {
  text-align: center;
  margin-bottom: 8px;
}

.payment-summary {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.payment-methods {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.pay-method {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.9rem;
}

.pay-method input { display: none; }

.pay-method.active,
.pay-method:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(45, 90, 74, 0.06);
}

.payment-total {
  text-align: center;
  font-size: 1.1rem;
  margin: 20px 0 16px;
}

.payment-total strong {
  color: var(--color-primary);
  font-size: 1.3rem;
}

.payment-secure {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 12px;
}

.sbp-hint {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

/* ===== Admin styles ===== */
.admin-page {
  padding-top: calc(var(--header-h) + 32px);
  min-height: 100vh;
  background: var(--color-bg-alt);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.admin-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.admin-card h2 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  background: var(--color-bg-alt);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
}

.admin-actions {
  display: flex;
  gap: 6px;
}

.btn-sm-icon {
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-sm-icon:hover {
  background: var(--color-bg-alt);
}

.btn-sm-icon.danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.btn-sm-icon.edit:hover {
  background: rgba(45, 90, 74, 0.08);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.login-box {
  max-width: 360px;
  margin: 80px auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-box h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.login-box p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.login-error {
  color: #b91c1c;
  font-size: 0.88rem;
  margin-top: 10px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.admin-form-grid .form-group.full {
  grid-column: 1 / -1;
}

/* Membership cards */
.membership-price {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 8px 0 12px;
}
.membership-price span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
}
.membership-features {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}
.membership-features li {
  padding: 4px 0 4px 18px;
  position: relative;
}
.membership-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 600;
}
.membership-card {
  display: flex;
  flex-direction: column;
}
.membership-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
@media (max-width: 900px) {
  #membership .services-grid {
    grid-template-columns: 1fr !important;
  }
}


/* Auth */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.auth-error {
  color: #b91c1c;
  font-size: 0.9rem;
  margin-top: 12px;
}
.auth-success {
  color: var(--color-primary);
  font-size: 0.9rem;
  margin-top: 12px;
}
.nav-auth, .nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}
.nav-auth[hidden], .nav-user[hidden],
[hidden] {
  display: none !important;
}
#btnLogout {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}
#btnLogout:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.nav-auth-link {
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}
.nav-auth-primary {
  background: var(--color-primary);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 999px;
}
.nav-auth-primary:hover {
  background: var(--color-primary-dark);
  color: #fff !important;
}
.nav-user-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
}
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .nav-auth, .nav-user { margin-left: 0; flex-direction: column; align-items: flex-start; }
}

.ref-code {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--color-primary);
  background: rgba(45, 90, 74, 0.08);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
}

.expiry-alert {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.expiry-ok {
  background: rgba(45, 90, 74, 0.1);
  border-left: 3px solid var(--color-primary);
  color: var(--color-primary-dark);
}
.expiry-soon {
  background: #fff7ed;
  border-left: 3px solid #d97706;
  color: #9a3412;
}
.expiry-expired {
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  color: #991b1b;
}
.expiry-none {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-border);
  color: var(--color-text-muted);
}

.price-old {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: line-through;
  margin-bottom: 2px;
}
.price-note {
  font-size: 0.85rem;
  color: #9a3412;
  background: #fff7ed;
  padding: 8px 12px;
  border-radius: 8px;
  margin: 8px 0 12px;
  line-height: 1.4;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}
.container {
  width: 100%;
  max-width: 1120px;
}
.booking-layout,
.booking-form,
.booking-info,
.form-row,
.form-group {
  min-width: 0;
  max-width: 100%;
}
.booking-form {
  overflow: hidden;
}
.form-group input,
.form-group select,
.form-group textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* Weekly calendar */
.week-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.cal-day {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}
.cal-day-head {
  background: var(--color-bg-alt);
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.cal-day-head strong {
  display: block;
  font-size: 0.95rem;
}
.cal-day-head span {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}
.cal-day-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cal-event {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px;
}
.cal-event-time {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
}
.cal-event-title {
  font-weight: 600;
  font-size: 0.82rem;
  margin: 2px 0;
  word-wrap: break-word;
}
.cal-event-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  word-wrap: break-word;
}
.cal-event-spots {
  font-size: 0.75rem;
  margin-bottom: 6px;
}
.cal-event .btn-book {
  width: 100%;
  padding: 6px 8px;
  font-size: 0.78rem;
}
.cal-empty {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 12px 4px;
}
.schedule-filters {
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .week-cal {
    grid-template-columns: 1fr;
  }
  .cal-day-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    text-align: left;
    padding: 10px 12px;
  }
  .cal-day-head strong, .cal-day-head span { display: inline; }
  .booking-form {
    padding: 20px 16px;
  }
}
@media (max-width: 700px) {
  .booking-form {
    padding: 16px 12px;
  }
}

.qr-placeholder { text-align: center; margin-top: 12px; }
.qr-box {
  width: 180px; height: 180px; margin: 0 auto 12px;
  border: 2px dashed var(--color-border); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted); font-weight: 600;
}
a.btn-book {
  display: block; text-align: center; text-decoration: none;
  padding: 6px 8px; font-size: 0.78rem; border-radius: 999px;
  background: var(--color-primary); color: #fff;
}

.social-list { display: flex; flex-direction: column; gap: 12px; }
.social-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 14px;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
}
.social-card:hover { border-color: var(--color-primary); }
.social-ico { font-size: 1.4rem; width: 36px; text-align: center; }
.social-card strong { display: block; }
.social-card small { color: var(--color-text-muted); font-size: .85rem; }

a.team-card { text-decoration: none; color: inherit; display: block; }
a.team-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }

.logo-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: #f3eee0;
  box-shadow: 0 0 0 1px rgba(45,90,74,.12);
}
.logo-img-sm { width: 40px; height: 40px; }
.footer-brand .logo-img { width: 40px; height: 40px; }
.logo-text { white-space: nowrap; }

.qr-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 0 auto 12px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid var(--color-border);
}
