/* ============================================
   Lumen SF — Neighborhood Intelligence
   Custom CSS for lumensf.com
   ============================================ */

/* CSS Variables */
:root {
  --bg: #F5F0E8;
  --bg-dark: #EDE8DC;
  --accent: #D97757;
  --text: #1a1a1a;
  --text-muted: #666;
  --text-faint: #999;
  --border: rgba(0,0,0,0.08);
  --nav-height: 60px;
}

/* ============================================
   Base Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 2em; }
h3 { font-size: 1.25rem; margin-top: 1.5em; }
h4 { font-size: 1.1rem; margin-top: 1.25em; }

p {
  margin-bottom: 1em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}

li {
  margin-bottom: 0.5em;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s ease;
}

/* ============================================
   App Header
   ============================================ */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.app-header-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.header-nav {
  display: none;
  gap: 20px;
}

.header-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--accent);
}

.ai-powered-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-dark);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

.ai-powered-badge span {
  font-size: 0.9rem;
}

/* ============================================
   Search Bar
   ============================================ */

.search-container {
  max-width: 600px;
  margin: 16px auto;
  padding: 0 16px;
  position: relative;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.search-bar:focus-within {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

.search-icon {
  font-size: 1.2rem;
  margin-right: 10px;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text);
  background: transparent;
}

.search-bar input::placeholder {
  color: var(--text-faint);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 50;
}

.search-suggestions.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.search-suggestion {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
  transition: background-color 0.15s ease;
}

.search-suggestion:last-child {
  border-bottom: none;
}

.search-suggestion:hover {
  background-color: var(--bg);
}

.q-icon {
  font-size: 1.2rem;
}

/* ============================================
   Filter Chips
   ============================================ */

.filters {
  max-width: 600px;
  margin: 0 auto 16px;
  padding: 0 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex-shrink: 0;
  background-color: white;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-chip:hover {
  background-color: var(--bg-dark);
}

.filter-chip.active {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ============================================
   Ad Banner
   ============================================ */

.ad-banner {
  max-width: 600px;
  margin: 16px auto;
  padding: 0 16px;
  position: relative;
}

.ad-label {
  position: absolute;
  top: -4px;
  left: 20px;
  background-color: var(--bg);
  color: var(--text-faint);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}

.ad-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.ad-banner-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), #e89b7f);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}

.ad-banner-text {
  flex: 1;
  min-width: 0;
}

.ad-banner-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.ad-banner-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ad-banner-cta {
  background-color: var(--accent);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.ad-banner-cta:hover {
  transform: scale(1.03);
}

/* ============================================
   Map Section
   ============================================ */

.map-section {
  max-width: 600px;
  margin: 0 auto 60px;
  padding: 0 16px;
  position: relative;
  height: 380px;
  background-color: var(--bg-dark);
  border-radius: 16px;
  overflow: hidden;
}

.map-streets {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.street-h, .street-v, .street-major-h, .street-major-v {
  position: absolute;
  background-color: rgba(0,0,0,0.12);
}

.street-h {
  left: 0;
  right: 0;
  height: 1px;
}

.street-v {
  top: 0;
  bottom: 0;
  width: 1px;
}

.street-major-h {
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(0,0,0,0.18);
}

.street-major-v {
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: rgba(0,0,0,0.18);
}

.park {
  position: absolute;
  background-color: rgba(91, 140, 90, 0.35);
  border-radius: 8px;
}

.water {
  position: absolute;
  background-color: rgba(100, 149, 237, 0.3);
}

.hood-label {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.map-pins {
  position: absolute;
  inset: 0;
}

.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  background-color: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pin::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--accent);
}

.pin:hover {
  transform: translate(-50%, -100%) scale(1.1);
}

.pin.featured {
  background-color: #C0392B;
}

.pin.featured::after {
  border-top-color: #C0392B;
}

.pin.deal {
  background-color: #5B8C5A;
}

.pin.deal::after {
  border-top-color: #5B8C5A;
}

.map-overlay-controls {
  position: absolute;
  top: 12px;
  right: 12px;
}

.map-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ============================================
   Sheet Section
   ============================================ */

.sheet-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 16px 80px;
  background-color: white;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  position: relative;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background-color: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sheet-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.sheet-count {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.sort-btn {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.sort-btn:hover {
  background-color: var(--bg);
}

/* ============================================
   Featured Agent
   ============================================ */

.featured-agent {
  position: relative;
  margin-bottom: 24px;
}

.featured-agent-inner {
  display: flex;
  gap: 16px;
  background: linear-gradient(135deg, #FFF8F3, #FFF5ED);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.featured-agent-img {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), #e89b7f);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.featured-agent-info {
  flex: 1;
  min-width: 0;
}

.featured-agent-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.featured-agent-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.featured-agent-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 10px;
}

.featured-agent-cta {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.featured-agent-cta:hover {
  transform: scale(1.03);
  opacity: 1;
}

/* ============================================
   Neighborhood Cards
   ============================================ */

.neighborhood-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.hood-card {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hood-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.hood-card-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.hood-card-img-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hood-card-img-bg.mission {
  background: linear-gradient(135deg, #F39C6B, #D97757);
}

.hood-card-img-bg.soma {
  background: linear-gradient(135deg, #6BA3F3, #5783D9);
}

.hood-card-img-bg.marina {
  background: linear-gradient(135deg, #6BF39C, #57D978);
}

.hood-card-img-icon {
  font-size: 3.5rem;
  opacity: 0.9;
}

.hood-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hood-card-badge.hot {
  background-color: #FFF3E0;
  color: #F57C00;
}

.hood-card-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.15s ease;
}

.hood-card-heart:hover {
  transform: scale(1.1);
}

.hood-card-info {
  padding: 16px;
}

.hood-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.hood-card-vibe {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.hood-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hood-card-stats span {
  white-space: nowrap;
}

.hood-card-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background-color: #FFF8F3;
  padding: 6px 10px;
  border-radius: 8px;
  display: inline-block;
}

/* ============================================
   Ask AI Section
   ============================================ */

.ask-ai-section {
  margin-bottom: 32px;
}

.ask-ai-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.ask-ai-header span {
  font-size: 1.5rem;
}

.ask-ai-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.ask-ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ask-ai-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.ask-ai-card:hover {
  background-color: var(--bg-dark);
  border-color: var(--accent);
  transform: translateX(2px);
}

/* ============================================
   Comparison Section
   ============================================ */

.comparison-section {
  margin-bottom: 32px;
}

.comparison-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.comparison-table {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row.header {
  background-color: var(--bg-dark);
}

.comparison-cell {
  padding: 12px;
  font-size: 0.9rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.comparison-cell:first-child {
  text-align: left;
  font-weight: 600;
}

.comparison-cell:last-child {
  border-right: none;
}

.comparison-row.header .comparison-cell {
  font-weight: 700;
  color: var(--text);
}

.comparison-cell.best {
  color: var(--accent);
  font-weight: 700;
}

/* ============================================
   Bottom Nav (Mobile)
   ============================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background-color: white;
  border-top: 1px solid var(--border);
  padding: 8px 0 12px;
  z-index: 90;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 4px 8px;
}

.nav-item:hover,
.nav-item.active {
  color: var(--accent);
}

.nav-icon {
  font-size: 1.4rem;
}

/* ============================================
   Ask AI Modal
   ============================================ */

.ask-ai-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ask-ai-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.ask-ai-modal {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 85vh;
  background-color: white;
  border-radius: 24px 24px 0 0;
  padding: 20px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.ask-ai-overlay.active .ask-ai-modal {
  transform: translateY(0);
}

.ask-ai-modal-handle {
  width: 40px;
  height: 4px;
  background-color: var(--border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.ask-ai-modal h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.ask-ai-modal-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.ask-ai-modal-group {
  margin-bottom: 28px;
}

.ask-ai-modal-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.ask-ai-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text);
  padding: 12px;
  margin-bottom: 6px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.ask-ai-link:hover {
  background-color: var(--bg);
}

/* ============================================
   Footer (Desktop)
   ============================================ */

.app-footer {
  display: none;
  max-width: 600px;
  margin: 40px auto 0;
  padding: 24px 16px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.app-footer p {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 0;
}

/* ============================================
   Guide Pages Styles
   ============================================ */

/* Basic header for guide pages */
header {
  background-color: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

header nav {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

header nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

header nav .logo span {
  color: var(--accent);
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  margin: 0;
}

header nav ul li {
  margin: 0;
}

header nav ul li a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

header nav ul li a:hover {
  color: var(--accent);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.content-width {
  padding-left: 20px;
  padding-right: 20px;
}

.guide-hero {
  padding-top: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.guide-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.guide-content {
  padding-bottom: 40px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 32px;
}

.quick-facts > div {
  text-align: center;
}

.fact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.fact-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.place-card {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.place-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.place-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  margin-top: 0;
}

.place-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.place-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
  margin-top: 40px;
  margin-bottom: 40px;
}

.faq-item {
  background-color: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background-color: white;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: var(--bg);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 1000px;
}

.faq-answer p {
  padding: 0 20px 20px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

/* ============================================
   Responsive (Desktop)
   ============================================ */

@media (min-width: 768px) {
  /* Hide bottom nav on desktop */
  .bottom-nav {
    display: none;
  }

  /* Show footer on desktop */
  .app-footer {
    display: block;
  }

  /* Show header nav */
  .header-nav {
    display: flex;
  }

  /* Adjust map section bottom margin (no bottom nav) */
  .map-section {
    margin-bottom: 24px;
  }

  /* Multi-column grid for neighborhood cards */
  .neighborhood-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Multi-column grid for ask-ai cards */
  .ask-ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Adjust sheet section padding */
  .sheet-section {
    padding-bottom: 40px;
  }

  /* Desktop modal positioning */
  .ask-ai-modal {
    max-width: 600px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
  }

  .ask-ai-overlay.active .ask-ai-modal {
    transform: translateX(-50%) translateY(0);
  }

  /* Guide pages responsive adjustments */
  header nav ul {
    gap: 32px;
  }
}

/* ============================================
   Utilities
   ============================================ */

.hidden {
  display: none !important;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Selection color */
::selection {
  background-color: var(--accent);
  color: white;
}

/* Loading states */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================
   Quick Answer Block — Featured Snippet Style
   ============================================ */

.quick-answer {
  background: #FEFCF7;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 2em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.quick-answer h2 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 0.5em;
  color: var(--accent);
}

.quick-answer p {
  margin-bottom: 0.6em;
  font-size: 0.95rem;
  line-height: 1.5;
}

.quick-answer p:last-of-type {
  margin-bottom: 0;
}

.quick-answer .last-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.8em;
  padding-top: 0.8em;
  border-top: 1px solid var(--border);
}

/* Freshness Badge */
.freshness-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1em;
  letter-spacing: 0.02em;
}

/* Hamburger Menu - Mobile */
.hamburger {
  display: block;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  z-index: 1001;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.mobile-menu-overlay.open {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--bg-primary, #1a1a2e);
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--accent, #4fc3f7);
}

/* Hide hamburger on desktop */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

/* Filter chip links */
a.filter-chip {
  text-decoration: none;
  color: var(--text-muted);
}
a.filter-chip:hover {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}
a.filter-chip.active {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}
