/* ===========================
   SitStayPlay — Bright & Playful
   =========================== */

:root {
  --bar: #FF6B35;
  --bar-light: #FFF0EB;
  --park: #2ECC71;
  --park-light: #EAFAF1;
  --beach: #3498DB;
  --beach-light: #EBF5FB;
  --yellow: #F9CA24;
  --bg: #FAFAF8;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --muted: #6B7280;
  --border: #E5E7EB;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
}

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

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

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-paw { font-size: 24px; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.5px;
}
.header-nav { display: flex; gap: 1.5rem; align-items: center; }
.header-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--text); }

/* ---- HERO ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #667eea15 0%, #f093fb15 50%, #4facfe15 100%);
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
  text-align: center;
}
.hero-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bubble {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}
.b1 { top: 15%; left: 8%; animation-delay: 0s; }
.b2 { top: 60%; left: 5%; animation-delay: 1s; }
.b3 { top: 20%; right: 10%; animation-delay: 2s; }
.b4 { top: 70%; right: 8%; animation-delay: 0.5s; }
.b5 { top: 40%; right: 20%; animation-delay: 1.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}
.hero-content { position: relative; max-width: 680px; margin: 0 auto; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}
.hero-highlight {
  background: linear-gradient(135deg, var(--bar), #FF8E53);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 500;
}

/* ---- SEARCH CARD ---- */
.search-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}
.search-row {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}
.location-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 12px;
  font-size: 16px;
  pointer-events: none;
}
.location-input-wrap input {
  width: 100%;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 72px 0 40px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  background: var(--bg);
}
.location-input-wrap input:focus { border-color: var(--bar); background: var(--white); }
.form-group .location-input-wrap input {
  height: auto;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 400;
  background: var(--white);
}
.locate-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.locate-btn:hover { color: var(--bar); background: var(--bar-light); }
.map-picker-btn {
  position: absolute;
  right: 38px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.map-picker-btn:hover { color: var(--bar); background: var(--bar-light); }
.search-btn {
  height: 48px;
  padding: 0 1.5rem;
  background: var(--bar);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.search-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,53,0.35); }
.search-btn:active { transform: translateY(0); }

