:root {
  --yellow: #FFCC00;
  --yellow-soft: #FFE45C;
  --yellow-deep: #F5B800;
  --ink: #1F1A0A;
  --ink-2: #3D3620;
  --muted: #6B6350;
  --paper: #FFFDF2;
  --card: #FFFFFF;
  --line: #EFE7CE;
  --green: #18A058;
  --shadow: 0 6px 24px rgba(245, 184, 0, 0.16);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--yellow-deep); }

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

main { display: block; }

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

/* ---------- Header ---------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
.topbar a { color: var(--yellow); font-weight: 600; border-bottom: 1px dotted var(--yellow); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.brand-name span { color: var(--yellow-deep); }

.nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--yellow-deep); }
.btn-download {
  background: var(--yellow);
  color: var(--ink) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-download:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-register {
  background: transparent;
  color: var(--ink) !important;
  border: 2px solid var(--yellow-deep);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-register:hover {
  background: var(--yellow);
  color: var(--ink) !important;
  transform: translateY(-1px);
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(255, 204, 0, 0.55), transparent 60%),
    radial-gradient(700px 380px at 0% 20%, rgba(255, 228, 92, 0.5), transparent 55%),
    linear-gradient(180deg, #FFF3C2 0%, var(--paper) 100%);
  padding: 64px 0 84px;
}
.hero-inner { max-width: 760px; text-align: center; }
.hero h1 {
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  font-weight: 900;
}
.hero h1 em { font-style: normal; color: var(--yellow-deep); }
.hero p.lead {
  margin: 18px auto 0;
  max-width: 620px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-2);
}

.search-wrap { margin: 34px auto 0; max-width: 640px; position: relative; }
.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(245, 184, 0, 0.35);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.search-box:focus-within { border-color: var(--yellow-deep); }
.search-box svg { margin-left: 20px; flex: 0 0 auto; }
.search-box input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 16px 14px;
  font-size: 17px;
  font-family: var(--font);
  background: transparent;
  min-width: 0;
}
.search-box button {
  margin: 6px;
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-box button:hover { background: var(--yellow-deep); }

.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  max-height: 440px;
  max-height: 60vh;
  overflow-y: auto;
  text-align: left;
  z-index: 60;
  display: none;
}
.search-results.open { display: block; }
.search-results a {
  display: block;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.search-results a:last-child { border-bottom: 0; }
.search-results .r-name { font-weight: 700; }
.search-results .r-meta { font-size: 13px; color: var(--muted); }
.search-results .r-count {
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--yellow-deep);
  background: #FFF9E0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
}
.search-results a:hover { background: #FFF9E0; }
.search-none { padding: 18px; color: var(--muted); font-size: 14px; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 26px; font-weight: 900; letter-spacing: -0.5px; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.section-head .eyebrow {
  display: inline-block;
  background: var(--yellow);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.8px; font-weight: 900; }
.section-head p { color: var(--muted); margin-top: 10px; }

/* Province cards */
.grid-provinces { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.card-prov {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-prov:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-prov h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; }
.card-prov h3 .pin { color: var(--yellow-deep); }
.card-prov p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.card-prov .arrow { margin-top: 12px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* Town cards (category pages) */
.grid-towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.card-town {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-town:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--yellow-deep); }
.card-town h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.card-town p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.card-town .more { margin-top: 10px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--yellow-deep); }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.chip:hover { background: var(--yellow); border-color: var(--yellow-deep); color: var(--ink); transform: translateY(-2px); }
.chip b { color: var(--yellow-deep); font-weight: 800; }
.chips-more { display: flex; justify-content: center; margin-top: 28px; }

