/* ============================================================
  Yese — Main Stylesheet
   Mobile-first, Greek-inspired white & blue palette
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --white:        #FFFFFF;
  --bg-light:     #F5F9FF;
  --blue:         #0D5EAF;
  --navy:         #1E3A8A;
  --blue-soft:    #DCEBFA;
  --gray:         #6B7280;
  --gray-light:   #E5E7EB;
  --danger:       #DC2626;
  --success:      #16A34A;
  --warning:      #D97706;

  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    20px;
  --radius-full:  999px;

  --shadow-sm:    0 1px 4px rgba(0,0,0,.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.16);

  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;

  --topbar-h:     56px;
  --bottomnav-h:  64px;
  --safe-bottom:  env(safe-area-inset-bottom, 0px);

  --surface:      var(--white);
  --on-surface:   #111827;
  --divider:      var(--gray-light);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--white);
  color: #111827;
  min-height: 100dvh;
  overscroll-behavior: none;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
input, textarea, select {
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
}
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1 { font-size: 1.5rem; font-weight: 700; color: var(--navy); }
h2 { font-size: 1.25rem; font-weight: 700; color: var(--navy); }
h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); }
p  { line-height: 1.6; color: #374151; }

/* ---------- Layout Shell ---------- */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ---------- Top Bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--blue-soft);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}
.topbar-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.topbar-logo span { color: var(--navy); }

/* Logo image in topbar */
.topbar-logo-img { height: 28px; display: block; }
.topbar-logo img { height: 28px; display: block; }
.topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  flex: 1;
  text-align: center;
  /* hide when no title supplied */
}
.topbar-action {
  margin-left: auto;
  flex-shrink: 0;
}

/* ---------- Hamburger Button ---------- */
.topbar-menu-btn {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--navy);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.topbar-menu-btn:hover { background: var(--blue-soft); }
.topbar-menu-btn svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* ---------- Side Navigation Drawer ---------- */
.sidenav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.sidenav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.sidenav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 280px;
  background: var(--white);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.32,0,.67,0);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding-bottom: var(--safe-bottom);
}
.sidenav.open { transform: translateX(0); }
.sidenav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--blue-soft);
}
.sidenav-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.sidenav-close:hover { background: var(--blue-soft); color: var(--blue); }
.sidenav-close svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sidenav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.sidenav-item svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sidenav-item:hover {
  color: var(--blue);
  background: var(--blue-soft);
}
.sidenav-item.active {
  color: var(--blue);
  border-left-color: var(--blue);
  background: var(--bg-light);
}

/* ---------- Page Content Area ---------- */
.page-content {
  margin-top: var(--topbar-h);
  margin-bottom: 0;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Bottom Navigation (mobile) ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--bottomnav-h);
  display: flex; align-items: center; justify-content: space-around;
  gap: 6px; padding: 8px 12px; background: var(--white);
  border-top: 1px solid var(--divider); z-index: 800;
  padding-bottom: calc(var(--safe-bottom) + 6px);
}
.bottomnav-item {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--gray); font-weight: 600; font-size: .82rem; text-decoration: none;
}
.bottomnav-item svg {
  width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0;
}
.bottomnav-item:active, .bottomnav-item:focus, .bottomnav-item:hover { color: var(--blue); }
/* For map page the content must be full height with overflow hidden */
.page-content--map {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { opacity: .9; }
.btn-secondary {
  background: var(--blue-soft);
  color: var(--navy);
}
.btn-secondary:hover { opacity: .85; }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue-soft); }
.btn-danger {
  background: var(--danger);
  color: var(--white);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
}
.btn-icon {
  width: 44px; height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  background: var(--blue-soft);
  color: var(--blue);
  flex-shrink: 0;
}
.btn-icon svg {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-full { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--blue-soft);
  overflow: hidden;
}

/* ---------- Form Elements ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--white);
  color: #111827;
  transition: border-color .15s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13,94,175,.1);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ---------- Toggle switch ---------- */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toggle {
  position: relative;
  width: 44px; height: 26px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--gray-light);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle-slider { background: var(--blue); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ---------- Chip / Tag ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-light);
  background: var(--white);
  color: var(--gray);
  font-size: 0.83rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all .18s cubic-bezier(.34,1.56,.64,1);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.chip:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #F0F7FF;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(13,94,175,.15);
}
.chip.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 3px 10px rgba(13,94,175,.35);
  transform: translateY(-1px);
}
.chip:active { transform: scale(.95) translateY(0); transition-duration: .08s; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-blue { background: var(--blue-soft); color: var(--navy); }
.badge-green { background: #DCFCE7; color: #15803D; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.badge-yellow { background: #FEF3C7; color: #92400E; }

/* ---------- Coupon Block ---------- */
.coupon-block {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1.5px dashed var(--blue);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.coupon-block .coupon-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.coupon-block .coupon-text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}
.coupon-block .coupon-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--blue);
  margin-top: 2px;
}

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: var(--blue-soft);
  margin: 12px 0;
}