/* ---- FILTERS ---- */
.filter-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.offleash-row {
  margin-top: 8px;
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 100px;
  border: 2px solid var(--border);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
  background: var(--white);
  color: var(--muted);
  user-select: none;
  white-space: nowrap;
}
.filter-chip input { display: none; }
.filter-chip:has(input:checked).dogbar-chip { background: var(--bar-light); border-color: var(--bar); color: var(--bar); }
.filter-chip:has(input:checked).dogfriendly-chip { background: #FFF8E7; border-color: #F0A500; color: #c47f00; }
.filter-chip:has(input:checked).park-chip { background: var(--park-light); border-color: var(--park); color: var(--park); }
.filter-chip:has(input:checked).beach-chip { background: var(--beach-light); border-color: var(--beach); color: var(--beach); }
.filter-chip:has(input:checked).offleash-chip { background: #F0FFF8; border-color: #2ECC71; color: #1a8a4a; }
.filter-chip:hover { border-color: #ccc; }

/* ---- RESULTS ---- */
.results-section { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.results-meta { display: flex; flex-direction: column; gap: 2px; }
#resultsCount { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
#resultsLocation { font-size: 13px; color: var(--muted); }
.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sort-wrap select {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  outline: none;
}
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.active-filter-tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
}
.tag-dogbar { background: var(--bar-light); color: var(--bar); }
.tag-dogfriendly { background: #FFF8E7; color: #c47f00; }
.tag-park { background: var(--park-light); color: var(--park); }
.tag-beach { background: var(--beach-light); color: var(--beach); }

/* ---- AD BANNER ---- */
.ad-banner {
  background: #F0FFF4;
  border: 1px dashed #A8D5B5;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 1.5rem;
  font-size: 13px;
  color: #27AE60;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ad-label {
  background: #27AE60;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ---- RESULTS GRID ---- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

/* ---- LISTING CARD ---- */
.listing-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.card-photo-wrap {
  position: relative;
}
.card-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--border);
  display: block;
}
.card-photo-placeholder {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.venue-badge-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.ph-dogbar { background: var(--bar-light); }
.ph-dogfriendly { background: #FFF8E7; }
.ph-park { background: var(--park-light); }
.ph-beach { background: var(--beach-light); }
.card-body { padding: .75rem 1rem; }
.card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}
.verified-mark {
  color: #1a8a4a;
  font-size: 14px;
  flex-shrink: 0;
}
.badge-dogbar { background: var(--bar-light); color: var(--bar); }
.badge-dogfriendly { background: #FFF8E7; color: #c47f00; }
.badge-park { background: var(--park-light); color: var(--park); }
.badge-beach { background: var(--beach-light); color: var(--beach); }
.card-address-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
}
.card-address { font-size: 12px; color: var(--muted); }
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.rating-stars { color: #F9CA24; letter-spacing: -1px; }
.rating-val { font-weight: 700; }
.review-count { color: var(--muted); }
.distance-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.off-leash-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #27AE60;
  display: inline-block;
  flex-shrink: 0;
  title: "Off Leash";
}
.open-badge {
  font-size: 11px;
  font-weight: 700;
}
.open-yes { color: #27AE60; }
.open-no { color: #E74C3C; }
.amenity-text {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---- LOADING / EMPTY ---- */
.loading-state, .empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  display: none;
}
.loading-dog {
  font-size: 3rem;
  animation: bounce 0.8s ease-in-out infinite alternate;
  display: block;
  margin-bottom: 1rem;
}
@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-16px); }
}
.loading-state p, .empty-state p { color: var(--muted); font-size: 1.1rem; font-weight: 500; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.empty-state a { color: var(--bar); font-weight: 700; }

/* ---- LOAD MORE ---- */
.load-more-wrap { text-align: center; margin-top: 2rem; }
.load-more-btn {
  padding: 12px 2rem;
  border: 2px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  transition: all 0.2s;
}
.load-more-btn:hover { border-color: var(--bar); color: var(--bar); }

/* ---- MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  animation: modalIn 0.25s ease;
}
.modal-sm { max-width: 480px; }
@keyframes modalIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.modal-close:hover { background: rgba(255,255,255,1); }

/* ---- MODAL DETAIL ---- */
.modal-photos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: -2rem -2rem 1rem;
  padding: 0;
  scroll-snap-type: x mandatory;
  position: relative;
  z-index: 1;
}
.modal-photos img {
  width: 100%;
  min-width: 100%;
  height: 260px;
  object-fit: cover;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.modal-photos-single img { width: 100%; height: 260px; object-fit: cover; }
.modal-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.modal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 14px;
}
.modal-section { margin-bottom: 1.5rem; }
.modal-section h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hours-list { font-size: 14px; line-height: 2; color: var(--text); }
.modal-links { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 2px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.modal-link:hover { border-color: var(--bar); color: var(--bar); }
.review-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}
.review-author { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.review-stars { color: #F9CA24; margin-bottom: 6px; font-size: 13px; }
.review-text { font-size: 14px; color: var(--text); line-height: 1.5; }
.review-time { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---- REVIEW FORM ---- */
.review-form { background: var(--bg); border-radius: var(--radius-sm); padding: 1.25rem; border: 1px solid var(--border); }
.review-form h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.star-picker { display: flex; gap: 6px; margin-bottom: 1rem; }
.star-btn {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.15s, transform 0.15s;
  padding: 0;
}
.star-btn.active { opacity: 1; transform: scale(1.1); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--bar); }
.submit-review-btn {
  padding: 10px 1.5rem;
  background: var(--park);
  color: white;
  border: none;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
}
.submit-review-btn:hover { transform: translateY(-1px); }

/* ---- ABOUT ---- */
.about-section {
  background: var(--text);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
}
.about-inner { max-width: 640px; margin: 0 auto; }
.about-section h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.about-section p { color: rgba(255,255,255,0.7); font-size: 1rem; line-height: 1.7; margin-bottom: 2rem; }
.about-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--yellow); }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--text); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .search-row { flex-direction: column; }
  .search-btn { width: 100%; }
  .results-grid { grid-template-columns: 1fr; }
  .modal-content {
    padding: 1.5rem;
    padding-top: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    align-self: flex-end;
    max-height: 92vh;
    max-height: 92dvh;
  }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-close {
    position: sticky;
    top: 8px;
    right: 0;
    margin-left: auto;
    margin-top: env(safe-area-inset-top, 0px);
    margin-bottom: -40px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
  }
  .modal-photos {
    margin-top: 0;
  }
  .hero { padding: 3rem 1rem 2.5rem; }
  .filter-row { gap: 6px; }
  .about-stats { gap: 2rem; }
}

/* ---- LOCATION AUTOCOMPLETE ---- */
.location-input-wrap {
  position: relative;
}
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  max-height: 260px;
  overflow-y: auto;
  display: none;
}
.autocomplete-dropdown.open {
  display: block;
}
.autocomplete-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.autocomplete-item:last-child {
  border-bottom: none;
}
.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: var(--bar-light);
}
.autocomplete-pin {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.autocomplete-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.autocomplete-primary {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.autocomplete-secondary {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.autocomplete-loading {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ---- OFF LEASH TOGGLE ROW ---- */
.offleash-row {
  margin-top: 6px;
}
.filter-chip:has(input:checked).opennow-chip { background: #EBF5FB; border-color: var(--beach); color: #1a6a9a; }

/* ---- OFF LEASH BADGE (on cards — legacy, kept for listing modal) ---- */
.off-leash-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  background: #F0FFF8;
  color: #1a8a4a;
  border: 1px solid #A8D5B5;
  white-space: nowrap;
}

/* ---- DOG BAR NUDGE BANNER ---- */
.nudge-banner {
  background: #FFF8E7;
  border: 1px solid #F0A500;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 1rem;
  font-size: 13px;
  color: #c47f00;
  font-weight: 600;
}

/* ---- DOG FRIENDLY COLOR VAR ---- */
:root {
  --dogfriendly: #F0A500;
  --dogfriendly-light: #FFF8E7;
}

/* ---- AUTH / LOGIN ---- */
.auth-area { display: flex; align-items: center; gap: 10px; }
.user-menu { display: flex; align-items: center; gap: 8px; }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border);
}
#userName { font-size: 13px; font-weight: 700; color: var(--text); }

/* ---- PROFILE DROPDOWN ---- */
.profile-dropdown {
  position: relative;
}
.profile-dropdown-trigger:hover #userName {
  color: var(--bar);
}
.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  padding: 6px 0;
  z-index: 300;
}
.dropdown-item {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}
.dropdown-item:hover {
  background: var(--bg);
}
.dropdown-signout {
  color: #E74C3C;
}

