/* ==========================================================================
   Maru Mehsana - public home page
   Brand tokens come from the app logo: royal blue, deep navy, saffron pin.
   Gujarati-first: Noto Sans Gujarati for Gujarati glyphs, Plus Jakarta Sans for Latin.
   ========================================================================== */

:root {
  --ink: #0f2447;
  --ink-soft: #2d4163;
  --muted: #5b6b84;
  --blue: #1769b5;
  --blue-deep: #0e3f7a;
  --blue-tint: #e6f0fb;
  --blue-wash: #f1f6fc;
  --saffron: #f59e0b;
  --saffron-deep: #b45309;
  --saffron-tint: #fff3d6;
  --page: #f6f9fd;
  --line: #e3eaf3;
  --white: #fff;

  --font: "Plus Jakarta Sans", "Noto Sans Gujarati", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --shadow-card: 0 1px 2px rgba(15, 36, 71, 0.05), 0 8px 22px -10px rgba(15, 36, 71, 0.22);
  --shadow-lift: 0 2px 4px rgba(15, 36, 71, 0.06), 0 16px 32px -12px rgba(15, 36, 71, 0.3);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; }

:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 8px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.icon--sm { width: 1em; height: 1em; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); transition: top 0.2s; }
.skip-link:focus { top: 12px; }

.clamp-1, .clamp-2 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-1 { -webkit-line-clamp: 1; }
.clamp-2 { -webkit-line-clamp: 2; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { border-radius: 12px; }
.brand-name { font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.brand-name b { color: var(--blue); font-weight: 800; }

.nav-sep { width: 1px; height: 26px; background: var(--line); flex-shrink: 0; }
.nav-tagline { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); line-height: 1.3; max-width: 230px; }

.nav-panel { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { display: block; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--ink); transition: background-color 0.18s, color 0.18s; }
.nav-links a:hover { background: var(--blue-tint); color: var(--blue-deep); }
.nav-links a.is-active { background: var(--blue); color: #fff; box-shadow: 0 6px 14px -6px rgba(23, 105, 181, 0.7); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid #cfdceb; border-radius: 999px; background: #fff; font-weight: 600; font-size: 0.92rem; color: var(--ink); cursor: pointer; transition: border-color 0.18s, box-shadow 0.18s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.lang[open] summary .icon--sm { transform: rotate(180deg); }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lift); z-index: 120; }
.lang-list a { display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; color: var(--ink); }
.lang-list a:hover { background: var(--blue-tint); }
.lang-list a[aria-current="true"] { background: var(--blue-tint); color: var(--blue-deep); }

.nav-toggle { display: none; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid #cfdceb; color: var(--ink); background: #fff; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 600px; background: #cfe6f9; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg picture, .hero-bg img, .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 72% center; }
.hero-art { object-fit: cover; }
/* Keeps dark headline text readable over any photo or illustration */
.hero-scrim { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.72) 34%, rgba(255, 255, 255, 0) 62%),
  linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(246, 249, 253, 0.95) 100%); }

.hero-inner { padding-top: 64px; padding-bottom: 150px; }
.hello { display: flex; align-items: flex-start; gap: 6px; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 800; color: var(--ink); line-height: 1.4; }
.spark { width: 30px; height: 30px; margin-top: -10px; }

.hero h1 { margin-top: 14px; font-size: clamp(2.15rem, 4.5vw, 3.75rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink); max-width: 760px; }
.h1-line { display: block; }
.u { position: relative; display: inline-block; white-space: nowrap; }
.u svg { position: absolute; left: -2%; bottom: -0.12em; width: 104%; height: 0.22em; }

.hero-lead { margin-top: 16px; max-width: 640px; font-size: clamp(1rem, 1.35vw, 1.2rem); font-weight: 600; color: var(--ink); line-height: 1.6; }

/* Search */
.search { position: relative; margin-top: 26px; max-width: 760px; z-index: 20; }
.search-box { display: flex; align-items: center; gap: 12px; height: 66px; padding: 8px 8px 8px 24px; background: #fff; border: 1px solid #dbe7f4; border-radius: 999px; box-shadow: 0 14px 34px -12px rgba(14, 63, 122, 0.4); transition: box-shadow 0.18s, border-color 0.18s; }
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23, 105, 181, 0.2), 0 14px 34px -12px rgba(14, 63, 122, 0.4); }
.search-ico { width: 26px; height: 26px; color: var(--ink); }
.search-input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: 0; font-size: 1.05rem; font-weight: 500; color: var(--ink); }
.search-input::placeholder { color: #566985; opacity: 1; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.search-clear:hover { background: var(--blue-tint); color: var(--ink); }
.search-btn { flex-shrink: 0; height: 50px; padding: 0 34px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: 1.05rem; box-shadow: 0 8px 18px -8px rgba(23, 105, 181, 0.8); transition: background-color 0.18s, transform 0.18s; }
.search-btn:hover { background: var(--blue-deep); }
.search-btn:active { transform: translateY(1px); }

.search-panel { position: absolute; left: 0; right: 0; top: calc(100% + 10px); max-height: min(440px, 62vh); overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lift); padding: 8px; }
.search-panel[hidden], .search-msg[hidden] { display: none; }
/* While results are open: stop the hero clipping the panel, and drop its stacking context so the
   search (z-index 20) layers above the quick tiles (z-index 5) while the photo, scrim and text stay
   below them, exactly as when closed. The hero's own fill would then cover .hero-bg (z-index -1),
   so it goes transparent; the page colour behind it is the same #f6f9fd. */