/* ---------- Loading Spinner ---------- */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--blue-soft);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 24px;
  color: var(--gray);
  font-size: 0.9rem;
}

/* ---------- Empty State ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--gray);
}
.empty-state .empty-icon { font-size: 2.5rem; }
.empty-state p { font-size: 0.9rem; }

/* ---------- Toast Notification ---------- */
#toast-container {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  left: 16px; right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  box-shadow: var(--shadow-md);
  animation: toastIn .25s ease;
  pointer-events: auto;
}
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-info    { background: var(--blue); }
@keyframes toastIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* ---------- Modal Overlay ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 620px;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 20px;
  transform: translateY(100%);
  transition: transform .25s cubic-bezier(.32,0,.67,0);
  padding-bottom: calc(24px + var(--safe-bottom));
}
.modal-overlay.open .modal-box {
  transform: translateY(0);
}
.modal-box.modal-center {
  border-radius: var(--radius-lg);
  margin: auto;
  transform: scale(.95);
  max-height: 88dvh;
}
.modal-overlay.open .modal-box.modal-center {
  transform: scale(1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .15s;
}
.modal-close:hover { background: var(--blue-soft); color: var(--blue); }

/* ---------- Category Filter Bar ---------- */
.filter-bar {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-light);
  padding: 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar-inner {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  min-width: max-content;
}

/* ---------- Bottom Sheet (Activity Detail) ---------- */
.bottom-sheet {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  z-index: 800;
  transform: translateY(110%);
  transition: transform .3s cubic-bezier(.32,0,.67,0);
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
}
.bottom-sheet.open {
  transform: translateY(0);
}
.bottom-sheet-handle {
  width: 40px; height: 4px;
  background: var(--gray-light);
  border-radius: var(--radius-full);
  margin: 10px auto 0;
  flex-shrink: 0;
}
.bottom-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 16px 0;
  gap: 8px;
  flex-shrink: 0;
}
.bottom-sheet-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 1rem;
  transition: background .15s;
}
.bottom-sheet-close:hover { background: var(--blue-soft); }
.bottom-sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px 16px;
  flex: 1;
}

/* ---------- Photo Gallery ---------- */
.photo-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 12px -16px;
  padding: 0 16px;
}
.photo-gallery::-webkit-scrollbar { display: none; }
.photo-gallery .photo-thumb {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  background: var(--bg-light);
}
.photo-gallery .photo-thumb:only-child {
  width: calc(100%);
}

/* ---------- Contact Action Row ---------- */
.contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px 8px;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 600;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.contact-btn:hover { background: var(--blue-soft); }
.contact-btn svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Map Container ---------- */
#map {
  flex: 1;
  width: 100%;
  min-height: 0;
}

/* Allow tinting/filtering of map tiles to better match site theme.
   Set `--map-filter` on the root to change appearance (empty = no filter). */
.leaflet-tile-pane img {
  filter: var(--map-filter, none);
  transition: filter .24s ease;
}

/* Voyager tiles are already colourful; just a tiny boost */
:root {
  --map-filter: saturate(1.12) brightness(0.97) contrast(1.02);
}

/* Make Leaflet/OpenStreetMap attribution subtle but accessible
   Note: OpenStreetMap tiles require attribution; do not remove entirely. */
.leaflet-control-attribution {
  font-size: 11px;
  opacity: 0.68;
  background: rgba(255,255,255,0.9);
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: opacity .18s, transform .18s;
  line-height: 1;
}
.leaflet-control-attribution a { color: inherit; text-decoration: none; }
.leaflet-control-attribution:hover { opacity: 1; transform: translateY(-1px); }
@media (max-width: 520px) {
  .leaflet-control-attribution { font-size: 10px; padding: 3px 6px; }
}

