/* ReviewScanner Design System — v1.0.0 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap');

:root {
  --rs-primary:     #2563EB;
  --rs-primary-dk:  #1E40AF;
  --rs-bg:          #F8FAFC;
  --rs-fg:          #1E293B;
  --rs-muted:       #64748B;
  --rs-border:      #E2E8F0;
  --rs-white:       #ffffff;
  --rs-red:         #DC2626;
  --rs-red-bg:      #FEF2F2;
  --rs-orange:      #C2410C;
  --rs-orange-bg:   #FFF7ED;
  --rs-green:       #16A34A;
  --rs-green-bg:    #F0FDF4;
  --rs-gray:        #94A3B8;
  --rs-gray-bg:     #F8FAFC;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background: var(--rs-bg); color: var(--rs-fg); }
.rs-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── HERO ── */
.rs-hero { background: linear-gradient(135deg, var(--rs-primary-dk) 0%, var(--rs-primary) 60%, #3B82F6 100%); padding: 48px 20px 40px; text-align: center; }
.rs-hero-inner { max-width: 640px; margin: 0 auto; }
.rs-hero-badge { display: inline-block; background: rgba(255,255,255,.15); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.25); letter-spacing: .5px; margin-bottom: 16px; }
.rs-hero-title { font-size: 28px; font-weight: 900; color: #fff; line-height: 1.25; margin-bottom: 10px; }
.rs-hero-title span { color: #93C5FD; }
.rs-hero-sub { font-size: 14px; color: rgba(255,255,255,.82); margin-bottom: 28px; line-height: 1.6; }

/* ── SEARCH BOX ── */
.rs-search-box { background: var(--rs-white); border-radius: 12px; padding: 14px; box-shadow: 0 8px 32px rgba(0,0,0,.22); margin-bottom: 24px; }
.rs-search-row { display: flex; gap: 10px; align-items: flex-end; }
.rs-search-field { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rs-search-field--small { flex: 0 0 110px; }
.rs-search-label { font-size: 9px; font-weight: 700; color: var(--rs-gray); text-transform: uppercase; letter-spacing: .6px; }
.rs-search-input { background: var(--rs-bg); border: 1.5px solid var(--rs-border); border-radius: 8px; padding: 10px 14px; font-size: 14px; font-family: 'Roboto', sans-serif; color: var(--rs-fg); font-weight: 500; outline: none; transition: border-color .15s; }
.rs-search-input:focus { border-color: var(--rs-primary); }
.rs-search-divider { width: 1px; height: 48px; background: var(--rs-border); flex-shrink: 0; }
.rs-search-btn { background: var(--rs-primary); color: #fff; border: none; border-radius: 8px; padding: 0 22px; height: 48px; font-size: 14px; font-weight: 700; font-family: 'Roboto', sans-serif; cursor: pointer; white-space: nowrap; transition: background .15s; text-decoration: none; display: inline-flex; align-items: center; }
.rs-search-btn:hover { background: var(--rs-primary-dk); }
.rs-search-hint { font-size: 11px; color: var(--rs-gray); margin-top: 10px; }
.rs-search-hint strong { color: var(--rs-muted); }

/* ── STATS ── */
.rs-stats { display: flex; justify-content: center; gap: 32px; }
.rs-stat-num { font-size: 22px; font-weight: 900; color: #fff; }
.rs-stat-lbl { font-size: 10px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }

/* ── AD SLOTS ── */
.rs-ad-slot { background: var(--rs-bg); border: 1.5px dashed var(--rs-border); border-radius: 8px; text-align: center; }
.rs-ad-leaderboard { margin: 14px 20px; padding: 16px; min-height: 70px; display: flex; align-items: center; justify-content: center; }
.rs-ad-sidebar { margin: 10px 8px; flex: 1; display: flex; align-items: center; justify-content: center; }
.rs-ad-label { font-size: 9px; font-weight: 700; color: var(--rs-gray); text-transform: uppercase; letter-spacing: .5px; }

/* ── HOW IT WORKS ── */
.rs-how { padding: 36px 0 28px; }
.rs-section-title { font-size: 18px; font-weight: 700; color: var(--rs-fg); margin-bottom: 20px; }
.rs-steps { display: flex; gap: 16px; }
.rs-step { flex: 1; background: var(--rs-white); border: 1px solid var(--rs-border); border-radius: 10px; padding: 20px 16px; text-align: center; }
.rs-step-num { width: 32px; height: 32px; background: #EFF6FF; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 14px; font-weight: 700; color: var(--rs-primary); }
.rs-step-title { font-size: 13px; font-weight: 700; color: var(--rs-fg); margin-bottom: 6px; }
.rs-step-desc { font-size: 12px; color: var(--rs-muted); line-height: 1.5; }

/* ── LEGEND ── */
.rs-legend-section { padding: 0 0 24px; }
.rs-legend-title { font-size: 14px; font-weight: 700; color: var(--rs-fg); margin-bottom: 10px; }
.rs-legend-row { display: flex; flex-wrap: wrap; gap: 12px; }
.rs-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rs-muted); }
.rs-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; display: inline-block; }
.rs-dot--red    { background: var(--rs-red); }
.rs-dot--orange { background: var(--rs-orange); }
.rs-dot--green  { background: var(--rs-green); }
.rs-dot--gray   { background: var(--rs-gray); }

/* ── CITY CHIPS ── */
.rs-cities-section { padding: 0 0 36px; }
.rs-cities-title { font-size: 14px; font-weight: 700; color: var(--rs-fg); margin-bottom: 10px; }
.rs-city-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.rs-city-chip { background: var(--rs-white); border: 1px solid var(--rs-border); border-radius: 20px; padding: 6px 14px; font-size: 12px; color: var(--rs-muted); font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s; }
.rs-city-chip:hover { border-color: var(--rs-primary); color: var(--rs-primary); }

/* ── RESULTS BAR ── */
.rs-results-bar { background: var(--rs-white); border-bottom: 1px solid var(--rs-border); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rs-results-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#rs-results-count { font-size: 13px; color: var(--rs-muted); font-weight: 500; }
#rs-results-count strong { color: var(--rs-fg); }
.rs-filter-tags { display: flex; gap: 6px; }
.rs-filter { font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--rs-border); background: var(--rs-bg); color: var(--rs-muted); cursor: pointer; font-family: 'Roboto', sans-serif; transition: all .15s; }
.rs-filter.active, .rs-filter:hover { background: var(--rs-primary); color: #fff; border-color: var(--rs-primary); }
.rs-sort { font-size: 11px; color: var(--rs-muted); background: var(--rs-bg); border: 1px solid var(--rs-border); border-radius: 6px; padding: 5px 10px; font-family: 'Roboto', sans-serif; cursor: pointer; }

/* ── MAIN LAYOUT ── */
.rs-main-layout { display: flex; height: 520px; }
.rs-map-col { flex: 0 0 42%; border-right: 1px solid var(--rs-border); position: relative; }
#rs-map { width: 100%; height: 100%; }
.rs-list-col { flex: 1; overflow-y: auto; }
.rs-sidebar-ad { flex: 0 0 160px; border-left: 1px solid var(--rs-border); display: flex; flex-direction: column; }

/* ── BUSINESS CARD ── */
.rs-biz-item { background: var(--rs-white); border-bottom: 1px solid #F1F5F9; padding: 12px 14px; display: flex; gap: 10px; cursor: pointer; transition: background .12s; }
.rs-biz-item:hover, .rs-biz-item.selected { background: #EFF6FF; }
.rs-biz-item.selected { border-left: 3px solid var(--rs-primary); }
.rs-biz-num { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0; margin-top: 2px; }
.rs-biz-body { flex: 1; min-width: 0; }
.rs-biz-name { font-size: 13px; font-weight: 700; color: var(--rs-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-biz-meta { font-size: 11px; color: var(--rs-muted); margin-top: 2px; }
.rs-biz-stars { font-size: 11px; color: var(--rs-fg); margin-top: 4px; }
.rs-biz-stars .cnt { color: var(--rs-gray); font-size: 10px; }
.rs-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 5px; margin-top: 6px; }
.rs-badge--red    { background: var(--rs-red-bg);    color: var(--rs-red); }
.rs-badge--orange { background: var(--rs-orange-bg); color: var(--rs-orange); }
.rs-badge--green  { background: var(--rs-green-bg);  color: var(--rs-green); }
.rs-badge--gray   { background: var(--rs-gray-bg);   color: var(--rs-gray); }

/* ── AD IN LIST ── */
.rs-ad-in-list { padding: 10px 14px; background: var(--rs-bg); border: 1.5px dashed var(--rs-border); margin: 4px 8px; border-radius: 6px; text-align: center; }

/* ── SKELETON ── */
.rs-skeleton { padding: 8px; }
.rs-skeleton-item { display: flex; gap: 10px; padding: 12px 6px; border-bottom: 1px solid #F1F5F9; }
.rs-skeleton-circle { width: 24px; height: 24px; border-radius: 50%; background: #E2E8F0; flex-shrink: 0; animation: rs-pulse 1.4s ease-in-out infinite; }
.rs-skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rs-skeleton-line { background: #E2E8F0; border-radius: 4px; animation: rs-pulse 1.4s ease-in-out infinite; }
.rs-skeleton-line--lg { height: 14px; width: 70%; }
.rs-skeleton-line--md { height: 11px; width: 50%; }
.rs-skeleton-line--sm { height: 11px; width: 35%; }
@keyframes rs-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ── DATA FOOTER ── */
.rs-data-footer { background: var(--rs-white); border-top: 1px solid var(--rs-border); padding: 8px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--rs-gray); flex-wrap: wrap; gap: 8px; }
.rs-legend-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── CITY HERO ── */
.rs-city-hero { background: linear-gradient(135deg, var(--rs-primary-dk), var(--rs-primary)); padding: 48px 0 40px; text-align: center; color: #fff; }
.rs-city-hero h1 { font-size: 26px; font-weight: 900; margin-bottom: 12px; }
.rs-city-hero p { font-size: 15px; color: rgba(255,255,255,.85); margin-bottom: 24px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .rs-main-layout { flex-direction: column; height: auto; }
  .rs-map-col { flex: none; height: 260px; border-right: none; border-bottom: 1px solid var(--rs-border); }
  .rs-sidebar-ad { display: none; }
  .rs-search-row { flex-wrap: wrap; }
  .rs-search-divider { display: none; }
  .rs-steps { flex-direction: column; }
  .rs-stats { gap: 16px; }
  .rs-hero-title { font-size: 22px; }
}
