/* Family Fun Oman — playful, warm, mobile-first */
:root {
  --sun: #FF8A3D;
  --sun-deep: #F06A1D;
  --sea: #00A8A8;
  --sea-deep: #007D7D;
  --coral: #FF5E6C;
  --palm: #57B368;
  --banana: #FFC93C;
  --sky: #BFEFFF;
  --sand: #FFF7EC;
  --card: #FFFFFF;
  --ink: #33302E;
  --ink-soft: #6B655F;
  --radius: 22px;
  --shadow: 0 6px 20px rgba(80, 50, 20, .10);
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .4em; }
a { color: var(--sea-deep); }
img { display: block; max-width: 100%; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 16px;
  background: #fffdf8ee; backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--banana);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.logo-sun { font-size: 26px; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); white-space: nowrap; }
.logo-text em { font-style: normal; color: var(--sun-deep); }
.topnav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.nav-link {
  font-weight: 800; text-decoration: none; color: var(--ink);
  padding: 7px 12px; border-radius: 999px; font-size: 14.5px; white-space: nowrap;
}
@media (max-width: 520px) {
  .logo-sun { font-size: 22px; }
  .logo-text { font-size: 17px; }
  .nav-link { padding: 6px 8px; font-size: 13.5px; }
}
.nav-link:hover { background: var(--sky); }
.inline-form { display: inline; }
.as-button { border: 0; background: none; font: inherit; cursor: pointer; }

main { max-width: 1180px; margin: 0 auto; padding: 0 16px 40px; }

/* ---------- hero ---------- */
.hero {
  position: relative; text-align: center;
  padding: 46px 10px 30px; overflow: visible;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800;
  color: var(--ink); position: relative; z-index: 2;
}
.squiggle {
  color: var(--sun-deep);
  text-decoration: underline wavy var(--sea) 4px;
  text-underline-offset: 8px;
}
.hero-sub { position: relative; z-index: 2; color: var(--ink-soft); font-size: 1.1rem; max-width: 520px; margin: 10px auto 22px; }
.hero-blobs { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.blob { position: absolute; border-radius: 50%; opacity: .5; filter: blur(2px); }
.blob-1 { width: 180px; height: 180px; background: var(--sky); top: -30px; left: -40px; }
.blob-2 { width: 120px; height: 120px; background: #FFE3B3; right: -20px; top: 40px; }
.blob-3 { width: 90px; height: 90px; background: #FFD5D9; left: 12%; bottom: -10px; }
.hero-emoji { position: absolute; font-size: 34px; animation: bob 4s ease-in-out infinite; }
.he-1 { left: 6%; top: 30%; animation-delay: -1s; }
.he-2 { right: 8%; top: 18%; animation-delay: -2s; }
.he-3 { right: 14%; bottom: 8%; animation-delay: -.5s; }
.he-4 { left: 15%; top: 2%; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(4deg); } }
@media (max-width: 700px) {
  .hero-emoji { font-size: 22px; }
  .he-2 { right: 2%; top: 4%; }
  .he-4 { display: none; }
}

.hero-search {
  position: relative; z-index: 2;
  display: flex; gap: 8px; max-width: 560px; margin: 0 auto 20px;
  background: #fff; border-radius: 999px; padding: 7px;
  box-shadow: var(--shadow); border: 3px solid var(--sea);
}
.hero-search input {
  flex: 1; border: 0; outline: none; font: inherit; font-size: 1.05rem;
  padding: 8px 14px; border-radius: 999px; background: transparent; min-width: 0;
}
.hero-search button {
  border: 0; background: var(--sun); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 1rem; padding: 10px 20px; border-radius: 999px; cursor: pointer;
  white-space: nowrap;
}
.hero-search button:hover { background: var(--sun-deep); }

.cat-chips {
  position: relative; z-index: 2;
  display: flex; gap: 10px; justify-content: flex-start; overflow-x: auto;
  padding: 6px 4px 14px; scrollbar-width: none;
}
.cat-chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .cat-chips { flex-wrap: wrap; justify-content: center; overflow: visible; } }
.cat-chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 86px; text-decoration: none; color: var(--ink);
  font-weight: 800; font-size: 13px; text-align: center;
}
.cat-emoji {
  display: grid; place-items: center; width: 62px; height: 62px; font-size: 28px;
  background: color-mix(in srgb, var(--chip) 22%, white); border: 3px solid var(--chip);
  border-radius: 22px; box-shadow: var(--shadow); transition: transform .15s;
}
.cat-chip:hover .cat-emoji { transform: scale(1.08) rotate(-3deg); }

/* ---------- rails & cards ---------- */
.rail-section { margin: 26px 0; }
.rail-section h2 { font-size: 1.45rem; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 290px);
  gap: 16px; overflow-x: auto; padding: 4px 4px 14px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.rail > .card { scroll-snap-align: start; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px; padding: 10px 0;
}

.card {
  position: relative; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(80,50,20,.16); }
.card-photo { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sky); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo-empty { display: grid; place-items: center; height: 100%; font-size: 64px; }
.badge {
  position: absolute; font-weight: 800; font-size: 13px;
  padding: 5px 11px; border-radius: 999px; color: #fff;
}
.badge-price { left: 10px; bottom: 10px; background: var(--sun-deep); }
.badge-free { background: var(--palm); }
.badge-open { right: 10px; bottom: 10px; background: var(--sea); }
.heart {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: #ffffffd9; color: #c9c1b8; font-size: 20px; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .12s, color .12s;
}
.heart:hover { transform: scale(1.12); }
.heart.is-on { color: var(--coral); }
.heart-lg { position: static; width: 46px; height: 46px; font-size: 24px; flex: none; }
.card-body { padding: 12px 14px 14px; }
.card-title { font-size: 1.12rem; margin: 0 0 2px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-tagline {
  margin: 0 0 8px; color: var(--ink-soft); font-size: .92rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: #F4EDE1; border-radius: 999px; padding: 4px 10px;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
}
.chip-solid { background: color-mix(in srgb, var(--chip) 25%, white); border: 2px solid var(--chip); }
.chip-check { background: #FFF1D6; }
.chip-open { background: #D9F3E5; }
.chip-closed { background: #FFE1E4; }
.chip-unknown { background: #FFF1D6; }
.chip-book { background: #E4E9FF; }
.chip-yes { background: #D9F3E5; }
.chip-no { background: #F1EDE7; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--sea); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: .98rem; padding: 10px 18px; border-radius: 999px;
}
.btn:hover { background: var(--sea-deep); }
.btn-big { font-size: 1.15rem; padding: 13px 28px; background: var(--sun); }
.btn-big:hover { background: var(--sun-deep); }
.btn-ghost { background: #fff; color: var(--sea-deep); border: 2px solid var(--sea); }
.btn-ghost:hover { background: var(--sky); }
.btn-act { margin: 0; }
.btn-wa { background: #25D366; }
.btn-wa:hover { background: #1DA851; }
.btn-book { background: var(--coral); }
.btn-book:hover { background: #E84957; }

.cta-strip {
  text-align: center; background: linear-gradient(120deg, var(--sea) 0%, #33bdbd 100%);
  color: #fff; border-radius: var(--radius); padding: 34px 18px; margin: 34px 0;
}
.cta-strip h2 { color: #fff; }

/* ---------- list page ---------- */
.list-head { padding-top: 22px; }
.list-head h1 { font-size: 2rem; }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.search-row input[type=search] {
  flex: 1; min-width: 180px; font: inherit; padding: 10px 16px;
  border-radius: 999px; border: 2px solid var(--sea); outline: none; background: #fff;
}
.filter-drawer {
  display: none; gap: 12px; flex-wrap: wrap; align-items: end;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-top: 12px;
}
.filter-drawer.open { display: flex; }
.filter-drawer label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 13.5px; }
.filter-drawer label.check { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; }
.filter-drawer select, .filter-drawer input[type=number] {
  font: inherit; padding: 8px 10px; border-radius: 12px; border: 2px solid #E8DFD2; background: #fff; min-width: 120px;
}
.sort-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.count { font-weight: 800; color: var(--ink-soft); }
.sort { font-weight: 700; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.sort select { font: inherit; padding: 6px 8px; border-radius: 10px; border: 2px solid #E8DFD2; }
.empty { color: var(--ink-soft); font-size: 1.05rem; padding: 30px 6px; }

/* ---------- detail ---------- */
.detail { padding-top: 18px; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(88vw, 640px);
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  border-radius: var(--radius); scrollbar-width: thin;
}
.gallery-single { grid-auto-columns: 100%; }
.gallery-item { margin: 0; scroll-snap-align: center; }
.gallery-item img { width: 100%; height: min(52vw, 420px); object-fit: cover; border-radius: var(--radius); }
.gallery-empty { display: grid; place-items: center; height: 260px; font-size: 90px; background: var(--sky); border-radius: var(--radius); }

.detail-head { padding: 18px 2px 6px; }
.detail-title { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.detail-title h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin: 0; }
.detail-tagline { color: var(--ink-soft); font-size: 1.12rem; margin: 6px 0 12px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge-row .chip { font-size: 13.5px; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; }

.detail-cols { display: grid; gap: 22px; margin-top: 22px; }
@media (min-width: 900px) { .detail-cols { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.detail-main h2 { font-size: 1.3rem; margin-top: 26px; }
.detail-main h2:first-child { margin-top: 0; }
.prose { max-width: 62ch; }
.kid-fit { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tips { padding-left: 20px; }
.tips li { margin: 6px 0; }

.side-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 16px;
}
.side-card h2 { font-size: 1.15rem; }
.free-line { font-weight: 800; color: var(--palm); font-size: 1.2rem; margin: 4px 0; }
.price-table, .hours-table { width: 100%; border-collapse: collapse; }
.price-table td, .hours-table td { padding: 7px 4px; border-bottom: 1px dashed #EFE6D8; vertical-align: top; }
.price-table tr:last-child td, .hours-table tr:last-child td { border-bottom: 0; }
.price-table small { display: block; color: var(--ink-soft); font-weight: 400; }
.price-amt { text-align: right; font-weight: 800; white-space: nowrap; }
.hours-table .today td { font-weight: 800; color: var(--sea-deep); }
.side-note { color: var(--ink-soft); font-size: .9rem; margin: 8px 0 0; }
#map { height: 240px; border-radius: 14px; margin: 10px 0; }
.map-links { font-size: .92rem; font-weight: 700; }
.trust { font-weight: 800; margin: 0; }
.trust-confirmed { color: var(--palm); }
.trust-corroborated { color: var(--sea-deep); }
.trust-check { color: var(--sun-deep); }
.sources { padding-left: 18px; font-size: .85rem; }

/* personal */
.personal { background: #FFFDF4; border: 2px dashed var(--banana); border-radius: var(--radius); padding: 18px; margin-top: 28px; }
.personal-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.toggle {
  border: 2px solid #E8DFD2; background: #fff; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 14px; padding: 8px 14px; cursor: pointer;
}
.toggle.is-on { background: var(--sea); border-color: var(--sea); color: #fff; }
.stars { margin-bottom: 10px; }
.star { border: 0; background: none; font-size: 26px; color: #DED5C8; cursor: pointer; padding: 2px; }
.star.is-on { color: var(--banana); }
.note-box {
  width: 100%; min-height: 80px; font: inherit; border-radius: 14px;
  border: 2px solid #E8DFD2; padding: 10px 12px; resize: vertical; background: #fff;
}
.note-save { margin-top: 8px; }
.note-status { margin-left: 10px; font-weight: 700; color: var(--palm); }
.login-nudge { margin-top: 26px; font-weight: 700; }

/* login */
.login-box { max-width: 400px; margin: 40px auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.login-box label { display: block; font-weight: 800; margin: 14px 0 4px; }
.login-box input { width: 100%; font: inherit; padding: 10px 12px; border-radius: 12px; border: 2px solid #E8DFD2; }
.login-box .btn { margin-top: 18px; width: 100%; }
.form-error { color: var(--coral); font-weight: 700; }

/* footer */
.footer { text-align: center; padding: 26px 16px 34px; color: var(--ink-soft); }
.footer p { margin: 4px 0; font-weight: 700; }
.footer-small { font-size: .85rem; font-weight: 400; }
