@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../vendor/inter/inter-vietnamese-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../vendor/inter/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../vendor/inter/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/*
 * NhaNau theme: warm kitchen orange (from the logo) with a leaf-green accent, calm warm greys, Inter (self-hosted, with Vietnamese).
 * Loaded after Bootstrap; only overrides its variables and a few components, so every page picks it up.
 * Change the brand colour in one place: --brand / --brand-rgb (and the darker hover/active shades).
 */
:root:not([data-bs-theme="dark"]), [data-bs-theme="light"] {
  /* #b9501f = the logo's orange, darkened just enough for white text (4.9:1). Green = the logo's leaves. */
  --brand: #b9501f; --brand-rgb: 185, 80, 31; --brand-hover: #9e4419; --brand-active: #853914;
  --brand-subtle: #fcebdd; --brand-border: #f0c3a3; --brand-ink: #7a3a12;
  --brand-pale: #f8d9c2; --brand-pale-hover: #f3c9aa;
  --accent: #245c3a; --accent-rgb: 36, 92, 58; --accent-subtle: #e4efe7;

  --bs-primary: var(--brand); --bs-primary-rgb: var(--brand-rgb);
  --bs-primary-bg-subtle: var(--brand-subtle); --bs-primary-border-subtle: var(--brand-border); --bs-primary-text-emphasis: var(--brand-ink);
  --bs-link-color: var(--brand); --bs-link-color-rgb: var(--brand-rgb); --bs-link-hover-color: var(--brand-hover); --bs-link-hover-color-rgb: 158, 68, 25;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bs-body-color: #1f2937; --bs-body-color-rgb: 31, 41, 55;
  --bs-secondary-color: #6b7280; --bs-secondary-color-rgb: 107, 114, 128;
  --bs-tertiary-bg: #f5f6f8; --bs-tertiary-bg-rgb: 245, 246, 248;
  --bs-secondary-bg: #eceef1;
  --bs-border-color: #e5e7eb; --bs-border-color-translucent: rgba(17, 24, 39, .08);
  --bs-border-radius: .625rem; --bs-border-radius-sm: .5rem; --bs-border-radius-lg: .875rem; --bs-border-radius-xl: 1.125rem;
  --bs-box-shadow-sm: 0 1px 2px rgba(17, 24, 39, .06);
  --bs-box-shadow: 0 6px 18px rgba(17, 24, 39, .08);
  --bs-focus-ring-color: rgba(var(--brand-rgb), .25);
  --surface: #fff;
}
[data-bs-theme="dark"] {
  --brand: #b9501f; --brand-rgb: 185, 80, 31; --brand-hover: #cf5f2a; --brand-active: #e0753f;
  --brand-subtle: #2e1a10; --brand-border: #6b3317; --brand-ink: #f4a777;
  --brand-pale: #4a2614; --brand-pale-hover: #5a2f19;
  --bs-primary: var(--brand); --bs-primary-rgb: var(--brand-rgb);
  --bs-primary-bg-subtle: var(--brand-subtle); --bs-primary-border-subtle: var(--brand-border); --bs-primary-text-emphasis: var(--brand-ink);
  --bs-link-color: #f4a777; --bs-link-color-rgb: 244, 167, 119; --bs-link-hover-color: #f8c4a2; --bs-link-hover-color-rgb: 248, 196, 162;
  --bs-body-bg: #0f1115; --bs-body-bg-rgb: 15, 17, 21;
  --bs-tertiary-bg: #0f1115; --bs-tertiary-bg-rgb: 15, 17, 21;
  --bs-secondary-bg: #1d212a;
  --bs-border-color: #2a2f3a;
  --surface: #171a21;
  --bs-focus-ring-color: rgba(244, 167, 119, .25);
  --accent: #7fc79a; --accent-rgb: 127, 199, 154; --accent-subtle: #13261b;
  --bs-body-color: #e5e7eb; --bs-body-color-rgb: 229, 231, 235;
  --bs-secondary-color: #9ca3af; --bs-secondary-color-rgb: 156, 163, 175;
  --bs-emphasis-color: #fff;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --bs-border-radius: .625rem; --bs-border-radius-sm: .5rem; --bs-border-radius-lg: .875rem; --bs-border-radius-xl: 1.125rem;
  --bs-box-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --bs-box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}

body { font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; letter-spacing: -.003em; }
h1, h2, h3, .h1, .h2, .h3, .h4, .h5 { letter-spacing: -.015em; font-weight: 700; }

/* Surfaces */
.card { --bs-card-bg: var(--surface); --bs-card-border-color: var(--bs-border-color); border-radius: var(--bs-border-radius-lg); }
.card.border-0 { border: 1px solid var(--bs-border-color) !important; }
.shadow-sm { box-shadow: var(--bs-box-shadow-sm) !important; }
.modal-content, .dropdown-menu, .offcanvas { --bs-modal-bg: var(--surface); --bs-dropdown-bg: var(--surface); --bs-offcanvas-bg: var(--surface); }
.dropdown-menu { border-color: var(--bs-border-color); box-shadow: var(--bs-box-shadow); }
.bg-body { background-color: var(--surface) !important; }

