/* Global styles for regionally.info local directory */

:root {
  --bg: #0f0f0f;
  --fg: #f5f5f5;
  --muted: #888;
  --accent: #d4a574;
  --accent-glow: rgba(212, 165, 116, 0.3);
  --card: #1a1a1a;
  --border: #2a2a2a;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --fg: #1a1a1a;
    --muted: #666;
    --accent: #b8860b;
    --accent-glow: rgba(184, 134, 11, 0.2);
    --card: #fff;
    --border: #e5e5e5;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Page hero */
.page-hero {
  padding: 3rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(212, 165, 116, 0.08), transparent);
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Directory layout */
.directory-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

@media (max-width: 768px) {
  .directory-layout {
    grid-template-columns: 1fr;
  }
}

/* Result header */
.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.result-count {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Client-side search results area */
#client-results {
  min-height: 200px;
}

.search-active .listing-grid .listing-card {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Price range badges */
.price-range-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .section { padding: 2rem 0; }
  .page-hero { padding: 2rem 1.5rem; }
}
