/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --primary:    #C4622D;
  --primary-dk: #a84e22;
  --secondary:  #2E5B4F;
  --secondary-dk: #1e3d35;
  --accent:     #E8A84F;
  --bg:         #F9F4EE;
  --surface:    #FFFFFF;
  --text:       #2C2416;
  --text-sub:   #6B5B47;
  --text-muted: #9E8B74;
  --border:     #E2D5C3;
  --pill-active-bg:   #2C2416;
  --pill-active-text: #FFFFFF;
  --radius-card: 10px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 12px rgba(44,36,22,0.08);
  --shadow-card-hover: 0 4px 24px rgba(44,36,22,0.14);
  --font: 'Inter', system-ui, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --transition: 0.18s ease;
}

/* ── Reset & base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
}

/* ── Layout containers ───────────────────────────────────────────────────── */
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Ticker ──────────────────────────────────────────────────────────────── */
.ticker-wrap {
  background: var(--secondary-dk);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ticker-track {
  display: flex;
  width: max-content;
  padding: 0.55rem 0;
  animation: ticker-scroll 40s linear infinite;
  will-change: transform;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  white-space: nowrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.88);
  padding: 0 1.4rem;
  letter-spacing: 0.01em;
}
.ticker-sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.55rem;
  align-self: center;
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Sticky header ───────────────────────────────────────────────────────── */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--secondary);
  padding: 1.25rem 1.25rem 1.75rem;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  width: fit-content;
}
.brand:hover { text-decoration: none; }

.logo-mark {
  background: var(--primary);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.35);
}
.footer-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: none;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

/* Search */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-ico {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}
#search {
  width: 100%;
  height: 50px;
  padding: 0 3rem 0 2.85rem;
  font-size: 1rem;
  font-family: var(--font);
  background: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  outline: none;
  color: var(--text);
  transition: box-shadow var(--transition);
  -webkit-appearance: none;
}
#search::placeholder { color: var(--text-muted); }
#search:focus { box-shadow: 0 0 0 3px rgba(232,168,79,0.4); }
#search::-webkit-search-cancel-button { display: none; }

.clear-btn {
  position: absolute;
  right: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--border);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-sub);
  transition: background var(--transition);
  padding: 0;
}
.clear-btn svg { width: 13px; height: 13px; }
.clear-btn:hover { background: #d4c4b0; }

/* ── Category strip ──────────────────────────────────────────────────────── */
.cat-bar {
  position: relative;
  overflow: hidden;
  padding: 1.25rem 0 0.25rem;
  max-width: 860px;
  margin: 0 auto;
}

.cat-bar::before,
.cat-bar::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 56px;
  pointer-events: none;
  z-index: 1;
}
.cat-bar::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.cat-bar::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

.cat-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.2rem 1.25rem 0.7rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-strip::-webkit-scrollbar { display: none; }

.cat-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 2;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-sub);
  transition: background var(--transition), color var(--transition);
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cat-nav:hover { background: var(--bg); color: var(--primary); }
.cat-nav--prev { left: 6px; }
.cat-nav--next { right: 6px; }

@media (hover: hover) {
  .cat-nav { display: flex; }
  .cat-nav[hidden] { display: none !important; }
}

/* ── Ads nav arrows ──────────────────────────────────────────────────────── */
.ads-strip-wrap {
  position: relative;
}
.ads-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  color: var(--text-sub);
  font-size: 1rem;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ads-nav:hover { background: var(--bg); color: var(--primary); }
.ads-nav--prev { left: 6px; }
.ads-nav--next { right: 6px; }
@media (hover: hover) {
  .ads-nav { display: flex; }
  .ads-nav[hidden] { display: none !important; }
}


.cat-pill {
  flex-shrink: 0;
  padding: 0.35rem 1rem;
  font-size: 0.83rem;
  font-family: var(--font);
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  line-height: 1;
}
.cat-pill:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
}
.cat-pill.active {
  background: var(--pill-active-bg);
  border-color: var(--pill-active-bg);
  color: var(--pill-active-text);
}

/* ── Status bar ──────────────────────────────────────────────────────────── */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 0.5rem;
  gap: 0.5rem;
}
.results-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.link-btn {
  font-size: 0.82rem;
  font-family: var(--font);
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}
.link-btn:hover { text-decoration: underline; }

