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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #1a1a2e;
  color: #e8e8e8;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Header ── */
header {
  background: #16213e;
  border-bottom: 2px solid #0f3460;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 28px;
}

.logo h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e94560;
  letter-spacing: -0.5px;
}

.logo span {
  font-size: 0.75rem;
  color: #888;
  display: block;
  font-weight: 400;
  margin-top: -2px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-btn {
  padding: 7px 14px;
  border-radius: 20px;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn.off-leash {
  background: rgba(52, 199, 89, 0.15);
  border-color: #34c759;
  color: #34c759;
}

.filter-btn.off-leash.active {
  background: #34c759;
  color: #fff;
}

.filter-btn.on-leash {
  background: rgba(255, 159, 10, 0.15);
  border-color: #ff9f0a;
  color: #ff9f0a;
}

.filter-btn.on-leash.active {
  background: #ff9f0a;
  color: #fff;
}

.park-count {
  font-size: 0.75rem;
  color: #888;
  background: #0f3460;
  padding: 5px 10px;
  border-radius: 12px;
}

/* ── Layout ── */
.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Map ── */
#map {
  flex: 1;
  height: 100%;
}

/* ── Side Panel ── */
.side-panel {
  width: 340px;
  background: #16213e;
  border-left: 2px solid #0f3460;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
  transition: width 0.3s ease;
}

.side-handle { display: none; }

/* Placeholder when no park selected */
.panel-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 24px;
  color: #333;
  text-align: center;
}
.placeholder-icon { font-size: 2.5rem; opacity: 0.4; }
.placeholder-text { font-size: 0.85rem; line-height: 1.6; color: #444; }

/* ── Info card ── */
.info-card {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  background: #16213e;
}
.info-card::-webkit-scrollbar { width: 4px; }
.info-card::-webkit-scrollbar-thumb { background: #1a4580; border-radius: 2px; }

.info-card.visible {
  display: flex;
}

/* Keep leash badge styles */
.leash-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.leash-badge.off     { background: rgba(52,199,89,0.2);  color:#34c759; border:1px solid #34c759; }
.leash-badge.on      { background: rgba(255,159,10,0.2); color:#ff9f0a; border:1px solid #ff9f0a; }
.leash-badge.partial { background: rgba(255,204,0,0.2);  color:#ffcc00; border:1px solid #ffcc00; }

.info-card-close {
  float: right;
  background: none;
  border: none;
  color: #888;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0 4px 4px;
  line-height: 1;
}

.info-card-close:hover {
  color: #e94560;
}

.info-card h3 {
  font-size: 1rem;
  color: #e8e8e8;
  margin-bottom: 4px;
  padding-right: 24px;
}

.info-card-suburb {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 10px;
}

.info-card-address {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.info-card-notes {
  font-size: 0.82rem;
  color: #bbb;
  line-height: 1.5;
  margin-bottom: 12px;
  padding: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  border-left: 3px solid #e94560;
}

.info-card-footer {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-sm:hover {
  opacity: 0.85;
}

.btn-directions {
  background: #e94560;
  color: #fff;
  flex: 1;
}

.btn-council {
  background: #0f3460;
  color: #aaa;
  border: 1px solid #1a4580;
}

/* ── Legend ── */
.legend-toggle {
  background: none;
  border: none;
  color: #9aabcc;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0;
  pointer-events: all;
  width: 100%;
  text-align: left;
}
.legend-toggle:hover { color: #fff; }
.legend-body { margin-top: 8px; }

.legend {
  position: absolute;
  bottom: 30px;
  left: 10px;
  background: rgba(22, 33, 62, 0.95);
  border: 1px solid #0f3460;
  border-radius: 10px;
  padding: 12px 16px;
  z-index: 5;
  pointer-events: all;
}

.legend h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: #ddd;
}

.legend-item:last-child {
  margin-bottom: 0;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid;
}

.legend-dot.off {
  background: rgba(52, 199, 89, 0.35);
  border-color: #34c759;
}

.legend-dot.partial {
  background: rgba(255, 204, 0, 0.35);
  border-color: #ffcc00;
}

.legend-dot.on {
  background: rgba(255, 159, 10, 0.35);
  border-color: #ff9f0a;
}

/* ── API key warning banner ── */
.api-warning {
  display: none;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #e94560;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  z-index: 100;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(233, 69, 96, 0.4);
}

.api-warning a {
  color: #fff;
  text-decoration: underline;
}

/* ── Seasonal warning (sidebar card) ── */
.info-seasonal-warning {
  font-size: 0.75rem;
  color: #ffcc00;
  background: rgba(255, 204, 0, 0.08);
  border: 1px solid rgba(255, 204, 0, 0.25);
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 8px;
}

/* ── Site footer ── */
.site-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(22, 33, 62, 0.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid #0f3460;
  padding: 6px 16px;
  display: flex; align-items: center; gap: 16px;
  font-size: 0.7rem; color: #555; z-index: 5;
  pointer-events: none;
}
.site-footer a {
  color: #666; text-decoration: none; pointer-events: all;
}
.site-footer a:hover { color: #aaa; }

/* ── Attribution ── */
.attribution {
  position: absolute;
  bottom: 6px;
  left: 10px;
  font-size: 0.68rem;
  color: #555;
  z-index: 5;
  pointer-events: none;
}

.attribution a {
  color: #666;
  text-decoration: none;
  pointer-events: all;
}

.attribution a:hover {
  color: #aaa;
}

/* ── No results ── */
.no-results {
  text-align: center;
  padding: 30px 16px;
  color: #555;
  font-size: 0.85rem;
}

/* ── Header action buttons ── */
.header-btn {
  padding: 7px 13px; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
}
.add-park-btn    { background: rgba(233,69,96,0.15); color: #e94560; border: 1px solid #e94560; }
.add-park-btn:hover { background: #e94560; color: #fff; }
.add-trainer-btn { background: rgba(123,47,255,0.15); color: #7b2fff; border: 1px solid #7b2fff; }
.add-trainer-btn:hover { background: #7b2fff; color: #fff; }
.add-cafe-btn { background: rgba(180,83,9,0.15); color: #d97706; border: 1px solid #b45309; }
.add-cafe-btn:hover { background: #b45309; color: #fff; }

/* Cafe feature checkboxes */
.cafe-features-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin: 6px 0 12px;
}
.cafe-feature-check {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.82rem; color: #aaa; cursor: pointer; padding: 6px 10px;
  border: 1px solid #0f3460; border-radius: 8px; transition: border-color 0.15s, background 0.15s;
}
.cafe-feature-check:hover { border-color: #b45309; background: rgba(180,83,9,0.05); }
.cafe-feature-check input[type=checkbox] { accent-color: #b45309; width: 14px; height: 14px; }
.admin-btn  { background: rgba(255,255,255,0.06); color: #888; border: 1px solid #333; }
.admin-btn:hover { border-color: #aaa; color: #e8e8e8; }
.signin-btn { background: #fff; color: #333; border: 1px solid #ddd; gap: 6px; }
.signin-btn:hover { background: #f5f5f5; }
.user-info-wrap { display: flex; align-items: center; gap: 8px; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 2px solid #0f3460; flex-shrink: 0; }
.user-display-name { font-size: 0.78rem; color: #aaa; max-width: 100px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signout-btn { background: transparent; color: #666; border: 1px solid #333; font-size: 0.72rem; }
.signout-btn:hover { color: #e94560; border-color: #e94560; }

/* Sign-in prompt inside social panels */
.sc-signin-prompt {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px; text-align: center;
}
.sc-signin-prompt p { font-size: 0.8rem; color: #555; }
.sc-signin-google {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px; background: #fff; color: #333;
  border: none; border-radius: 8px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.sc-signin-google:hover { background: #f0f0f0; }
.admin-badge {
  background: #e94560; color: #fff; border-radius: 10px;
  padding: 1px 6px; font-size: 0.65rem; font-weight: 700;
}
.filter-btn.trainer-filter {
  background: rgba(123,47,255,0.15); border-color: #7b2fff; color: #7b2fff;
}
.filter-btn.trainer-filter.active { background: #7b2fff; color: #fff; }

/* ── Modal overlay + panel ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 50; backdrop-filter: blur(2px);
}
.modal-panel {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: #16213e; border: 1px solid #0f3460; border-radius: 16px;
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  z-index: 51; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1px solid #0f3460;
}
.modal-header h3 { font-size: 1rem; color: #e8e8e8; }
.modal-close {
  background: none; border: none; color: #888; font-size: 1.4rem;
  cursor: pointer; padding: 0 4px; line-height: 1;
}
.modal-close:hover { color: #e94560; }
.modal-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.modal-body label { font-size: 0.75rem; color: #888; margin-top: 8px; }
.modal-body input, .modal-body select, .modal-body textarea {
  width: 100%; padding: 9px 12px; background: #1a1a2e;
  border: 1px solid #0f3460; border-radius: 8px;
  color: #e8e8e8; font-size: 0.85rem; outline: none; font-family: inherit;
}
.modal-body input:focus, .modal-body select:focus, .modal-body textarea:focus {
  border-color: #e94560;
}
.modal-body textarea { resize: vertical; min-height: 80px; }
.modal-hint { font-size: 0.75rem; color: #666; line-height: 1.4; margin-bottom: 4px; }
.modal-actions { display: flex; gap: 8px; margin-top: 14px; }
.modal-btn { padding: 10px 18px; border-radius: 8px; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; border: none; flex: 1; }
.modal-btn-primary  { background: #e94560; color: #fff; }
.modal-btn-primary:hover  { opacity: 0.88; }
.modal-btn-secondary { background: rgba(255,255,255,0.06); color: #888;
  border: 1px solid #333; }
.modal-btn-secondary:hover { border-color: #aaa; color: #e8e8e8; }
.modal-status { font-size: 0.78rem; margin-top: 8px; padding: 6px 10px;
  border-radius: 6px; display: none; }
.modal-status:not(:empty) { display: block; }
.modal-status.error   { background: rgba(233,69,96,0.1); color: #e94560;
  border: 1px solid rgba(233,69,96,0.3); }
.modal-status.success { background: rgba(52,199,89,0.1); color: #34c759;
  border: 1px solid rgba(52,199,89,0.3); }
.location-display {
  padding: 9px 12px; background: #1a1a2e; border: 1px solid #0f3460;
  border-radius: 8px; font-size: 0.82rem; color: #aaa; margin-top: 2px;
  flex: 1;
}
.location-pick-row {
  display: flex; align-items: center; gap: 8px; margin-top: 2px;
}
.geocode-row {
  display: flex; align-items: center; gap: 8px; margin-top: 2px;
}
.geocode-row input {
  flex: 1;
}
.modal-btn-pick {
  background: #7b2fff; color: #fff; border: none; border-radius: 8px;
  padding: 8px 12px; font-size: 0.82rem; cursor: pointer; white-space: nowrap;
  flex-shrink: 0;
}
.modal-btn-pick:hover { background: #6a1fe0; }

/* ── Search ── */
.search-wrap { position: relative; }
.search-btn { font-size: 1rem; padding: 6px 10px !important; }
.search-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 300px; background: #16213e;
  border: 1px solid #0f3460; border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 100; overflow: hidden;
}
.search-input-field {
  width: 100%; padding: 11px 14px;
  background: transparent; border: none;
  border-bottom: 1px solid #0f3460;
  color: #e8e8e8; font-size: 0.88rem; outline: none;
}
.search-input-field::placeholder { color: #555; }
.search-results { max-height: 280px; overflow-y: auto; }
.search-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid rgba(15,52,96,0.5);
  transition: background 0.15s;
}
.search-result-item:hover { background: rgba(233,69,96,0.08); }
.search-result-item:last-child { border-bottom: none; }
.sr-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.sr-name { font-size: 0.83rem; font-weight: 600; color: #e8e8e8; }
.sr-sub  { font-size: 0.72rem; color: #666; }
.search-no-results { padding: 16px 14px; font-size: 0.82rem; color: #555; text-align: center; }
.search-loading    { padding: 16px 14px; font-size: 0.82rem; color: #555; text-align: center; }

/* ── Info card: make it scrollable now it has social content ── */
.info-card {
  max-height: 55vh;
  overflow-y: auto;
}
.info-card::-webkit-scrollbar { width: 4px; }
.info-card::-webkit-scrollbar-thumb { background: #1a4580; border-radius: 2px; }

/* ── Social tabs ── */
.sc-tabs {
  display: flex; gap: 6px;
  margin: 14px 0 10px;
  border-bottom: 1px solid #0f3460;
  padding-bottom: 10px;
}
.sc-tab {
  padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; border: 1px solid #1a4580; background: transparent; color: #666;
  transition: all 0.2s;
}
.sc-tab:hover { color: #aaa; border-color: #aaa; }
.sc-tab-active { background: #e94560 !important; border-color: #e94560 !important; color: #fff !important; }

/* ── Social panels ── */
.sc-panel { animation: scFadeIn 0.15s ease; }
@keyframes scFadeIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }

/* ── Comment & meetup items ── */
.sc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.sc-loading, .sc-empty { font-size: 0.75rem; color: #555; padding: 8px 0; }

.sc-comment {
  background: rgba(0,0,0,0.2); border-radius: 8px;
  padding: 9px 11px; border-left: 3px solid #1a4580;
}
.sc-comment-meta { display: flex; justify-content: space-between; margin-bottom: 4px; }
.sc-author { font-size: 0.73rem; font-weight: 700; color: #aaa; }
.sc-time   { font-size: 0.68rem; color: #555; }
.sc-comment-text { font-size: 0.8rem; color: #c0cce0; line-height: 1.5; }

.sc-meetup {
  background: rgba(0,0,0,0.2); border-radius: 8px;
  padding: 9px 11px; border-left: 3px solid #7b2fff;
}
.sc-meetup-when { font-size: 0.8rem; font-weight: 700; color: #e8e8e8; margin-bottom: 4px; }
.sc-meetup-dogs { font-size: 0.75rem; color: #9aabcc; margin-bottom: 3px; }
.sc-meetup-note { font-size: 0.75rem; color: #888; font-style: italic; margin-bottom: 3px; }
.sc-meetup-meta { font-size: 0.68rem; color: #555; }

/* ── Social forms ── */
.sc-form { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.sc-err  { font-size: 0.73rem; color: #e94560; min-height: 16px; }
.sc-input {
  width: 100%; padding: 7px 10px; background: rgba(0,0,0,0.25);
  border: 1px solid #1a4580; border-radius: 7px;
  color: #e8e8e8; font-size: 0.8rem; outline: none; font-family: inherit;
}
.sc-input:focus { border-color: #e94560; }
.sc-textarea {
  width: 100%; padding: 7px 10px; background: rgba(0,0,0,0.25);
  border: 1px solid #1a4580; border-radius: 7px;
  color: #e8e8e8; font-size: 0.8rem; outline: none;
  font-family: inherit; resize: vertical; min-height: 70px;
}
.sc-textarea:focus { border-color: #e94560; }
.sc-select {
  width: 100%; padding: 7px 10px; background: #0f3460;
  border: 1px solid #1a4580; border-radius: 7px;
  color: #e8e8e8; font-size: 0.8rem; outline: none;
}
.sc-form-row { display: flex; justify-content: flex-end; }
.sc-btn {
  padding: 7px 18px; background: #e94560; color: #fff;
  border: none; border-radius: 7px; font-size: 0.8rem;
  font-weight: 600; cursor: pointer;
}
.sc-btn:hover { opacity: 0.88; }
.sc-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sc-add-btn {
  width: 100%; padding: 7px; background: rgba(123,47,255,0.1);
  border: 1px dashed #7b2fff; border-radius: 7px;
  color: #7b2fff; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; margin-bottom: 8px;
}
.sc-add-btn:hover { background: rgba(123,47,255,0.2); }

/* Meetup day checkboxes */
.sc-days { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0; }
.sc-day-lbl {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.72rem; color: #9aabcc; cursor: pointer;
  background: rgba(0,0,0,0.2); border: 1px solid #1a4580;
  border-radius: 5px; padding: 3px 8px;
}
.sc-day-lbl input { accent-color: #e94560; }
.sc-time-row { display: flex; align-items: center; gap: 6px; }
.sc-time-row .sc-input { flex: 1; }
.sc-time-sep { font-size: 0.75rem; color: #555; flex-shrink: 0; }

/* ── Events filter button ── */
.events-filter { background: rgba(123,47,255,0.15); border-color: #7b2fff; color: #7b2fff; }
.events-filter.active { background: #7b2fff; color: #fff; }
.add-event-btn { background: rgba(123,47,255,0.15); color: #7b2fff; border: 1px solid #7b2fff; }
.add-event-btn:hover { background: #7b2fff; color: #fff; }

/* ── Events sidebar panel ── */
.events-panel {
  border-bottom: 1px solid #0f3460;
  padding: 12px;
  flex-shrink: 0;
}
.events-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: #7b2fff; margin-bottom: 8px;
}
.ev-create-link {
  background: rgba(123,47,255,0.15); color: #7b2fff;
  border: 1px solid #7b2fff; border-radius: 12px;
  padding: 3px 10px; font-size: 0.72rem; font-weight: 600; cursor: pointer;
}
.ev-create-link:hover { background: #7b2fff; color: #fff; }
.ev-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.ev-list::-webkit-scrollbar { width: 3px; }
.ev-list::-webkit-scrollbar-thumb { background: #1a4580; border-radius: 2px; }
.ev-list-empty { font-size: 0.78rem; color: #444; text-align: center; padding: 12px; }
.ev-list-item {
  background: rgba(123,47,255,0.08); border: 1px solid rgba(123,47,255,0.3);
  border-radius: 10px; padding: 10px 12px; cursor: pointer; transition: all 0.2s;
}
.ev-list-item:hover { background: rgba(123,47,255,0.15); border-color: #7b2fff; }
.ev-list-title { font-size: 0.85rem; font-weight: 700; color: #e8e8e8; margin-bottom: 3px; }
.ev-list-meta  { font-size: 0.72rem; color: #888; margin-bottom: 6px; }
.ev-list-foot  { display: flex; align-items: center; justify-content: space-between; }
.ev-list-att   { font-size: 0.7rem; color: #7b2fff; }

/* ── Event popup ── */
.ev-popup { width: 310px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.ev-popup-header {
  padding: 14px 16px 12px; background: #0f3460;
  border-left: 4px solid #7b2fff;
}
.ev-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 3px 9px; border-radius: 10px; margin-bottom: 8px;
  color: #7b2fff; background: rgba(123,47,255,0.15); border: 1px solid #7b2fff;
}
.ev-title    { font-size: 1rem; font-weight: 700; color: #f0f0f0; margin-bottom: 3px; }
.ev-location { font-size: 0.75rem; color: #8899bb; }
.ev-popup-body { padding: 12px 16px 14px; }
.ev-desc { font-size: 0.8rem; color: #c0cce0; line-height: 1.5; margin-bottom: 12px; }

/* ── Countdown ── */
.ev-countdown {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-bottom: 14px;
  background: rgba(123,47,255,0.1); border: 1px solid rgba(123,47,255,0.3);
  border-radius: 10px; padding: 10px;
}
.ev-countdown.ev-cd-soon   { background: rgba(255,204,0,0.1); border-color: rgba(255,204,0,0.4); }
.ev-countdown.ev-cd-urgent { background: rgba(233,69,96,0.1); border-color: rgba(233,69,96,0.4); }
.ev-cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 38px; }
.ev-cd-num  {
  font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ev-countdown.ev-cd-soon   .ev-cd-num { color: #ffcc00; }
.ev-countdown.ev-cd-urgent .ev-cd-num { color: #e94560; }
.ev-cd-lbl  { font-size: 0.6rem; text-transform: uppercase; color: #666; letter-spacing: 0.5px; margin-top: 2px; }
.ev-cd-sep  { font-size: 1.4rem; font-weight: 700; color: #444; margin-bottom: 12px; }

/* ── Attendees ── */
.ev-att-row    { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ev-att-label  { font-size: 0.75rem; color: #888; }
.ev-att-avatars { display: flex; gap: -4px; }
.ev-att-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #16213e; object-fit: cover;
  margin-left: -6px; background: #1a4580;
}
.ev-att-avatar:first-child { margin-left: 0; }
.ev-att-sm { width: 22px; height: 22px; }
.ev-att-initials {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: #fff; background: #7b2fff;
}
.ev-att-more {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: #aaa; background: #1a4580;
}
.ev-by { font-size: 0.72rem; color: #555; margin-bottom: 12px; }

/* ── Event action buttons ── */
.ev-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ev-btn {
  flex: 1; padding: 8px 12px; border-radius: 8px; font-size: 0.78rem;
  font-weight: 600; cursor: pointer; border: none; text-align: center;
  text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; transition: opacity 0.15s;
}
.ev-btn:hover { opacity: 0.85; }
.ev-btn-join       { background: #7b2fff; color: #fff; }
.ev-btn-leave      { background: rgba(52,199,89,0.15); color: #34c759; border: 1px solid #34c759; }
.ev-btn-full       { background: #333; color: #666; cursor: not-allowed; }
.ev-btn-move       { background: rgba(123,47,255,0.12); color: #a855f7; border: 1px solid #7b2fff; flex: none; }
.ev-btn-move:hover { background: #7b2fff; color: #fff; }
.ev-btn-cancel     { background: rgba(233,69,96,0.1); color: #e94560; border: 1px solid #e94560; flex: none; }
.ev-btn-delete     { background: rgba(233,69,96,0.15); color: #e94560; border: 1px solid #e94560; flex: none; }
.ev-btn-delete:hover { background: #e94560; color: #fff; }
.ev-btn-directions { background: rgba(255,255,255,0.07); color: #9aabcc; border: 1px solid #1a4580; flex: none; }

/* ── Dog onboarding card ── */
#dog-onboarding-card {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1a0533 0%, #16213e 100%);
  border: 2px solid #7b2fff;
  border-radius: 20px;
  padding: 28px 28px 20px;
  width: min(320px, 88vw);
  text-align: center;
  z-index: 200;
  box-shadow: 0 8px 40px rgba(123,47,255,0.55), 0 0 0 1px rgba(123,47,255,0.2);
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.dog-card-in  { animation: dogCardSlideIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.dog-card-out { animation: dogCardSlideOut 0.3s ease-in forwards; }
@keyframes dogCardSlideIn {
  from { opacity: 0; transform: translateX(-50%) translateY(30px) scale(0.92); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0)    scale(1); }
}
@keyframes dogCardSlideOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(20px); }
}
.dog-ob-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; color: #555; font-size: 1.3rem;
  cursor: pointer; line-height: 1;
}
.dog-ob-close:hover { color: #e8e8e8; }
.dog-ob-paws {
  font-size: 3rem;
  animation: obPawBounce 1.8s ease-in-out infinite;
  display: block;
  margin-bottom: 4px;
}
@keyframes obPawBounce {
  0%, 100% { transform: scale(1) rotate(-5deg); }
  50%       { transform: scale(1.15) rotate(5deg); }
}
.dog-ob-heading {
  font-size: 1.25rem; font-weight: 800; color: #fff;
  letter-spacing: -0.3px;
}
.dog-ob-sub {
  font-size: 0.82rem; color: #9aabcc; line-height: 1.5;
  padding: 0 8px;
}
.dog-ob-btn {
  margin-top: 6px;
  background: linear-gradient(135deg, #7b2fff, #a855f7);
  color: #fff; border: none; border-radius: 50px;
  padding: 13px 32px; font-size: 1rem; font-weight: 700;
  cursor: pointer; width: 100%;
  box-shadow: 0 4px 20px rgba(123,47,255,0.5);
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.3px;
}
.dog-ob-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(123,47,255,0.7);
}
.dog-ob-later {
  background: none; border: none; color: #555; font-size: 0.78rem;
  cursor: pointer; padding: 4px; margin-top: -4px;
}
.dog-ob-later:hover { color: #888; }

/* ── Avatar pulse ring (no dog added) ── */
.no-dog #user-avatar {
  box-shadow: 0 0 0 3px #7b2fff, 0 0 0 5px rgba(123,47,255,0.3);
  animation: avatarPulse 2s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%, 100% { box-shadow: 0 0 0 3px #7b2fff, 0 0 0 6px rgba(123,47,255,0.25); }
  50%       { box-shadow: 0 0 0 3px #a855f7, 0 0 0 10px rgba(168,85,247,0.1); }
}
.no-dog .user-display-name::after {
  content: ' 🐾';
  font-size: 0.75rem;
  animation: obPawBounce 2s ease-in-out infinite;
  display: inline-block;
}

/* ── Dog profiles ── */
.dog-card {
  display: flex; align-items: center; gap: 12px;
  background: #1a1a2e; border: 1px solid #0f3460; border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px;
}
.dog-card-photo {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: #16213e; border: 2px solid #7b2fff;
}
.dog-card-initials {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #7b2fff;
}
.dog-card-info { flex: 1; min-width: 0; }
.dog-card-name { font-size: 0.9rem; font-weight: 700; color: #e8e8e8; }
.dog-card-meta { font-size: 0.75rem; color: #888; margin-top: 2px; }
.dog-card-del  {
  background: none; border: none; color: #555; font-size: 1.2rem;
  cursor: pointer; padding: 4px 8px; border-radius: 6px; flex-shrink: 0;
}
.dog-card-del:hover { background: rgba(233,69,96,0.1); color: #e94560; }

/* Photo tap-to-change */
.dog-card-photo-wrap {
  position: relative; cursor: pointer; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%; display: block;
}
.dog-card-photo-wrap .dog-card-photo { width: 100%; height: 100%; display: block; }
.dog-card-photo-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; opacity: 0;
  transition: background 0.2s, opacity 0.2s;
}
.dog-card-photo-wrap:hover .dog-card-photo-overlay {
  background: rgba(0,0,0,0.55); opacity: 1;
}

/* Upload status */
.dog-card-uploading {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.7rem; color: #7b2fff; margin-top: 3px;
}
.dog-upload-spinner {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid rgba(123,47,255,0.3); border-top-color: #7b2fff;
  animation: spin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dog-empty { color: #555; font-size: 0.85rem; text-align: center; padding: 20px 0; }
.dog-photo-preview {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
  border: 2px solid #7b2fff; margin-top: 8px; display: block;
}

/* ── Dog picker (RSVP) ── */
.dog-picker-panel {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #16213e; border: 1px solid #0f3460; border-radius: 16px;
  width: min(340px, 92vw); max-height: 80vh; overflow-y: auto;
  z-index: 320; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.dog-picker-list { padding: 8px 16px 16px; }
.dog-picker-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
  transition: background 0.15s; margin-bottom: 6px;
  border: 1px solid transparent;
}
.dog-picker-item:hover { background: rgba(123,47,255,0.12); border-color: #7b2fff; }
.dog-picker-photo {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: #1a1a2e; border: 2px solid #7b2fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #7b2fff;
}
.dog-picker-initials { display: flex; align-items: center; justify-content: center; }
.dog-picker-info { flex: 1; min-width: 0; }
.dog-picker-name  { font-size: 0.88rem; font-weight: 700; color: #e8e8e8; }
.dog-picker-breed { font-size: 0.72rem; color: #888; margin-top: 1px; }
.dog-picker-check { font-size: 1.1rem; opacity: 0; transition: opacity 0.15s; }
.dog-picker-item:hover .dog-picker-check { opacity: 1; }
.dog-picker-skip  { border-top: 1px solid #0f3460; margin-top: 4px; padding-top: 12px; }

/* ── Dog picker inside event form ── */
.ev-form-dog-wrap { margin-top: 4px; margin-bottom: 4px; }
.ev-form-dog-empty { font-size: 0.78rem; color: #555; padding: 8px 0; }
.ev-form-dog-row {
  display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 0;
}
.ev-form-dog-opt {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer; padding: 8px 10px; border-radius: 12px;
  border: 2px solid #1a1a2e; transition: border-color 0.15s, background 0.15s;
  min-width: 64px;
}
.ev-form-dog-opt:hover { border-color: #7b2fff; background: rgba(123,47,255,0.08); }
.ev-form-dog-opt.selected { border-color: #7b2fff; background: rgba(123,47,255,0.15); }
.ev-form-dog-photo {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid #0f3460; background: #1a1a2e;
}
.ev-form-dog-initials {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: #7b2fff;
}
.ev-form-dog-opt.selected .ev-form-dog-photo { border-color: #7b2fff; }
.ev-form-dog-label { font-size: 0.7rem; color: #9aabcc; font-weight: 600; text-align: center; max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-form-dog-opt.selected .ev-form-dog-label { color: #a855f7; }

/* ── Who's coming cards ── */
.ev-who-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 10px 0 6px;
}
.ev-who-label { font-size: 0.78rem; font-weight: 700; color: #9aabcc; text-transform: uppercase; letter-spacing: 0.5px; }
.ev-who-scroll {
  display: flex; gap: 10px;
  overflow-x: auto; padding: 4px 2px 8px;
  scrollbar-width: thin; scrollbar-color: #0f3460 transparent;
}
.ev-who-scroll::-webkit-scrollbar { height: 4px; }
.ev-who-scroll::-webkit-scrollbar-thumb { background: #0f3460; border-radius: 2px; }
.ev-who-card {
  flex-shrink: 0; width: 72px; text-align: center;
}
.ev-who-photo-wrap {
  position: relative; width: 56px; height: 56px; margin: 0 auto 5px;
}
.ev-who-dog-photo {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  border: 2px solid #7b2fff; background: #1a1a2e; display: block;
}
.ev-who-dog-initial, .ev-who-no-dog {
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700; color: #7b2fff; background: #1a0533;
}
.ev-who-no-dog { font-size: 1.6rem; color: #333; border-color: #222; }
.ev-who-owner-photo {
  position: absolute; bottom: -3px; right: -5px;
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
  border: 2px solid #16213e; background: #1a1a2e;
  font-size: 0.6rem; display: flex; align-items: center; justify-content: center;
}
.ev-who-owner-initial {
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: #9aabcc; background: #1a1a2e;
}
.ev-who-dog-name {
  font-size: 0.72rem; font-weight: 700; color: #e8e8e8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ev-who-breed {
  font-size: 0.62rem; color: #666;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
.ev-who-empty { font-size: 0.8rem; color: #555; text-align: center; padding: 10px 0; }

/* ── Event map bubbles (Pokémon GO style) ── */
.ev-map-bubble {
  position: absolute;
  transform: translate(-50%, calc(-100% - 12px));
  background: rgba(15, 8, 35, 0.93);
  border: 2px solid #7b2fff;
  border-radius: 12px;
  padding: 7px 12px;
  min-width: 120px;
  max-width: 160px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(123,47,255,0.55), 0 0 0 1px rgba(123,47,255,0.2);
  user-select: none;
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 1;
}
.ev-map-bubble::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #7b2fff;
  border-bottom: none;
}
.ev-map-bubble:hover {
  transform: translate(-50%, calc(-100% - 14px)) scale(1.04);
  box-shadow: 0 6px 24px rgba(123,47,255,0.7), 0 0 0 1px rgba(123,47,255,0.4);
}
.ev-bubble-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e8e8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  margin-bottom: 3px;
}
.ev-bubble-cd {
  font-size: 0.88rem;
  font-weight: 800;
  color: #7b2fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.ev-bubble-att {
  font-size: 0.65rem;
  color: #666;
  margin-top: 2px;
}
.ev-map-bubble.ev-bubble-soon  .ev-bubble-cd { color: #ff9f0a; }
.ev-map-bubble.ev-bubble-soon  { border-color: #ff9f0a; }
.ev-map-bubble.ev-bubble-soon::after  { border-top-color: #ff9f0a; }
.ev-map-bubble.ev-bubble-urgent .ev-bubble-cd { color: #e94560; }
.ev-map-bubble.ev-bubble-urgent { border-color: #e94560; animation: ev-pulse 1s ease-in-out infinite; }
.ev-map-bubble.ev-bubble-urgent::after { border-top-color: #e94560; }
@keyframes ev-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(233,69,96,0.5); }
  50%       { box-shadow: 0 4px 24px rgba(233,69,96,0.9); }
}

/* Live / ongoing bubble */
.ev-map-bubble.ev-bubble-live { border-color: #34c759; }
.ev-map-bubble.ev-bubble-live .ev-bubble-cd { color: #34c759; font-size: 0.78rem; }
.ev-map-bubble.ev-bubble-live::after { border-top-color: #34c759; }
.ev-map-bubble.ev-bubble-live { animation: ev-live-pulse 1.5s ease-in-out infinite; }
@keyframes ev-live-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(52,199,89,0.4), 0 0 0 1px rgba(52,199,89,0.2); }
  50%       { box-shadow: 0 4px 26px rgba(52,199,89,0.7), 0 0 0 3px rgba(52,199,89,0.15); }
}

/* Live badge in popup */
.ev-badge-live { background: rgba(52,199,89,0.15) !important; color: #34c759 !important; border-color: rgba(52,199,89,0.4) !important; }

/* Live bar in popup body */
.ev-live-bar {
  display: flex; align-items: center; gap: 8px;
  background: rgba(52,199,89,0.08); border: 1px solid rgba(52,199,89,0.25);
  border-radius: 10px; padding: 10px 14px; margin: 8px 0;
}
.ev-live-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #34c759; flex-shrink: 0;
  animation: live-dot-blink 1.2s ease-in-out infinite;
}
@keyframes live-dot-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}
.ev-live-text { font-size: 0.85rem; font-weight: 600; color: #34c759; }

/* ── Photos ── */
.sc-photo-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px;
}
.sc-photo-item { background: rgba(0,0,0,0.2); border-radius: 8px; overflow: hidden; }
.sc-photo-item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; cursor: pointer;
  display: block; transition: opacity 0.15s;
}
.sc-photo-item img:hover { opacity: 0.85; }
.sc-photo-cap  { font-size: 0.72rem; color: #aaa; padding: 4px 7px 2px; }
.sc-photo-meta { font-size: 0.65rem; color: #555; padding: 0 7px 6px; }
.sc-file-input {
  width: 100%; font-size: 0.78rem; color: #9aabcc;
  padding: 6px 0; background: transparent; border: none; outline: none;
}

/* ── Missing Dog — map marker ────────────────────────────────────────────── */
.missing-bubble {
  position: absolute;
  cursor: pointer;
  transform: translate(-50%, -100%);
  text-align: center;
  z-index: 6;
  pointer-events: all;
}
.missing-pulse-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -40%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(233, 69, 96, 0.35);
  animation: missingPulse 1.8s ease-out infinite;
  pointer-events: none;
}
.missing-pulse-ring-2 {
  animation-delay: 0.9s;
}
@keyframes missingPulse {
  0%   { transform: translate(-50%, -40%) scale(0.6); opacity: 0.9; }
  100% { transform: translate(-50%, -40%) scale(2.4); opacity: 0; }
}
.missing-pin {
  position: relative;
  font-size: 24px;
  z-index: 1;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.missing-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: #e94560;
  border-radius: 8px;
  padding: 2px 7px;
  margin-top: 3px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(233,69,96,0.5);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Missing Dog — popup ─────────────────────────────────────────────────── */
.missing-popup { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; min-width: 260px; max-width: 310px; }
.missing-popup-header {
  background: linear-gradient(135deg, #e94560, #c0392b);
  border-radius: 10px 10px 0 0;
  padding: 14px 16px 12px;
  text-align: center;
}
.missing-alert-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 3px 10px;
  margin-bottom: 6px;
}
.missing-popup-name {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.1;
}
.missing-popup-breed {
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  margin-top: 2px;
}
.missing-popup-body {
  padding: 12px 16px;
  background: #16213e;
  border-radius: 0 0 10px 10px;
}
.missing-detail {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 6px;
}
.missing-detail strong { color: #e8e8e8; font-weight: 600; }
.missing-desc {
  font-size: 0.82rem;
  color: #ccc;
  line-height: 1.5;
  margin: 8px 0;
  padding: 8px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  border-left: 3px solid #e94560;
}
.missing-contact-box {
  background: rgba(52,199,89,0.08);
  border: 1px solid rgba(52,199,89,0.25);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 10px 0 8px;
}
.missing-contact-label {
  font-size: 0.74rem;
  color: #888;
  margin-bottom: 4px;
}
.missing-contact-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e8e8e8;
  margin-bottom: 4px;
}
.missing-contact-link {
  display: block;
  font-size: 0.84rem;
  color: #34c759;
  text-decoration: none;
  margin-top: 3px;
  font-weight: 600;
}
.missing-contact-link:hover { text-decoration: underline; }
.missing-notes-text {
  font-size: 0.78rem;
  color: #999;
  font-style: italic;
  margin-bottom: 8px;
}
.missing-expires {
  font-size: 0.7rem;
  color: #555;
  text-align: right;
  margin-top: 6px;
}
.missing-owner-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.missing-found-btn {
  flex: 1;
  padding: 7px 12px;
  background: #34c759;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.missing-found-btn:hover { opacity: 0.88; }
.missing-delete-btn {
  padding: 7px 12px;
  background: rgba(233,69,96,0.12);
  color: #e94560;
  border: 1px solid #e94560;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.missing-delete-btn:hover { background: #e94560; color: #fff; }

/* Missing button in header */
.missing-btn {
  background: rgba(233,69,96,0.15) !important;
  color: #e94560 !important;
  border: 1px solid rgba(233,69,96,0.4) !important;
  font-weight: 700 !important;
}
.missing-btn:hover {
  background: #e94560 !important;
  color: #fff !important;
}

/* FAB missing item */
.fab-item-missing {
  background: rgba(233,69,96,0.15);
  color: #e94560;
  border-color: rgba(233,69,96,0.35);
  font-weight: 700;
}

/* ── PWA install banner ───────────────────────────────────────────────────── */
.pwa-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a2744;
  border: 1px solid rgba(123,47,255,0.4);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  max-width: 420px;
  width: calc(100% - 32px);
  animation: pwaSlideUp 0.4s ease;
}
@keyframes pwaSlideUp {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);   opacity: 1; }
}
.pwa-banner-icon { font-size: 28px; flex-shrink: 0; }
.pwa-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pwa-banner-text strong { font-size: 0.85rem; color: #fff; }
.pwa-banner-text span   { font-size: 0.75rem; color: #9aabcc; }
.pwa-install-btn {
  flex-shrink: 0;
  background: #7b2fff;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.pwa-install-btn:hover { background: #6a1fe0; }
.pwa-dismiss-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.pwa-dismiss-btn:hover { color: #aaa; }

/* ── Mobile filter strip (hidden on desktop) ──────────────────────────────── */
.mobile-filter-strip { display: none; }

/* ── Mobile FAB (hidden on desktop) ──────────────────────────────────────── */
.mobile-fab-wrap { display: none; }

/* ── Responsive ── */
@media (max-width: 700px) {

  /* ── Header: logo left, auth right — nothing else ── */
  header {
    padding: 10px 14px;
    flex-wrap: nowrap;
    gap: 0;
    height: 54px;
    min-height: 54px;
  }
  .logo span  { display: none; }
  .logo h1    { font-size: 1rem; }
  .logo-icon  { font-size: 20px; }

  /* Hide all desktop action/filter buttons from header on mobile */
  .header-controls .filter-btn,
  .header-controls .park-count,
  .header-controls .search-wrap,
  .header-controls .add-park-btn,
  .header-controls .add-event-btn,
  .header-controls .add-trainer-btn,
  .header-controls .add-cafe-btn,
  .header-controls .missing-btn,
  .header-controls .admin-btn,
  .header-controls .events-filter { display: none !important; }

  /* Show only auth in header-controls on mobile */
  .header-controls {
    gap: 8px;
    flex-wrap: nowrap;
    overflow: visible;
  }
  .signin-btn     { padding: 6px 12px; font-size: 0.78rem; }
  .user-display-name { display: none; }
  .signout-btn    { display: none; }

  /* ── Floating filter chip strip ── */
  .mobile-filter-strip {
    display: flex;
    position: fixed;
    top: 54px;
    left: 0; right: 0;
    z-index: 30;
    padding: 7px 10px;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    pointer-events: all;
    background: linear-gradient(to bottom, rgba(15,20,40,0.85) 70%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .mobile-filter-strip::-webkit-scrollbar { display: none; }

  .mf-chip {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1.5px solid rgba(255,255,255,0.12);
    background: rgba(15,20,40,0.85);
    color: #888;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.18s;
    white-space: nowrap;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
  }
  .mf-chip.active   { color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(30,42,80,0.92); }
  .mf-chip.off-leash.active  { border-color: #34c759; color: #34c759; }
  .mf-chip.on-leash.active   { border-color: #ff9f0a; color: #ff9f0a; }
  .mf-chip.trainer.active    { border-color: #7b2fff; color: #a78bfa; }
  .mf-chip.events-chip.active{ border-color: #e94560; color: #e94560; }

  /* ── FAB ── */
  .mobile-fab-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    position: fixed;
    bottom: 28px;
    right: 16px;
    z-index: 50;
  }
  .fab-menu {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
  .fab-item {
    background: #16213e;
    border: 1px solid #0f3460;
    color: #e8e8e8;
    padding: 11px 18px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    transition: background 0.15s;
  }
  .fab-item:active { background: #1e2a45; }
  .mobile-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e94560;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    border: none;
    box-shadow: 0 4px 20px rgba(233,69,96,0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s, background 0.22s;
    flex-shrink: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
  }
  .mobile-fab.fab-open {
    transform: rotate(45deg);
    background: #555;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  }

  /* ── Map ── */
  .main-layout { flex-direction: column; position: relative; }
  #map { flex: 1; height: 100%; }

  /* ── Side panel: bottom sheet ── */
  .side-panel {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    width: 100%;
    height: auto;
    max-height: 55vh;
    border-left: none;
    border-top: 2px solid #0f3460;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 30;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
    overflow-y: auto;
  }
  .side-panel.sheet-open { transform: translateY(0); }

  .side-handle {
    display: block;
    width: 36px; height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 10px auto 4px;
    flex-shrink: 0;
  }

  .panel-placeholder { padding: 20px; }

  /* ── Info card ── */
  .info-card        { max-height: none; padding: 10px 14px; }
  .info-card h3     { font-size: 1rem; }
  .info-card-address,
  .info-card-notes  { display: none; }
  .info-card-footer { margin-bottom: 6px; flex-wrap: wrap; gap: 6px; }
  .btn-sm           { padding: 7px 12px; font-size: 0.78rem; }

  /* ── Social tabs ── */
  .sc-tabs  { margin: 8px 0 6px; }
  .sc-tab   { padding: 6px 14px; font-size: 0.75rem; }

  /* ── Legend ── */
  .legend      { position: fixed; bottom: 28px; left: 12px; }
  .attribution { display: none; }

  /* ── Hide footer on mobile ── */
  .site-footer { display: none; }

  /* ── PWA banner sits above FAB ── */
  .pwa-banner  { bottom: 100px; }
}

/* ── Recurring event badge ────────────────────────────────────────────────── */
.ev-recurring-badge {
  display: inline-block;
  background: rgba(123,47,255,0.15);
  border: 1px solid rgba(123,47,255,0.4);
  color: #a78bfa;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}

/* ── Recurring form fields ────────────────────────────────────────────────── */
.ev-recurring-row {
  margin: 4px 0 10px;
}
.ev-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #ccc;
  user-select: none;
}
.ev-toggle-label input[type="checkbox"] { display: none; }
.ev-toggle-track {
  width: 36px;
  height: 20px;
  background: #333;
  border-radius: 10px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.ev-toggle-label input:checked + .ev-toggle-track { background: #7b2fff; }
.ev-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
}
.ev-toggle-label input:checked + .ev-toggle-track .ev-toggle-thumb { left: 19px; }

.ev-recur-type-row {
  display: flex;
  gap: 16px;
  margin: 6px 0 8px;
}
.ev-recur-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #ccc;
  cursor: pointer;
}
.ev-recur-days-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.ev-day-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #1e2a45;
  border: 1px solid #2a3a5c;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: #aaa;
  cursor: pointer;
  transition: all 0.15s;
}
.ev-day-chip:has(input:checked) {
  background: rgba(123,47,255,0.15);
  border-color: #7b2fff;
  color: #c4b5fd;
}
.ev-day-chip input { display: none; }

/* ── Vote button ──────────────────────────────────────────────────────────── */
.btn-vote {
  background: transparent;
  border: 1px solid #444;
  color: #888;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-vote:hover { border-color: #7b2fff; color: #a78bfa; }

/* ── Listing removal button (in map popup) ──────────────────────────────── */
.dp-btn-remove {
  background: rgba(233,69,96,0.12) !important;
  border: 1px solid rgba(233,69,96,0.4) !important;
  color: #e94560 !important;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-vote.vote-active {
  background: rgba(123,47,255,0.12);
  border-color: #7b2fff;
  color: #a78bfa;
  font-weight: 600;
}

/* ── Home Park button ──────────────────────────────────────────────────────── */
.btn-home-park {
  background: transparent;
  border: 1px solid #444;
  color: #888;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-home-park:hover {
  border-color: #f5a623;
  color: #f5a623;
}
.btn-home-park.hp-active {
  background: rgba(245,166,35,0.12);
  border-color: #f5a623;
  color: #f5a623;
  font-weight: 600;
}

/* ── Notification bell ────────────────────────────────────────────────────── */
.notif-bell-wrap {
  position: relative;
  align-items: center;
}
.notif-bell-btn {
  position: relative;
  background: transparent;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 6px 8px;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.notif-bell-btn:hover,
.notif-bell-btn.has-notifs {
  border-color: #f5a623;
  color: #f5a623;
}
@keyframes bellRing {
  0%,100% { transform: rotate(0); }
  15%      { transform: rotate(12deg); }
  30%      { transform: rotate(-10deg); }
  45%      { transform: rotate(8deg); }
  60%      { transform: rotate(-6deg); }
}
.notif-bell-btn.has-notifs svg {
  animation: bellRing 2s ease 0.3s;
}
.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  background: #e94560;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}

/* ── Notification panel ───────────────────────────────────────────────────── */
.notif-panel {
  position: fixed;
  top: 62px;
  right: 12px;
  width: 300px;
  max-height: 420px;
  background: #16213e;
  border: 1px solid #0f3460;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #0f3460;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e8e8e8;
  flex-shrink: 0;
}
.notif-close-btn {
  background: none;
  border: none;
  color: #666;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
.notif-close-btn:hover { color: #ccc; }

.notif-hp-section {
  padding: 10px 14px 6px;
  border-bottom: 1px solid #0f3460;
  flex-shrink: 0;
}
.notif-hp-label {
  font-size: 0.7rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.notif-hp-empty { color: #555; font-size: 0.78rem; margin-bottom: 4px; text-transform: none; letter-spacing: 0; }
.notif-hp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.notif-hp-tag {
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3);
  color: #f5a623;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.72rem;
}

.notif-list {
  overflow-y: auto;
  flex: 1;
  padding: 6px 0;
}
.notif-empty {
  padding: 16px;
  color: #555;
  font-size: 0.82rem;
  text-align: center;
}
.notif-event-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.notif-event-item:hover { background: rgba(255,255,255,0.04); }
.notif-ev-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e94560;
  flex-shrink: 0;
  margin-top: 5px;
}
.notif-ev-title {
  font-size: 0.83rem;
  color: #e8e8e8;
  font-weight: 500;
  margin-bottom: 2px;
}
.notif-ev-meta {
  font-size: 0.72rem;
  color: #666;
}

@media (max-width: 700px) {
  .notif-panel { right: 8px; left: 8px; width: auto; top: 58px; }
}
