@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Karla:wght@400;500;600;700&display=swap');

:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', system-ui, -apple-system, sans-serif;
  --primary: #2f5d3a;
  --primary-hover: #234a2d;
  --primary-light: rgba(47, 93, 58, 0.08);
  --background: #f7f5ef;
  --foreground: #2e2418;
  --card: #ffffff;
  --card-foreground: #2e2418;
  --secondary: #ece5d8;
  --secondary-foreground: #4a3a28;
  --muted: #f1ede3;
  --muted-foreground: #6e6250;
  --accent: #8b5a2b;
  --border: #ddd6c4;
  --input: #ddd6c4;
  --ring: #2f5d3a;
  --map-land: #d4e2c6;
  --map-hover: #b5895a;
  --map-stroke: #f7f5ef;
  --radius: 0.75rem;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

/* County SVG Map */
.county-path {
  fill: var(--map-land);
  stroke: var(--map-stroke);
  stroke-width: 1.2;
  cursor: pointer;
  transition: fill 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  outline: none;
}

.county-path:hover,
.county-path:focus-visible {
  fill: var(--map-hover);
}

.county-path[data-active="true"] {
  fill: var(--primary) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--background);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

/* Hide scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Helpers */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.25s ease forwards;
}

/* Map hover hint */
.map-hint {
  transition: opacity 0.25s ease;
}
.map-hint.is-hidden {
  opacity: 0;
}
.map-hint-icon {
  animation: map-hint-nudge 1.6s ease-in-out infinite;
}
@keyframes map-hint-nudge {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -3px); }
}
@media (prefers-reduced-motion: reduce) {
  .map-hint-icon { animation: none; }
}