/* Minimal collapsed attribution: show single-line ellipsis by default,
   expand on hover (desktop) or click/tap (mobile). Keeps attribution visible */
.leaflet-control-attribution {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.leaflet-control-attribution.expanded {
  max-width: 420px;
  white-space: normal;
  overflow: visible;
}
.leaflet-control-attribution .attribution-full { display: none; }
.leaflet-control-attribution.expanded .attribution-full { display: inline; }
.leaflet-control-attribution .attribution-short { display: inline; }
.leaflet-control-attribution.expanded .attribution-short { display: none; }

/* Leaflet popup customisation */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--blue-soft);
}
.leaflet-popup-content { margin: 10px 14px; font-family: var(--font); }
.leaflet-popup-tip-container { display: none; }

/* Custom marker */
.map-marker {
  background: var(--blue);
  color: var(--white);
  border-radius: 50% 50% 0 50%;
  transform: rotate(45deg); /* rotate shape so tip points down */
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(13,94,175,.4);
  font-size: 1rem;
  border: 2px solid var(--white);
  cursor: pointer;
}
.map-marker .marker-inner { transform: rotate(-45deg); }

/* ---------- Admin Dashboard ---------- */
.admin-section {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-tabs {
  display: flex;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  flex-shrink: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  flex: 0 0 auto;
  padding: 9px 14px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.admin-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.admin-list {}
.admin-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--blue-soft);
}
.admin-list-item:last-child { border-bottom: none; }
.admin-list-item-icon {
  width: 40px; height: 40px;
  background: var(--blue-soft);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.admin-list-item-info { flex: 1; min-width: 0; }
.admin-list-item-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-list-item-sub {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-list-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-full);
  padding: 9px 14px;
  transition: border-color .15s;
}
.search-bar:focus-within { border-color: var(--blue); }
.search-bar svg {
  width: 18px; height: 18px;
  stroke: var(--gray);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: #111827;
}

/* ---------- Image Upload ---------- */
.upload-zone {
  border: 2px dashed var(--blue-soft);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  color: var(--gray);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--blue);
  background: var(--bg-light);
}
.upload-zone input[type="file"] { display: none; }
.upload-zone .upload-icon { font-size: 2rem; margin-bottom: 8px; }

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.photo-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-light);
}
.photo-preview-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-preview-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,.6);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}
.upload-progress {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--blue);
}
.progress-bar-wrap {
  height: 4px;
  background: var(--blue-soft);
  border-radius: var(--radius-full);
  margin-top: 3px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--blue);
  border-radius: var(--radius-full);
  transition: width .2s;
  width: 0%;
}

/* ---------- About Page ---------- */
.about-hero {
  background: linear-gradient(145deg, #0a4c93 0%, #0d5eaf 45%, #1a7fd4 100%);
  color: var(--white);
  padding: 40px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 24px rgba(13,94,175,.28);
  margin-bottom: 4px;
}
.about-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.about-hero h1 { color: var(--white); font-size: 2rem; margin-bottom: 10px; position: relative; }
.about-hero p  { color: rgba(255,255,255,.85); font-size: 1rem; position: relative; }

.about-sections {
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--blue-soft);
  border-radius: var(--radius-md);
  padding: 20px;
}
.about-card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.about-card h3 { margin-bottom: 8px; }
.about-card p { font-size: 0.9rem; }

/* ---------- Login Page ---------- */
.login-wrap {
  min-height: calc(100dvh - var(--topbar-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border: 1px solid var(--blue-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}
.login-logo {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 6px;
}
.login-sub {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 24px;
}

/* ---------- Admin Logged-in View ---------- */
.admin-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--gray); }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Pick-on-map modal ---------- */
#map-picker-map {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 10px;
}