/* ── Sort bar ────────────────────────────────────────────────────────────── */
.sort-bar {
  max-width: 1200px;
  margin: 0.5rem auto 0;
  padding: 0 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.sort-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239E8B74' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.6rem center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-sub);
  font-size: 0.8rem;
  padding: 0.3rem 2rem 0.3rem 0.85rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  outline: none;
}
.sort-select:hover,
.sort-select:focus {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Grid ────────────────────────────────────────────────────────────────── */
#grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding: 1rem 1.25rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 480px)  { #grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { #grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1100px) { #grid { grid-template-columns: repeat(4, 1fr); } }

/* ── Business avatar ─────────────────────────────────────────────────────── */
.biz-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: rgba(255,255,255,0.93);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  user-select: none;
}
.biz-avatar--lg {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  font-size: 1.1rem;
}

/* ── Card head (avatar + name/badges) ────────────────────────────────────── */
.card-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.card-head-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

/* ── Business card ───────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 1rem 1.1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  cursor: pointer;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.card-cats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  min-height: 22px;
}

.cat-badge {
  font-size: 0.72rem;
  font-family: var(--font);
  font-weight: 600;
  padding: 0.18rem 0.6rem;
  background: rgba(196,98,45,0.1);
  color: var(--primary);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cat-badge:hover,
.cat-badge.is-active {
  background: var(--primary);
  color: #fff;
}

.cat-more {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.18rem 0.35rem;
}

.card-name {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.card-description {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.1rem;
}
.card-row {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.4;
}
.card-row svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 0.13rem;
  color: var(--text-muted);
  stroke: currentColor;
}
.card-row a { color: var(--text-sub); text-decoration: none; }
.card-row a:hover { color: var(--primary); text-decoration: underline; }

/* ── Card action buttons ─────────────────────────────────────────────────── */
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.875rem;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
}
.card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-sub);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.card-action svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}
.card-action:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(196,98,45,0.06);
}
.card-action--call svg  { stroke: currentColor; fill: none; }
.card-action--maps svg  { stroke: currentColor; fill: none; }
.card-action--web       { color: var(--primary); border-color: var(--primary-light, #d97a4e); }
.card-action--web svg   { stroke: currentColor; fill: none; }
.card-action--web:hover { background: rgba(196,98,45,0.06); }
.card-action--wa        { color: #25a244; border-color: #25a244; }
.card-action--wa svg    { fill: currentColor; stroke: none; }
.card-action--wa:hover  { background: rgba(37,162,68,0.07); }

/* ── Skeleton loading ────────────────────────────────────────────────────── */
.skeleton-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 480px)  { .skeleton-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .skeleton-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1100px) { .skeleton-grid { grid-template-columns: repeat(4, 1fr); } }

.skeleton-card {
  height: 140px;
  border-radius: var(--radius-card);
  background: linear-gradient(90deg, #ede4d8 25%, #f5efe6 50%, #ede4d8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Empty / error states ────────────────────────────────────────────────── */
.state-msg {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  gap: 0.5rem;
  color: var(--text-muted);
}
.state-msg svg {
  width: 40px;
  height: 40px;
  stroke: var(--border);
  margin-bottom: 0.5rem;
}
.state-msg strong { font-size: 1rem; color: var(--text-sub); }
.state-msg p { font-size: 0.85rem; }

/* ── Floating action button ──────────────────────────────────────────────── */
@keyframes fab-pulse {
  0%   { box-shadow: 0 4px 18px rgba(196,98,45,0.45), 0 0 0 0   rgba(196,98,45,0.45); }
  60%  { box-shadow: 0 4px 18px rgba(196,98,45,0.25), 0 0 0 16px rgba(196,98,45,0);   }
  100% { box-shadow: 0 4px 18px rgba(196,98,45,0.45), 0 0 0 0   rgba(196,98,45,0);    }
}

.fab {
  position: fixed;
  bottom: 1.75rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.2rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  animation: fab-pulse 2.4s ease-out infinite;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.fab:hover {
  background: var(--primary-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196,98,45,0.6);
  animation: none;
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Modal overlay (shared) ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44,36,22,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 1rem;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ── Chooser modal ───────────────────────────────────────────────────────── */
.chooser-modal {
  background: var(--surface);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 8px 40px rgba(44,36,22,0.2);
  overflow: hidden;
}
.chooser-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chooser-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--text);
}
.chooser-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem 1.5rem;
}
.chooser-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding: 1.5rem 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.chooser-option:hover {
  border-color: var(--primary);
  background: rgba(196,98,45,0.04);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.chooser-icon  { font-size: 2rem; line-height: 1; }
.chooser-name  { font-size: 1rem; font-weight: 600; color: var(--text); }
.chooser-desc  { font-size: 0.76rem; color: var(--text-sub); line-height: 1.45; }
.chooser-badge {
  font-size: 0.68rem;
  font-weight: 600;
  color: #2E7D52;
  background: rgba(46,125,82,0.09);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-top: 0.15rem;
}
@media (max-width: 380px) {
  .chooser-options { grid-template-columns: 1fr; }
}

/* ── Detail modal ────────────────────────────────────────────────────────── */
.dmodal {
  background: var(--surface);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(44,36,22,0.2);
}

.dmodal-header {
  padding: 1.4rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.dmodal-header-left {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.dmodal-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
.dmodal-cat {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  background: rgba(196,98,45,0.1);
  color: var(--primary);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dmodal-name {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--text);
  line-height: 1.2;
}

.dmodal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.dmodal-report-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
.dmodal-report-btn:hover { background: var(--border); color: var(--text); }
.dmodal-report-btn svg { width: 15px; height: 15px; stroke: currentColor; }

.dmodal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
  font-family: inherit;
  transition: background var(--transition);
}
.dmodal-close:hover { background: var(--border); color: var(--text); }

.dmodal-body {
  padding: 1.1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dmodal-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-sub);
  font-size: 0.93rem;
  text-decoration: none;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
.dmodal-row:hover { background: var(--bg); color: var(--primary); text-decoration: none; }
.dmodal-row svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; color: var(--text-muted); }
.dmodal-row:hover svg { color: var(--primary); }

.dmodal-desc {
  background: rgba(196,98,45,0.05);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
  margin-top: 0.25rem;
}

/* ── Propose modal ───────────────────────────────────────────────────────── */
.pmodal {
  background: var(--surface);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(44,36,22,0.2);
}

.pmodal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pmodal-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--text);
}

.pmodal-body { padding: 1.25rem 1.5rem 1.75rem; }

.pmodal-intro {
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.pmodal-success {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text);
}
.pmodal-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(46,125,82,0.12);
  color: #1a5e35;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.pmodal-success p { font-size: 1rem; line-height: 1.6; color: var(--text-sub); }

/* Proposal form elements */
.form-group { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.form-hint { font-weight: 400; font-size: 0.78rem; color: var(--text-muted); }
.required { color: var(--primary); }
.form-input, .form-textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 72px; max-height: 200px; }
.char-counter {
  display: block;
  text-align: right;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  transition: color 0.15s;
}
.char-counter--warn { color: var(--accent); }
.char-counter--over { color: #9B2335; font-weight: 600; }
.ad-url-preview {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  font-family: monospace;
  word-break: break-all;
  opacity: 0.8;
}
.ad-url-preview .url-domain { opacity: 0.55; }
.ad-url-preview .url-slug   { color: var(--primary); }
.ad-url-preview .url-hint   { display: block; font-family: inherit; font-size: 0.68rem; margin-top: 0.2rem; opacity: 0.55; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.form-error { color: #9B2335; font-size: 0.82rem; min-height: 1.1rem; margin: 0.5rem 0; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.btn-primary-solid {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.4rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-primary-solid:hover { background: var(--primary-dk); }
.btn-muted {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1.1rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-muted:hover { background: var(--border); color: var(--text); }

/* ── Placeholder fade animation ──────────────────────────────────────────── */
#search.placeholder-fade::placeholder { opacity: 0; transition: opacity 0.2s; }
#search::placeholder { opacity: 1; transition: opacity 0.2s; }

/* ── Load sentinel ───────────────────────────────────────────────────────── */
#load-sentinel { height: 1px; }

/* ── Ads strip ───────────────────────────────────────────────────────────── */
.ads-section {
  padding: 1rem 0 0.5rem;
  position: relative;
}
.ads-section::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 2.5rem;
  background: linear-gradient(to right, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}
.ads-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}
.ads-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.ads-pub-btn {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--primary);
  background: none;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}
.ads-pub-btn:hover { background: var(--primary); color: #fff; }

.ads-strip {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
}
.ads-strip::-webkit-scrollbar { display: none; }

.ad-card {
  flex-shrink: 0;
  width: 130px;
  height: 170px;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  scroll-snap-align: start;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  outline-offset: 2px;
}
.ad-card:hover  { transform: translateY(-2px); box-shadow: var(--shadow-card-hover); }
.ad-card:focus  { outline: 2px solid var(--primary); }
.ad-card img    { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-views-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  pointer-events: none;
}
.ad-views-badge svg { width: 10px; height: 10px; flex-shrink: 0; }

.ad-featured-badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  font-size: 0.85rem;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  pointer-events: none;
}
.ad-hoy-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  pointer-events: none;
}

.ad-featured-pill {
  display: inline-block;
  background: #fff8e1;
  color: #b8860b;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #f0c040;
  margin-bottom: 0.5rem;
}

.ad-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  padding: 1.5rem 0.5rem 0.45rem;
}
.ad-card-title {
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Ad detail modal ─────────────────────────────────────────────────────── */
.ad-dmodal {
  background: var(--surface);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(44,36,22,0.2);
}
.ad-dmodal-img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--surface);
}
.ad-dmodal-img-wrap img {
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  display: block;
}
.ad-dmodal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(0,0,0,0.45);
  border: none;
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  font-family: inherit;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.ad-dmodal-close:hover { background: rgba(0,0,0,0.65); }
.ad-dmodal-body  { padding: 1.1rem 1.4rem 1.4rem; }
.ad-dmodal-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
.ad-dmodal-date {
  position: absolute;
  top: 0.65rem;
  right: 3.1rem;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  border-radius: 99px;
  white-space: nowrap;
  pointer-events: none;
}
.ad-dmodal-desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 0.65rem;
}
.ad-dmodal-contact {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.ad-share-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-sub);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  width: 100%;
  justify-content: center;
}
.ad-share-btn:hover { background: var(--surface-alt, #f5f0ea); color: var(--text); }
.ad-share-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.ad-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid currentColor;
  transition: opacity 0.15s;
}
.ad-contact-link:hover { opacity: 0.75; text-decoration: none; }
.ad-contact-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.ad-contact-link--wa    { color: #25d366; }
.ad-contact-link--phone { color: var(--primary); }
.ad-contact-link--ig    { color: #e1306c; }
.ad-contact-link--fb    { color: #1877f2; }
.ad-contact-link--web   { color: var(--text-sub); }

/* ── Ad image preview (form) ─────────────────────────────────────────────── */
.ad-preview-wrap {
  margin-top: 0.6rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 220px;
}
.ad-preview-img {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ── Duration pills (ad form) ────────────────────────────────────────────── */
.duration-pills {
  display: flex;
  gap: 0.5rem;
}
.duration-pill {
  flex: 1;
  padding: 0.55rem 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-sub);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-align: center;
}
.duration-pill:hover { border-color: var(--text-muted); color: var(--text); }
.duration-pill.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

/* ── Free badge ──────────────────────────────────────────────────────────── */
.free-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2E7D52;
  background: rgba(46,125,82,0.09);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.65rem;
}

/* ── Form help text ──────────────────────────────────────────────────────── */
.form-help-text {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.form-help-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.form-help-text a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.25rem 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-logo-mark {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
  border-radius: 8px;
  background: var(--primary);
}

.footer-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.footer-tagline {
  font-size: 0.88rem;
  opacity: 0.75;
  max-width: 360px;
}

.footer-copy {
  font-size: 0.78rem;
  opacity: 0.5;
  margin-top: 0.25rem;
}

/* ── Load more button ────────────────────────────────────────────────────── */
.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.load-more-btn {
  padding: 0.75rem 2.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-sub);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s, box-shadow 0.18s;
  letter-spacing: 0.01em;
}

.load-more-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(196,98,45,0.04);
  box-shadow: 0 2px 12px rgba(196,98,45,0.1);
}

.load-more-btn:active {
  background: rgba(196,98,45,0.08);
}

/* ── Desktop hero tweak ──────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero { padding: 1.25rem 1.5rem 1.5rem; }
  .hero-inner { flex-direction: row; align-items: center; gap: 1.5rem; }
  .brand { flex-shrink: 0; }
  .search-wrap { flex: 1; }
}
