:root{ --ink:#111827; --muted:#6b7280; --line:#e5e7eb; --bg:#fafafa; --card:#fff; --brand:#111827; --accent:#2563eb; --accent-ink:#1e40af; --ok:#065f46; --okbg:#ecfdf5; --okline:#a7f3d0; --err:#991b1b; --errbg:#fef2f2; --errline:#fecaca; }
*{box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;margin:0;background:var(--bg);color:var(--ink)}
.container{max-width:960px;margin:0 auto;padding:20px}
.card{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:16px;margin:14px 0;box-shadow:0 1px 0 rgba(0,0,0,.02)}
h1{margin:0 0 6px;font-size:clamp(22px,3.2vw,28px)}
h3{margin:0 0 10px}
.muted{color:var(--muted)}
.grid{display:grid;gap:12px}
.grid-2{grid-template-columns:1fr}
@media(min-width:880px){.grid-2{grid-template-columns:1.25fr 1fr}}
.meta{display:flex;gap:10px;flex-wrap:wrap}
.badge{background:#f3f4f6;padding:6px 10px;border-radius:999px;font-size:12px;color:#374151}

/* Header / Footer */
.site-header{position:sticky;top:0;z-index:40;background:var(--card);border-bottom:1px solid var(--line)}
.site-header-inner{max-width:1080px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;gap:16px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none}
.brand-mark{width:36px;height:36px;border-radius:10px;background:var(--accent);display:grid;place-items:center;color:#fff;font-weight:800}
.brand-name{font-weight:800;color:var(--ink);letter-spacing:.2px}
nav.primary{margin-left:auto;display:flex;gap:16px;align-items:center}
nav.primary a{color:var(--muted);text-decoration:none;font-weight:600}
nav.primary a:hover{color:var(--accent)}
.lang{appearance:none;border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:#fff;color:var(--ink)}
.site-footer{border-top:1px solid var(--line);background:#fff}
.site-footer-inner{max-width:1080px;margin:0 auto;padding:18px 20px;color:var(--muted);display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}

/* Slots */
.slots{display:grid;gap:8px;grid-template-columns:repeat(2,1fr)}
@media(min-width:540px){.slots{grid-template-columns:repeat(3,1fr)}}
@media(min-width:760px){.slots{grid-template-columns:repeat(4,1fr)}}
@media(min-width:980px){.slots{grid-template-columns:repeat(6,1fr)}}
.slot{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff;cursor:pointer;text-align:center;font-weight:500}
.slot:hover{background:#f9fafb}
.slot.selected{border-color:var(--brand);box-shadow:0 0 0 2px var(--brand) inset}

/* Forms */
label{display:block;margin:8px 0 6px;font-size:14px}
input[type="text"],input[type="email"],input[type="tel"],input[type="date"]{width:100%;padding:12px 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff;font-size:15px}
input[readonly]{background:#f9fafb}
.row{display:grid;grid-template-columns:1fr;gap:12px}
@media(min-width:760px){.row{grid-template-columns:1fr 1fr}}
button{padding:12px 16px;border-radius:10px;border:0;background:var(--accent);color:#fff;cursor:pointer;font-weight:700;letter-spacing:.1px}
button:hover{background:var(--accent-ink)}
button[disabled]{opacity:.6;cursor:not-allowed}
.btn{display:inline-flex;align-items:center;gap:8px}
.btn-outline{background:#fff;border:1px solid var(--line);color:var(--ink)}
.btn-outline:hover{border-color:var(--accent);color:var(--accent)}
.btn-ghost{background:transparent;color:var(--ink)}

/* Links & chips */
a{color:inherit}
a.link{color:var(--accent);text-decoration:none}
a.link:hover{text-decoration:underline}
.chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:#fff}

/* Alerts */
.alert{padding:12px;border-radius:10px;margin:12px 0}
.alert.success{background:var(--okbg);color:var(--ok);border:1px solid var(--okline)}
.alert.error{background:var(--errbg);color:var(--err);border:1px solid var(--errline)}
.small{font-size:12px}

/* -------------------------------------------------------
   Shared Light Theme (for public pages like spaces & bookings)
----------------------------------------------------------*/
body.light-theme, body.booking-light, body.space-detail {
  background: #f8f9fb;
  color: #212529;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
              "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.card-light {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  padding: 16px;
}

.btn-primary-light {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  border: 1px solid #1d4ed8;
  border-radius: 12px;
  font-weight: 700;
  padding: 10px 16px;
}
.btn-primary-light:hover {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

input, select, textarea {
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 12px;
  box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
  outline: none;
}

.section-light {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.title-light {
  color: #111827;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 8px;
}

.muted-light {
  color: #6b7280;
}

.calendar-light {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #111827;
  padding: 10px;
}

/* -------------------------------------------------------
   Home (Instabase-like landing) – GymSpace
----------------------------------------------------------*/

.gs-home {
  background: #f3f4f6;
  padding: 32px 0 64px;
}

.gs-hero {
  padding: 16px;
}

.gs-hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 900px) {
  .gs-hero-inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    align-items: stretch;
  }
}

.gs-hero-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
}

.gs-hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.gs-hero-title {
  font-size: clamp(26px, 3.2vw, 32px);
  line-height: 1.2;
  font-weight: 800;
  color: #111827;
  margin: 0;
}

.gs-hero-title .accent {
  color: #2563eb;
}

.gs-hero-text {
  margin: 4px 0 0;
  color: #4b5563;
  font-size: 15px;
  max-width: 34rem;
}

.gs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.gs-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 20px rgba(37, 99, 235, 0.25);
}

.gs-btn-primary:hover {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
}

.gs-link-button {
  border: none;
  background: transparent;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  padding: 0 4px;
}

.gs-link-button:hover {
  text-decoration: underline;
}

.gs-radius-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #6b7280;
}

.gs-radius-row .label {
  font-weight: 500;
}

.gs-radius-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}

.gs-radius-pill.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

/* Right hero card */

.gs-hero-right {
  display: flex;
  align-items: stretch;
}

.gs-service-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.gs-service-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-circle {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.service-text .service-name {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
}

.service-text .service-sub {
  font-size: 12px;
  color: #6b7280;
}

.lang-pill {
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  padding: 6px 10px;
  font-size: 12px;
  color: #374151;
  background: #f9fafb;
}

.gs-service-body p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.feature-pill {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.35;
}

.feature-pill .title {
  font-weight: 600;
  color: #111827;
}

.feature-pill .caption {
  color: #6b7280;
}

.gs-service-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.qr-placeholder {
  width: 86px;
  height: 86px;
  border-radius: 18px;
  border: 1px dashed #d1d5db;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #9ca3af;
  background: #f9fafb;
}

.qr-caption {
  font-size: 12px;
  color: #6b7280;
}

/* Sections & gym cards */

.gs-section {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 16px;
}

.gs-section-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.gs-section-header .muted {
  font-size: 13px;
  color: #6b7280;
}

.gs-gyms-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 720px) {
  .gs-gyms-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.gs-gym-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.gs-gym-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.gs-gym-card .image-wrap {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
}

.gs-gym-card img,
.gs-gym-card .image-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-gym-card .image-placeholder {
  display: grid;
  place-items: center;
  background: #111827;
  color: #f9fafb;
  font-weight: 600;
}

.gs-gym-card .gym-body {
  padding: 10px 12px 12px;
}

.gs-gym-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
}

.gs-gym-card .gym-caption {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.gs-gym-card .gym-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #4b5563;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gs-empty {
  border-radius: 14px;
  border: 1px dashed #d1d5db;
  background: #f9fafb;
  padding: 18px;
  font-size: 13px;
  color: #6b7280;
}

/* Steps */

.gs-steps {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .gs-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-body h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.step-body p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

/* ==== GymSpace home listing (nearby gyms) ==== */
  
.gs-home.gs-home-list {
  background: #f5f5f7;
  padding: 16px 16px 32px;
}

.gs-list-header {
  max-width: 1240px;
  margin: 0 auto 16px;
}

.gs-list-header-inner {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.gs-breadcrumb {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}

.gs-list-title {
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 4px;
  font-weight: 700;
}

.gs-list-subtitle {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.gs-search-bar {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gs-search-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gs-search-left .label {
  font-size: 13px;
  color: #4b5563;
}

.gs-radius-group {
  display: inline-flex;
  gap: 4px;
  padding: 2px;
  border-radius: 9999px;
  background: #f3f4f6;
}

.gs-radius-pill {
  border: none;
  background: transparent;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  color: #000000;
}

.gs-radius-pill.is-active {
  background: #2563eb;
  color: #ffffff;
}

.gs-search-right {
  flex-shrink: 0;
}

.gs-btn-primary {
  border: none;
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.gs-btn-primary:hover {
  background: #1d4ed8;
}

/* Layout: filters + results */
.gs-layout {
  max-width: 1240px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: flex-start;
  gap: 20px;
}

.gs-filters-panel {
  width: 260px;
  flex-shrink: 0;
}

.gs-filters-inner {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 16px 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.filters-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
}

.filter-block {
  margin-bottom: 16px;
}

.filter-block h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
}

.filter-toggle,
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #4b5563;
}

.filter-block select {
  width: 100%;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
}

.filters-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: #9ca3af;
}

/* Results section */
.gs-results-section {
  flex: 1;
}

.gs-section-header {
  margin-bottom: 12px;
}

.results-header-main h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}

.results-header-main .muted {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.gs-gyms-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gs-gyms-list .gs-gym-card {
  display: flex !important;
  text-decoration: none !important;
  color: inherit;
}

.gs-gym-card-large {
  flex: 1 1 auto;
  gap: 16px;
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  align-items: stretch;
}

.gs-gym-card-large:hover {
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.gym-card-image {
  width: 260px;
  height: 170px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #6b7280;
}

.gym-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overrides for nearby-gyms list cards so image placeholders are not full-screen */
.gs-gyms-list .gym-card-image {
  position: relative;
}

.gs-gyms-list .gym-card-image img,
.gs-gyms-list .gym-card-image .image-placeholder {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gym-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gym-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.gym-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.gym-card-price {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  white-space: nowrap;
}

.gym-card-caption {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.gym-card-meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
}

.gym-card-meta .meta-item::before {
  content: "•";
  margin-right: 4px;
}

.gs-empty {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  color: #6b7280;
  border: 1px dashed #e5e7eb;
}

/* Responsive tweaks */
@media (max-width: 960px) {
  .gs-home.gs-home-list {
    padding: 8px 8px 24px;
  }

  .gs-list-header-inner {
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .gs-layout {
    display: block !important;
    max-width: 100%;
    padding: 0 8px;
  }

  .gs-filters-panel {
    width: 100%;
  }

  .gs-filters-inner {
    border-radius: 8px;
  }

  .gs-gym-card-large {
    flex-direction: column;
  }

  .gym-card-image {
    width: 100%;
    height: 180px;
  }
}