/* Brand colours come from assets/brand/colors.css */
:root {
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --text: var(--brand-charcoal);
  --muted: #6B7280;
  --border: #E3E7ED;
  --primary: var(--brand-orange);
  --primary-dark: #E05500;
  --navy: var(--brand-navy);
  --good: #1E8E3E;
  --ok: #E8A317;
  --low: #D93025;
  --whatsapp: #1DA851;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(8, 52, 99, .06), 0 4px 16px rgba(8, 52, 99, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0; }
h1 { font-size: clamp(26px, 4vw, 40px); font-weight: 700; }
h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
[data-lucide], svg.lucide { width: 18px; height: 18px; flex-shrink: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline em { font-style: normal; font-size: 11px; background: var(--primary); color: #fff; padding: 1px 6px; border-radius: 4px; }
.btn-call { background: var(--good); color: #fff; }
.btn-call:hover { filter: brightness(.92); }
.btn-whatsapp { background: #fff; color: var(--whatsapp); border-color: var(--whatsapp); }
.btn-whatsapp:hover { background: #EAF8EF; }
.btn-ghost { background: #fff; border-color: var(--border); color: var(--navy); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-block { width: 100%; }
.icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--muted); border-radius: 6px; }
.icon-btn:hover { background: var(--bg); }

/* Header */
#site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand img { height: 40px; width: auto; }
.header-spacer { flex: 1; }
.header-nav { display: flex; align-items: center; gap: 16px; }
.nav-link { font-weight: 500; color: var(--navy); }
.nav-link:hover { color: var(--primary); }

/* Search */
.search {
  flex: 1; display: flex; align-items: stretch; max-width: 640px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.search label { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); }
.search-area { border-right: 1px solid var(--border); min-width: 0; }
.search-area select { border: 0; font: inherit; color: var(--text); background: transparent; padding: 10px 0; max-width: 150px; cursor: pointer; outline: none; }
.search-q { flex: 1; min-width: 0; }
.search-q input { border: 0; font: inherit; width: 100%; padding: 10px 0; outline: none; color: var(--text); }
.search .btn { border-radius: 0; }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(254, 100, 4, .15); }
.search-big { max-width: 820px; margin: 0 auto; border-radius: 14px; box-shadow: var(--shadow); border: 0; }
.search-big label { padding: 0 16px; }
.search-big select, .search-big input { padding: 16px 0; font-size: 16px; }
.search-big .btn { padding: 0 28px; font-size: 16px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0D4A8A 100%);
  color: #fff; padding: 56px 0 64px; text-align: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px;
  border-radius: 50%; background: radial-gradient(circle, rgba(254, 100, 4, .35), transparent 70%);
}
.hero h1 { color: #fff; margin-bottom: 8px; }
.hero h1 span { color: #FF8A3D; }
.hero p { margin: 0 0 28px; opacity: .85; font-size: 16px; }
.hero .search { position: relative; z-index: 1; }
.popular { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; position: relative; z-index: 1; }
.popular a { background: rgba(255, 255, 255, .12); padding: 5px 12px; border-radius: 999px; font-size: 13px; }
.popular a:hover { background: rgba(255, 255, 255, .22); }

/* Sections */
.section { padding: 40px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-head a { color: var(--primary); font-weight: 600; font-size: 14px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.cat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; transition: transform .15s, box-shadow .15s;
}
.cat:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.cat-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: hsl(var(--hue) 90% 95%); color: hsl(var(--hue) 70% 40%);
}
.cat-icon svg { width: 26px; height: 26px; }

.area-list { display: flex; flex-wrap: wrap; gap: 10px; }
.area-list a { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-size: 14px; }
.area-list a:hover { border-color: var(--primary); color: var(--primary); }

.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mini { display: flex; flex-direction: column; overflow: hidden; }
.mini .thumb { height: 120px; border-radius: 0; }
.mini-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.mini-body h3 { font-size: 15px; }

.cta-band { background: #FFF1E7; border-radius: 16px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 4px; }
.cta-band p { margin: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; text-align: center; }
.stats strong { display: block; font-size: 28px; color: var(--primary); }

/* Cards and listing */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.thumb {
  display: grid; place-items: center; border-radius: 10px; width: 100%; height: 100%;
  background: linear-gradient(135deg, hsl(var(--hue) 85% 93%), hsl(var(--hue) 70% 84%));
  color: hsl(var(--hue) 60% 35%);
}
.thumb svg { width: 40px; height: 40px; opacity: .8; }
.thumb.lg svg { width: 64px; height: 64px; }

.listing { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 16px; }
.listing-thumb { height: 160px; }
.listing-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.listing-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.listing-title h3 { font-size: 18px; }
.listing-title a:hover h3 { color: var(--primary); }
.listing-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.listing-address, .listing-hours { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.listing-address svg, .listing-hours svg { width: 15px; height: 15px; color: var(--muted); }
.listing-hours.open { color: var(--good); }
.listing-hours.closed { color: var(--low); }
.listing-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }

.rating {
  display: inline-flex; align-items: center; gap: 3px; color: #fff; font-weight: 600; font-size: 13px;
  padding: 2px 7px; border-radius: 6px;
}
.rating svg { width: 12px; height: 12px; fill: currentColor; }
.rating.good { background: var(--good); }
.rating.ok { background: var(--ok); }
.rating.low { background: var(--low); }
.rating.new { background: var(--navy); }
.verified { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: #1A73E8; }
.verified svg { width: 15px; height: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; color: var(--muted); }
.star-on { color: #F5A623; fill: #F5A623; }
.star-off { color: #D0D5DD; }

/* Search page */
.page-head { padding: 24px 0 8px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a:hover { color: var(--primary); }
.results-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding: 16px 0 48px; align-items: start; }
.filters { padding: 18px; position: sticky; top: 88px; }
.filters h4 { font-size: 14px; margin: 16px 0 8px; }
.filters h4:first-child { margin-top: 0; }
.filters label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 4px 0; cursor: pointer; }
.filters select { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; }
.filters input[type=checkbox] { accent-color: var(--primary); width: 16px; height: 16px; }
.results { display: flex; flex-direction: column; gap: 14px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.chip { font-size: 13px; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-family: inherit; color: var(--text); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { text-align: center; padding: 48px 16px; }
.empty svg { width: 40px; height: 40px; color: var(--muted); margin-bottom: 8px; }
.filter-toggle { display: none; }

/* Business page */
.biz-hero { display: grid; grid-template-columns: 320px 1fr; gap: 24px; padding: 20px; margin-top: 8px; }
.biz-hero .thumb { height: 240px; }
.biz-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.biz-info h1 { font-size: clamp(22px, 3vw, 30px); }
.biz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.biz-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 24px 0 48px; align-items: start; }
.panel { padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 19px; margin-bottom: 14px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table td { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.hours-table td:last-child { text-align: right; }
.hours-table tr.today td { font-weight: 600; color: var(--navy); }
.info-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-row svg { color: var(--primary); margin-top: 2px; }
.map { width: 100%; height: 220px; border: 0; border-radius: 10px; margin-top: 12px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; }
.review-stars { display: flex; gap: 1px; }
.review-stars svg { width: 14px; height: 14px; }
.review p { margin: 6px 0 0; font-size: 14px; }
.rating-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.rating-summary .big { font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1; }
.star-input { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { display: none; }
.star-input label { cursor: pointer; color: #D0D5DD; }
.star-input label svg { width: 28px; height: 28px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #F5A623; }
.star-input input:checked ~ label svg, .star-input label:hover svg, .star-input label:hover ~ label svg { fill: #F5A623; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--navy); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text); padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(254, 100, 4, .15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card { max-width: 760px; margin: 0 auto; padding: 28px; }
.form-note { font-size: 13px; color: var(--muted); }

/* Modal */
.modal { border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal::backdrop { background: rgba(8, 20, 40, .55); }
.modal-close-form { position: absolute; right: 10px; top: 10px; margin: 0; }
.modal-body { padding: 28px 24px 24px; }
.modal-body h3 { font-size: 20px; }
.modal-body .muted { margin: 4px 0 18px; font-size: 14px; }
.success { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.success > svg { width: 48px; height: 48px; color: var(--good); }

/* Footer */
#site-footer { background: var(--navy); color: rgba(255, 255, 255, .78); padding-top: 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-grid a { display: block; padding: 3px 0; }
.footer-grid a:hover { color: #fff; }
.footer-logo { height: 40px; width: auto; background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding: 16px; text-align: center; font-size: 13px; }

/* Responsive */
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  #site-header .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-nav { margin-left: auto; }
  .results-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.show { display: block; }
  .filter-toggle { display: inline-flex; }
  .biz-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .brand img { height: 32px; }
  .nav-link { display: none; }
  .header-nav .btn span { display: none; }
  .search-area select { max-width: 96px; }
  .search-big { flex-direction: column; }
  .search-big .search-area { border-right: 0; border-bottom: 1px solid var(--border); }
  .search-big .btn { padding: 14px; border-radius: 0 0 14px 14px; }
  #site-header .search .btn { padding: 0 12px; }
  .listing { grid-template-columns: 1fr; }
  .listing-thumb { height: 120px; }
  .listing-actions .btn { flex: 1; }
  .biz-hero { grid-template-columns: 1fr; padding: 16px; }
  .biz-hero .thumb { height: 160px; }
  .biz-actions .btn { flex: 1; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 20px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat { padding: 14px 6px; font-size: 12px; }
}

/* Let grid children shrink below their content width on narrow screens */
.results-layout > *, .biz-layout > *, .biz-hero > *, .listing > * { min-width: 0; }

/* Google photos */
.thumb.photo { position: relative; overflow: hidden; background: #E9EDF2; }
.thumb.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-credit {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 8px 4px; font-size: 10px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo-credit a { text-decoration: underline; }
.google-tag { font-size: 12px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gallery .thumb { height: 110px; }
.google-note { font-size: 12px; color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.google-note a { text-decoration: underline; }
