/* ============================================================
   florida.camp — Main Stylesheet
   Forest Green + Sand + Amber + Gulf Blue
   ============================================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  --forest: #1a3a2a;
  --forest-mid: #2d5a3d;
  --forest-light: #3d7a53;
  --sand: #f5ede0;
  --sand-dark: #e8ddd0;
  --amber: #e8852a;
  --amber-dark: #c96f1e;
  --gulf: #2a7fa8;
  --gulf-light: #3a9fc8;
  --white: #ffffff;
  --black: #111111;
  --gray-100: #f7f6f3;
  --gray-200: #eae7e0;
  --gray-300: #d4d0c8;
  --gray-400: #999488;
  --gray-500: #6b6660;
  --gray-600: #4a4640;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --shadow-sm: 0 1px 3px rgba(26,58,42,0.08);
  --shadow-md: 0 4px 12px rgba(26,58,42,0.1);
  --shadow-lg: 0 8px 30px rgba(26,58,42,0.12);
  --shadow-xl: 0 12px 40px rgba(26,58,42,0.16);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--gray-100);
  color: var(--gray-600);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--gulf);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--gulf-light);
}

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

/* ---------- Navbar ---------- */
.navbar {
  background: var(--forest);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.navbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sand);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.navbar-brand .emoji {
  font-size: 1.6rem;
}
.navbar-brand span {
  color: var(--amber);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--sand);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity var(--transition);
}
.nav-links a:hover {
  opacity: 1;
  color: var(--sand);
}
.nav-cta {
  background: var(--amber);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  opacity: 1 !important;
  transition: background var(--transition);
}
.nav-cta:hover {
  background: var(--amber-dark);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sand);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 50%, var(--forest-light) 100%);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(232,133,42,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(42,127,168,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--sand);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.hero h1 .highlight {
  color: var(--amber);
}
.hero p {
  font-size: 1.15rem;
  color: rgba(245,237,224,0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--amber);
  display: block;
}
.hero-stat .label {
  font-size: 0.82rem;
  color: rgba(245,237,224,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ---------- Search Bar ---------- */
.search-section {
  max-width: 900px;
  margin: -2rem auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 100;
}
.search-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1rem 1.5rem;
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--gray-600);
  padding: 10px 4px;
  background: transparent;
}
.search-bar input::placeholder {
  color: var(--gray-400);
}
.search-bar .search-icon {
  font-size: 1.3rem;
  color: var(--gray-400);
}
.search-bar button {
  background: var(--forest);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.search-bar button:hover {
  background: var(--forest-mid);
}

/* ---------- Filters ---------- */
.filters-section {
  max-width: 1320px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}
.filters-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--forest-mid);
  color: var(--forest);
}
.filter-btn.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}
.filter-btn .count {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-left: 4px;
}
.filters-clear {
  background: none;
  border: none;
  color: var(--amber);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
}
.filters-clear:hover {
  color: var(--amber-dark);
}