/* ---------- Tips Page ---------- */
.tips-hero {
  background: linear-gradient(145deg, #0a4c93 0%, #0d5eaf 45%, #1a7fd4 100%);
  color: var(--white);
  padding: 40px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 24px rgba(13,94,175,.28);
  margin-bottom: 4px;
}
.tips-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.tips-hero h1 { color: var(--white); font-size: 2rem; margin-bottom: 10px; position: relative; }
.tips-hero p  { color: rgba(255,255,255,.85); font-size: 1rem; position: relative; }

.tips-filter-bar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.tips-sections {
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tip-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}
.tip-tag--transport { background: #FEF3C7; color: #92400E; }
.tip-tag--food      { background: #DCFCE7; color: #15803D; }
.tip-tag--photo     { background: #EDE9FE; color: #5B21B6; }
.tip-tag--culture   { background: #FEE2E2; color: #991B1B; }
.tip-tag--weather   { background: #DBEAFE; color: #1D4ED8; }
.tip-tag--budget    { background: #CCFBF1; color: #0F766E; }

/* ---------- Walks Public Page ---------- */
.walks-hero {
  background: linear-gradient(145deg, #0a4c93 0%, #0d5eaf 45%, #1a7fd4 100%);
  color: #fff;
  padding: 52px 24px 52px;
  text-align: center;
  position: relative;
  border-radius: 0 0 32px 32px;
  margin-bottom: 4px;
  box-shadow: 0 4px 24px rgba(13,94,175,.28);
  overflow: hidden;
}
.walks-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.walks-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; color: #fff; position: relative; }
.walks-hero p  { font-size: 1rem; opacity: .85; color: #fff; max-width: 300px; margin: 0 auto; position: relative; }

.walks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 20px 16px 32px;
}

.walk-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border: 1px solid rgba(0,0,0,.045);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.walk-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.13); }
.walk-card:active { transform: scale(.98); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

.walk-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #dce8f5, #c8d9ee);
  overflow: hidden;
}
.walk-card-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.48) 0%, transparent 55%);
  pointer-events: none;
}
.walk-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.walk-card-img--placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.walk-card-type {
  position: absolute; bottom: 10px; left: 12px; z-index: 1;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--navy);
  font-size: .68rem; font-weight: 700; letter-spacing: .5px;
  padding: 3px 10px; border-radius: var(--radius-full);
  text-transform: uppercase;
}

.walk-card-body { padding: 14px 16px 16px; }
.walk-card-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 5px; color: #111827; }
.walk-card-desc  {
  font-size: .875rem; color: var(--gray); margin-bottom: 12px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.walk-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.walk-card-meta  { display: flex; flex-wrap: wrap; gap: 5px; }
.walk-card-arrow { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }

.walk-meta-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .3px; text-transform: capitalize;
}
.walk-meta-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.walk-meta-badge--easy     { background: #DCFCE7; color: #15803D; }
.walk-meta-badge--moderate { background: #FEF3C7; color: #92400E; }
.walk-meta-badge--hard     { background: #FEE2E2; color: #991B1B; }
.walk-meta-badge--time     { background: #DBEAFE; color: #1D4ED8; }
.walk-meta-badge--pts      { background: #F1F5F9; color: #475569; }

/* Walk detail view */
.walk-detail-hero {
  position: relative;
  background: linear-gradient(135deg, #dce8f5, #c8d9ee);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.walk-detail-back {
  position: absolute; top: 12px; left: 12px; z-index: 10;
}
.walk-detail-back button {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: none; cursor: pointer;
  font-size: .85rem; font-weight: 700; color: #111827;
  padding: 7px 14px 7px 10px; border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: background .15s;
}
.walk-detail-back button:hover { background: rgba(255,255,255,1); }
.walk-detail-back button svg { width: 18px; height: 18px; flex-shrink: 0; }

.walk-detail-cover {
  width: 100%; height: 100%; object-fit: cover; display: block;
  object-position: top center;
  background: transparent;
}
.walk-detail-content { padding: 16px; }

.walk-detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.walk-detail-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; color: var(--on-surface); }
.walk-detail-short-desc { font-size: 1rem; color: var(--gray); margin-bottom: 16px; line-height: 1.6; }
.walk-detail-full-desc  { font-size: .93rem; color: var(--on-surface); line-height: 1.7; margin-bottom: 20px; white-space: pre-wrap; }

.walk-section-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 1rem; font-weight: 700; color: var(--on-surface);
  margin: 20px 0 10px; padding-bottom: 6px;
  border-bottom: 2px solid var(--blue);
}
.walk-section-title svg {
  width: 16px; height: 16px; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Detail map */
.walk-detail-map-wrap { margin-bottom: 20px; }
.walk-detail-map { width: 100%; height: 280px; border-radius: var(--radius-md); overflow: hidden; }
.walk-map-legend {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 8px; font-size: .8rem; color: var(--gray);
}
.walk-legend-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; margin-right: 4px; vertical-align: middle;
}
.walk-legend-start { background: #16a34a; }
.walk-legend-end   { background: #dc2626; }
.walk-legend-middle{ background: #2563eb; }

/* Detail gallery */
.walk-detail-gallery-grid,
.photo-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 20px;
}
.walk-detail-gallery-grid img,
.photo-gallery img, .photo-gallery .photo-thumb {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius-sm); display: block;
  cursor: zoom-in;
  transition: opacity .15s;
}
.walk-detail-gallery-grid img:hover,
.photo-gallery img:hover, .photo-gallery .photo-thumb:hover { opacity: .85; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.92);
}
.lightbox-img {
  position: relative; z-index: 1;
  max-width: calc(100vw - 80px);
  max-height: calc(100dvh - 80px);
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  transition: opacity .2s, transform .2s;
  user-select: none; -webkit-user-drag: none;
}
.lightbox-img.lb-fade { opacity: 0; transform: scale(.96); }
.lightbox-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-prev,
.lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, opacity .2s;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-prev svg, .lightbox-next svg { width: 22px; height: 22px; }
.lightbox-prev.lb-hidden, .lightbox-next.lb-hidden { opacity: 0; pointer-events: none; }
.lightbox-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.75); font-size: .82rem; font-weight: 600;
  background: rgba(0,0,0,.4); padding: 4px 14px; border-radius: var(--radius-full);
  pointer-events: none;
}

/* Route points list */
.walk-route-list { list-style: none; padding: 0; margin: 0 0 20px; }
.walk-route-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--divider);
}
.walk-route-item:last-child { border-bottom: none; }
.walk-route-num {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.walk-route-num--start { background: #16a34a; }
.walk-route-num--end   { background: #dc2626; }
.walk-route-pt-title { font-size: .93rem; font-weight: 600; color: var(--on-surface); }
.walk-route-pt-desc  { font-size: .82rem; color: var(--gray); margin-top: 2px; line-height: 1.5; }

/* Admin walks form helpers */
.walk-cover-preview-wrap {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius-md); overflow: hidden;
  background: #e2e8f0; margin-bottom: 8px;
}
.walk-cover-preview-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.walk-cover-remove-btn {
  position: absolute; top: 6px; right: 6px;
  background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 50%;
  width: 28px; height: 28px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}

.route-point-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--divider);
}
.route-point-item:last-child { border-bottom: none; }
.route-point-num {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.route-point-info { flex: 1; min-width: 0; }
.route-point-title  { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-point-coords { font-size: .78rem; color: var(--gray); }
.route-point-actions { display: flex; gap: 4px; }

.walk-rp-form {
  background: var(--background);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--divider);
}

/* ---------- Responsive (wider screens) ---------- */
@media (min-width: 600px) {
  .bottom-sheet {
    left: 50%;
    transform: translateX(-50%) translateY(110%);
    max-width: 560px;
    border-radius: var(--radius-lg);
  }
  .bottom-sheet.open {
    transform: translateX(-50%) translateY(0);
  }
  .modal-overlay { align-items: center; }
  .modal-box {
    border-radius: var(--radius-lg);
    margin: auto;
    transform: translateY(20px);
    max-width: 560px;
  }
  .modal-overlay.open .modal-box { transform: translateY(0); }
  .photo-preview-grid { grid-template-columns: repeat(4, 1fr); }
  .walks-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   EVENTS — Public pages
═══════════════════════════════════════════════════════════════ */

/* Hero */
.events-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 36px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 24px rgba(13,94,175,.25);
}
.events-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.events-hero h1 { font-size: 1.9rem; font-weight: 800; color: #fff; margin-bottom: 6px; position: relative; }
.events-hero p  { font-size: .97rem; opacity: .85; color: #fff; max-width: 300px; margin: 0 auto 20px; position: relative; }

/* Hero search bar */
.events-search-wrap {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
}
.events-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: rgba(255,255,255,.8); pointer-events: none;
}
.events-search {
  width: 100%; padding: 12px 18px 12px 44px;
  border: none; border-radius: var(--radius-full);
  background: rgba(255,255,255,.18);
  color: #fff; font-size: .97rem;
  backdrop-filter: blur(8px);
  outline: none;
  transition: background .15s;
  box-sizing: border-box;
}
.events-search::placeholder { color: rgba(255,255,255,.65); }
.events-search:focus { background: rgba(255,255,255,.28); }

/* Filters panel */
.events-filters {
  position: sticky;
  top: var(--topbar-h);
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--blue-soft);
  box-shadow: var(--shadow-sm);
}
.events-filters .filter-bar-inner {
  padding: 10px 16px;
}
.events-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 10px;
  border-top: 1px solid var(--divider);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.events-type-row::-webkit-scrollbar { display: none; }
.events-type-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--gray);
  white-space: nowrap;
  flex-shrink: 0;
}
.events-type-chips {
  display: flex;
  gap: 6px;
  min-width: max-content;
}
.events-type-chips .chip {
  padding: 4px 12px;
  font-size: .76rem;
}

/* Section groupings */
.events-section { padding: 0 0 8px; }
.events-section-title {
  font-size: 1.1rem; font-weight: 700;
  color: var(--on-surface);
  padding: 20px 16px 10px;
}
.events-section--past .events-section-title { color: var(--gray); }
.events-section--past .event-card { opacity: .7; }

/* Events grid */
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 12px 16px 20px;
}