.hero:has(.search-panel:not([hidden])) { overflow: visible; isolation: auto; background: transparent; }
.search-msg { padding: 18px 16px; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.search-group { padding-bottom: 4px; }
.search-group + .search-group { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 4px; }
.search-group-title { padding: 8px 12px 4px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.search-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; cursor: pointer; color: var(--ink); }
.search-opt:hover, .search-opt[aria-selected="true"] { background: var(--blue-tint); }
.search-opt .oi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue); flex-shrink: 0; }
.search-opt .oi.is-saffron { background: var(--saffron-tint); color: var(--saffron-deep); }
.search-opt .ot { flex: 1; min-width: 0; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-opt .os { display: block; font-weight: 500; font-size: 0.8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.search-opt .oc { color: var(--muted); }
.search-back { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; font-weight: 700; color: var(--blue); border-radius: 12px; }
.search-back:hover { background: var(--blue-tint); }

/* Chips */
.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 22px; }
.chips-label { font-weight: 800; color: var(--ink); font-size: 0.95rem; }
.chips-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 7px 20px; background: rgba(255, 255, 255, 0.92); border: 1px solid #cfdceb; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--ink); transition: border-color 0.18s, color 0.18s, background-color 0.18s, transform 0.18s; }
.chip:hover { border-color: var(--blue); color: var(--blue-deep); background: #fff; transform: translateY(-1px); }

/* ---------- Quick tiles ---------- */
.quick-wrap { position: relative; z-index: 5; margin-top: -84px; }
.quick { background: #fff; border-radius: var(--r-lg); padding: 16px; box-shadow: 0 2px 4px rgba(15, 36, 71, 0.05), 0 22px 48px -18px rgba(15, 36, 71, 0.3); border: 1px solid rgba(227, 234, 243, 0.8); }
.quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
button.tile { width: 100%; font: inherit; border: 0; cursor: pointer; }

/* "Add your business" enquiry popup */
.enq { width: min(900px, calc(100% - 32px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(15, 36, 71, 0.55); overflow: hidden; }
/* Lock page scroll while the popup is open; released automatically on any close path (button, backdrop, Esc) */
html:has(dialog.enq[open]), html:has(dialog.enq[open]) body { overflow: hidden; }
.enq::backdrop { background: rgba(15, 36, 71, 0.55); backdrop-filter: blur(3px); }
.enq[open] { animation: enq-in 0.22s ease-out; }
@keyframes enq-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .enq[open] { animation: none; } }
.enq-wrap { display: grid; grid-template-columns: 1fr 1fr; }
/* Each column is capped to the window height; if the form is still too tall, only the form scrolls */
.enq-side, .enq-form { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }

/* Left panel: brand, mock app cards on a grid, real stats */
.enq-side { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 22px 24px 20px; color: #fff; overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.35), transparent 40%),
    linear-gradient(160deg, #1769b5 0%, #0b3a73 100%); }
.enq-brand { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 600; }
.enq-brand img { width: 34px; height: 34px; border-radius: 9px; background: #fff; }
.enq-brand b { font-weight: 800; }
.enq-brand > span:not(.enq-pill) { white-space: nowrap; }
.enq-pill { margin-left: auto; padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); white-space: nowrap; }

/* Mock app cards: one wide listing card, two small cards below, all on one grid */
.enq-stage { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 12px; }
.mk { background: #fff; color: var(--ink); border-radius: 16px; padding: 14px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 16px 34px -16px rgba(3, 20, 45, 0.7); }
.mk .icon { stroke-width: 2.2; }
.mk-listing { grid-column: 1 / -1; }.mk-row { display: flex; align-items: flex-start; gap: 12px; }
.mk-thumb { width: 58px; height: 58px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 8px 16px -8px rgba(249, 115, 22, 0.7); }
.mk-thumb .icon { width: 28px; height: 28px; }
.mk-info { flex: 1; min-width: 0; }
.mk-title { font-weight: 800; font-size: 0.98rem; line-height: 1.35; }
.mk-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.mk-chip { padding: 2px 9px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); font-size: 0.7rem; font-weight: 700; }
.mk-stars { display: inline-flex; align-items: center; gap: 3px; font-size: 0.75rem; font-weight: 800; }
.mk-stars .icon { width: 13px; height: 13px; color: #f59e0b; fill: currentColor; }
.mk-place { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 0.74rem; font-weight: 500; color: var(--muted); }
.mk-place .icon { width: 13px; height: 13px; color: var(--blue); }
.mk-live { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 4px 9px; border-radius: 999px; background: #dcfce7; font-size: 0.68rem; font-weight: 800; color: #15803d; }
.mk-live i { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
.mk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 10px; font-size: 0.8rem; font-weight: 700; }
.mk-btn .icon { width: 14px; height: 14px; }
.mk-btn--call { background: var(--blue); color: #fff; }
.mk-btn--wa { background: #22c55e; color: #fff; }
.mk-card-head { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 800; line-height: 1.3; }
.mk-dot { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: var(--blue-tint); color: var(--blue); }
.mk-dot .icon { width: 14px; height: 14px; }
.mk-dot--green { background: #dcfce7; color: #15803d; }
.mk-bubble { margin-top: 10px; padding: 8px 10px; border-radius: 4px 12px 12px 12px; background: #f1f5f9; font-size: 0.76rem; font-weight: 500; line-height: 1.4; }
.mk-time { margin-top: 6px; font-size: 0.66rem; font-weight: 600; color: var(--muted); }
.mk-views-num { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; font-size: 1.3rem; font-weight: 800; }
.mk-up { font-size: 0.72rem; font-weight: 800; color: #15803d; }
.mk-bars { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-top: 6px; }
.mk-bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: #bfdbfe; }
.mk-bars i:last-child { background: var(--blue); }

.enq-trust { flex-shrink: 0; padding: 12px 16px; border-radius: 16px; background: #fff; color: var(--ink); }
.enq-trust-title { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.enq-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
.enq-stats div { display: flex; flex-direction: column; padding: 0 10px; }
.enq-stats div:first-child { padding-left: 0; }
.enq-stats div + div { border-left: 1px solid var(--line); }
.enq-stats b { font-size: 1.15rem; font-weight: 800; color: var(--blue-deep); }
.enq-stats span { font-size: 0.74rem; font-weight: 600; color: var(--muted); }

/* Right panel: form */
.enq-form { position: relative; display: flex; flex-direction: column; min-width: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c3d3e6 transparent; }
.enq-form::-webkit-scrollbar { width: 8px; }
.enq-form::-webkit-scrollbar-thumb { background: #c3d3e6; border-radius: 8px; border: 2px solid #fff; }
.enq-form > .enq-x { position: absolute; top: 16px; right: 16px; border: 1px solid var(--line); }
.enq-head { padding: 30px 30px 0; }
.enq-eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.enq-head h2 { margin-top: 8px; padding-right: 30px; font-size: 1.6rem; font-weight: 800; line-height: 1.35; }
.enq-accent { position: relative; display: inline-block; color: var(--blue); white-space: nowrap; }
.enq-accent svg { position: absolute; left: -2%; bottom: -0.15em; width: 104%; height: 0.24em; color: #f59e0b; }
.enq-done { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; flex: 1; padding: 30px 28px 34px; text-align: center; }
.enq-done[hidden] { display: none; }
.enq-done-ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #dcfce7; color: #15803d; }
.enq-done-ic .icon { width: 32px; height: 32px; stroke-width: 3; }
.enq-done-text { font-size: 1.05rem; font-weight: 600; line-height: 1.55; max-width: 340px; }
.enq-body[hidden] { display: none; }
@media (max-width: 760px) {
  .enq { width: calc(100% - 24px); border-radius: 20px; }
  .enq-wrap { grid-template-columns: minmax(0, 1fr); overflow-y: auto; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .enq-side { padding: 16px 20px; gap: 12px; }
  .enq-stage { display: none; }
  .enq-trust { padding: 10px 12px; }
  .enq-stats b { font-size: 1rem; }
  .enq-form { overflow: visible; position: static; }
  /* On phones the close button sits on the dialog's top-right corner, over the blue banner */
  .enq-form > .enq-x { top: 12px; right: 12px; background: #fff; z-index: 2; }
  .enq-pill { margin-right: 44px; }
  .enq-brand { font-size: 1rem; gap: 8px; }
  .enq-brand img { width: 30px; height: 30px; }
  .enq-head { padding: 20px 20px 0; }
  .enq-head h2 { font-size: 1.3rem; }
}
.enq-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.enq-x:hover { background: var(--blue-tint); color: var(--ink); }
.enq-body { padding: 6px 30px 28px; }
.enq-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.enq-field { min-width: 0; }
@media (max-width: 760px) { .enq-body { padding: 6px 20px 20px; } .enq-side, .enq-form { max-height: none; } }
/* Short windows (e.g. laptops with 125-150% Windows scaling): tighter left side, stats strip always shown; the form scrolls */
@media (min-width: 761px) and (max-height: 640px) { .enq-side { gap: 12px; padding-top: 18px; padding-bottom: 18px; } .enq-stage { gap: 10px; } .mk { padding: 12px; } .enq-trust { padding: 9px 14px; } .enq-stats { margin-top: 4px; } .enq-stats b { font-size: 1.02rem; } }
@media (min-width: 761px) and (max-height: 470px) { .mk-msg, .mk-views { display: none; } }
.enq-sub { color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin-bottom: 6px; }
.enq-body label { display: block; margin-top: 14px; margin-bottom: 6px; font-weight: 700; font-size: 0.92rem; }
.enq-body input[type="text"], .enq-body input[type="tel"] { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #cfdbe9; border-radius: 12px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; }
.enq-body input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 105, 181, 0.18); }
.enq-body input[aria-invalid="true"] { border-color: #dc2626; }
.enq-body .enq-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 500; font-size: 0.88rem; color: var(--muted); }
.enq-check input { width: 18px; height: 18px; }
.enq-err { min-height: 0; color: #b91c1c; font-size: 0.82rem; margin-top: 4px; }
.enq-err:empty { display: none; }
.enq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.enq-msg { margin-top: 14px; font-weight: 600; font-size: 0.92rem; }
.enq-msg:empty { display: none; }
.enq-msg.is-ok { color: #15803d; }
.enq-msg.is-bad { color: #b91c1c; }
.enq-submit { width: 100%; height: 50px; margin-top: 18px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; font-size: 1.05rem; }
.enq-submit:hover { background: var(--blue-deep); }
.enq-submit:disabled { opacity: 0.6; cursor: default; }
.tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; min-height: 124px; padding: 16px 10px; border-radius: 20px; background: var(--blue-wash); color: var(--blue); text-align: center; transition: transform 0.18s, box-shadow 0.18s, background-color 0.18s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -12px rgba(15, 36, 71, 0.35); background: var(--blue-tint); }
.tile-ic { display: grid; place-items: center; width: 44px; height: 44px; }
.tile-ic .icon { width: 40px; height: 40px; stroke-width: 1.7; }
.tile-label { font-weight: 800; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.tile.is-active { background: linear-gradient(180deg, #d5e8fb 0%, #e6f1fc 100%); box-shadow: 0 10px 22px -12px rgba(23, 105, 181, 0.55); }
.tile--orange { color: #f2711c; }
.tile--add { background: #fdeebd; color: var(--ink); }
.tile--add:hover { background: #fce7a4; }
.tile--add .tile-ic { width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--saffron); }
.tile--add .tile-ic .icon { width: 26px; height: 26px; stroke-width: 2.6; }

/* ---------- Content rows ---------- */
.home-rows { margin-top: 56px; }
.duo { display: grid; grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr); }
.duo--second { margin-top: 38px; padding-top: 38px; border-top: 1px solid var(--line); }
.block { min-width: 0; padding-right: 42px; }
.block--side { padding-right: 0; padding-left: 42px; border-left: 1px solid var(--line); }

.block-head { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; color: #fff; flex-shrink: 0; }
.badge .icon { width: 28px; height: 28px; stroke-width: 1.8; }
.badge--blue { background: linear-gradient(145deg, #2b82d6, var(--blue-deep)); box-shadow: 0 8px 16px -8px rgba(23, 105, 181, 0.8); }
.badge--saffron { background: linear-gradient(145deg, #fbbf3c, #f08c0a); box-shadow: 0 8px 16px -8px rgba(240, 140, 10, 0.8); }
.badge--round { border-radius: 50%; }
.block-titles { flex: 1 1 200px; min-width: 0; }
.block-titles h2 { font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 800; line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.block-titles p { margin-top: 2px; font-size: 0.93rem; font-weight: 500; color: var(--muted); line-height: 1.5; }
.view-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 0.88rem; font-weight: 800; color: var(--blue); white-space: nowrap; }
.view-all .icon { width: 1.1em; height: 1.1em; transition: transform 0.18s; }
.view-all:hover { color: var(--blue-deep); }
.view-all:hover .icon { transform: translateX(3px); }

/* image placeholders: brand tint + icon sits under the <img>; a broken image simply removes itself */
.ph { position: relative; display: block; overflow: hidden; background: linear-gradient(145deg, #e3eefb, #f3f8fe); }
.ph-ico { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; color: #9db9d8; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Business cards */
.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.biz-card { position: relative; background: #fff; border-radius: var(--r); border: 1px solid rgba(227, 234, 243, 0.9); box-shadow: var(--shadow-card); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.biz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.biz-card .media { aspect-ratio: 3 / 2; }
.biz-body { padding: 12px 14px 14px; }
.biz-body h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.biz-cat { font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.rating b { color: var(--ink); font-weight: 800; }
.star { color: var(--saffron); width: 1.1em; height: 1.1em; }

/* News */
.news-list { margin-top: 14px; }
.news-list li + li { border-top: 1px solid var(--line); }
.news-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.news-thumb { width: 116px; aspect-ratio: 3 / 2; border-radius: 12px; flex-shrink: 0; }
.news-text { display: block; min-width: 0; }
.news-title { font-weight: 700; font-size: 1.02rem; line-height: 1.45; color: var(--ink); transition: color 0.18s; }
.news-row:hover .news-title { color: var(--blue); }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; margin-top: 6px; font-size: 0.82rem; font-weight: 500; color: var(--muted); }
.news-meta .icon { width: 15px; height: 15px; color: #e0662b; }
.news-agency::before { content: "\00b7"; margin-right: 7px; }
.news-agency { display: inline; -webkit-line-clamp: unset; }

/* Places */
.place-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.place-card { display: block; height: 100%; background: #fff; border-radius: var(--r); border: 1px solid rgba(227, 234, 243, 0.9); box-shadow: var(--shadow-card); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; }
.place-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.place-card .media { aspect-ratio: 5 / 3; }
.place-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px 12px 14px; }
.place-text { flex: 1; min-width: 0; display: block; }
.place-name { font-weight: 700; font-size: 1rem; color: var(--ink); line-height: 1.4; }
.go { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; flex-shrink: 0; transition: transform 0.18s, background-color 0.18s; }
.go .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.place-card:hover .go { transform: translateX(3px); background: var(--blue-deep); }

/* Jobs */
.job-list { margin-top: 18px; background: #fff; border: 1px solid rgba(227, 234, 243, 0.9); border-radius: var(--r); box-shadow: var(--shadow-card); overflow: hidden; }
.job-list li + li { border-top: 1px solid var(--line); }
.job-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; transition: background-color 0.18s; }
.job-row:hover { background: var(--blue-wash); }
.job-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--saffron-tint); color: #e0830a; flex-shrink: 0; }
.job-ic .icon { width: 26px; height: 26px; stroke-width: 1.7; }
.job-text { flex: 1; min-width: 0; display: block; }
.job-title { font-weight: 700; font-size: 1.02rem; color: var(--ink); line-height: 1.4; }
.job-meta { display: -webkit-box; margin-top: 2px; font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.job-meta .icon { display: inline-block; vertical-align: -2px; width: 14px; height: 14px; margin-right: 5px; color: var(--blue); }
.job-pay { display: -webkit-box; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.job-go { color: var(--ink-soft); width: 22px; height: 22px; transition: transform 0.18s; }
.job-row:hover .job-go { transform: translateX(3px); color: var(--blue); }

.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; padding: 30px 20px; text-align: center; border: 1.5px dashed #c9d8ea; border-radius: var(--r); background: rgba(255, 255, 255, 0.6); color: var(--muted); font-weight: 500; }
.empty img { border-radius: 12px; opacity: 0.9; }

/* ---------- App banner ---------- */
.app { position: relative; isolation: isolate; overflow: hidden; margin-top: 64px; background: linear-gradient(180deg, #f2f8ff 0%, #e2eefb 100%); }
.app-bg { position: absolute; inset: 0; z-index: -1; }
.app-bg svg { width: 100%; height: 100%; }
.app-inner { display: grid; grid-template-columns: 250px minmax(0, 1fr) auto; align-items: center; gap: 36px; padding-block: 46px; min-height: 290px; }

.phone { align-self: end; justify-self: center; width: 156px; aspect-ratio: 9 / 18.5; margin-bottom: -96px; margin-top: 30px; transform: rotate(-12deg); transform-origin: 50% 60%; background: #fff; border: 6px solid #121d36; border-radius: 30px; box-shadow: 0 24px 40px -16px rgba(15, 36, 71, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.6); position: relative; }
.phone::before { content: ""; position: absolute; top: 7px; left: 50%; width: 44px; height: 8px; margin-left: -22px; border-radius: 6px; background: #121d36; }
.phone-screen { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-top: 12px; background: linear-gradient(180deg, #fff, #eaf3fd); border-radius: 24px; }
.phone-screen img { border-radius: 16px; }
.phone-screen span { font-weight: 800; font-size: 1rem; color: var(--ink); line-height: 1.15; text-align: center; }
.phone-screen b { color: var(--blue); display: block; }

.app-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: var(--blue); }
.app-sub { margin-top: 6px; font-size: clamp(1.05rem, 1.7vw, 1.4rem); font-weight: 700; color: var(--ink); line-height: 1.5; }
.app-feats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 24px; }
.app-feats li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.35; }
.fi { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; box-shadow: 0 6px 14px -8px rgba(15, 36, 71, 0.4); }
.fi .icon { width: 24px; height: 24px; }
.fi--orange { color: #ee7d12; }
.fi--blue { color: #5a3fd0; }

.app-get { display: flex; align-items: center; gap: 18px; padding-left: 38px; border-left: 1px solid rgba(15, 36, 71, 0.14); }
.gplay { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 18px 0 14px; background: #000; color: #fff; border-radius: 11px; border: 1px solid #5c5c5c; transition: transform 0.18s, box-shadow 0.18s; flex-shrink: 0; }
.gplay:hover { transform: translateY(-2px); box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.6); }
.gplay-logo { width: 26px; height: 28px; }
.gplay-text { display: flex; flex-direction: column; line-height: 1.05; }
.gplay-text small { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; }
.gplay-text b { font-size: 1.28rem; font-weight: 600; letter-spacing: -0.01em; }
.qr { flex-shrink: 0; padding: 7px; background: #fff; border-radius: 12px; box-shadow: 0 8px 18px -10px rgba(15, 36, 71, 0.5); }
.qr[hidden] { display: none; }
.qr-code { width: 86px; height: 86px; }
.qr-code img, .qr-code canvas { width: 100% !important; height: 100% !important; display: block; }
.qr-code canvas { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; padding-block: 34px 22px; }
.footer-brand { max-width: 420px; }
.footer-about { margin-top: 10px; font-size: 0.92rem; color: var(--muted); line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-block: 16px 28px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

/* ---------- Responsive ---------- */
/* The clear (x) button carries [hidden] until there is text, but display:grid overrode it,
   stealing room from the placeholder (all screen sizes) */
.search-clear[hidden] { display: none; }

@media (max-width: 1180px) {
  .nav-tagline, .nav-sep { display: none; }
  .tile-label { font-size: 0.92rem; }
  .block { padding-right: 28px; }
  .block--side { padding-left: 28px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav { gap: 10px; }
  .brand-name { font-size: 1.35rem; }
  .brand img { width: 40px; height: 40px; }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-panel { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 10px var(--gutter) 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -18px rgba(15, 36, 71, 0.3); display: none; }
  .nav-panel.is-open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 13px 16px; border-radius: 12px; font-size: 1rem; }

  .hero { min-height: 0; }
  .hero-inner { padding-top: 44px; padding-bottom: 130px; }
  /* 5 tiles on a 6-track grid: 3 on the first row, 2 wider ones on the second (no empty slot) */
  .quick-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .quick-grid > li { grid-column: span 2; }
  .quick-grid > li:nth-child(n+4) { grid-column: span 3; }
  .tile { min-height: 116px; }

  .duo { grid-template-columns: minmax(0, 1fr); }
  .block, .block--side { padding-inline: 0; border-left: 0; }
  .block--side { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
  .duo--second { margin-top: 40px; padding-top: 40px; }
  .duo--second .block--side { margin-top: 40px; }

  .app-inner { grid-template-columns: 180px minmax(0, 1fr); gap: 24px 28px; }
  .app-get { grid-column: 1 / -1; border-left: 0; padding-left: 0; justify-content: center; }
  .phone { width: 128px; margin-bottom: -70px; }
  .footer-inner { align-items: flex-start; }
}

@media (max-width: 720px) {
  /* Phones: the photo gets its own clear band at the top and fades into the page; text sits below it. */
  .hero { background: #f6f9fd; }
  .hero-bg { bottom: auto; height: 300px; }
  .hero-scrim { bottom: auto; height: 300px; background:
    linear-gradient(180deg, rgba(246, 249, 253, 0) 0%, rgba(246, 249, 253, 0) 52%, rgba(246, 249, 253, 0.85) 82%, #f6f9fd 100%); }
  .hero-bg img { object-position: 60% 12%; }
  .app-inner { grid-template-columns: minmax(0, 1fr); padding-block: 38px 40px; }
  .phone { display: none; }
  /* Waves: a short band along the bottom instead of tall stretched blobs behind the text */
  .app-bg svg { position: absolute; left: 0; bottom: 0; height: 80px; }
  .app-inner { padding-bottom: 100px; }
  .app-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .app-get { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .brand-name { font-size: 1.2rem; }
  .lang summary { height: 40px; padding: 0 11px; gap: 6px; font-size: 0.86rem; }
  .nav-toggle { width: 40px; height: 40px; }

  .hero-inner { padding-top: 238px; padding-bottom: 118px; }
  .hero h1 { font-size: 2.05rem; }
  .search { margin-top: 20px; }
  .search-box { height: 58px; padding: 6px 6px 6px 16px; gap: 8px; }
  .search-ico { width: 22px; height: 22px; }
  .search-input { font-size: 1rem; }
  .search-btn { height: 46px; padding: 0 20px; font-size: 1rem; }
  .chips { margin-top: 16px; }
  .chip { padding: 6px 15px; }

  .quick-wrap { margin-top: -70px; }
  .quick { padding: 10px; border-radius: 22px; }
  .quick-grid { gap: 8px; }
  .tile { min-height: 104px; padding: 12px 6px; gap: 8px; border-radius: 16px; }
  .tile-ic, .tile-ic .icon { width: 32px; height: 32px; }
  .tile--add .tile-ic { width: 38px; height: 38px; }
  .tile--add .tile-ic .icon { width: 22px; height: 22px; }
  .tile-label { font-size: 0.8rem; }

  .home-rows { margin-top: 40px; }
  .badge { width: 46px; height: 46px; border-radius: 13px; }
  .badge .icon { width: 24px; height: 24px; }
  .view-all { margin-top: 0; }

  /* card rows become swipeable on phones */
  .biz-grid, .place-grid { display: flex; gap: 12px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; margin-top: 14px; }
  .biz-grid::-webkit-scrollbar, .place-grid::-webkit-scrollbar { display: none; }
  .biz-grid > li, .place-grid > li { flex: 0 0 72%; max-width: 300px; scroll-snap-align: start; }

  .news-thumb { width: 104px; }
  /* Agency on its own line, without a dangling separator dot */
  .news-agency { flex-basis: 100%; }
  .news-agency::before { display: none; }
  .job-row { padding: 12px 14px; }

  .app-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; text-align: left; }
  .app-feats li { flex-direction: row; text-align: left; }
  .app-get { flex-wrap: wrap; }
  .app { margin-top: 48px; }

  /* Bigger tap targets for footer links */
  .footer-links { gap: 2px 20px; }
  .footer-links a { display: inline-block; padding-block: 8px; }
}

@media (max-width: 400px) {
  /* Logo + language switcher + menu button must fit 360px phones (English label is widest) */
  .nav { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 36px; height: 36px; }
  .nav-actions { gap: 6px; }
  .lang summary { padding: 0 9px; gap: 5px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 1.08rem; }
  .hero h1 { font-size: 1.85rem; }
  .tile-label { font-size: 0.74rem; }
}

/* Small phones (< 360px, e.g. 320px / 280px): the header was ~341px wide and widened the
   whole page. Language switcher shows only the globe (its summary keeps the aria-label). */
@media (max-width: 359px) {
  .lang summary > span, .lang summary .icon--sm { display: none; }
  .lang summary { width: 40px; padding: 0; justify-content: center; }
  .brand img { width: 32px; height: 32px; }
  .brand-name { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* =================== Businesses page (/businesses) =================== */
.page-hero { position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.35), transparent 40%),
    linear-gradient(160deg, #1769b5 0%, #0b3a73 100%); }
.page-hero-inner { padding-top: 26px; padding-bottom: 34px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); }
.crumbs a { color: rgba(255, 255, 255, 0.8); }
.crumbs a:hover { color: #fff; }
.crumbs .icon { width: 14px; height: 14px; }
.page-hero h1 { margin-top: 10px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.3; }
.page-lead { margin-top: 6px; font-size: 1rem; font-weight: 500; color: rgba(255, 255, 255, 0.88); }
.dir-search { display: flex; align-items: center; gap: 10px; max-width: 640px; height: 56px; margin-top: 20px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #fff; box-shadow: 0 14px 30px -14px rgba(3, 20, 45, 0.6); }
.dir-search > .icon { width: 22px; height: 22px; color: var(--muted); flex-shrink: 0; }
.dir-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); }
.dir-search input::placeholder { color: #6b7c96; }
.dir-search button { height: 44px; padding: 0 24px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; flex-shrink: 0; }
.dir-search button:hover { background: var(--blue-deep); }
.dir-search:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), 0 14px 30px -14px rgba(3, 20, 45, 0.6); }

.dir { padding-top: 22px; padding-bottom: 56px; }
.cat-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid #cfdceb; background: #fff; font-size: 0.88rem; font-weight: 600; color: var(--ink); white-space: nowrap; transition: border-color 0.15s, background-color 0.15s; }
.cat-chip span { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--blue-wash); color: var(--muted); font-size: 0.74rem; font-weight: 700; text-align: center; }
.cat-chip:hover { border-color: var(--blue); }
.cat-chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.cat-chip.is-on span { background: rgba(255, 255, 255, 0.22); color: #fff; }
/* Fold to two rows (site.js sets max-height and shows the button; without JS all chips show) */
.cat-bar { position: relative; }
.cat-wrap.is-folded .cat-bar { overflow: hidden; }
.cat-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 4px; border: 0; background: none; color: var(--blue); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.cat-more[hidden] { display: none; }
.cat-more:hover span { text-decoration: underline; }
.cat-more .icon { transform: rotate(90deg); transition: transform 0.2s; }
.cat-more[aria-expanded="true"] .icon { transform: rotate(-90deg); }

.dir-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.dir-count { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; min-height: 40px; font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.dir-count b { color: var(--ink); font-weight: 800; }
.dir-clear { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.dir-clear:hover { text-decoration: underline; }
.dir-sort { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.dir-sort select { height: 40px; padding: 0 34px 0 12px; border: 1px solid #cfdceb; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b84' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; -webkit-appearance: none; appearance: none; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.dir-sort select:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }

.dir-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.dir-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); border: 1px solid rgba(227, 234, 243, 0.9); box-shadow: var(--shadow-card); overflow: hidden; transition: transform 0.18s, box-shadow 0.18s; }
.dir-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.dir-card .media { aspect-ratio: 16 / 10; }
.dir-body { flex: 1; padding: 12px 14px 4px; }
.dir-cat { font-size: 0.78rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.03em; }
.dir-body h2 { margin-top: 2px; font-size: 1.02rem; font-weight: 700; line-height: 1.4; color: var(--ink); }
.dir-services { margin-top: 6px; font-size: 0.84rem; line-height: 1.5; color: var(--muted); }
.dir-actions { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px 14px 14px; }
.dir-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 40px; padding: 0 6px; border-radius: 10px; font-size: 0.86rem; font-weight: 700; white-space: nowrap; }
.dir-btn .icon { width: 15px; height: 15px; }
.dir-btn--call { background: var(--blue-tint); color: var(--blue-deep); }
.dir-btn--call:hover { background: #d5e6f8; }
.dir-btn--wa { background: #dcfce7; color: #15803d; }
.dir-btn--wa:hover { background: #c9f5d8; }
.dir-actions > .dir-btn:only-child { grid-column: 1 / -1; }
/* Narrow cards (3 cols on tablets, 2 cols just above 480px): keep "WhatsApp" clear of the button edges */
.dir-actions { container-type: inline-size; }
@container (max-width: 215px) {
  .dir-btn { gap: 4px; font-size: 0.8rem; }
  .dir-btn .icon { width: 14px; height: 14px; }
}

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.pager-btn { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid #cfdceb; background: #fff; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.pager-btn:hover { border-color: var(--blue); color: var(--blue); }
.pager-btn.is-off { opacity: 0.45; pointer-events: none; }
.pager-btn .icon { width: 16px; height: 16px; }
.pager-btn .flip { transform: rotate(180deg); }
.pager-info { font-size: 0.9rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
@media (max-width: 380px) {
  .pager { gap: 8px; }
  .pager-btn { padding: 0 12px; }
}
.pager[hidden] { display: none; }
/* Infinite scroll on /businesses (site.js); the pager above is the no-JS fallback */
.dir-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; text-align: center; }
.dir-more[hidden], .dir-more [hidden] { display: none; }
.dir-sentinel { display: block; width: 100%; height: 1px; }
.dir-loading { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.dir-spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid #cfdceb; border-top-color: var(--blue); animation: dir-spin 0.8s linear infinite; }
@keyframes dir-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dir-spin { animation-duration: 2.4s; } }
.dir-end { font-size: 0.9rem; font-weight: 600; color: var(--muted); }

.dir-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; margin-top: 44px; padding: 28px 32px; border-radius: var(--r-lg); color: #fff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 92% 10%, rgba(56, 189, 248, 0.35), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(245, 158, 11, 0.18), transparent 38%),
    linear-gradient(160deg, #1769b5 0%, #0b3a73 100%);
  box-shadow: 0 22px 44px -26px rgba(11, 58, 115, 0.75); }
.dir-cta-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; align-self: start; }
.dir-cta-badge .icon { width: 30px; height: 30px; }
.dir-cta h2 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 800; line-height: 1.35; color: #fff; }
.dir-cta p { margin-top: 4px; color: rgba(255, 255, 255, 0.86); font-weight: 500; line-height: 1.55; }
.dir-cta-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; padding: 0; list-style: none; }
.dir-cta-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: #fff; line-height: 1.4; }
.dir-cta-points .icon { flex-shrink: 0; width: 20px; height: 20px; padding: 4px; border-radius: 999px; background: var(--saffron); color: var(--ink); stroke-width: 3.2; }
.dir-cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; height: 52px; padding: 0 26px; border-radius: 999px; background: var(--saffron); color: var(--ink); font-weight: 800; font-size: 1rem; white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(245, 158, 11, 0.9); transition: background-color 0.15s, transform 0.15s; }
.dir-cta-btn:hover { background: #fbb024; transform: translateY(-1px); }
.dir-cta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.dir-cta-btn .icon { width: 20px; height: 20px; stroke-width: 2.6; }

@media (max-width: 1100px) { .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .dir-grid { gap: 14px; }
  /* Chips scroll sideways in one row instead of wrapping into a tall block */
  .cat-bar { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .cat-bar::-webkit-scrollbar { display: none; }
  /* Touch-size targets: chips and the breadcrumb link reach 40px without moving anything */
  .cat-chip { min-height: 40px; }
  .crumbs a { padding-block: 10px; margin-block: -10px; }
}
/* Two columns only once three would squeeze the Call / WhatsApp buttons (3 cols stay on 768–820 tablets) */
@media (max-width: 760px) { .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* CTA banner: button drops below the text on tablets */
@media (max-width: 960px) {
  .dir-cta { grid-template-columns: auto minmax(0, 1fr); row-gap: 18px; }
  .dir-cta-btn { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) {
  .page-hero-inner { padding-top: 18px; padding-bottom: 24px; }
  .page-lead { font-size: 0.92rem; }
  .dir-search { height: 50px; padding-left: 14px; }
  .dir-search button { height: 40px; padding: 0 16px; }
  .dir-bar { row-gap: 6px; }
  .dir-actions { gap: 6px; padding: 10px 12px 12px; }
  .dir-cta { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 32px; padding: 22px 18px; }
  .dir-cta-badge { width: 52px; height: 52px; border-radius: 15px; }
  .dir-cta-badge .icon { width: 26px; height: 26px; }
  .dir-cta-points { flex-direction: column; gap: 8px; margin-top: 12px; }
  .dir-cta-btn { grid-column: auto; justify-self: stretch; width: 100%; height: 50px; padding: 0 16px; white-space: normal; text-align: center; }
}
@media (max-width: 480px) {
  /* Compact list rows on phones: photo left, text right, buttons below */
  .dir-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dir-card { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: start; }
  .dir-card .media { aspect-ratio: auto; width: 96px; height: 96px; margin: 12px 0 0 12px; border-radius: 12px; }
  .dir-body { padding: 12px 12px 4px; }
  .dir-body h2 { font-size: 0.98rem; }
  .dir-actions { grid-column: 1 / -1; align-self: end; padding: 8px 12px 12px; }
}
/* Business detail page (/businesses/{id}) */
.bd { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding-block: 24px 48px; align-items: start; }
.bd-main, .bd-card { background: #fff; border: 1px solid rgba(227, 234, 243, 0.9); border-radius: var(--r); box-shadow: var(--shadow-card); }
.bd-main { padding: 20px; }
.bd-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.bd-photo { aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: var(--blue-wash); }
.bd-photo .bd-photo-bg { filter: blur(18px) saturate(1.1); transform: scale(1.2); opacity: 0.55; }
.bd-photo-btn { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; display: block; }
.bd-photo-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bd-actions { padding: 14px 0 0; }
.bd-sec { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.bd-sec h2, .bd-card h2 { font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.bd-sec p, .bd-card p { font-size: 0.95rem; line-height: 1.65; color: var(--ink-soft); overflow-wrap: anywhere; }
.bd-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bd-gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--blue-wash); border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.bd-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .25s ease; }
.bd-gallery button:hover img, .bd-gallery button:focus-visible img { transform: scale(1.05); }
.bd-gallery button:focus-visible, .bd-photo-btn:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.bd-side { display: grid; gap: 16px; }
.bd-card { padding: 18px; }
.bd-list { display: grid; gap: 10px; }
.bd-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; overflow-wrap: anywhere; }
.bd-list .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--blue); }
.bd-list a { color: var(--ink); font-weight: 600; }
.bd-app { background: linear-gradient(160deg, #fff 0%, var(--blue-wash) 60%, var(--saffron-tint) 140%); border-top: 3px solid var(--saffron); }
.bd-app-top { display: flex; gap: 14px; align-items: flex-start; }
.bd-app-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 6px 16px rgba(14, 63, 122, 0.22); }
.bd-app h2 { margin-bottom: 4px; }
.bd-app p { font-size: 0.88rem; line-height: 1.5; }
.bd-app-btns { display: grid; gap: 10px; margin-top: 16px; }
.bd-store, .bd-open { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px; font-weight: 800; font-size: 0.95rem; text-align: center; transition: transform .15s ease, box-shadow .15s ease; }
.bd-store { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; box-shadow: 0 8px 18px rgba(14, 63, 122, 0.28); }
.bd-open { background: #fff; color: var(--blue-deep); border: 1.5px solid var(--blue); }
.bd-store:hover, .bd-open:hover { transform: translateY(-1px); }
.bd-store .icon, .bd-open .icon { width: 18px; height: 18px; flex: none; }
.bd-similar { padding-bottom: 48px; }
.bd-similar h2 { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.bd-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); }
.bd-back .icon { width: 16px; height: 16px; }
/* Reviews & ratings */
.bd-rev { scroll-margin-top: calc(var(--header-h) + 12px); }
.bd-rev-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bd-rev-head h2 { margin-bottom: 0; }
.bd-rev-add { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 12px; background: var(--blue-wash); color: var(--blue-deep); border: 1.5px solid var(--blue); font-weight: 800; font-size: 0.9rem; text-align: center; transition: transform .15s ease, background .15s ease; }
.bd-rev-add:hover { background: var(--blue-tint); transform: translateY(-1px); }
.bd-rev-add:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.bd-rev-add .icon { width: 16px; height: 16px; flex: none; }
.bd-rev-sum { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px; border-radius: var(--r-sm); background: var(--blue-wash); }
.bd-rev-score { display: grid; justify-items: center; gap: 4px; text-align: center; }
.bd-rev-score b { font-size: 2.6rem; line-height: 1; font-weight: 800; color: var(--ink); }
.bd-rev-total { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.bd-stars { display: inline-flex; gap: 2px; color: #c9d4e3; }
.bd-stars .icon { width: 18px; height: 18px; }
.bd-stars .on { color: var(--saffron); }
.bd-stars--sm .icon { width: 14px; height: 14px; }
.bd-rev-bars { display: grid; gap: 6px; min-width: 0; }
.bd-rev-bars li { display: grid; grid-template-columns: 34px minmax(0, 1fr) 40px; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.bd-rev-n { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.bd-rev-n .icon { width: 12px; height: 12px; color: var(--saffron); }
.bd-rev-bar { height: 8px; border-radius: 99px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bd-rev-bar i { display: block; height: 100%; border-radius: inherit; background: var(--saffron); }
.bd-rev-c { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.bd-rev-list { display: grid; margin-top: 8px; }
.bd-rev-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bd-rev-item:last-child { border-bottom: 0; padding-bottom: 0; }
.bd-rev-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-tint); color: var(--blue-deep); font-weight: 800; font-size: 1rem; }
.bd-rev-body { min-width: 0; }
.bd-rev-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.bd-rev-meta b { color: var(--ink); font-weight: 700; font-size: 0.95rem; min-width: 0; }
.bd-rev-meta time { font-size: 0.8rem; color: var(--muted); }
.bd-rev-body p { margin-top: 6px; font-size: 0.92rem; }
.bd-rev-more { margin-top: 12px; font-size: 0.88rem !important; color: var(--muted) !important; }
.bd-rev-empty { display: grid; justify-items: center; gap: 10px; padding: 22px 16px; border-radius: var(--r-sm); background: var(--blue-wash); text-align: center; }
.bd-rev-empty > .icon { width: 30px; height: 30px; color: var(--saffron); }
.bd-rev-empty p { color: var(--muted); }
.lb { position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 16, 32, 0.92); color: #fff; }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb::backdrop { background: rgba(8, 16, 32, 0.92); }
.lb-img { max-width: min(92vw, 1200px); max-height: 84vh; object-fit: contain; border-radius: 8px; user-select: none; touch-action: pan-y; }
.lb-x, .lb-nav { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; cursor: pointer; }
.lb-x:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.3); }
.lb-x { top: 14px; right: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb .icon { width: 22px; height: 22px; }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 0.9rem; color: #fff; }
.lb.single .lb-nav, .lb.single .lb-count { display: none; }
body.lb-open { overflow: hidden; }
@media (max-width: 860px) {
  .bd { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .bd-head { grid-template-columns: minmax(0, 1fr); }
  .bd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-nav { top: auto; bottom: 10px; transform: none; }
  .lb-img { max-height: 76vh; }
  .bd-main { padding: 16px; }
  .bd-rev-sum { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
  .bd-rev-head .bd-rev-add { width: 100%; }
}

/* ---- Places listing page ---- */
.plp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plp-card .media { aspect-ratio: 5 / 3; }
.plp-loc { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; font-weight: 700; color: var(--blue); }
.plp-loc .icon { width: 14px; height: 14px; flex-shrink: 0; }
.plp-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px 14px; font-size: 0.86rem; font-weight: 700; color: var(--blue-deep); }
.plp-card:hover .go { transform: translateX(3px); background: var(--blue-deep); }
@media (max-width: 760px) { .plp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plp-foot span:first-child { white-space: nowrap; }
@media (max-width: 480px) {
  .plp-grid { grid-template-columns: minmax(0, 1fr); }
  /* Phone rows put the photo in a 108px column; the footer must span the full card width */
  .plp-foot { grid-column: 1 / -1; margin-top: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
  .plp-foot .go { width: 28px; height: 28px; }
}

/* ---- Place detail page ---- */
.pld-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.pld-head .rating a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.pld-where { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 0.92rem; line-height: 1.5; color: var(--ink-soft); overflow-wrap: anywhere; }
.pld-where .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--blue); }
.pld-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pld-actions > a { flex: 1 1 160px; }
.pld-loc .pld-where { margin: 0 0 12px; }
.pld-map { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--blue-wash); border: 1px solid var(--line); }
.pld-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pld-dir { display: flex; width: 100%; margin-top: 12px; }
.bd-similar .place-grid .rating { margin-top: 4px; font-size: 0.85rem; }
@media (max-width: 860px) { .pld-head { grid-template-columns: minmax(0, 1fr); } }

/* ---- News listing page ---- */
.nwl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nwl-card .media { aspect-ratio: 16 / 10; }
.nwl-card:hover .go { transform: translateX(3px); background: var(--blue-deep); }
.nwl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.nwl-agency { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--saffron-deep); }
.nwl-agency + time::before { content: "·"; margin-right: 8px; color: #9aa9bd; }
.nwl-card h2 { margin-top: 4px; }
.clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.nwl-flag { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--saffron); color: var(--ink); font-size: 0.78rem; font-weight: 800; box-shadow: 0 6px 14px -6px rgba(180, 83, 9, 0.7); }
.nwl-flag .icon { width: 13px; height: 13px; }
/* Lead story: photo left, text right on wide screens; stacks on tablets and phones */
.nwl-lead-wrap { margin-top: 18px; }
.nwl-lead { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: 1fr auto; }
.nwl-lead .media { grid-row: 1 / span 2; aspect-ratio: 16 / 10; }
.nwl-lead .dir-body { display: flex; flex-direction: column; justify-content: center; padding: 22px 26px 6px; }
.nwl-lead .nwl-meta { font-size: 0.84rem; }
.nwl-lead .dir-body .nwl-lead-title { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 800; line-height: 1.35; }
.nwl-lead .dir-services { margin-top: 10px; font-size: 0.95rem; }
.nwl-lead .plp-foot { padding: 8px 26px 22px; }
@media (max-width: 1100px) { .nwl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .nwl-lead { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .nwl-lead .media { grid-row: auto; }
  .nwl-lead .dir-body { padding: 16px 18px 4px; }
  .nwl-lead .plp-foot { padding: 8px 18px 18px; }
}
@media (max-width: 760px) { .nwl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .nwl-grid { grid-template-columns: minmax(0, 1fr); }
  .nwl-grid .plp-foot { grid-column: 1 / -1; margin-top: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
  .nwl-grid .plp-foot .go { width: 28px; height: 28px; }
  /* The lead keeps its full-width photo instead of the compact phone row used by grid cards */
  .nwl-lead { display: flex; flex-direction: column; }
  .nwl-lead .media { width: auto; height: auto; margin: 0; border-radius: 0; aspect-ratio: 16 / 10; }
  .nwl-lead .dir-body { padding: 14px 14px 4px; }
  .nwl-lead .plp-foot { padding: 8px 14px 14px; }
}

/* ---- News detail page ---- */
.page-hero h1.nwd-title { font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.35; overflow-wrap: anywhere; }
.nwd-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.nwd-agency { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nwd-agency-logo { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: var(--blue-tint); color: var(--blue-deep); font-weight: 800; }
.nwd-agency-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.nwd-agency-text { display: grid; min-width: 0; line-height: 1.35; }
.nwd-agency-text b { font-weight: 800; color: var(--ink); }
.nwd-agency-text > span { font-size: 0.84rem; font-weight: 500; color: var(--muted); }
.nwd-dot::before { content: "\00b7"; margin: 0 6px; }
.nwd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nwd-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); font-size: 0.8rem; font-weight: 700; }
.nwd-tag .icon { width: 14px; height: 14px; }
.nwd-tag--muted { background: var(--blue-wash); color: var(--muted); }
.nwd-updated { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.nwd-hero { margin: 18px 0 0; aspect-ratio: 16 / 9; }
.nwd-lead { margin-top: 18px; font-size: 1.08rem; font-weight: 600; line-height: 1.7; color: var(--ink); overflow-wrap: anywhere; }
.nwd-body { margin-top: 18px; font-size: 1.04rem; line-height: 1.85; color: var(--ink-soft); overflow-wrap: anywhere; }
.nwd-body > * + * { margin-top: 0.9em; }
.nwd-body h2, .nwd-body h3, .nwd-body h4 { margin-top: 1.4em; font-weight: 800; line-height: 1.4; color: var(--ink); }
.nwd-body h2 { font-size: 1.25rem; }
.nwd-body h3 { font-size: 1.12rem; }
.nwd-body h4 { font-size: 1.02rem; }
.nwd-body ul, .nwd-body ol { padding-left: 1.4em; }
.nwd-body ul { list-style: disc; }
.nwd-body ol { list-style: decimal; }
.nwd-body li + li { margin-top: 0.3em; }
.nwd-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.nwd-body strong, .nwd-body b { font-weight: 700; color: var(--ink); }
.nwd-body blockquote { padding: 10px 16px; border-left: 4px solid var(--saffron); border-radius: 0 12px 12px 0; background: var(--blue-wash); color: var(--ink); font-style: italic; }
.nwd-body img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
.nwd-share { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.nwd-share h2 { font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.nwd-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.nwd-sb { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: transform .15s ease, border-color .15s ease, background-color .15s ease; }
.nwd-sb:hover { transform: translateY(-1px); border-color: var(--blue); }
.nwd-sb:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.nwd-sb .icon { width: 18px; height: 18px; }
.nwd-sb--wa { background: #25d366; border-color: #25d366; color: #fff; }
.nwd-sb--wa:hover { background: #1ebe5b; border-color: #1ebe5b; }
.nwd-sb--fb .icon { color: #1877f2; }
.nwd-sb--app { background: var(--blue-wash); border-color: var(--blue); color: var(--blue-deep); }
.nwd-copy-msg { margin-top: 10px; font-size: 0.86rem; font-weight: 700; color: #15803d; }
.nwd-copy-msg.is-fail { color: #b42318; }
/* Most read: ranked list (big muted rank, title + source/time, small thumbnail) */
.nwd-pop-list { display: grid; margin: 0; padding: 0; list-style: none; }
.nwd-pop-item { display: grid; grid-template-columns: 30px minmax(0, 1fr) 64px; gap: 12px; align-items: center; padding: 12px 0; color: var(--ink); }
.nwd-pop-list li:first-child .nwd-pop-item { padding-top: 4px; }
.nwd-pop-list li:last-child .nwd-pop-item { padding-bottom: 0; }
.nwd-pop-list li + li .nwd-pop-item { border-top: 1px solid var(--line); }
.nwd-pop-n { align-self: start; font-size: 1.35rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: #c3d2e4; font-variant-numeric: tabular-nums; }
.nwd-pop-list li:first-child .nwd-pop-n { color: var(--blue); }
.nwd-pop-text { display: grid; gap: 4px; min-width: 0; }
.nwd-pop-title { font-size: 0.9rem; font-weight: 700; line-height: 1.45; transition: color 0.15s; }
.nwd-pop-item:hover .nwd-pop-title { color: var(--blue); }
.nwd-pop-meta { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 0.74rem; font-weight: 500; color: var(--muted); }
.nwd-pop-meta span + span::before { content: "·"; margin-right: 6px; }
.nwd-pop-thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--blue-wash); }
.nwd-pop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nwd-card .news-meta { margin-top: 4px; }
@media (max-width: 560px) {
  .nwd-meta { align-items: flex-start; }
  .nwd-body { font-size: 1rem; line-height: 1.8; }
  .nwd-sb { flex: 1 1 calc(50% - 8px); }
  .nwd-sb--app { flex-basis: 100%; }
}

/* ---- Job detail page ---- */
.jbd-hero-co { margin-top: 6px; font-size: 1.05rem; font-weight: 600; opacity: 0.92; overflow-wrap: anywhere; }
.jbd-filled { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--saffron-tint); border: 1px solid #f6d48a; color: var(--saffron-deep); }
.jbd-filled > .icon { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.jbd-filled b { display: block; font-weight: 800; color: var(--ink); }
.jbd-filled p { margin-top: 2px; font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }
.jbd-head { display: flex; gap: 14px; align-items: center; }
.jbd-logo { position: relative; display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 16px; overflow: hidden; background: var(--saffron-tint); color: #e0830a; }
.jbd-logo .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.jbd-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.jbd-head-text { display: grid; gap: 8px; min-width: 0; }
.jbd-co { font-size: 1.05rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.jbd-tag--filled { background: var(--saffron-tint); color: var(--saffron-deep); }
.jbd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.jbd-fact { padding: 12px 14px; border-radius: var(--r-sm); background: var(--blue-wash); border: 1px solid var(--line); min-width: 0; }
.jbd-fact dt { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.jbd-fact dd { margin: 4px 0 0; font-size: 0.95rem; font-weight: 700; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
.jbd-fact--pay { grid-column: 1 / -1; background: linear-gradient(135deg, var(--blue-wash), var(--saffron-tint)); }
.jbd-fact--pay dd { font-size: 1.15rem; font-weight: 800; color: var(--blue-deep); }
.jbd-left { display: block; margin-top: 2px; font-size: 0.8rem; font-weight: 700; color: var(--blue); }
.jbd-left.is-soon { color: #b42318; }
.jbd-apply { margin-top: 22px; padding: 18px; border-radius: var(--r-sm); background: #fff; border: 1.5px solid var(--blue); box-shadow: 0 10px 24px -16px rgba(14, 63, 122, 0.45); }
.jbd-apply h2 { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.jbd-apply p { font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); overflow-wrap: anywhere; }
.jbd-walkin { display: flex; gap: 8px; align-items: flex-start; }
.jbd-walkin .icon { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--blue); }
.jbd-walkin b { color: var(--ink); }
.jbd-contact { margin-top: 6px; }
.jbd-contact b { color: var(--ink); }
.jbd-apply-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jbd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 1 1 140px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 800; font-size: 0.95rem; text-align: center; transition: transform .15s ease, background-color .15s ease; }
.jbd-btn:hover { transform: translateY(-1px); }
.jbd-btn:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.jbd-btn .icon { width: 18px; height: 18px; flex: none; }
.jbd-btn--call { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; }
.jbd-btn--wa { background: #25d366; color: #fff; }
.jbd-btn--wa:hover { background: #1ebe5b; }
.jbd-btn--mail { background: var(--blue-tint); color: var(--blue-deep); }
.jbd-btn--app { background: #fff; color: var(--blue-deep); border-color: var(--blue); }
.jbd-body { margin-top: 0; font-size: 1rem; line-height: 1.75; }
.jbd-safe { border-top: 3px solid #b42318; }
.jbd-safe h2 { display: flex; align-items: center; gap: 8px; }
.jbd-safe h2 .icon { width: 20px; height: 20px; color: #b42318; }
.jbd-report { display: inline-block; margin-top: 10px; font-size: 0.88rem; font-weight: 700; color: #b42318; text-decoration: underline; text-underline-offset: 2px; }
.jbd-similar { margin-top: 14px; }
.jbd-sim-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; }
.jbd-sim-type { padding: 2px 8px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); font-size: 0.74rem; font-weight: 700; }
@media (max-width: 560px) {
  .jbd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jbd-apply { padding: 14px; }
  .jbd-btn--app { flex-basis: 100%; }
}

/* ---- Jobs listing page ---- */
.jbl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.jbl-card .dir-body { padding: 16px 16px 6px; }
.jbl-card:hover .go { transform: translateX(3px); background: var(--blue-deep); }
.jbl-top { display: flex; align-items: flex-start; gap: 12px; }
.jbl-logo { position: relative; display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--blue-tint); color: var(--blue); }
.jbl-logo .icon { width: 22px; height: 22px; }
.jbl-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.jbl-head { min-width: 0; flex: 1; }
.jbl-card .jbl-head h2 { margin-top: 0; }
.jbl-co { margin-top: 2px; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.jbl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.jbl-tag { padding: 3px 10px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); font-size: 0.76rem; font-weight: 700; line-height: 1.5; }
.jbl-tag--soon { background: var(--saffron-tint); color: var(--saffron-deep); }
.jbl-tag--filled { background: #eef1f5; color: #475569; }
.jbl-pay { margin-top: 10px; font-size: 1rem; font-weight: 800; color: var(--ink); }
.jbl-pay.is-none { font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.jbl-meta { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 0.84rem; color: var(--ink-soft); }
.jbl-meta li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.jbl-meta .icon { width: 14px; height: 14px; flex: none; color: var(--muted); }
.jbl-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jbl-when { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.jbl-card.is-filled .jbl-pay, .jbl-card.is-filled .jbl-head h2 { color: var(--muted); }
.jbl-opts { flex-wrap: wrap; }
.jbl-opts select { max-width: 200px; }
@media (max-width: 1100px) { .jbl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .jbl-opts { width: 100%; }
  .jbl-opts select { flex: 1 1 120px; max-width: none; }
}
@media (max-width: 480px) {
  /* Text-only cards: keep the stacked layout instead of the photo-left phone row */
  .jbl-grid { grid-template-columns: minmax(0, 1fr); }
  .jbl-card { display: flex; }
  .jbl-card .dir-body { padding: 14px 14px 4px; }
  .jbl-card .plp-foot { margin-top: 8px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
  .jbl-card .plp-foot .go { width: 28px; height: 28px; }
}
