﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.85);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.15);
  --accent-bright: #3b82f6;
  --pin-glow: rgba(37, 99, 235, 0.3);
  --pin-pulse: rgba(37, 99, 235, 0.1);
  --map-stroke: #cbd5e1;
  --map-fill: #f1f5f9;
  --map-fill-hover: #e2e8f0;
  --gold: #d97706;
  --gold-glow: rgba(217, 119, 6, 0.3);
  --border: #e2e8f0;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.privacy-html,
html.privacy-html body {
  height: auto;
  min-height: 100%;
}

html.privacy-html {
  overflow-y: auto;
  overflow-x: hidden;
}

body.privacy-body {
  overflow: visible;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.header>* {
  pointer-events: auto;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-image {
  display: block;
  height: 40px;
  width: auto;
}

.map-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  margin-top: 60px;
  margin-bottom: 60px;
}

.map-svg {
  width: 100%;
  height: 100%;
  max-width: 900px;
  max-height: 80vh;
}

.florida-outline {
  fill: var(--map-fill);
  stroke: var(--map-stroke);
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: fill var(--transition), stroke var(--transition);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.05));
}

.florida-outline:hover {
  fill: var(--map-fill-hover);
  stroke: #94a3b8;
}

.city-pin {
  cursor: pointer;
  transition: transform var(--transition);
}

.city-pin:hover {
  transform-origin: center;
}

.city-pin .pin-pulse {
  fill: var(--pin-pulse);
  opacity: 0.45;
  transform: scale(1);
  transform-box: fill-box;
  animation: pin-radar 2.2s ease-out infinite;
  transform-origin: center;
  pointer-events: none;
  will-change: transform, opacity;
}

.city-pin .pin-outer {
  fill: var(--accent);
  stroke: white;
  stroke-width: 2px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: r var(--transition), fill var(--transition);
}

.city-pin .pin-inner {
  fill: white;
  transition: r var(--transition);
}

.city-pin:hover .pin-outer {
  filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.25));
}

.city-pin:hover .pin-pulse {
  animation-duration: 1.8s;
}

.city-pin.featured .pin-outer {
  fill: var(--gold);
}

.city-pin.featured .pin-pulse {
  fill: var(--gold);
}

.city-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  fill: var(--text-secondary);
  text-anchor: middle;
  pointer-events: none;
  transition: all var(--transition);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px white, 0 0 2px white;
}

.city-pin:hover+.city-label,
.city-pin:hover~.city-label {
  fill: var(--text-primary);
  font-weight: 800;
  transform: translateY(2px);
}

.city-label-hover-only {
  opacity: 0;
}

.city-link:hover + .city-label-hover-only,
.city-link:focus + .city-label-hover-only,
.city-link:active + .city-label-hover-only,
.city-link:focus-visible + .city-label-hover-only {
  opacity: 1;
  fill: var(--text-primary);
  font-weight: 800;
}

.tooltip {
  position: fixed;
  z-index: 1000;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-lg);
  min-width: 140px;
}

.tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tooltip-city {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tooltip-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.tooltip-arrow {
  color: var(--accent);
  font-size: 14px;
}



.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: white;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.separator {
  color: var(--border);
}

@keyframes pin-radar {
  0% {
    transform: scale(1);
    opacity: 0.45;
  }

  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

.city-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.city-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px 60px;
  position: relative;
}

.back-link {
  position: absolute;
  top: 24px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.back-link:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.city-name {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 24px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.city-tagline {
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 600px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.city-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.city-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

body.bg-topo {
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

body.bg-gradient {
  background: #ffffff;
}

body.bg-dots {
  background-color: #ffffff;
  background-image: radial-gradient(#cbd5e1 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}

@media (max-width: 640px) {
  .header {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: white;
    border-bottom: 1px solid var(--border);
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    padding: 4px 0;
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .map-container {
    margin-top: 100px;
    margin-bottom: 120px;
    }

  .logo-image {
    height: 32px;
  }

  .bottom-bar {
    bottom: 50px;
    padding: 10px;
  }

  .city-chip {
    padding: 6px 12px;
    font-size: 12px;
  }

  .footer {
    padding: 12px 16px;
    font-size: 10px;
    flex-direction: column;
    gap: 8px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.privacy-wrap {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 120px;
  padding-bottom: 48px;
}

.privacy-back {
  position: static;
  margin-bottom: 24px;
}

.privacy-title {
  text-align: left;
  margin-bottom: 16px;
}

.privacy-subtitle {
  text-align: left;
  margin-bottom: 24px;
}

.privacy-text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.privacy-section-title {
  margin: 20px 0 8px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
}

.privacy-list {
  margin: 0 0 16px 22px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.privacy-list li {
  margin-bottom: 6px;
}

.privacy-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.privacy-link:hover {
  text-decoration: underline;
}

.privacy-body .footer {
  position: static;
}
