:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-alt: #efece3;
  --forest: #1b4332;
  --forest-mid: #2d6a4f;
  --forest-light: #e6f0eb;
  --amber: #c96a16;
  --amber-soft: #fef3e2;
  --text: #1c2420;
  --muted: #5a6660;
  --border: #ddd8cb;
  --shadow: 0 4px 16px rgba(27, 67, 50, 0.07);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hidden {
  display: none !important;
}

/* Top Status Bar */
.refresh-bar {
  background: #122d22;
  color: #e2ede7;
  font-size: 0.85rem;
  padding: 0.55rem 0;
}

.refresh-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.refresh-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #52b788;
  box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.25);
  flex-shrink: 0;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-ghost:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  color: #ffffff;
  padding: 2.5rem 0 2rem;
  border-bottom: 4px solid var(--amber);
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.15;
}

.hero-subtitle {
  margin: 0 0 1.6rem;
  max-width: 68ch;
  color: #d8ece2;
  font-size: 1.02rem;
}

/* Landmark Filter Strip */
.landmark-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 0.7rem;
}

.landmark-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.landmark-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.landmark-pill.active {
  background: #ffffff;
  color: var(--forest);
  border-color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.landmark-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.landmark-pill strong {
  display: block;
  font-size: 0.92rem;
}

.landmark-pill small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.82;
}

/* Main Layout */
.main-layout {
  padding: 1.8rem 0 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--forest);
}

.muted {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Deals Spotlight */
.deals-spotlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.6rem;
}

.deal-toggles {
  display: flex;
  gap: 0.45rem;
}

.chip {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.chip.active {
  background: var(--amber);
  border-color: var(--amber);
  color: #ffffff;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.85rem;
}

.deal-card {
  background: var(--amber-soft);
  border: 1px solid #f5d09b;
  border-radius: 11px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
}

.deal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.deal-biz {
  font-weight: 700;
  color: var(--forest);
  font-size: 0.95rem;
}

.deal-tag {
  background: var(--amber);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.deal-desc {
  margin: 0;
  font-size: 0.88rem;
  color: #3d2c15;
}

.deal-meta {
  font-size: 0.78rem;
  color: #7c5624;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Search & Category Controls */
.directory-controls {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 239, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.search-box {
  flex: 1 1 320px;
}

.search-box input {
  width: 100%;
  padding: 0.68rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--text);
}

.search-box input:focus {
  outline: 2px solid var(--forest-mid);
  border-color: transparent;
}

.deals-only-switch {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--forest);
  cursor: pointer;
  user-select: none;
}

.category-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-tab:hover {
  border-color: var(--forest-mid);
}

.cat-tab.active {
  background: var(--forest);
  color: #ffffff;
  border-color: var(--forest);
}

.cat-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.cat-tab.active .cat-count {
  background: rgba(255, 255, 255, 0.22);
}

/* Results Bar */
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.link-btn {
  background: none;
  border: none;
  color: var(--amber);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Business Cards */
.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.biz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.biz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(27, 67, 50, 0.11);
}

.biz-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.biz-cat-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--forest-mid);
  background: var(--forest-light);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
}

.biz-card h3 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--text);
}

.biz-district-tag {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface-alt);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

.biz-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.biz-deal-box {
  background: var(--amber-soft);
  border: 1px dashed #e7a955;
  border-radius: 9px;
  padding: 0.6rem 0.75rem;
  font-size: 0.84rem;
}

.biz-deal-box strong {
  color: #9e4c08;
  display: block;
  margin-bottom: 0.15rem;
}

.biz-footer {
  border-top: 1px solid var(--surface-alt);
  padding-top: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.biz-links {
  display: flex;
  gap: 0.65rem;
}

.biz-links a {
  color: var(--forest-mid);
  font-weight: 700;
  text-decoration: none;
}

.biz-links a:hover {
  text-decoration: underline;
}

/* Landmarks Guide */
.landmarks-guide {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.landmarks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
}

.landmark-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0.95rem;
}

.landmark-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--forest);
}

.landmark-card p {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.landmark-card small {
  font-weight: 600;
  color: var(--amber);
}

/* Empty State & Buttons */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.btn-primary {
  background: var(--forest);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.4rem 0;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-links a {
  color: var(--forest-mid);
  font-weight: 600;
}