/* ---- SOCIAL LOGIN BUTTONS ---- */
.social-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; padding: 11px 16px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  cursor: pointer; margin-bottom: 8px; transition: all 0.15s;
  background: var(--white); color: var(--text);
}
.social-btn:hover { border-color: var(--text); background: var(--bg); }
.apple-btn { background: #000; color: #fff; border-color: #000; }
.apple-btn:hover { background: #222; }
.facebook-btn { background: #1877F2; color: #fff; border-color: #1877F2; }
.facebook-btn:hover { background: #1464d8; }

/* ---- REPORT MISCLASSIFICATION BUTTON (on listing cards) ---- */
.report-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 100px;
  border: 1px solid var(--border); background: transparent;
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
  margin-top: 8px;
}
.report-btn:hover { border-color: var(--bar); color: var(--bar); background: var(--bar-light); }

/* ---- REPORT MISCLASSIFICATION CHIPS ---- */
.chip-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.report-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--bg);
  user-select: none;
}
.report-chip:hover { border-color: var(--bar); background: var(--bar-light); }
.report-chip.selected { border-color: var(--park); background: var(--park-light); }
.report-chip.sm { flex-direction: row; align-items: center; padding: 8px 12px; }
.chip-label { font-size: 14px; font-weight: 700; color: var(--text); }
.chip-desc { font-size: 12px; color: var(--muted); }
.report-chip.selected .chip-label { color: #1a8a4a; }
.report-chip.selected .chip-desc { color: #2ecc71; }

/* ---- TAG TOGGLE (Report Misclassification) ---- */
.tag-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 4px;
}
.tag-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 2px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  user-select: none;
  transition: all 0.15s;
}
.tag-toggle input { display: none; }
.tag-toggle:has(input:checked) {
  background: var(--park-light);
  border-color: var(--park);
  color: #1a8a4a;
}
.tag-toggle:hover { border-color: #ccc; }

/* ---- REPORT PREVIEW ---- */
.report-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 13px;
}
.preview-label {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.preview-result {
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text);
}
.preview-result.classified { color: var(--park); }
.preview-result.excluded { color: var(--bar); }

/* ---- MOBILE NAV ---- */
.nav-mobile { display: none; }
.nav-desktop { /* shown by default */ }
.nav-desktop-flex { /* shown by default */ }

.nav-hamburger {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  color: var(--text);
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.nav-hamburger:hover { background: var(--bar-light); }

/* Mobile avatar + hamburger — always hidden on desktop */
.mobile-avatar { display: none !important; }
.mobile-avatar-ready { /* JS adds this when avatar data is set — only visible on mobile via media query */ }

.user-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bar-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid var(--border);
}

/* Mobile dropdown menu */
.mobile-nav-menu {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 2px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 99;
  padding: 0.5rem 0;
}
.mobile-nav-user {
  padding: 0.75rem 1.25rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem;
}
.mobile-nav-item {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}
.mobile-nav-item:hover { background: var(--bar-light); }
.mobile-nav-admin { color: var(--bar) !important; }
.mobile-nav-signout { color: var(--muted) !important; border-top: 1px solid var(--border); margin-top: 0.25rem; }

@media (max-width: 768px) {
  /* Hide desktop nav items, show mobile equivalents */
  .nav-desktop { display: none !important; }
  .nav-desktop-flex { display: none !important; }
  .nav-mobile { display: flex !important; }
  .mobile-avatar.mobile-avatar-ready { display: block !important; }
  .user-avatar-placeholder.mobile-avatar-ready { display: flex !important; }

  /* Tighten header on mobile */
  .header-inner { padding: 0 1rem; }
  .logo-text { font-size: 18px; }

  /* Make header position relative so dropdown can anchor to it */
  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

/* ---- ADD A SPOT MODAL ---- */
.suggest-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 600;
  max-height: 280px;
  overflow-y: auto;
}
.suggest-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: var(--bar-light); }
.suggest-item-name { font-weight: 700; font-size: 14px; color: var(--text); }
.suggest-item-addr { font-size: 12px; color: var(--muted); margin-top: 2px; }
.suggest-item-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 4px;
  background: var(--bar-light);
  color: var(--bar);
}

