:root {
  --bg: #090909;
  --panel: #151515;
  --panel-2: #1d1d1d;
  --text: #f7f2f2;
  --muted: #b7adad;
  --red: #d71920;
  --red-dark: #930f14;
  --line: rgba(255, 255, 255, 0.11);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 9, 9, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 18px 0 22px;
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  max-width: 560px;
}

.brand-copy {
  display: grid;
  gap: 3px;
  line-height: 1.25;
}

.brand-copy small {
  color: #ffb8bb;
  font-size: 12px;
  font-weight: 700;
}

.brand-apps,
.official-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.brand-apps img,
.official-line img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  padding: 2px;
}

.official-line img {
  width: 18px;
  height: 18px;
}

.brand-logo {
  width: 116px;
  height: 116px;
  object-fit: contain;
  border-radius: 50%;
  background: #050505;
  border: 3px solid var(--red);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.18), 0 12px 38px rgba(215, 25, 32, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 26px;
}

.nav-links a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(215, 25, 32, 0.18);
}

.nav-links .admin-login-nav {
  background: var(--red);
  color: #fff;
  font-weight: 600;
}

.nav-links .admin-login-nav:hover {
  background: var(--red-dark);
}

.button,
button {
  border: 0;
  border-radius: 6px;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: #242424;
  border: 1px solid var(--line);
}

.button:hover,
button:hover {
  background: #f1242c;
}

.map-rating-panel {
  display: grid;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.map-rating-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.map-rating-summary h2,
.map-rating-summary p {
  margin: 0;
}

.rating-score {
  min-width: 160px;
  display: grid;
  gap: 4px;
  justify-items: end;
  color: #fff;
  text-align: right;
}

.rating-score strong {
  font-size: 2rem;
  line-height: 1;
}

.rating-stars {
  color: #ffc94d;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.rating-score small {
  color: var(--muted);
  font-weight: 700;
}

.map-frame {
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
}

.map-frame iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 22px;
  align-items: start;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.review-card {
  display: grid;
  gap: 12px;
  min-height: 190px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.review-card-head strong,
.review-card-head span {
  display: block;
}

.review-card-head span,
.review-card small {
  color: var(--muted);
  font-size: 13px;
}

.review-stars {
  flex: 0 0 auto;
  color: #ffc94d;
  letter-spacing: 0;
  white-space: nowrap;
}

.review-card p {
  margin: 0;
  color: #e9dddd;
}

.review-form {
  position: sticky;
  top: 210px;
}

.hero {
  min-height: calc(100vh - 190px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.94), rgba(9, 9, 9, 0.62) 52%, rgba(9, 9, 9, 0.72)),
    url("../images/ads/hero-spa.svg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 42px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd5d7;
  background: rgba(215, 25, 32, 0.2);
  border: 1px solid rgba(215, 25, 32, 0.42);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.lead {
  max-width: 680px;
  color: #ddd1d1;
  font-size: 18px;
}

.hero-actions,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 58px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head p {
  max-width: 580px;
  color: var(--muted);
  margin-bottom: 0;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ad-tile {
  min-height: 180px;
  display: flex;
  align-items: end;
  padding: 22px;
  background: #181818 center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ad-tile strong {
  display: block;
  font-size: 22px;
}

.ad-tile span {
  color: #f4cccc;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.featured-therapist-card {
  background: #16171d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.featured-therapist-card:hover {
  transform: translateY(-3px);
  border-color: rgba(77, 140, 255, 0.35);
}

.featured-therapist-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.featured-therapist-name {
  padding: 16px;
  text-align: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.therapist-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.therapist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.18);
}

.therapist-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #262626;
  width: 100%;
}

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

.therapist-info {
  padding: 22px 20px 14px;
  display: grid;
  gap: 10px;
}

.therapist-info h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #ffffff;
}

.therapist-availability,
.therapist-bio,
.therapist-rate,
.therapist-specialties {
  margin: 0;
  color: #d3ced0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.therapist-availability {
  font-weight: 600;
  color: #b7ff9c;
  text-shadow: 0 0 16px rgba(91, 255, 139, 0.25);
}

.therapist-card.availability-glow {
  border-color: rgba(91, 255, 139, 0.35);
  box-shadow: 0 0 18px rgba(91, 255, 139, 0.18), 0 30px 80px rgba(0, 0, 0, 0.18);
}

.therapist-rate {
  color: #ffdcdc;
  font-weight: 700;
}

.therapist-rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.86);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.therapist-rank-badge.top-rank {
  background: #d33b5f;
}

.therapist-bookings {
  margin: 0;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
}

.therapist-specialties {
  color: #bbb3b3;
  font-size: 0.9rem;
}

.therapist-actions {
  padding: 18px 20px 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.therapist-actions button {
  flex: 1 1 auto;
}

.more-images-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #007bff;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.35);
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d, #495057);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #495057, #343a40);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}


.availability-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #e3ffe3;
  background: rgba(68, 210, 113, 0.16);
  border: 1px solid rgba(68, 210, 113, 0.35);
  box-shadow: 0 0 18px rgba(68, 210, 113, 0.24);
  font-size: 13px;
  font-weight: 700;
}