/* All-categories page */
.grid-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.grid-cats-pop { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 18px; margin-top: 34px; }
.card-cat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.card-cat:hover {
  transform: translateY(-3px);
  border-color: var(--yellow-deep);
  box-shadow: var(--shadow);
}
.card-cat.popular { padding: 22px; }
.card-cat .cat-emoji { font-size: 28px; line-height: 1; margin-bottom: 10px; }
.card-cat.popular .cat-emoji { font-size: 34px; }
.card-cat .cat-emoji-img { display: block; width: 30px; height: 30px; object-fit: contain; margin-bottom: 10px; }
.card-cat.popular .cat-emoji-img { width: 34px; height: 34px; }
.card-cat .cat-name { font-weight: 800; font-size: 16px; line-height: 1.25; }
.card-cat.popular .cat-name { font-size: 18px; }
.card-cat .cat-meta { color: var(--muted); font-size: 13px; }
.card-cat .more { color: var(--yellow-deep); font-weight: 700; font-size: 13px; margin-top: 8px; }
.cat-block { margin-bottom: 30px; }
.cat-letter {
  font-size: 18px;
  font-weight: 900;
  color: var(--yellow-deep);
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

/* Listing cards grid (category pages) */
.grid-listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.card-listing {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-listing:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-listing .cat {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #FFF3C2;
  color: #8A6A00;
  padding: 4px 10px;
  border-radius: 999px;
}
.card-listing h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.3; }
.card-listing .loc { color: var(--muted); font-size: 14px; }
.card-listing .desc {
  color: var(--ink-2);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-listing .more { margin-top: auto; font-weight: 700; font-size: 14px; }

/* CTA banner */
.cta-banner {
  margin: 56px auto 0;
  max-width: 980px;
  background: linear-gradient(120deg, #FFD51F 0%, #FFC400 55%, #F5B800 100%);
  border-radius: 24px;
  padding: 44px 34px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 180px at 90% 0%, rgba(255, 255, 255, 0.45), transparent 60%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 900; letter-spacing: -0.6px; }
.cta-banner p { max-width: 560px; margin: 10px auto 22px; color: var(--ink-2); font-weight: 500; }
.cta-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
}
.cta-features span::before { content: "✓ "; color: var(--green); font-weight: 900; }

/* ---------- Buttons / badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font);
  font-size: 16px;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff !important; box-shadow: var(--shadow-sm); }
.btn-dark:hover { box-shadow: var(--shadow); }
.btn-outline { background: transparent; border: 2px solid var(--ink); color: var(--ink) !important; }

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0D1117;
  color: #fff !important;
  border-radius: 12px;
  padding: 10px 18px;
  text-align: left;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}
.play-badge:hover { transform: translateY(-2px); }
.play-badge small { display: block; font-size: 11px; opacity: 0.75; line-height: 1.1; }
.play-badge strong { display: block; font-size: 16px; line-height: 1.15; }
.play-badge svg { flex: 0 0 auto; }
.play-badge .badge-ico { flex: 0 0 auto; }
.play-badge-alt { background: #1B2229; border: 1px solid #2E363F; box-shadow: none; }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  padding: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--yellow-deep); }
.crumbs span { color: var(--ink-2); }

/* ---------- Page hero (inner) ---------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(255, 204, 0, 0.5), transparent 60%),
    linear-gradient(180deg, #FFF3C2 0%, var(--paper) 100%);
  padding: 42px 0 34px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -1px; }
.page-hero p { color: var(--ink-2); margin-top: 8px; max-width: 720px; }

/* ---------- Listing detail ---------- */
.listing-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: 40px 0 64px;
  align-items: start;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.listing-head .badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.listing-head .badge {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge-cat { background: var(--yellow); color: var(--ink); }
.badge-prov { background: #FFF3C2; color: #8A6A00; }
.badge-pet { background: #E9F7EF; color: #0E7A45; }
.listing-head h1 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -0.8px; font-weight: 900; line-height: 1.15; }
.quick-info { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; color: var(--muted); font-size: 14px; font-weight: 600; }
.quick-info svg { vertical-align: -2px; margin-right: 5px; color: var(--yellow-deep); }

.desc-block { margin-top: 26px; }
.desc-block h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 10px; }
.desc-block p { color: var(--ink-2); font-size: 16px; }

.facts { margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.fact { background: #FFFBEA; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.fact .k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.fact .v { font-weight: 700; font-size: 15px; margin-top: 2px; word-break: break-word; }
.fact .v a { color: var(--yellow-deep); font-weight: 700; }

.side-cta { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.side-cta .panel { text-align: center; }
.side-cta h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.side-cta p { color: var(--muted); font-size: 14px; margin: 8px 0 16px; }
.app-perks { list-style: none; text-align: left; margin: 14px 0 18px; font-size: 14px; font-weight: 600; }
.app-perks li { padding: 5px 0; }
.app-perks li::before { content: "✓ "; color: var(--green); font-weight: 900; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #E9E2C8; padding: 48px 0 96px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.footer a { color: #E9E2C8; font-size: 14px; display: block; padding: 3px 0; }
.footer a:hover { color: var(--yellow); }
.footer .brand { margin-bottom: 12px; }
.footer p { font-size: 14px; color: #C9C1A6; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 34px; padding-top: 20px; font-size: 13px; color: #AFA88F; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(255, 253, 242, 0.97);
  border-top: 2px solid var(--yellow);
  backdrop-filter: blur(6px);
  padding: 10px 14px;
  display: none;
  gap: 12px;
  align-items: center;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}
.mobile-cta .t { flex: 1; font-size: 13px; font-weight: 700; line-height: 1.25; }
.mobile-cta .t span { color: var(--muted); font-weight: 500; }
.mobile-cta a.btn { font-size: 14px; padding: 11px 18px; white-space: nowrap; }

/* Register page has no sticky download bar - it would cover the form */
body.page-register .mobile-cta { display: none; }
body.page-register .footer { padding-bottom: 20px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 90px 20px; }
.notfound .big { font-size: 110px; font-weight: 900; color: var(--yellow-deep); line-height: 1; letter-spacing: -4px; }
.notfound h1 { font-size: 30px; font-weight: 900; margin-top: 8px; }
.notfound p { color: var(--muted); margin: 10px 0 24px; }

/* ---------- Misc ---------- */
.page-list { display: grid; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; }
.no-result { text-align: center; padding: 50px 20px; color: var(--muted); }
.no-result .big { font-size: 64px; font-weight: 900; color: var(--yellow-deep); }

/* ---------- Register page ---------- */
.reg-wrap { max-width: 760px; margin: 0 auto; }
.reg-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 18px;
}
.reg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.reg-field { display: grid; gap: 7px; }
.reg-field label { font-weight: 700; font-size: 14px; }
.reg-field .hint { font-size: 12.5px; color: var(--muted); }
.reg-form input[type="text"],
.reg-form input[type="url"],
.reg-form input[type="tel"],
.reg-form input[type="number"],
.reg-form select,
.reg-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.reg-form input:focus,
.reg-form select:focus,
.reg-form textarea:focus {
  outline: none;
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 3px rgba(245, 184, 0, 0.18);
}
.reg-form textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.reg-check {
  background: #FFFBEA;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.reg-check input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--yellow-deep); }
.reg-captcha {
  background: #FFF9E0;
  border: 1px dashed var(--yellow-deep);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  align-items: center;
}
.reg-captcha label { font-weight: 700; font-size: 14px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reg-errors {
  background: #FDF0EC;
  border: 1px solid #F0C4B8;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: #8A2F16;
  margin-bottom: 22px;
}
.reg-errors strong { display: block; margin-bottom: 6px; }
.reg-errors ul { margin-left: 18px; font-size: 14px; }
.reg-success {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 28px;
  box-shadow: var(--shadow-sm);
}
.reg-success .ok { font-size: 54px; line-height: 1; }
.reg-success h2 { font-size: 28px; font-weight: 900; letter-spacing: -0.6px; margin: 16px 0 10px; }
.reg-success p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }
.free-tag {
  display: inline-block;
  vertical-align: middle;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-left: 8px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 10px 4px;
  }
  .nav-toggle span { display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 3px; transition: transform 0.15s ease, opacity 0.15s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 16px;
    z-index: 55;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .nav .btn-download { text-align: center; margin-top: 8px; }

  .listing-main { grid-template-columns: 1fr; }
  .side-cta { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 120px; }
  .mobile-cta { display: flex; }
  .search-box { flex-wrap: wrap; border-radius: 20px; }
  .search-box input { width: 100%; }
  .search-box button { width: 100%; margin: 0 8px 8px; }
  .cta-features { flex-direction: column; align-items: center; gap: 6px; }
  .hero-stats { gap: 22px; }

  .reg-row { grid-template-columns: 1fr; }
  .reg-captcha { grid-template-columns: 1fr; }
  .reg-form { padding: 18px; gap: 16px; }
  .reg-form .btn { width: 100%; padding: 14px 18px; font-size: 16px; }
  .reg-check, .reg-captcha { padding: 14px 16px; }
  .reg-captcha { gap: 10px; }
  .reg-form input[type="text"],
  .reg-form input[type="url"],
  .reg-form input[type="tel"],
  .reg-form input[type="number"],
  .reg-form select,
  .reg-form textarea { font-size: 16px; padding: 12px 14px; }

  .hero { padding: 48px 0 60px; }
  .hero-stats { gap: 18px; margin-top: 28px; }
  .stat b { font-size: 24px; }
  .page-hero { padding: 34px 0 28px; }
  .cta-banner { padding: 32px 20px; border-radius: 18px; margin-top: 40px; }
  .cta-banner p { font-size: 14px; }
  .cta-features { gap: 6px; }
  .panel { padding: 20px; }
  .listing-main { padding: 28px 0 56px; }
  .chips { gap: 10px; }
  .chip { padding: 11px 16px; font-size: 13px; }
  .chips-more .btn { width: 100%; max-width: 320px; }
  .header-inner { padding: 10px 16px; }
  .brand img { height: 36px; }
  .brand-name { font-size: 18px; }
  .grid-listings { gap: 14px; }
  .card-listing { padding: 18px; }
  .mobile-cta .t { font-size: 12px; }

  .grid-provinces,
  .grid-cats,
  .grid-cats-pop,
  .grid-towns,
  .grid-listings { grid-template-columns: repeat(2, 1fr); }
  .card-cat { padding: 14px; }
  .card-cat.popular { padding: 16px; }
  .card-cat .cat-emoji, .card-cat .cat-emoji-img { margin-bottom: 8px; }
  .card-cat .cat-name { font-size: 14px; }
  .card-cat.popular .cat-name { font-size: 16px; }
  .card-cat .cat-meta { font-size: 12px; }
  .card-listing { padding: 14px; gap: 6px; }
  .card-listing h3 { font-size: 15px; }
  .card-listing .loc { font-size: 13px; }
  .card-listing .desc { font-size: 13px; -webkit-line-clamp: 2; }
  .card-prov { padding: 14px; }
  .card-prov h3 { font-size: 15px; }
  .card-prov p { font-size: 12px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 14px; }
  .stat b { font-size: 21px; }
  .section-head h2 { font-size: 24px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

/* ---------- About / Feature list ---------- */
.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.feat-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

/* ---------- Open in App button (Mobile & Tablet only) ---------- */
.listing-app-hero,
.open-in-app-wrap {
  display: none; /* Hidden on PC / Desktop */
}

/* Shown on Mobile & Tablets via media query */
@media (max-width: 1024px) {
  .listing-app-hero {
    margin-top: 16px;
    display: flex;
    align-items: center;
    width: auto;
  }
  .open-in-app-wrap {
    margin-bottom: 18px;
    display: block;
  }
}

/* Also show if detected as a mobile or tablet device */
body.is-mobile-or-tablet .listing-app-hero {
  margin-top: 16px;
  display: flex;
  align-items: center;
}
body.is-mobile-or-tablet .open-in-app-wrap {
  margin-bottom: 18px;
  display: block;
}

.btn-open-in-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink) !important;
  background: var(--yellow);
  box-shadow: 0 4px 18px rgba(245, 184, 0, 0.40);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-open-in-app--side {
  width: 100%;
}

.btn-open-in-app--hero {
  width: auto;
  font-size: 15px;
  padding: 12px 24px;
  border: 2px solid var(--yellow-deep);
}

.btn-open-in-app:hover {
  background: var(--yellow-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 184, 0, 0.50);
  color: var(--ink) !important;
}

.btn-open-in-app:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(245, 184, 0, 0.30);
}

.oia-icon {
  flex-shrink: 0;
  color: inherit;
}

.oia-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
.oia-sub a {
  color: var(--yellow-deep);
  font-weight: 600;
}
.oia-sub a:hover {
  color: var(--ink);
}

@media (max-width: 600px) {
  .listing-app-hero { width: 100%; }
  .btn-open-in-app--hero { width: 100%; }
  .btn-open-in-app { padding: 14px 16px; font-size: 14px; }
}

/* ---------- Data table (Beaches / Piers) ---------- */
.prov-table-heading {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 34px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.prov-table-heading:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.prov-table-heading .pin { color: var(--yellow-deep); }
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.data-table th,
.data-table td {
  border: 1px solid #EFE4C6;
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}
.data-table thead th {
  background: #FFFBEA;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom-width: 2px;
  border-bottom-color: var(--line);
}
.data-table tbody tr:nth-child(even) { background: #FFFDF6; }
.data-table tbody tr:hover { background: #FFF7D6; }
.data-table .town-cell { font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.data-table .name-cell { font-weight: 700; }
@media (max-width: 600px) {
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 10px; }
  .data-table .town-cell { white-space: normal; }
}