/* Buttons (Bootstrap compiles its blue into each button, so set them here) */
.btn { --bs-btn-font-weight: 600; --bs-btn-border-radius: .625rem; --bs-btn-padding-x: .9rem; }
.btn-sm { --bs-btn-border-radius: .5rem; --bs-btn-padding-x: .65rem; }
.btn-lg { --bs-btn-border-radius: .75rem; }
.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-hover); --bs-btn-hover-border-color: var(--brand-hover);
  --bs-btn-active-bg: var(--brand-active); --bs-btn-active-border-color: var(--brand-active); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
  --bs-btn-focus-shadow-rgb: var(--brand-rgb);
}
.btn-outline-primary {
  --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-hover); --bs-btn-active-border-color: var(--brand-hover); --bs-btn-disabled-color: var(--brand); --bs-btn-focus-shadow-rgb: var(--brand-rgb);
}
[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-color: #f4a777; --bs-btn-border-color: #8a4520; }
.btn-outline-secondary { --bs-btn-color: var(--bs-body-color); --bs-btn-border-color: var(--bs-border-color); --bs-btn-hover-bg: var(--bs-secondary-bg); --bs-btn-hover-color: var(--bs-body-color); --bs-btn-hover-border-color: var(--bs-border-color); --bs-btn-active-bg: var(--bs-secondary-bg); --bs-btn-active-color: var(--bs-body-color); --bs-btn-active-border-color: var(--bs-border-color); }
.btn-light { --bs-btn-bg: var(--surface); --bs-btn-border-color: var(--bs-border-color); --bs-btn-hover-bg: var(--bs-secondary-bg); --bs-btn-hover-border-color: var(--bs-border-color); --bs-btn-color: var(--bs-body-color); }
.btn-success { --bs-btn-bg: #15803d; --bs-btn-border-color: #15803d; --bs-btn-hover-bg: #166534; --bs-btn-hover-border-color: #166534; }

/* Forms */
.form-control, .form-select { border-radius: .625rem; border-color: var(--bs-border-color); background-color: var(--surface); }
.form-control:focus, .form-select:focus { border-color: var(--brand-border); box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .18); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand-border); box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .18); }
.form-switch .form-check-input:focus { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23b9501f'/%3e%3c/svg%3e"); }
.form-label { font-weight: 500; }

/* Nav, pagination, badges */
.nav-pills { --bs-nav-pills-link-active-bg: var(--brand); }
.nav-underline .nav-link.active, .nav-tabs .nav-link.active { color: var(--brand); }
[data-bs-theme="dark"] .nav-underline .nav-link.active { color: #f4a777; }
.pagination { --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); --bs-pagination-color: var(--brand); --bs-pagination-border-radius: .5rem; }
.text-bg-primary { background-color: var(--brand) !important; }
.text-primary { color: var(--brand) !important; }
[data-bs-theme="dark"] .text-primary { color: #f4a777 !important; }
.badge { font-weight: 600; letter-spacing: .01em; }
.badge.text-bg-light { background-color: var(--bs-tertiary-bg) !important; color: var(--bs-secondary-color) !important; }
.alert { border-radius: .75rem; }
.alert-info { --bs-alert-bg: var(--brand-subtle); --bs-alert-border-color: var(--brand-border); --bs-alert-color: var(--brand-ink); }
.table { --bs-table-bg: transparent; }

/* Wordmark */
.logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--bs-body-color); text-decoration: none; }
.logo-mark { display: block; width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.logo-word { font-weight: 800; font-size: 1.3rem; letter-spacing: -.035em; line-height: 1; color: var(--brand); }
.logo-sub { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--bs-secondary-color); border-left: 1px solid var(--bs-border-color); padding-left: .5rem; margin-left: .1rem; }

/* ---------------------------------------------------------------- public site */
.public-page { background: var(--bs-tertiary-bg); }
.site-nav { background: var(--surface); border-bottom: 1px solid var(--bs-border-color); }
.site-nav .nav-btn { color: var(--bs-body-color); font-weight: 500; }
.site-nav .nav-btn:hover { background: var(--bs-secondary-bg); }
.site-footer { border-top: 1px solid var(--bs-border-color); background: var(--surface); }

/* Search band */
.board-hero h1 { font-weight: 800; }
.search-bar { display: flex; gap: .5rem; background: var(--surface); border: 1px solid var(--bs-border-color); border-radius: 1rem; padding: .5rem; box-shadow: var(--bs-box-shadow-sm); }
.search-bar .sb-field { position: relative; display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.search-bar .sb-field > .bi { position: absolute; left: .85rem; color: var(--bs-secondary-color); pointer-events: none; }
.search-bar .form-control { border: 0; background: transparent; padding-left: 2.4rem; height: 2.75rem; box-shadow: none !important; }
.search-bar .sb-where { border-left: 1px solid var(--bs-border-color); }
.search-bar .sb-where .form-select { width: auto; border: 0; background-color: transparent; box-shadow: none !important; color: var(--bs-secondary-color); }
.search-bar .sb-go { padding-inline: 1.25rem; border-radius: .75rem; }
@media (max-width: 767.98px) {
  .search-bar { flex-direction: column; }
  .search-bar .sb-where { border-left: 0; border-top: 1px solid var(--bs-border-color); }
}

/* Category chips: one row that scrolls sideways on phones */
.chip-strip { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.chip-strip::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--bs-border-color);
  background: var(--surface); color: var(--bs-body-color); font-weight: 500; font-size: .9rem; text-decoration: none; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--brand-border); color: var(--bs-body-color); }
.chip .chip-n { color: var(--bs-secondary-color); font-size: .8rem; }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.active .chip-n { color: rgba(255, 255, 255, .8); }
.chip.is-empty { opacity: .55; }

/* Filters panel */
.filters-title { font-weight: 700; margin-bottom: .75rem; }
#filters .form-label { color: var(--bs-body-color); }
.section-title { font-size: 1rem; font-weight: 700; margin: 0 0 .6rem; }
.view-toggle .btn { --bs-btn-font-weight: 500; }

/* Ad cards (photo first). Names avoid "ad"/"promo": ad blockers hide those. */
.item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }
.listing-card { overflow: hidden; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.listing-card:hover { box-shadow: var(--bs-box-shadow) !important; transform: translateY(-2px); border-color: var(--brand-border) !important; }
.listing-card.is-featured { border-color: #f5c66b !important; box-shadow: 0 0 0 1px #f5c66b; }
.listing-card.tint { background: #fff8e1; }
[data-bs-theme="dark"] .listing-card.tint { background: #2b2616; }
.item-photo { position: relative; aspect-ratio: 4 / 3; background: var(--bs-secondary-bg); }
.item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--bs-secondary-color);
  background: linear-gradient(135deg, var(--brand-subtle), var(--bs-secondary-bg)); font-size: 2.25rem; }
.item-flags { position: absolute; left: .5rem; top: .5rem; display: flex; flex-wrap: wrap; gap: .25rem; max-width: calc(100% - 3.25rem); }
.flag-featured { background: #fbbf24; color: #3b2a00; }
.item-body { padding: .7rem .8rem .75rem; display: flex; flex-direction: column; gap: .2rem; }
.item-price { font-weight: 800; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-title { font-size: .95rem; font-weight: 500; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-title.title-strong { font-weight: 800; font-size: 1rem; }
.item-meta, .item-foot { display: flex; gap: .3rem; font-size: .8rem; color: var(--bs-secondary-color); min-width: 0; }
.item-foot { margin-top: auto; padding-top: .25rem; }
.save-heart { background: rgba(255, 255, 255, .92); border: 0; backdrop-filter: blur(4px); }
[data-bs-theme="dark"] .save-heart { background: rgba(23, 26, 33, .85); }

/* Featured row */
.spotlight-row > .spotlight-tile { flex: 0 0 13.5rem; scroll-snap-align: start; }
.spotlight-tile .listing-card:hover { transform: none; }

/* Ad page */
.listing-title { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.listing-price { font-size: 1.35rem; font-weight: 800; color: var(--brand); margin-top: .35rem; }
[data-bs-theme="dark"] .listing-price { color: #f4a777; }
.listing-desc { line-height: 1.65; }
.eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bs-secondary-color); margin-bottom: .5rem; }
.person-dot { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-subtle); color: var(--brand-ink); font-weight: 800; }
.reveal-btn { font-size: 1rem; }
@media (min-width: 992px) { .contact-sticky { position: sticky; top: 5rem; z-index: 1; } }
.item-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .item-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Small finishing touches */
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.table > thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); font-weight: 600; }
.app-sidebar .nav-link.active { background: var(--brand); }
.app-sidebar .nav-link:not(.active):hover { background: var(--bs-secondary-bg); }
.brand-mark { background: var(--brand); }

/* Long forms: numbered sections */
.form-section { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; font-weight: 700; margin: .75rem 0 0; padding-top: .75rem; border-top: 1px solid var(--bs-border-color); }
.row > .col-12:first-child .form-section { border-top: 0; padding-top: 0; margin-top: 0; }
.form-section > span { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-subtle); color: var(--brand-ink); font-size: .85rem; font-weight: 800; }

/* Error pages */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.error-code { font-size: 4.5rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--brand); }
.flag-status { background: rgba(17, 24, 39, .85); color: #fff; }
.listing-card.is-off .item-photo img, .listing-card.is-off .item-noimg { filter: grayscale(1); opacity: .6; }

/* "Add to home screen" banner (js/pwa.js) */
.install-strip { position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 1080;
  display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border-radius: 1rem;
  background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.15); }