.price {
  color: #fff;
  font-weight: 800;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.filter-input,
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #101010;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.filters .filter-input,
.filters select {
  max-width: 260px;
}

.form-panel,
.info-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field.full {
  grid-column: 1 / -1;
}

.field-note {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
}

.therapist-selection {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.therapist-selection .therapist-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--background);
}

.therapist-selection .therapist-row.selected {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.06);
}

.therapist-selection .selection-summary {
  font-size: 0.95rem;
  color: var(--muted);
}

.therapist-selection .therapist-meta {
  display: grid;
  gap: 4px;
}

.therapist-selection .therapist-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.therapist-selection button {
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

input[type="date"],
input[type="time"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  color-scheme: dark;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="date"]:focus,
input[type="time"]:focus {
  outline: none;
  border-color: rgba(255, 153, 51, 0.95);
  box-shadow: 0 0 16px rgba(255, 153, 51, 0.25);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.4);
}

.field-note {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
}

.therapist-selection button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #eadede;
  font-weight: 700;
  font-size: 14px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.notice {
  color: var(--muted);
  margin-top: 12px;
}

.contact-list,
.settings-list {
  display: grid;
  gap: 10px;
}

.contact-list-rich {
  grid-template-columns: 1fr;
}

.contact-item,
.settings-item {
  padding: 12px;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-contact {
  display: grid;
  grid-template-columns: 42px 1fr 116px;
  gap: 12px;
  align-items: center;
}

.app-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
}

.app-qr {
  width: 116px;
  height: 116px;
  padding: 6px;
  background: #fff;
  border-radius: 8px;
}

.app-qr img {
  width: 100%;
  height: 100%;
}

.map-link {
  color: #ffb8bb;
  font-weight: 700;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-tab {
  border-radius: 6px 6px 0 0;
  background: #1b1b1b;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.admin-tab.active {
  background: var(--red-dark);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.business-logo-preview {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid var(--red);
  background: #050505;
  padding: 8px;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.image-preview-item {
  display: grid;
  gap: 7px;
  padding: 10px;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.image-preview-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.image-preview-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.status {
  min-height: 24px;
  color: #ffb8bb;
  font-weight: 700;
}

.terms-box {
  max-height: 360px;
  overflow: auto;
  padding: 18px;
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.terms-box h2 {
  font-size: 24px;
}

.terms-box p {
  color: var(--muted);
  font-size: 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.checkbox-label input {
  width: auto;
  min-height: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #050505;
}

.admin-locked main,
.admin-locked footer {
  display: none;
}

/* Admin Login Modal - Full Screen Container */
.admin-login-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-login-modal .modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.92);
}

.admin-login-modal .modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.admin-login-modal h2 {
  margin: 0 0 24px 0;
  font-size: 28px;
  color: var(--text);
}

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

.admin-login-modal label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.admin-login-modal input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}

.admin-login-modal input:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(215, 25, 32, 0.08);
}

.admin-login-modal .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.admin-login-modal button {
  flex: 1;
  min-height: 44px;
  padding: 0 16px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.admin-login-modal button:hover {
  background: var(--red-dark);
}

.admin-login-modal #cancelLogin {
  flex: 0.5;
  background: var(--muted);
  color: var(--bg);
}

.admin-login-modal #cancelLogin:hover {
  background: #c9bcbc;
}

.admin-login-modal #loginStatus {
  margin-top: 16px;
  min-height: 20px;
  color: #ffb8bb;
  font-weight: 600;
  font-size: 13px;
}

.admin-login-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.76);
}

.admin-login-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10001;
  background: #ff4081;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.admin-login-button:hover {
  opacity: 0.95;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.84);
}

.gallery-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.gallery-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  font-size: 28px;
  z-index: 1;
}

.gallery-main {
  display: grid;
  place-items: center;
  background: #080808;
  border-radius: 8px;
  min-height: 360px;
}

.gallery-main img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
}

.gallery-info {
  margin-top: 14px;
}

.gallery-info h2 {
  font-size: 28px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}

.gallery-thumb {
  min-height: 86px;
  padding: 0;
  background: #101010;
  border: 2px solid transparent;
  overflow: hidden;
}

.gallery-thumb.active {
  border-color: var(--red);
}

.gallery-thumb img {
  width: 100%;
  height: 86px;
  object-fit: cover;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .site-header {
    padding: 14px 0 18px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 0;
  }

  .nav-links {
    justify-content: flex-start;
    padding-top: 8px;
  }

  .app-contact {
    grid-template-columns: 42px 1fr;
  }

  .app-qr {
    grid-column: 1 / -1;
  }

  .hero {
    min-height: 680px;
  }

  .section-head,
  .map-rating-summary,
  .reviews-layout,
  .split {
    display: block;
  }

  .review-form {
    position: static;
    margin-top: 18px;
  }

  .rating-score {
    justify-items: start;
    margin-top: 16px;
    text-align: left;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 280px;
    height: 280px;
  }

  .grid,
  .ad-grid,
  .form-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .form-panel,
  .info-panel {
    margin-bottom: 18px;
  }
}