/* Event card */
.event-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  cursor: pointer;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease;
  border: 1px solid var(--divider);
}
.event-card:hover  { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.13); }
.event-card:active { transform: scale(.98); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

.event-card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  overflow: hidden;
}
.event-card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease;
}
.event-card:hover .event-card-img-wrap img { transform: scale(1.04); }

.event-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.event-card-placeholder svg { width: 40px; height: 40px; color: #94a3b8; }

.event-card-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
}

/* Badges */
.event-badge {
  font-size: .7rem; font-weight: 700;
  padding: 3px 9px; border-radius: var(--radius-full);
  backdrop-filter: blur(6px); border: none;
  text-transform: uppercase; letter-spacing: .03em;
}
.event-badge--featured { background: rgba(234,179,8,.9);  color: #1c1c1c; }
.event-badge--past     { background: rgba(100,116,139,.85); color: #fff; }
.event-badge--free     { background: rgba(22,163,74,.88);  color: #fff; }

.event-card-body { padding: 14px 16px 10px; }

.event-card-types { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.event-type-tag {
  font-size: .72rem; font-weight: 600;
  background: var(--blue-soft); color: var(--blue);
  padding: 2px 9px; border-radius: var(--radius-full);
}

.event-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 5px; color: var(--on-surface); }
.event-card-desc  {
  font-size: .85rem; color: var(--gray); margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.event-card-meta {
  display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px;
}
.event-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: .78rem; color: var(--gray);
}
.event-meta-item svg { width: 13px; height: 13px; flex-shrink: 0; }

.event-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px 14px; border-top: 1px solid var(--divider);
}
.event-price-tag {
  font-size: .82rem; font-weight: 700; color: var(--blue);
}

/* ─── Event Detail page ─────────────────────────────────────── */

/* Meta info list (date / time / location / price) */
.ev-detail-meta-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 20px;
}
.ev-detail-meta-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .92rem; color: var(--on-surface);
}
.ev-detail-meta-row svg {
  width: 18px; height: 18px; flex-shrink: 0;
  margin-top: 2px; color: var(--blue);
}
.ev-detail-meta-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .3px;
  text-transform: uppercase; color: var(--gray); margin-bottom: 1px;
}
.ev-detail-meta-value { font-weight: 600; }
.ev-detail-meta-sub   { font-size: .82rem; color: var(--gray); margin-top: 1px; }