/* ---------- Results Info ---------- */
.results-info {
  max-width: 1320px;
  margin: 1.5rem auto 0;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.results-count {
  font-size: 0.9rem;
  color: var(--gray-500);
}
.results-count strong {
  color: var(--forest);
}
.view-toggle {
  display: flex;
  gap: 4px;
}
.view-toggle button {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.view-toggle button.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

/* ---------- Main Layout ---------- */
.main-content {
  max-width: 1320px;
  margin: 1.5rem auto 0;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 2rem;
}
.main-content.map-hidden {
  grid-template-columns: 1fr;
}

/* ---------- Cards Grid ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: 1px solid var(--gray-200);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-header {
  padding: 1rem 1rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.card-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.card-type.state-park      { background: #e6f0e6; color: #1a5a2a; }
.card-type.national-forest  { background: #d4e8d4; color: #0d4a1d; }
.card-type.national-park    { background: #fdf0db; color: #8a5a00; }
.card-type.national-seashore { background: #dbeef5; color: #1a6080; }
.card-type.county-park      { background: #e8e0f0; color: #4a3070; }
.card-type.state-forest     { background: #d8e8d0; color: #2a5020; }
.card-type.private-rv-park  { background: #fce4d0; color: #8a4510; }
.card-region {
  font-size: 0.75rem;
  color: var(--gray-400);
  white-space: nowrap;
}
.card-body {
  padding: 0 1rem;
}
.card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.card-desc {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-highlights {
  padding: 0.5rem 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.highlight-tag {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 50px;
  background: var(--sand);
  color: var(--gray-500);
  font-weight: 500;
}
.card-footer {
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--gray-200);
  margin-top: 0.5rem;
}
.card-price {
  font-weight: 600;
  color: var(--forest);
  font-size: 0.9rem;
}
.card-amenities {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.amenity-icon {
  width: 28px;
  height: 28px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--gray-500);
  cursor: default;
}
.amenity-icon[title]:hover {
  background: var(--sand);
  color: var(--forest);
}

/* ---------- Map ---------- */
.map-container {
  position: sticky;
  top: 80px;
  height: calc(100vh - 100px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
#map {
  width: 100%;
  height: 100%;
}
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
}
.leaflet-popup-content {
  font-family: var(--font-body) !important;
  margin: 14px !important;
}
.popup-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 4px;
}
.popup-type {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.popup-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.popup-price {
  font-weight: 600;
  color: var(--forest);
  font-size: 0.85rem;
}
.popup-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--gulf);
  font-weight: 600;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition);
}
.modal-close:hover {
  background: var(--gray-200);
}
.modal-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.modal-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 4px;
}
.modal-location {
  font-size: 0.9rem;
  color: var(--gray-400);
}
.modal-body {
  padding: 1.5rem 2rem 2rem;
}
.modal-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}
.modal-highlights {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.modal-highlights .tag {
  background: var(--sand);
  color: var(--forest);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.modal-detail {
  background: var(--gray-100);
  padding: 14px;
  border-radius: var(--radius-sm);
}
.modal-detail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 4px;
}
.modal-detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--forest);
}
.modal-amenities {
  margin-bottom: 1.5rem;
}
.modal-amenities h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--forest);
  margin-bottom: 10px;
}
.modal-amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-amenity {
  background: var(--gray-100);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.modal-btn {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.modal-btn-primary {
  background: var(--amber);
  color: var(--white);
}
.modal-btn-primary:hover {
  background: var(--amber-dark);
  color: var(--white);
}
.modal-btn-secondary {
  background: var(--gray-100);
  color: var(--forest);
  border: 1.5px solid var(--gray-200);
}
.modal-btn-secondary:hover {
  background: var(--gray-200);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--forest);
  color: rgba(245,237,224,0.7);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--sand);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.footer-brand span {
  color: var(--amber);
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 300px;
}
.footer-col h4 {
  color: var(--sand);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}
.footer-col a {
  display: block;
  color: rgba(245,237,224,0.6);
  font-size: 0.85rem;
  padding: 3px 0;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--sand);
}
.footer-bottom {
  max-width: 1320px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245,237,224,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* ---------- Loading Skeleton ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}
.empty-state .emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.empty-state h3 {
  font-family: var(--font-display);
  color: var(--forest);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .map-container {
    position: relative;
    top: 0;
    height: 400px;
    order: -1;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 1rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--forest);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 1rem;
    display: block;
  }
  .mobile-toggle {
    display: block;
  }
  .hero {
    padding: 3rem 1.5rem 2.5rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-stats {
    gap: 1.5rem;
  }
  .hero-stat .number {
    font-size: 1.8rem;
  }
  .search-bar {
    flex-wrap: wrap;
  }
  .search-bar button {
    width: 100%;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .main-content {
    padding: 0 1rem 3rem;
  }
  .modal {
    margin: 0.5rem;
    max-height: 95vh;
  }
  .modal-header, .modal-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .modal-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* ---------- AdSense Placeholder ---------- */
.ad-slot {
  background: var(--gray-100);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin: 1.5rem 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