.suggest-place-card {
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.suggest-place-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.suggest-place-addr { font-size: 13px; color: var(--muted); }
.suggest-place-meta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* ---- SUGGESTION STATUS BADGES (on cards) ---- */
.suggestion-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.suggestion-badge.verified {
  background: #e6f9f1;
  color: #1a8a4a;
  border: 1px solid #b2dfcc;
}
.suggestion-badge.pending {
  background: #fff8e6;
  color: #b07800;
  border: 1px solid #ffe0a0;
}
.suggestion-badge.community {
  background: #e8f0ff;
  color: #2255cc;
  border: 1px solid #b0c4f0;
}

/* ===========================
   SEO: Explore Section (Homepage)
   =========================== */
.explore-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.explore-inner h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.25rem;
}
.explore-sub {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 2rem;
}
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.explore-city-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: box-shadow 0.2s;
}
.explore-city-card:hover {
  box-shadow: var(--shadow);
}
.explore-city-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.explore-links a {
  font-size: 12px;
  color: var(--bar);
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bar-light);
  transition: background 0.2s;
  font-weight: 600;
}
.explore-links a:hover {
  background: var(--bar);
  color: #fff;
}

/* ===========================
   SEO: Location Page Hero
   =========================== */
.seo-hero {
  background: linear-gradient(135deg, #fff5f0 0%, #ffecd2 100%);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}
.seo-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1rem;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--bar);
}
.breadcrumbs span {
  margin: 0 0.3rem;
}
.seo-hero h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.seo-hero-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.seo-search-cta {
  display: inline-block;
  text-decoration: none;
  font-size: 15px;
  padding: 12px 32px;
}

/* ===========================
   SEO: Location Page Internal Links
   =========================== */
.seo-links-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.seo-links-block {
  margin-bottom: 2rem;
}
.seo-links-block h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.seo-link-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.seo-link-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--bar);
  color: var(--bar);
}
.seo-link-emoji {
  font-size: 18px;
}

/* Responsive adjustments for SEO sections */
@media (max-width: 600px) {
  .seo-hero h1 { font-size: 1.6rem; }
  .seo-hero { padding: 3rem 1rem 2rem; }
  .explore-grid { grid-template-columns: 1fr; }
  .seo-link-grid { grid-template-columns: 1fr; }
}

/* ===========================
   Map Picker Modal
   =========================== */
.modal-map {
  max-width: 560px;
}
.map-radius-controls {
  margin-top: 1rem;
}
.map-radius-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.map-radius-label strong {
  color: var(--bar);
  font-size: 16px;
}
.map-radius-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
  transition: background 0.2s;
}
.map-radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bar);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.15s;
}
.map-radius-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.map-radius-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bar);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.map-radius-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  padding: 0 2px;
}

@media (max-width: 600px) {
  .modal-map { max-width: 100%; }
  #mapPickerContainer { height: 280px !important; }
}
