:root {
  color-scheme: light;
  --bg: #fdf7fb;
  --card: #ffffff;
  --pink: #d6438a;
  --pink-dark: #a02b78;
  --pink-soft: #fbe7f2;
  --gold: #c9a24b;
  --text: #2b2230;
  --muted: #8b7f8a;
  --border: #f0dfe9;
  --item-sep: #faf3f8;
  --shadow: 0 6px 20px rgba(214, 67, 138, 0.08);
  --wa: #25d366;
  --font-body: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
}

/* ---------- Dark theme ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161016;
  --card: #221a27;
  --pink: #ec74b4;
  --pink-dark: #cf5a9c;
  --pink-soft: #35263a;
  --gold: #dcbb6b;
  --text: #f2e8f0;
  --muted: #b6a6b3;
  --border: #3a2c41;
  --item-sep: rgba(255, 255, 255, 0.06);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: var(--font-head); }

/* Root is a full-height column so the footer sinks to the bottom
   even when the page content is short. */
#root {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.main { flex: 1 0 auto; width: 100%; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 58px 0 54px;
  background:
    radial-gradient(1100px 380px at 50% -10%, rgba(255,255,255,0.18), transparent 60%),
    linear-gradient(135deg, #e05aa0 0%, var(--pink) 45%, var(--pink-dark) 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 22px;
  background: var(--bg);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 3px;
  font-size: 0.72rem; font-weight: 600;
  color: #ffe9c9; opacity: 0.95; margin-bottom: 8px;
}
.hero h1 {
  font-size: 2.9rem; line-height: 1.1; font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.hero-sub {
  max-width: 560px; margin: 12px auto 0;
  font-size: 1rem; opacity: 0.95;
}
.hero-cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin: 24px 0 18px;
}
.hero .contact { font-size: 0.85rem; opacity: 0.9; }
.qr-btn {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.qr-btn:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- Dark-mode toggle (fixed top-right) ---------- */
.theme-toggle {
  position: fixed;
  top: 14px; right: 14px;
  z-index: 45;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; line-height: 1;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s, transform 0.15s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.32); transform: scale(1.06); }
/* On the dark page background it needs a solid, visible surface */
:root[data-theme="dark"] .theme-toggle {
  background: var(--card);
  border-color: var(--border);
  color: var(--gold);
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost {
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600;
  padding: 12px 24px; border-radius: 30px;
  cursor: pointer; border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary {
  background: #fff; color: var(--pink-dark);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.24); }
.btn-ghost {
  background: rgba(255,255,255,0.12); color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.btn-primary.block { width: 100%; justify-content: center; background: var(--wa); color: #fff; }
.btn-primary.block:hover { background: #1fbe5b; }

/* ---------- Section title ---------- */
.section-title {
  text-align: center;
  font-size: 1.7rem; color: var(--pink-dark);
  margin: 34px 0 4px;
  position: relative;
}
.section-title::after {
  content: ""; display: block; width: 54px; height: 3px;
  margin: 10px auto 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--pink), var(--gold));
}

/* ---------- Search ---------- */
.search-wrap { margin: 22px 0 6px; position: relative; }
.search-input {
  width: 100%;
  padding: 14px 48px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  outline: none;
}
.search-input::placeholder { color: var(--muted); }
.search-input:focus { border-color: var(--pink); }
.search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--pink); font-size: 1.05rem;
}
.search-clear {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--pink-soft); color: var(--pink);
  border: none; border-radius: 50%;
  font-size: 0.8rem; line-height: 1; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.search-clear:hover { background: var(--pink); color: #fff; transform: translateY(-50%) scale(1.08); }
.search-hint { font-size: 0.78rem; color: var(--muted); margin: 6px 4px 0; }

/* ---------- Grid of clickable tiles ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 28px;
  margin: 32px 0 48px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 30px 18px 26px;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
/* Soft pink wash along the top of every tile */
.tile::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 74px;
  background: linear-gradient(135deg, var(--pink-soft), var(--card));
  z-index: 0;
}
.tile > * { position: relative; z-index: 1; }
.tile:hover,
.tile:focus-visible {
  transform: translateY(-5px);
  border-color: var(--pink);
  box-shadow: 0 16px 34px rgba(214, 67, 138, 0.22);
  outline: none;
}
.tile:active { transform: translateY(-2px); }
.tile-icon {
  font-size: 2.3rem; line-height: 1;
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(214, 67, 138, 0.14);
}
/* Real photo variant of the tile media */
.tile-photo {
  width: 92px; height: 92px; border-radius: 50%;
  overflow: hidden; background: var(--pink-soft);
  border: 3px solid var(--card);
  box-shadow: 0 6px 16px rgba(214, 67, 138, 0.2);
}
.tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tile-title { font-weight: 700; font-size: 1.08rem; color: var(--pink); }
.tile-count {
  font-size: 0.74rem; color: var(--pink); font-weight: 600;
  background: var(--pink-soft);
  padding: 4px 12px; border-radius: 14px;
}

/* Gentle entrance for the tiles */
.tile {
  animation: tileIn 0.4s ease both;
}
.tile-grid .tile:nth-child(2) { animation-delay: 0.05s; }
.tile-grid .tile:nth-child(3) { animation-delay: 0.1s; }
.tile-grid .tile:nth-child(4) { animation-delay: 0.15s; }
@keyframes tileIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .tile { animation: none; }
}

/* ---------- Category popup ---------- */
.cat-modal {
  width: 100%;
  max-width: 460px;
  text-align: left;
  padding: 0;
  overflow: hidden;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  animation: catModalIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes catModalIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-modal, .modal-overlay { animation: none; }
}
.cat-modal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 18px;
  color: #fff;
  background:
    radial-gradient(600px 160px at 20% -40%, rgba(255,255,255,0.12), transparent 70%),
    linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 55%, #7e1f5c 100%);
}
.cat-modal-head .icon {
  font-size: 1.4rem;
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}
.cat-modal-head h3 {
  font-size: 1.3rem; margin: 0;
  color: #fff; font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.cat-close {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-size: 1rem; color: #fff; line-height: 1;
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, transform 0.15s;
}
.cat-close:hover { background: rgba(255, 255, 255, 0.34); transform: rotate(90deg); }
.cat-modal-body { overflow-y: auto; padding: 6px 0; }
.cat-modal-body .item { transition: background 0.15s; }
.cat-modal-body .item:hover { background: var(--item-sep); }
.cat-modal-foot {
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--card);
}