.install-strip.d-none { display: none !important; }
/* Installed app: room for the iPhone notch / home bar. */
@media (display-mode: standalone) { .site-nav { padding-top: max(.5rem, env(safe-area-inset-top)) !important; } }

/* Staff sidebar: "On the site now" live dot */
.live-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--bs-success); display: inline-block; align-self: center;
  box-shadow: 0 0 0 0 rgba(25, 135, 84, .5); animation: live-pulse 2s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 .45rem rgba(25, 135, 84, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---- Board list: one compact text row per ad (classifieds/public/_row). Names avoid "ad"/"promo": ad blockers. ---- */
.row-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--bs-border-color); border-radius: .75rem; overflow: hidden; }
.row-item { position: relative; border-bottom: 1px solid var(--bs-border-color-translucent); }
.row-item:last-child { border-bottom: 0; }
.row-link { display: flex; gap: .8rem; padding: .7rem 2.9rem .7rem .9rem; color: inherit; text-decoration: none; min-width: 0; }
.row-link:hover { background: var(--bs-tertiary-bg); }
.row-link:hover .row-title { text-decoration: underline; text-underline-offset: 2px; }
.row-thumb { position: relative; flex: 0 0 4rem; width: 4rem; height: 4rem; border-radius: .45rem; overflow: hidden; background: var(--bs-secondary-bg); align-self: flex-start; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-icon { display: flex; align-items: center; justify-content: center; background: var(--brand-subtle); color: var(--brand-ink); font-size: 1.5rem; }
[data-bs-theme="dark"] .row-icon { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
.row-count { position: absolute; right: 3px; bottom: 3px; font-size: .65rem; line-height: 1; padding: .15rem .3rem; border-radius: .25rem; background: rgba(17, 24, 39, .75); color: #fff; }
.row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .12rem; }
.row-top { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.row-title { margin: 0; font-weight: 600; font-size: 1rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.row-title.title-strong { font-weight: 800; }
.row-price { font-weight: 700; color: var(--bs-emphasis-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.row-preview { display: none; font-size: .875rem; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-meta { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--bs-secondary-color); min-width: 0; white-space: nowrap; overflow: hidden; }
.row-meta .label-chip { font-size: .7rem; flex-shrink: 0; }
.row-meta > * + *::before { content: "·"; margin-right: .35rem; }
.row-heart { position: absolute; top: .55rem; right: .45rem; }
.row-heart.save-heart { box-shadow: none !important; background: transparent; border-color: transparent; }
.row-heart.save-heart:hover { background: var(--bs-secondary-bg); }
/* Featured: pinned at the top with a warm tint and a gold edge; the "Highlight" add-on tints too. */
.row-item.is-pinned { background: #fffaeb; box-shadow: inset 3px 0 0 #f5b301; }
.row-item.tint { background: #fff8e1; }
.row-item.is-pinned .row-title::before { content: "★"; color: #f5b301; margin-right: .3rem; }
[data-bs-theme="dark"] .row-item.is-pinned, [data-bs-theme="dark"] .row-item.tint { background: #2b2616; }
@media (min-width: 768px) {
  .row-link { padding: .85rem 3.1rem .85rem 1rem; gap: 1rem; }
  .row-thumb { flex-basis: 4.5rem; width: 4.5rem; height: 4.5rem; }
  .row-top { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1rem; }
  .row-title { -webkit-line-clamp: 1; }
  .row-price { flex-shrink: 0; max-width: 45%; font-size: 1rem; }
  .row-preview { display: block; }
}
/* Phones: a smaller heading and search box, so the list starts higher. */
@media (max-width: 575.98px) {
  .board-hero h1 { font-size: 1.35rem; }
  .board-hero .mb-3 { margin-bottom: .6rem !important; }
  /* Two rows instead of three: words on top; place + Search button side by side. */
  .search-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: .3rem; gap: 0 .3rem; border-radius: .8rem; }
  .search-bar .sb-what { grid-column: 1 / -1; }
  .search-bar .sb-where { border-top: 1px solid var(--bs-border-color); }
  .search-bar .sb-go { align-self: center; margin-top: .3rem; padding: .45rem .8rem; }
  .search-bar .form-control { height: 2.4rem; }
  .search-bar > input[type="hidden"] { display: none; }
  .chip-strip.mb-3 { margin-bottom: .75rem !important; }
}

/* ---- Ad details page: text first, photos in a strip, details as a list, call bar on phones. ---- */
.detail { background: var(--surface); border: 1px solid var(--bs-border-color); border-radius: .9rem; padding: 1.1rem 1rem 1.25rem; }
@media (min-width: 768px) { .detail { padding: 1.5rem 1.6rem 1.6rem; } }
.detail-head { margin-bottom: 1rem; }
.detail .listing-title { font-size: 1.4rem; }
@media (min-width: 768px) { .detail .listing-title { font-size: 1.7rem; } }
.detail-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .35rem; font-size: .875rem; color: var(--bs-secondary-color); }
/* Photos: side by side, natural shapes, scroll / swipe sideways. */
.photo-strip { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin;
  margin-inline: -1rem; padding-inline: 1rem; }
@media (min-width: 768px) { .photo-strip { margin-inline: 0; padding-inline: 0; } }
.strip-photo { flex: 0 0 auto; height: 13.5rem; padding: 0; border: 0; border-radius: .6rem; overflow: hidden; background: var(--bs-secondary-bg); scroll-snap-align: start; cursor: zoom-in; }
.strip-photo img { height: 100%; width: auto; max-width: 85vw; object-fit: cover; display: block; }
@media (min-width: 768px) { .strip-photo { height: 18rem; } .strip-photo img { max-width: 34rem; } }
.photo-strip.is-single .strip-photo img { max-width: 100%; }
.strip-photo:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
/* Details: label / value rows, two columns on wider screens. */
.spec-list { display: grid; grid-template-columns: 1fr; margin: 0; border-top: 1px solid var(--bs-border-color-translucent); }
@media (min-width: 576px) { .spec-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
.spec-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--bs-border-color-translucent); min-width: 0; }
.spec-list dt { font-weight: 400; color: var(--bs-secondary-color); flex-shrink: 0; }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.place-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; font-size: .9rem; }
.place-line > .bi { color: var(--bs-secondary-color); }
.page-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; font-size: .875rem; }
.page-links .btn-link { font-size: inherit; text-decoration: none; }
.page-links a { text-decoration: none; }
/* Full-size photo viewer. */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0d10; color: #fff; }
.viewer::backdrop { background: #0b0d10; }
.viewer-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-slide { flex: 0 0 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; padding: 3rem .5rem; }
.viewer-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-btn { position: absolute; border: 0; border-radius: 50%; width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.2rem; }
.viewer-btn:hover { background: rgba(255, 255, 255, .26); }
.viewer-close { top: .75rem; right: .75rem; }
.viewer-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.viewer-next { right: .75rem; top: 50%; transform: translateY(-50%); }
.viewer-count { position: absolute; top: 1.1rem; left: 50%; transform: translateX(-50%); font-size: .9rem; opacity: .85; }
@media (hover: none) { .viewer-prev, .viewer-next { display: none; } }

/* Board: ✕ in the "Where" box (all areas) + "Browse by city" tab tucked under the search bar, and its panel */
.search-bar { position: relative; z-index: 2; }
.search-bar .sb-clear { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  color: var(--bs-secondary-color); text-decoration: none; font-size: .8rem; }
.search-bar .sb-clear:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.place-tab-wrap { display: flex; justify-content: center; position: relative; z-index: 1; margin-top: -1px; }
.place-tab { display: inline-flex; align-items: center; gap: .1rem; padding: .35rem 1rem .4rem; font-size: .875rem; font-weight: 600; color: var(--bs-body-color);
  background: var(--bs-secondary-bg); border: 1px solid var(--bs-border-color); border-top: 0; border-radius: 0 0 .75rem .75rem;
  box-shadow: inset 0 4px 4px -4px rgba(17, 24, 39, .18), 0 1px 2px rgba(17, 24, 39, .06); }
.place-tab:hover { background: var(--bs-tertiary-bg); }
.place-tab[aria-expanded="true"] { background: var(--surface); color: var(--brand-ink); }
.place-tab .bi-chevron-down { transition: transform .15s; }
.place-tab[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }
.city-panel { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius-lg); padding: .9rem 1rem; }
.city-head { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--bs-secondary-color); margin-bottom: .4rem; }
.city-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .1rem .75rem; }
.city-grid a { display: flex; justify-content: space-between; gap: .5rem; padding: .35rem .5rem; border-radius: var(--bs-border-radius-sm); color: var(--bs-body-color); text-decoration: none; }
.city-grid a:hover { background: var(--bs-tertiary-bg); }
.city-grid a.is-here { background: var(--brand-subtle); color: var(--brand-ink); font-weight: 600; }
.city-n { color: var(--bs-secondary-color); font-size: .8rem; font-weight: 400; }
.city-state { border-top: 1px solid var(--bs-border-color); }
.city-state > summary { padding: .5rem .25rem; cursor: pointer; font-weight: 500; display: flex; align-items: center; gap: .4rem; }
.city-state > summary .city-n { margin-left: auto; }
.city-state > .city-grid { padding: 0 0 .6rem; }
@media (max-width: 575.98px) { .city-grid { grid-template-columns: 1fr 1fr; } }
.city-state > summary { list-style: none; }
.city-state > summary::-webkit-details-marker { display: none; }
.city-state[open] > summary .bi-chevron-down { transform: rotate(180deg); }
@media (max-width: 575.98px) {
  .search-bar .sb-where .form-control { padding-left: 2.1rem; padding-right: .25rem; }
  .search-bar .sb-field > .bi { left: .7rem; }
  .search-bar .sb-clear { width: 1.4rem; }
  .search-bar .sb-where .form-select { padding-left: .4rem; padding-right: 1.6rem; background-position: right .3rem center; }
}
/* The city panel slides out from under the search bar, the tab hangs below it. */
#city-browser { position: relative; z-index: 1; margin-top: -1rem; }
.city-panel { padding-top: 1.6rem; border-top: 0; border-radius: 0 0 1rem 1rem; background: var(--surface); box-shadow: var(--bs-box-shadow-sm); }
@media (max-width: 575.98px) { #city-browser { margin-top: -.8rem; } .city-panel { padding-top: 1.3rem; border-radius: 0 0 .8rem .8rem; } }
/* "Browse by city" tab: brand-tinted so it reads as a control, with a soft drop shadow below. */
.place-tab { background: var(--brand-subtle); color: var(--brand-ink); border-color: var(--brand-border);
  box-shadow: inset 0 4px 4px -4px rgba(var(--brand-rgb), .25), 0 3px 6px -2px rgba(var(--brand-rgb), .25); }
.place-tab:hover { background: #d5ece8; border-color: var(--brand); }
.place-tab[aria-expanded="true"] { background: var(--surface); color: var(--brand-ink); border-color: var(--brand-border); }
.place-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* Categories as tabs: plain text with a green underline under the chosen one; the row scrolls sideways on phones. */
.chip-strip { gap: 1.25rem; padding: 0; margin: 0; box-shadow: inset 0 -1px 0 var(--bs-border-color);
  /* sideways only: no up/down wobble when swiping the row on a phone */
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.chip { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; box-shadow: none; padding: .55rem .1rem; margin-bottom: 0;
  color: var(--bs-secondary-color); font-weight: 500; }
.chip > .bi { color: var(--brand); }
.chip .chip-n { background: var(--brand); color: #fff; border-radius: 999px; padding: .05rem .45rem; font-weight: 700; font-size: .7rem; line-height: 1.3; }
.chip:hover { background: none; color: var(--brand-ink); border-bottom-color: var(--brand-border); }
.chip.active, .chip.active:hover { background: none; color: var(--brand-ink); border-bottom-color: var(--brand); font-weight: 700; box-shadow: none; }
.chip.active > .bi { color: var(--brand); }
.chip.active .chip-n { background: var(--brand); color: #fff; }
.chip.is-empty { opacity: .5; }
/* More breathing room between the "Browse by city" tab and the category row. */
.chip-strip { margin-top: .6rem; }
@media (max-width: 575.98px) { .chip-strip { margin-top: .35rem; } }
.results-count { color: var(--bs-secondary-color); font-size: .875rem; font-weight: 500; white-space: nowrap; }
/* "Browse by city" tab: white like the search bar it hangs from, firm grey border, orange text, soft shadow. */
.place-tab { background: var(--surface); color: var(--brand-ink); border-color: #cfd4da;
  box-shadow: 0 2px 4px -1px rgba(17, 24, 39, .1), 0 1px 2px rgba(17, 24, 39, .06); }
.place-tab > .bi-buildings { color: var(--brand); }
.place-tab:hover { background: var(--surface); border-color: var(--brand); color: var(--brand); }
.place-tab[aria-expanded="true"] { background: var(--surface); border-color: #cfd4da; }

/* Ad form in steps (public/js/steps.js). Without the script every block shows (one page). */
.is-stepped [data-step]:not(.step-on) { display: none !important; }
.step-bar { margin-bottom: .25rem; }
.step-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: .35rem; }
.step-pill { width: 100%; display: flex; align-items: center; gap: .45rem; padding: .35rem .5rem; border: 0; background: none; border-radius: var(--bs-border-radius-sm);
  color: var(--bs-secondary-color); font-size: .875rem; font-weight: 500; text-align: left; }
.step-pill:not(:disabled):hover { background: var(--bs-tertiary-bg); }
.step-pill:disabled { opacity: .55; cursor: default; }
.step-num { flex: 0 0 auto; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid #cfd4da; background: var(--surface); font-weight: 700; font-size: .8rem; }
.step-pill.is-done { color: var(--brand-ink); }
.step-pill.is-done .step-num { background: var(--brand-subtle); border-color: var(--brand-border); color: var(--brand-ink); }
.step-pill.is-current { color: var(--bs-body-color); font-weight: 700; }
.step-pill.is-current .step-num { background: var(--brand); border-color: var(--brand); color: #fff; }
.step-progress { height: 4px; border-radius: 4px; background: var(--bs-secondary-bg); overflow: hidden; }
.step-progress > span { display: block; height: 100%; width: 25%; background: var(--brand); border-radius: 4px; transition: width .25s; }
/* In steps, the step bar names the step: the big numbered heading would repeat it. */
.is-stepped .form-section { border-top: 0; padding-top: 0; margin-top: .25rem; }
.is-stepped .form-section > span { display: none; }
.step-nav { display: flex; gap: .5rem; align-items: center; }
.step-review { border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); background: var(--bs-tertiary-bg); padding: .75rem 1rem; }
.step-review-head { font-weight: 700; margin-bottom: .4rem; }
.step-review dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: 0; font-size: .9rem; }
.step-review dt { color: var(--bs-secondary-color); font-weight: 500; }
.step-review dd { margin: 0; display: flex; justify-content: space-between; gap: .5rem; min-width: 0; }
.step-review dd > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575.98px) {
  .step-list { gap: .15rem; }
  .step-pill { flex-direction: column; gap: .2rem; padding: .25rem; text-align: center; font-size: .75rem; }
}

/* Money / number fields: "$" and the unit inside the box, quiet grey, so every field is the same width and height. */
.affix { position: relative; }
.affix .affix-pre, .affix .affix-post { position: absolute; top: 50%; transform: translateY(-50%); color: var(--bs-secondary-color); pointer-events: none; font-size: .95rem; }
.affix .affix-pre { left: .8rem; font-weight: 600; }
.affix .affix-post { right: .8rem; }
.affix .form-control.has-pre { padding-left: 1.75rem; }
.affix .form-control.is-invalid { background-position: right calc(.375em + .1875rem) center; }
.affix .form-control.is-invalid ~ .affix-post { right: 2.4rem; }
/* Add-on picker: "No" shares the orange border of the paid options; when chosen it's a light orange, not solid (solid = something bought). */
.btn-check:checked + .btn.addon-none { background: var(--brand-subtle); border-color: var(--brand); color: var(--brand-ink); }
/* Manage page: "Get more calls" options fold away. */
.boost-toggle .when-open { display: none; }
.boost-toggle[aria-expanded="true"] .when-closed { display: none; }
.boost-toggle[aria-expanded="true"] .when-open { display: inline; }
.boost-toggle .bi-chevron-down { transition: transform .15s; display: inline-block; }
.boost-toggle[aria-expanded="true"] .bi-chevron-down { transform: rotate(180deg); }

/* Manage page photos: a grid that fills the card; "Cover" / "Waiting" as a label on the photo, buttons in one even row. */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.photo-tile { min-width: 0; }
.photo-img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--bs-border-radius); overflow: hidden; border: 1px solid var(--bs-border-color); }
.photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-flag { position: absolute; top: .4rem; left: .4rem; font-size: .72rem; font-weight: 600; padding: .2rem .5rem; border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.photo-actions { display: flex; gap: .35rem; margin-top: .4rem; }
.photo-actions .btn { height: 2rem; display: inline-flex; align-items: center; justify-content: center; }
/* Phones: 3 small photos a row; "Make cover" is just a star there (the cover photo wears the filled star). */
@media (max-width: 575.98px) {
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .photo-flag { font-size: .65rem; padding: .15rem .4rem; top: .25rem; left: .25rem; }
  .photo-actions .btn { height: 1.85rem; padding-inline: .45rem; }
}

/* My account: tab bar (scrolls sideways on small phones) and no extra gap above each tab's first section */
.acct-tabs { overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--bs-border-color); }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tabs .nav-link { padding-left: .25rem; padding-right: .25rem; margin-right: .75rem; }
.acct-tab > :first-child { margin-top: 0 !important; }
.acct-new { display: none; }
/* Phones: the four tabs share the width, icon above a small label, so all fit without scrolling. */
@media (max-width: 575.98px) {
    .acct-tabs .nav { gap: 0; }
    .acct-tabs .nav-item { flex: 1 1 0; min-width: 0; }
    .acct-tabs .nav-link { margin: 0; padding: .35rem .05rem .5rem; display: flex; flex-direction: column; align-items: center; font-size: .72rem; line-height: 1.2; position: relative; }
    .acct-tabs .acct-new { display: block; position: absolute; top: .3rem; left: calc(50% + .5rem); width: .5rem; height: .5rem; border-radius: 50%; background: var(--bs-success); }
    .acct-tabs .nav-link .bi { font-size: 1.15rem; margin: 0 0 .15rem !important; }
    .acct-tabs .nav-link .badge { display: none; }
    .acct-tabs .acct-tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
}

/* "Featured in <city>" strip on the board (class names avoid "ad"/"sponsor": ad blockers) */
.spot-strip .spot-card { border-color: #f5c66b !important; box-shadow: 0 1px 3px rgba(0,0,0,.06); transition: box-shadow .15s; }
.spot-strip .spot-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.spot-box { background: var(--bs-tertiary-bg); }
.spot-strip .spot-blurb { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Filters in use on the board: small chips with no fill and a thin grey outline on one line (slides sideways when there are many), each with a round × to remove it.
   A line and some room under them, so the filters and the ads are clearly separate. */
.filter-bar { display: flex; align-items: center; gap: .5rem; padding-bottom: .9rem; margin-bottom: 1rem; border-bottom: 1px solid var(--bs-border-color); }
.filter-chips { display: flex; flex-wrap: nowrap; align-items: center; gap: .35rem; min-width: 0; flex: 0 1 auto; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
  /* fade at the right edge when more chips are hidden */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 1.25rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 1.25rem), transparent); padding-right: 1rem; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .25rem .2rem .6rem; border-radius: 999px; border: 0;
  background: none; box-shadow: inset 0 0 0 1px var(--bs-border-color); color: var(--brand-ink); font-size: .8rem; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none; }
.filter-chip:hover, .filter-chip:focus-visible { background: none; box-shadow: inset 0 0 0 1px var(--brand-border); color: var(--brand-ink); }
.filter-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .6rem; }
.filter-chip:hover .filter-chip-x { background: var(--brand-hover); }
.filter-clear { flex: none; margin-left: 0; font-size: .8rem; font-weight: 600; color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
[data-bs-theme="dark"] .filter-chip-x { background: #cf5f2a; }
[data-bs-theme="dark"] .filter-chip:hover .filter-chip-x { background: #e0753f; }

/* Board, first look: welcome line, "Near me" in the where-box, and two ways to start. */
.board-welcome { color: var(--bs-secondary-color); font-size: .95rem; margin-top: .15rem; }
.search-bar .sb-nearme { display: inline-flex; align-items: center; gap: .3rem; flex: 0 0 auto; border: 0; background: var(--brand-subtle); color: var(--brand-ink);
  border-radius: 999px; padding: .2rem .6rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.search-bar .sb-nearme:hover { background: var(--brand-border); }
.search-bar .sb-nearme.is-busy .bi { animation: nearme-spin 1s linear infinite; }
@keyframes nearme-spin { to { transform: rotate(360deg); } }
@media (max-width: 575.98px) { .search-bar .sb-nearme { padding: .25rem .45rem; } .search-bar .sb-nearme-label { display: none; } }
.start-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.start-card { display: flex; align-items: center; gap: .6rem; padding: .65rem .75rem; border: 1px solid var(--bs-border-color); border-radius: .75rem;
  background: var(--surface); color: var(--bs-body-color); text-decoration: none; min-width: 0; }
.start-card:hover { border-color: var(--brand-border); color: var(--bs-body-color); }
.start-ico { flex: none; width: 2.1rem; height: 2.1rem; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-subtle); color: var(--brand); font-size: 1.05rem; }
.start-title { display: block; font-weight: 700; font-size: .9rem; line-height: 1.2; }
.start-sub { display: block; font-size: .8rem; color: var(--brand-ink); font-weight: 600; }
.start-card > .bi-chevron-right { color: var(--bs-secondary-color); }
@media (max-width: 575.98px) { .start-card { padding: .55rem .6rem; gap: .5rem; } .start-card > .bi-chevron-right { display: none; } .start-ico { width: 1.9rem; height: 1.9rem; font-size: .95rem; }
  .start-title { font-size: .85rem; white-space: nowrap; } .start-sub { font-size: .78rem; } }
/* Start box: small action buttons. The boxes stack on phones. */
.start-acts { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.start-act { font-size: .8rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--brand); color: var(--brand-ink); text-decoration: none; white-space: nowrap; }
.start-act.is-main { background: var(--brand); color: #fff; }
.start-act:hover { border-color: var(--brand-hover); color: var(--brand-ink); background: var(--brand-subtle); }
.start-act.is-main:hover { background: var(--brand-hover); color: #fff; }
/* Three start boxes: one row on wider screens; on phones the third spans the width under the other two. */
@media (min-width: 576px) { .start-row:has(.start-wide) { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .start-wide { grid-column: 1 / -1; } }
/* "Text me new ads like these" / "Alerts": a very light brand fill so it reads as a button. */
.alerts-btn { --bs-btn-bg: var(--brand-subtle); }

/* Partner banners (PartnerTiles). Made to look unlike a listing: a grey panel (listings are white), a "SPONSORED" tag,
   the advertiser's name and "Visit site ↗", the picture in a thin frame. Names avoid ad-blocker words. */
.partner-row { list-style: none; padding: .7rem .85rem .85rem; background: var(--bs-tertiary-bg); border-top: 1px solid var(--bs-border-color); border-bottom: 1px solid var(--bs-border-color); }
.partner-box { background: var(--bs-tertiary-bg); border: 1px solid var(--bs-border-color); border-radius: .75rem; padding: .7rem .85rem .85rem; }
.partner-tile-head { display: flex; align-items: center; gap: .45rem; font-size: .78rem; margin-bottom: .45rem; min-width: 0; }
.partner-tag { flex: none; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-secondary-color);
  border: 1px solid var(--bs-border-color); border-radius: .3rem; padding: .05rem .35rem; background: var(--surface); }
.partner-name { color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.partner-visit { margin-left: auto; flex: none; color: var(--bs-secondary-color); text-decoration: none; white-space: nowrap; }
.partner-visit:hover { color: var(--bs-body-color); text-decoration: underline; }
.partner-visit .bi { font-size: .7rem; }
.partner-tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; border-radius: .5rem; border: 1px solid var(--bs-border-color); background: var(--surface); }
@media (min-width: 992px) { .partner-row .partner-tile img, .partner-box .partner-tile img { max-height: 170px; } }
/* First look: small tiles (text alerts / sell your food), one row on every screen. */
.start-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem; }
.start-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .55rem .3rem; min-width: 0;
  border: 1px solid var(--bs-border-color); border-radius: .75rem; background: var(--surface); color: var(--bs-body-color); text-decoration: none; text-align: center;
  font-size: .78rem; font-weight: 600; line-height: 1.2; }
.start-tile:hover { border-color: var(--brand-border); color: var(--brand-ink); }
.start-tile-ico { width: 2rem; height: 2rem; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-subtle); color: var(--brand); font-size: 1.05rem; }
@media (min-width: 768px) { .start-tile { flex-direction: row; justify-content: flex-start; padding: .55rem .75rem; font-size: .85rem; gap: .6rem; text-align: left; } }
.results-bar { height: .55rem; min-width: 2px; border-radius: .3rem; background: var(--brand); }
/* Partner banner with a phone picture: taller on phones. */
@media (max-width: 575.98px) { .partner-tile.has-phone img { aspect-ratio: 2 / 1; } }

/* My account → Advertise (self-serve partner banners). "pt-" names: ad blockers hide "banner" / "ad-" ones. */
.pt-step { display: inline-flex; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .8rem; align-items: center; justify-content: center; margin-right: .4rem; }
.pt-opt { display: flex; align-items: center; border: 1px solid var(--bs-border-color); border-radius: .6rem; padding: .55rem .7rem; margin-top: .5rem; font-size: .9rem; cursor: pointer; }
.pt-opt.is-on { border-color: var(--brand); background: var(--brand-subtle); }
.pt-opt .form-check-input { flex-shrink: 0; margin-top: 0; }
.pt-sub { border-left: 3px solid var(--brand); padding-left: .75rem; }
.pt-len { flex: 1; min-width: 4.6rem; font-size: .8rem; line-height: 1.35; padding: .45rem .3rem; }
.pt-thumb { display: inline-flex; width: 6rem; aspect-ratio: 4/1; border-radius: .375rem; background: var(--bs-tertiary-bg); align-items: center; justify-content: center; color: var(--bs-secondary-color); }

/* In-site messages: the conversation page (ListingMessages). */
.msg-list { display: flex; flex-direction: column; gap: .4rem; }
.msg-bubble { max-width: 85%; border-radius: 1rem; padding: .5rem .75rem; font-size: .95rem; }
.msg-theirs { background: var(--bs-tertiary-bg); align-self: flex-start; border-bottom-left-radius: .3rem; }
.msg-mine { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: .3rem; }
.msg-text { white-space: pre-line; overflow-wrap: anywhere; }
.msg-time { font-size: .72rem; opacity: .75; margin-top: .2rem; }
.msg-warn { font-size: .78rem; color: var(--bs-warning-text-emphasis); margin-top: .3rem; }
.msg-quick { border: 1px solid var(--bs-border-color); border-radius: 999px; padding: .15rem .65rem; font-size: .8rem; background: none; color: inherit; }
.msg-quick:hover { border-color: var(--brand); }
.msg-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--brand); flex-shrink: 0; margin-top: .4rem; }

/* City / category pages for Google (LandingSeo): intro, live counts, links to nearby cities and other categories. */
.seo-intro { font-size: .92rem; color: var(--bs-secondary-color); max-width: 46rem; margin-top: .35rem; }
.seo-stats { display: flex; flex-wrap: wrap; gap: .35rem; }
.seo-stat { background: var(--brand-pale, var(--brand-subtle)); color: var(--brand); border-radius: 999px; padding: .12rem .6rem; font-size: .78rem; font-weight: 600; }
.seo-more { border-top: 1px solid var(--bs-border-color); margin-top: 1.5rem; padding-top: .5rem; }
.seo-more h2 { font-size: .95rem; font-weight: 700; margin: 1rem 0 .5rem; }
.seo-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.seo-links a { border: 1px solid var(--bs-border-color); border-radius: 999px; padding: .2rem .75rem; font-size: .85rem; text-decoration: none; color: inherit; }
.seo-links a:hover { border-color: var(--brand); color: var(--brand); }
.seo-links a span { color: var(--bs-secondary-color); }


/* My account → Results for one ad (AdResults). */
.rs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
@media (min-width: 768px) { .rs-grid { grid-template-columns: repeat(5, 1fr); } }
.rs-tile { background: var(--bs-body-bg); border-radius: .75rem; padding: .6rem .7rem; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.rs-n { font-size: 1.35rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rs-l { font-size: .75rem; color: var(--bs-secondary-color); }
.rs-d { font-size: .72rem; color: var(--bs-secondary-color); }
.rs-d.up { color: var(--bs-success-text-emphasis); }
.rs-d.down { color: var(--bs-danger-text-emphasis); }
.rs-key { display: inline-block; width: .6rem; height: .6rem; border-radius: 2px; background: var(--brand); vertical-align: middle; }
.rs-key-views, .rs-bar-views { opacity: .3; }
.rs-chart { width: 100%; height: 8rem; display: block; }
.rs-bar-views, .rs-bar-taps { fill: var(--brand); }
.rs-axis { stroke: var(--bs-border-color); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rs-tip { display: flex; align-items: center; gap: .6rem; border-top: 1px solid var(--bs-border-color); padding: .55rem 0; }
.rs-tip:first-of-type { margin-top: .4rem; }
.rs-tip > i { color: var(--brand); font-size: 1.1rem; }

/* Saved replies: the buttons above the reply box, and the list in My account → Messages. */
.sr-row { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding: .1rem 0 .5rem; }
.sr-row::-webkit-scrollbar { display: none; }
.sr-chip { flex: 0 0 auto; border: 1px solid var(--brand); color: var(--brand); background: var(--brand-subtle); border-radius: 999px; padding: .25rem .7rem; font-size: .82rem; white-space: nowrap; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; }
.sr-chip-edit { background: none; border-style: dashed; color: var(--bs-secondary-color); border-color: var(--bs-border-color); text-decoration: none; }
.sr-item { display: flex; align-items: center; gap: .25rem; border-top: 1px solid var(--bs-border-color); padding: .4rem 0; }
.sr-edit { border-color: transparent; background: transparent; }
.sr-edit:focus { border-color: var(--bs-border-color); background: var(--bs-body-bg); }

/* "Get the Verified badge" box (My account → Businesses). */
.vf-box { border: 1px solid var(--bs-border-color); border-radius: .75rem; padding: .7rem .8rem; }
.row-verified { color: var(--bs-success); }

/* ---------------------------------------------------------------- kitchens (NhaNau): the kitchen page */
.kitchen-cover { height: 220px; border-radius: 1.25rem; background: #f6e3d3 center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: #8a3b14; font-size: 3.5rem; }
.kitchen-head { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; align-items: flex-end; margin: -2.75rem 0 1.25rem; padding: 0 1rem; }
.kitchen-avatar { width: 6.5rem; height: 6.5rem; border-radius: 1.5rem; background: var(--surface); border: 4px solid var(--bs-tertiary-bg); box-shadow: var(--bs-box-shadow); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 2.2rem; color: var(--brand); flex-shrink: 0; }
.kitchen-head-text { flex: 1 1 320px; min-width: 0; padding-top: 2.75rem; }
.kitchen-verified { background: var(--accent-subtle); color: #173d26; font-size: .8rem; font-weight: 700; }
[data-bs-theme="dark"] .kitchen-verified { color: var(--accent); }
.kitchen-days { display: flex; flex-wrap: wrap; gap: .5rem; }
.kitchen-day { display: flex; flex-direction: column; min-height: 3.5rem; justify-content: center; padding: .4rem .9rem; border-radius: .9rem; border: 1px solid var(--bs-border-color); background: var(--surface); color: var(--bs-body-color); text-decoration: none; line-height: 1.25; }
.kitchen-day b { font-size: .9rem; }
.kitchen-day span { font-size: .75rem; color: var(--bs-secondary-color); }
.kitchen-day:hover { border-color: var(--brand-border); color: var(--bs-body-color); }
.kitchen-day.is-on { background: #245c3a; border-color: #245c3a; color: #fff; }
.kitchen-day.is-on span { color: #dcebe1; }
.kitchen-day.is-closed:not(.is-on) b { color: var(--bs-secondary-color); }
.kitchen-day.is-off { background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.kitchen-dish { display: flex; flex-wrap: wrap; gap: 1rem; background: var(--surface); border: 1px solid var(--bs-border-color); border-radius: 1.1rem; padding: 1rem; margin-bottom: .75rem; }
.kitchen-dish.is-out { opacity: .65; }
.kitchen-dish-photo { width: 132px; height: 132px; border-radius: .9rem; object-fit: cover; flex-shrink: 0; background: #f6e3d3; }
.kitchen-dish-photo.is-empty { display: inline-flex; align-items: center; justify-content: center; color: #8a3b14; font-size: 2.5rem; }
.kitchen-dish-body { flex: 1 1 240px; min-width: 0; }
.kitchen-allergen { font-size: .75rem; font-weight: 600; color: var(--brand-ink); background: var(--brand-subtle); border-radius: .4rem; padding: .1rem .5rem; }
.kitchen-soon { background: var(--brand-subtle); color: var(--brand-ink); border-radius: .9rem; padding: .75rem .9rem; font-size: .9rem; font-weight: 600; }
.kitchen-pay { background: var(--accent-subtle); color: #173d26; border-radius: .9rem; padding: .75rem .9rem; }
[data-bs-theme="dark"] .kitchen-pay { color: var(--accent); }
@media (min-width: 992px) { .kitchen-order { position: sticky; top: 5rem; } }
@media (max-width: 575.98px) { .kitchen-dish-photo { width: 96px; height: 96px; } .kitchen-cover { height: 160px; } }
/* My kitchen (cook's editor) */
.kitchen-limit { width: 4.5rem; }
.kitchen-switch { padding-left: 3.4em; }
.kitchen-switch .form-check-input { width: 2.6em; height: 1.4em; margin-left: -3.4em; margin-top: .05em; }
.kitchen-switch .form-check-label { padding-top: .1em; }
/* Ordering (NhaNau) */
.kitchen-qty { display: inline-flex; align-items: stretch; }
.kitchen-qty .btn { width: 2.75rem; min-height: 2.75rem; font-weight: 700; font-size: 1.2rem; line-height: 1; padding: 0; }
.kitchen-qty .btn:first-child { border-radius: 999px 0 0 999px; }
.kitchen-qty .btn:last-child { border-radius: 0 999px 999px 0; }
.kitchen-qty input { width: 3.25rem; border-radius: 0; border-left: 0; border-right: 0; border-color: var(--bs-primary); font-weight: 700; -moz-appearance: textfield; }
.kitchen-qty input::-webkit-outer-spin-button, .kitchen-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.kitchen-qty.has-qty input { background: var(--brand-subtle); }
.order-steps { display: flex; flex-direction: row; flex-wrap: wrap; gap: .5rem 0; list-style: none; padding: 0; margin: 0; }
.order-steps li { flex: 1 1 7rem; min-width: 6.5rem; display: flex; flex-direction: column; gap: .3rem; }
.order-steps li::before { content: ""; height: 6px; border-radius: 3px; margin-right: 6px; background: var(--bs-border-color); }
.order-steps li.is-done::before { background: #245c3a; }
.order-steps li.is-done b { color: #173d26; }
[data-bs-theme="dark"] .order-steps li.is-done b { color: var(--accent); }
.order-msg { max-width: 85%; border-radius: 1rem; padding: .5rem .75rem; font-size: .9rem; }
.order-msg.is-me { margin-left: auto; background: var(--brand-subtle); }
.order-msg.is-them { background: var(--bs-tertiary-bg); }
.order-card { border: 1px solid var(--bs-border-color); border-radius: 1.1rem; background: var(--surface); padding: 1rem; }
.order-card.is-new { border: 2px solid var(--bs-primary); }
.order-bar-meter { height: 8px; border-radius: 4px; background: var(--bs-tertiary-bg); overflow: hidden; }
.order-bar-meter > span { display: block; height: 8px; background: #245c3a; }
/* NhaNau home and kitchen search */
.home-hero { background: linear-gradient(135deg, #fff4ea 0%, #fbe3d2 100%); border-radius: 1.5rem; padding: 2.25rem 2rem; }
[data-bs-theme="dark"] .home-hero { background: linear-gradient(135deg, #2b211b 0%, #3a2618 100%); }
.home-hero h1 span { color: var(--brand); }
.home-hero .lead { max-width: 40rem; }
.home-kicker { color: var(--brand-ink); letter-spacing: .04em; }
.find-form { display: flex; flex-wrap: wrap; gap: .5rem; background: var(--surface); border-radius: 1.1rem; padding: .5rem; box-shadow: var(--bs-box-shadow-sm); max-width: 52rem; }
.find-field { position: relative; flex: 1 1 14rem; display: flex; align-items: center; }
.find-field > .bi { position: absolute; left: .85rem; color: var(--bs-secondary-color); pointer-events: none; }
.find-field .form-control { padding-left: 2.4rem; min-height: 3rem; border: 0; background: var(--bs-tertiary-bg); border-radius: .8rem; }
.find-near { position: absolute; right: .25rem; color: var(--accent); }
.find-go { min-height: 3rem; padding: 0 1.5rem; border-radius: .8rem; font-weight: 700; flex: 0 0 auto; }
.dish-tiles { display: flex; flex-wrap: wrap; gap: .5rem; }
.dish-tile { padding: .6rem 1.1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--bs-border-color); color: var(--bs-body-color); text-decoration: none; font-weight: 600; }
.dish-tile:hover, .dish-tile.active { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-subtle); }
.kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.kitchen-card { position: relative; background: var(--surface); border: 1px solid var(--bs-border-color); border-radius: 1.1rem; overflow: hidden; display: flex; flex-direction: column; }
.kitchen-card:hover { border-color: var(--brand-border); box-shadow: var(--bs-box-shadow-sm); }
.kitchen-card-photo { height: 9rem; background: #f6e3d3 center / cover no-repeat; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.kitchen-card-photo span { font-weight: 800; font-size: 2rem; color: var(--brand); }
.kitchen-card-body { padding: .85rem 1rem 1rem; min-width: 0; }
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .75rem; }
.dish-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--bs-border-color); border-radius: 1rem; overflow: hidden; color: var(--bs-body-color); text-decoration: none; }
.dish-card:hover { border-color: var(--brand-border); color: var(--bs-body-color); }
.dish-card img, .dish-card-ph { width: 100%; height: 7.5rem; object-fit: cover; background: #f6e3d3; display: flex; align-items: center; justify-content: center; color: #8a3b14; font-size: 2rem; }
.dish-card-body { padding: .6rem .75rem .75rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .5rem; font-size: .9rem; }
.dish-card-body small { flex-basis: 100%; color: var(--bs-secondary-color); }
.how-num { width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand-subtle); color: var(--brand-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cook-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: #245c3a; color: #fff; border-radius: 1.5rem; padding: 1.75rem 2rem; }
.cook-cta p { color: #dcebe1; max-width: 40rem; }
@media (max-width: 575.98px) { .home-hero { padding: 1.5rem 1rem; } .find-go { width: 100%; } .cook-cta { padding: 1.25rem; } }
.home-hero .chip { background: var(--surface); }