/* Action buttons row */
.ev-detail-actions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 20px 0;
}
.ev-action-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: var(--radius-full);
  font-size: .88rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .15s, transform .1s;
}
.ev-action-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.ev-action-btn:active { transform: scale(.97); }

.ev-action-btn--website   { background: var(--blue-soft); color: var(--blue); }
.ev-action-btn--tickets   { background: var(--blue); color: #fff; }
.ev-action-btn--phone     { background: #d1fae5; color: #065f46; }
.ev-action-btn--email     { background: #ede9fe; color: #5b21b6; }
.ev-action-btn--directions { background: #fef3c7; color: #92400e; }

.ev-action-btn--website:hover    { background: #c3ddf8; }
.ev-action-btn--tickets:hover    { background: #0a4d97; }
.ev-action-btn--phone:hover      { background: #a7f3d0; }
.ev-action-btn--email:hover      { background: #ddd6fe; }
.ev-action-btn--directions:hover { background: #fde68a; }

/* Back link styled like walk-detail-back button */
.ev-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.88); backdrop-filter: blur(8px);
  color: var(--on-surface); font-size: .88rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: background .15s;
}
.ev-back-link svg { width: 18px; height: 18px; }
.ev-back-link:hover { background: rgba(255,255,255,1); }

/* ─── Admin — event types checkboxes ─────────────────────────── */
.ev-types-wrap {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 10px 0 4px;
}
.ev-type-check {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; cursor: pointer;
  padding: 6px 12px; border-radius: var(--radius-full);
  background: var(--bg-light); border: 1px solid var(--divider);
  transition: background .12s, border-color .12s;
}
.ev-type-check:has(input:checked) {
  background: var(--blue-soft); border-color: var(--blue); color: var(--blue);
}
.ev-type-check input { display: none; }

/* ─── Gallery img hover cursor ───────────────────────────────── */
.gallery-img { cursor: zoom-in; }

/* ═══════════════════════════════════════════════════════════════
   Home page
   ═══════════════════════════════════════════════════════════════ */

/* Hero */
.home-hero {
  position: relative; overflow: hidden;
  min-height: 300px; max-height: 480px;
}
.home-hero-img {
  /* allow stacking two images for a crossfade */
  position: absolute; inset: 0; width: 100%; height: 100%;
  min-height: 300px; max-height: 480px;
  object-fit: cover; object-position: center;
  transition: opacity .8s ease;
  opacity: 0;
  z-index: 0;
}
.home-hero-img--primary { opacity: 1; z-index: 0; }
.home-hero-img--secondary { opacity: 0; z-index: 0; }
.home-hero-img.fade-in { opacity: 1; z-index: 0; }
.home-hero-img.fade-out { opacity: 0; }
.home-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.12) 0%, rgba(10,25,60,.78) 100%);
}
.home-hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 20px 24px; z-index: 2;
}
.home-hero-title {
  color: #fff; font-size: 2rem; font-weight: 800;
  line-height: 1.15; margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.home-hero-sub {
  color: rgba(255,255,255,.85); font-size: .92rem; margin-bottom: 18px;
}
.home-hero-search-wrap { position: relative; }
.home-hero-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: rgba(255,255,255,.7);
  pointer-events: none; flex-shrink: 0;
}
.home-hero-search-icon svg { width: 18px; height: 18px; display: block; }
.home-hero-search {
  width: 100%; box-sizing: border-box;
  padding: 13px 18px 13px 44px;
  border: none; border-radius: var(--radius-full);
  background: rgba(255,255,255,.18); color: #fff;
  font-size: .97rem; outline: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .15s;
}
.home-hero-search::placeholder { color: rgba(255,255,255,.65); }
.home-hero-search:focus         { background: rgba(255,255,255,.28); }

/* Quick-nav */
.home-section--quicknav { padding: 0; }
.home-quicknav-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; padding: 16px;
}
.home-quicknav-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; border-radius: var(--radius-md);
  text-decoration: none; font-size: .78rem; font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  will-change: transform;
}
.home-quicknav-card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
  filter: brightness(1.04);
}
.home-quicknav-card:active {
  transform: scale(.93);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition-duration: .08s;
}
.home-quicknav-icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
}
.home-quicknav-card:hover .home-quicknav-icon {
  transform: rotate(-8deg) scale(1.15);
}
.home-quicknav-icon svg {
  width: 24px; height: 24px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.home-quicknav-card--map        { background: #DBEAFE; color: #1D4ED8; }
.home-quicknav-card--map .home-quicknav-icon        { background: #BFDBFE; }
.home-quicknav-card--events     { background: #EDE9FE; color: #6D28D9; }
.home-quicknav-card--events .home-quicknav-icon     { background: #DDD6FE; }
.home-quicknav-card--walks      { background: #D1FAE5; color: #065F46; }
.home-quicknav-card--walks .home-quicknav-icon      { background: #A7F3D0; }
.home-quicknav-card--activities { background: #FEF3C7; color: #92400E; }
.home-quicknav-card--activities .home-quicknav-icon { background: #FDE68A; }

/* Section wrappers */
.home-section { padding: 20px 0 4px; }
.home-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 10px;
}

/* ═══════════════════════════════════════════════════════════
   Settings Page
   ═══════════════════════════════════════════════════════════ */
.settings-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 48px 20px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.settings-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(255,255,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.settings-hero h1 { color: var(--white); font-size: 1.9rem; margin-bottom: 8px; position: relative; }
.settings-hero p  { color: rgba(255,255,255,.8); font-size: .95rem; position: relative; margin: 0; }

.settings-section {
  padding: 24px 16px;
}
.settings-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}
.settings-section-desc {
  font-size: .88rem;
  color: var(--gray);
  margin: 0 0 18px;
}

/* Language selection cards */
.lang-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lang-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid #E5E7EB;
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.lang-card:hover {
  border-color: var(--blue);
}
.lang-card.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13,94,175,.15);
}
.lang-card-flag {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.lang-card-name {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--on-surface);
}
.lang-card-check {
  color: var(--blue);
  opacity: 0;
  transition: opacity .2s;
  display: flex;
  align-items: center;
}
.lang-card-check svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Admin bilingual lang tabs ───────────────────────────────────────────── */
.lang-tab-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}
.lang-tab {
  padding: 4px 14px;
  border: 1.5px solid var(--gray, #6B7280);
  border-radius: var(--radius-full, 9999px);
  background: transparent;
  color: var(--gray, #6B7280);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.lang-tab:hover {
  border-color: var(--blue, #0D5EAF);
  color: var(--blue, #0D5EAF);
}
.lang-tab.active {
  border-color: var(--blue, #0D5EAF);
  background: var(--blue, #0D5EAF);
  color: #fff;
}
.lang-panel.hidden {
  display: none;
}
.lang-card.active .lang-card-check {
  opacity: 1;
}
.home-section-title  { font-size: 1.1rem; font-weight: 700; color: var(--on-surface); }
.home-see-all        { font-size: .82rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.home-see-all:hover  { text-decoration: underline; }

/* Horizontal strip */
.home-strip-wrap {
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.home-strip-wrap::-webkit-scrollbar { display: none; }
.home-strip { display: flex; gap: 12px; padding: 0 16px 16px; }
.home-strip-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; width: 100%;
}

/* Mini card */
.home-mini-card {
  width: 188px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--white); box-shadow: var(--shadow-sm);
  border: 1px solid var(--blue-soft);
  overflow: hidden; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s, box-shadow .15s;
}
.home-mini-card:hover  { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.home-mini-card:active { transform: scale(.97); }
.home-mini-img-wrap {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--bg-light);
}
.home-mini-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s;
}
.home-mini-card:hover .home-mini-img-wrap img { transform: scale(1.05); }
.home-mini-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #dce8f5, #c8d9ee);
}
.home-mini-placeholder svg { width: 36px; height: 36px; stroke: #7aacdb; }
.home-mini-tag {
  position: absolute; bottom: 7px; left: 8px;
  display: inline-block; padding: 2px 8px;
  border-radius: var(--radius-full); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px;
}
.home-mini-tag--event    { background: #EDE9FE; color: #6D28D9; }
.home-mini-tag--place    { background: #D1FAE5; color: #065F46; }
.home-mini-tag--walk     { background: #DBEAFE; color: #1D4ED8; }
.home-mini-tag--free     { background: #D1FAE5; color: #065F46; }
.home-mini-body { padding: 10px 12px 12px; }
.home-mini-title {
  font-size: .88rem; font-weight: 700; color: var(--on-surface);
  margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.35;
}
.home-mini-meta {
  font-size: .73rem; color: var(--gray);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-mini-meta span + span { margin-left: 4px; }

/* Map preview CTA */
.home-map-preview {
  margin: 12px 16px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 32px 24px; text-align: center;
}
.home-map-preview-icon {
  width: 56px; height: 56px; background: rgba(255,255,255,.15);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.home-map-preview-icon svg {
  width: 28px; height: 28px; stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.home-map-preview h2   { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.home-map-preview p    { color: rgba(255,255,255,.8); font-size: .88rem; margin-bottom: 20px; line-height: 1.5; }
.home-map-preview .btn-primary { background: #fff; color: var(--blue); font-weight: 700; }
.home-map-preview .btn-primary:hover { background: var(--blue-soft); }

/* Category grid */
.home-cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px; padding: 0 16px;
}
.home-cat-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--white);
  border-radius: var(--radius-md); border: 1.5px solid var(--blue-soft);
  box-shadow: var(--shadow-sm); text-decoration: none;
  color: var(--on-surface); font-weight: 600; font-size: .88rem;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.home-cat-card:hover  { border-color: var(--blue); box-shadow: var(--shadow-md); }
.home-cat-card:active { transform: scale(.97); }
.home-cat-icon { font-size: 1.5rem; flex-shrink: 0; }
.home-cat-name { font-weight: 700; color: var(--navy); }