/* ---------- Legacy box (used by search results) ---------- */
.box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.box-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  background: var(--pink-soft);
  border-bottom: 1px solid var(--border);
}
.box-head .icon { font-size: 1.4rem; }
.box-head h2 { font-size: 1.1rem; color: var(--pink); }
.box-head .count { margin-left: auto; font-size: 0.78rem; color: var(--muted); }

.group-label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--pink);
  padding: 12px 18px 4px;
}

.item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--item-sep);
  text-align: left;
}
.item:last-child { border-bottom: none; }
/* Left block (name + desc) grows and stays left-aligned */
.item > :first-child { flex: 1 1 auto; min-width: 0; text-align: left; }
.item .name { font-weight: 600; font-size: 0.95rem; }

/* Item that links out to its own URL */
a.item-link {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
a.item-link:hover { background: var(--pink-soft); }
a.item-link .name { color: var(--pink); }
.item .ext { font-size: 0.72rem; margin-left: 6px; opacity: 0.7; }

.item .desc { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.item .price {
  font-weight: 700; color: var(--pink); white-space: nowrap;
  font-size: 0.95rem; align-self: center;
  flex: 0 0 auto; text-align: right;
}

/* ---------- Search results view ---------- */
.results-head { font-size: 0.9rem; color: var(--muted); margin: 6px 0 14px; }
.result-cat { font-size: 0.75rem; color: var(--muted); }
.no-results { text-align: center; color: var(--muted); padding: 50px 0; }

/* ---------- QR modal ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(28, 18, 32, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 50;
  padding: 16px;
  animation: overlayIn 0.22s ease both;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--card); color: var(--text); border-radius: 18px; padding: 26px 26px 22px;
  text-align: center; max-width: 320px; width: 100%;
}
.modal h3 { color: var(--pink); margin-bottom: 4px; }
.modal p { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; }
.modal .qr-holder { display: flex; justify-content: center; padding: 8px; }
.modal .url { font-size: 0.72rem; color: var(--muted); word-break: break-all; margin-top: 14px; }
.modal .close {
  margin-top: 16px; background: var(--pink); color: #fff; border: none;
  padding: 9px 22px; border-radius: 20px; cursor: pointer; font-size: 0.9rem;
}

/* ---------- Testimonials ---------- */
.testimonials { margin: 8px 0 48px; }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 22px;
}
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 20px;
}
.testi-stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; margin-bottom: 8px; }
.testi-card blockquote { font-size: 0.95rem; color: var(--text); font-style: italic; }
.testi-card figcaption { margin-top: 12px; font-weight: 600; color: var(--pink); font-size: 0.88rem; }

/* ---------- Floating WhatsApp booking button ---------- */
.wa-fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 14px 20px; border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55); }

.footer {
  flex-shrink: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--card);
}

/* ---------- Tablet ---------- */
@media (max-width: 760px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  .hero { padding: 40px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 0.9rem; }
  .hero .contact { font-size: 0.76rem; }
  .btn-primary, .btn-ghost { padding: 11px 18px; font-size: 0.9rem; }
  .section-title { font-size: 1.4rem; }
  .container { padding: 0 14px; }
  .tile-grid { gap: 14px; margin: 24px 0 36px; }
  .tile { padding: 24px 12px 20px; border-radius: 18px; gap: 12px; }
  .tile::before { height: 62px; }
  .tile-icon { width: 58px; height: 58px; font-size: 1.9rem; }
  .tile-photo { width: 78px; height: 78px; }
  .tile-title { font-size: 1rem; }
  .search-input { padding: 13px 44px; font-size: 1rem; } /* >=16px avoids iOS zoom */

  /* Category popup becomes a bottom sheet on phones */
  .cat-overlay { align-items: flex-end; padding: 0; }
  .cat-modal {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    animation: sheetIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes sheetIn {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
  .wa-fab { padding: 12px 16px; font-size: 0.88rem; right: 14px; }
}

/* Very small screens: single column so nothing feels cramped */
@media (max-width: 340px) {
  .tile-grid { grid-template-columns: 1fr; }
}
