/* سودان تـُعين — deep Nile teal + desert amber, IBM Plex Sans Arabic throughout. */
:root {
  --primary: #14333f;
  --primary-soft: #1d4b5c;
  --secondary: #f0a83c;
  --secondary-deep: #d98b1c;
  --success: #2f9e6b;
  --danger: #d9534a;
  --info: #3f8fb5;
  --warning: #e0a021;
  --ink: #16242a;
  --muted: #64757c;
  --line: #dfe5e7;
  --surface: #ffffff;
  --canvas: #eef1f0;
  --shadow-sm: 0 1px 2px rgba(20, 51, 63, .08), 0 2px 8px rgba(20, 51, 63, .06);
  --shadow-md: 0 8px 28px rgba(20, 51, 63, .16);
  --shadow-lg: 0 24px 60px rgba(11, 30, 38, .34);
  --radius: 14px;
  --header-h: 60px;
}

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

html, body { height: 100%; }

body {
  font-family: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* ---------- header ---------- */
#header {
  position: relative;
  z-index: 1200;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 16px;
  color: #fff;
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(240, 168, 60, .28), transparent 55%),
    linear-gradient(105deg, #102b35, #1d4b5c 70%);
  box-shadow: var(--shadow-sm);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--secondary);
  color: #12303b;
  font-size: 1.05rem;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text strong { font-size: 1.08rem; font-weight: 700; letter-spacing: .2px; }
.logo-text strong span { color: var(--secondary); }
.logo-text small { font-size: .64rem; opacity: .78; font-weight: 400; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.header-actions button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: .78rem;
  font-weight: 500;
  transition: background .18s, transform .18s, color .18s;
}
.header-actions button:hover { background: rgba(255, 255, 255, .16); }
.header-actions button:active { transform: scale(.96); }
.header-actions .solid {
  background: var(--secondary);
  border-color: transparent;
  color: #12303b;
  font-weight: 600;
}
.header-actions .solid:hover { background: #ffbd57; }
.badge {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--danger);
  font-size: .66rem;
  font-weight: 700;
  text-align: center;
}
.badge[data-empty="true"] { background: rgba(255, 255, 255, .22); }

/* ---------- search ---------- */
#searchBar {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 1100;
}
.field {
  position: relative;
  display: flex;
  align-items: center;
}
.field.grow { flex: 1 1 240px; min-width: 150px; }
.field i {
  position: absolute;
  inset-inline-start: 14px;
  color: var(--muted);
  font-size: .85rem;
  pointer-events: none;
}
#searchBar input, #searchBar select {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #f7f9f9;
  transition: border-color .18s, background .18s, box-shadow .18s;
  font-size: .9rem;
}
#searchBar input { padding-inline-start: 38px; }
#searchBar select { flex: 0 1 150px; min-width: 96px; }
#searchBar input:focus, #searchBar select:focus {
  border-color: var(--primary-soft);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 75, 92, .1);
  outline: none;
}
#searchBar input::-webkit-search-cancel-button { cursor: pointer; }
.search-btn, .locate-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
  transition: background .18s, transform .18s;
}
.search-btn:hover, .locate-btn:hover { background: var(--primary-soft); }
.search-btn:active, .locate-btn:active { transform: scale(.97); }
.locate-btn { padding: 10px 13px; background: #f7f9f9; color: var(--primary); border: 1.5px solid var(--line); }
.locate-btn:hover { background: #eaeeef; }

/* ---------- category chips ---------- */
#categoryFilters {
  flex-shrink: 0;
  display: flex;
  gap: 7px;
  padding: 9px 16px;
  overflow-x: auto;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
  z-index: 1050;
}
#categoryFilters::-webkit-scrollbar { display: none; }
.category-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #f4f6f6;
  color: #3b4a50;
  font-size: .79rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.category-chip:hover { background: #e8ecec; }
.category-chip:active { transform: scale(.97); }
.category-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.category-chip .count {
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(20, 51, 63, .09);
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
}
.category-chip.active .count { background: rgba(255, 255, 255, .2); }

/* ---------- map ---------- */
#mapContainer { position: relative; flex: 1 1 auto; min-height: 320px; }
#map { position: absolute; inset: 0; background: #dfe6e4; }
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { font-size: .62rem; }
.leaflet-control-layers { border-radius: 10px; font-size: .85rem; }
.leaflet-control-layers-expanded { padding: 8px 12px; }
.leaflet-control-layers label > span { display: flex; align-items: center; gap: 6px; margin-block: 4px; cursor: pointer; }
.leaflet-control-layers-selector { margin: 0; }

.pin {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50% 50% 50% 6px;
  transform: rotate(-45deg);
  color: #fff;
  font-size: .78rem;
  border: 2px solid rgba(255, 255, 255, .92);
  box-shadow: 0 3px 8px rgba(16, 43, 53, .4);
}
.pin i { transform: rotate(45deg); }
.pin.is-verified::after {
  content: "";
  position: absolute;
  inset-block-start: -3px; inset-inline-end: -3px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--secondary);
  border: 1.5px solid #fff;
  transform: rotate(45deg);
}
.pin-wrap { background: none !important; border: none !important; }
.pin-wrap.active .pin { animation: pop .35s ease; }
@keyframes pop {
  0% { transform: rotate(-45deg) scale(1); }
  50% { transform: rotate(-45deg) scale(1.28); }
  100% { transform: rotate(-45deg) scale(1); }
}
.me-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--info);
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(63, 143, 181, .25);
}

.result-count {
  position: absolute;
  inset-block-start: 12px; inset-inline-start: 12px;
  z-index: 500;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-sm);
  font-size: .76rem;
  font-weight: 600;
  color: var(--primary);
  backdrop-filter: blur(6px);
}
.map-loader {
  position: absolute;
  inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(50%, -50%);
  z-index: 600;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-md);
  font-size: .84rem;
  font-weight: 500;
}
html[dir="ltr"] .map-loader { transform: translate(-50%, -50%); }
.map-loader[hidden] { display: none; }
.spark {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2.5px solid rgba(20, 51, 63, .18);
  border-top-color: var(--secondary);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pick-hint {
  position: absolute;
  inset-block-start: 12px; inset-inline: 12px;
  z-index: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: .84rem;
  box-shadow: var(--shadow-md);
}
.pick-hint[hidden] { display: none; }
.pick-hint button {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: .76rem;
}

/* ---------- side panel ---------- */
#sidePanel {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(420px, 100%);
  z-index: 2000;
  padding: 18px 20px 40px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(105%);
  transition: transform .32s cubic-bezier(.22, .61, .36, 1);
  visibility: hidden;
}
html[dir="ltr"] #sidePanel { transform: translateX(-105%); }
#sidePanel.open { transform: none; visibility: visible; }

.close-btn {
  float: inline-end;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  background: #f0f3f3;
  color: #46565c;
  font-size: 1rem;
  transition: background .18s, color .18s;
}
.close-btn:hover { background: var(--danger); color: #fff; }
.close-btn.floating { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; float: none; }

.panel-empty { padding: 70px 10px; text-align: center; color: var(--muted); }
.panel-empty i { font-size: 2.4rem; color: #c8d2d4; margin-bottom: 12px; display: block; }

.place-head { clear: both; padding-block-start: 6px; }
.place-name { font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1.3; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #eaf1f4;
  color: #1d4b5c;
  font-size: .74rem;
  font-weight: 500;
}
.chip.verified { background: rgba(240, 168, 60, .18); color: #8a5806; }
.rating-line { display: flex; align-items: center; gap: 8px; margin-block: 6px; font-size: .85rem; color: var(--muted); }
.stars { color: var(--warning); letter-spacing: 1px; }
.place-info { margin-block: 14px; display: grid; gap: 9px; font-size: .88rem; }
.place-info div { display: flex; gap: 10px; align-items: baseline; }
.place-info i { width: 18px; color: var(--primary-soft); flex-shrink: 0; }
.place-info a { color: var(--info); text-decoration: none; }
.place-info a:hover { text-decoration: underline; }
.place-desc { color: #3d4c52; line-height: 1.75; font-size: .88rem; }

.action-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-block: 16px; }
.action-buttons button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  transition: filter .18s, transform .18s;
}
.action-buttons button:hover { filter: brightness(1.08); }
.action-buttons button:active { transform: scale(.97); }
.directions-btn { background: var(--success); }
.share-btn { background: var(--info); }
.favorite-btn { background: #eef1f1; color: #46565c; }
.favorite-btn.on { background: var(--danger); color: #fff; }
.report-btn { background: #eef1f1; color: #46565c; }

.section { margin-block-start: 22px; padding-block-start: 16px; border-block-start: 1px solid var(--line); }
.section h3 {
  font-size: .95rem;
  color: var(--primary);
  margin-block-end: 12px;
  display: flex; align-items: center; gap: 8px;
}
.review-item {
  padding: 11px 13px;
  border-radius: 12px;
  background: #f7f9f9;
  margin-block-end: 8px;
}
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.review-user { font-weight: 600; font-size: .84rem; }
.review-date { font-size: .68rem; color: #94a3a8; }
.review-text { margin-block-start: 5px; color: #47575d; font-size: .84rem; line-height: 1.7; }
.no-reviews { color: var(--muted); font-size: .82rem; padding-block: 6px; }

.add-review label { font-size: .78rem; font-weight: 600; display: block; margin-block-end: 6px; }
.add-review input[type="text"], .add-review textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #f7f9f9;
  font-size: .86rem;
  margin-block-end: 9px;
}
.add-review textarea { resize: vertical; min-height: 74px; }
.add-review input:focus, .add-review textarea:focus { border-color: var(--primary-soft); background: #fff; outline: none; }
.star-rating { display: flex; gap: 5px; margin-block: 4px 10px; }
.star-rating button {
  border: none; background: none; padding: 2px;
  font-size: 1.35rem; color: #d6dcdd;
  transition: color .12s, transform .12s;
}
.star-rating button.on { color: var(--warning); }
.star-rating button:hover { transform: scale(1.15); }
.submit-review {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: .86rem;
}
.submit-review:hover { background: var(--primary-soft); }
.submit-review:disabled { opacity: .6; cursor: progress; }

.fav-list { display: grid; gap: 8px; }
.fav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: start;
  transition: border-color .18s, background .18s;
}
.fav-item:hover { border-color: var(--primary-soft); background: #f7f9f9; }
.fav-item small { color: var(--muted); font-size: .72rem; }

/* ---------- FABs ---------- */
.floating-buttons {
  position: fixed;
  inset-block-end: 26px;
  inset-inline-end: 18px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fab {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: transform .18s, background .18s;
}
.fab:active { transform: scale(.9); }
.fab-add { background: var(--primary); color: #fff; }
.fab-add:hover { background: var(--primary-soft); }
.fab-business { background: var(--secondary); color: #12303b; }
.fab-business:hover { background: #ffbd57; }

/* ---------- toast ---------- */
#toast {
  position: fixed;
  inset-block-end: 96px;
  inset-inline: 0;
  z-index: 5000;
  margin-inline: auto;
  width: max-content;
  max-width: 88vw;
  padding: 12px 22px;
  border-radius: 999px;
  background: #22333a;
  color: #fff;
  font-size: .86rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .24s, transform .24s;
}
#toast.show { opacity: 1; transform: none; }
#toast.success { background: var(--success); }
#toast.error { background: var(--danger); }
#toast.info { background: var(--info); }

/* ---------- overlays / modals ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(11, 27, 33, .62);
  backdrop-filter: blur(3px);
  animation: fade .18s ease;
}
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.overlay .card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px 22px 28px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: rise .26s cubic-bezier(.22, .61, .36, 1);
}
.overlay .card.wide { max-width: 680px; }
@keyframes rise { from { transform: translateY(26px); opacity: 0; } to { transform: none; opacity: 1; } }
.overlay h2 { color: var(--primary); font-size: 1.3rem; text-align: center; }
.overlay .sub { text-align: center; color: var(--muted); font-size: .82rem; margin-block: 6px 18px; line-height: 1.6; }
.overlay label { display: block; margin-block: 12px 5px; font-size: .8rem; font-weight: 600; color: #2c3b41; }
.overlay label i { color: var(--primary-soft); }
.overlay input, .overlay select, .overlay textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #f8fafa;
  font-size: .92rem;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.overlay textarea { resize: vertical; }
.overlay input:focus, .overlay select:focus, .overlay textarea:focus {
  border-color: var(--primary-soft);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(29, 75, 92, .09);
  outline: none;
}
.overlay input[aria-invalid="true"] { border-color: var(--danger); background: #fff5f4; }
.overlay .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.overlay .row > * { min-width: 0; }
.coord-tools { display: flex; gap: 8px; margin-block-start: 8px; flex-wrap: wrap; }
.coord-tools button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px;
  border: 1.5px dashed var(--line);
  border-radius: 999px;
  background: #f8fafa;
  color: var(--primary);
  font-size: .76rem;
  font-weight: 500;
}
.coord-tools button:hover { border-style: solid; border-color: var(--primary-soft); }
.form-error {
  margin-block-start: 14px;
  padding: 10px 13px;
  border-radius: 12px;
  background: #fdeceb;
  color: #9c2f28;
  font-size: .81rem;
  line-height: 1.6;
}
.form-error[hidden] { display: none; }
.btn-group { display: flex; gap: 10px; margin-block-start: 20px; }
.btn-primary {
  flex: 2;
  padding: 13px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  transition: background .18s, transform .18s;
}
.btn-primary:hover { background: var(--primary-soft); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-secondary {
  flex: 1;
  padding: 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #46565c;
  font-weight: 600;
}
.btn-secondary:hover { background: #f2f5f5; }

.portal-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.portal-cta {
  padding: 18px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(140deg, #1d4b5c, #14333f);
}
.portal-cta h3 { font-size: 1rem; margin-block-end: 8px; }
.portal-cta p { font-size: .81rem; line-height: 1.7; opacity: .88; }
.portal-stat { margin-block: 12px 14px; font-size: .78rem; opacity: 1; }
.portal-stat strong { font-size: 1.5rem; color: var(--secondary); display: block; font-variant-numeric: tabular-nums; }
.portal-cta .btn-primary { width: 100%; background: var(--secondary); color: #12303b; }
.portal-cta .btn-primary:hover { background: #ffbd57; }
.portal-perks { list-style: none; display: grid; gap: 9px; align-content: start; }
.portal-perks li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .81rem;
  line-height: 1.6;
}
.portal-perks i { color: var(--secondary-deep); margin-block-start: 3px; }
.install-steps { list-style: none; display: grid; gap: 10px; }
.install-steps li {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f9f9;
  font-size: .84rem;
  line-height: 1.7;
}
.install-steps strong { color: var(--primary); }

/* ---------- location prompt + nearby list ---------- */
.geo-card { text-align: center; max-width: 420px; }
.geo-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(63, 143, 181, .12);
  color: var(--info);
  font-size: 1.6rem;
}
.geo-privacy {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f7f9f9;
  color: #46565c;
  font-size: .76rem;
  line-height: 1.6;
}
.geo-privacy i { color: var(--success); }
.geo-hint { margin-block-start: 14px; color: var(--muted); font-size: .74rem; line-height: 1.6; }

.nearby-sub { color: var(--muted); font-size: .8rem; margin-block: 4px 14px; }
.nearby-item .dist {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(63, 143, 181, .12);
  color: var(--info);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
}
.nearby-item .cat-dot {
  display: inline-block;
  width: 9px; height: 9px;
  margin-inline-end: 6px;
  border-radius: 50%;
  vertical-align: middle;
}

/* ---------- footer ---------- */
#footer {
  flex-shrink: 0;
  padding: 16px 18px 20px;
  background: var(--primary);
  border-block-start: 3px solid var(--secondary);
  color: #cfdadd;
  text-align: center;
  font-size: .78rem;
}
#footer .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin-block-end: 10px; }
#footer .links a { color: var(--secondary); text-decoration: none; font-size: .82rem; }
#footer .links a:hover { text-decoration: underline; }
#footer .disclaimer {
  max-width: 720px;
  margin: 0 auto;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  font-size: .74rem;
  line-height: 1.8;
}
#footer .copyright { margin-block-start: 10px; font-size: .7rem; color: #8b9ea3; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .portal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  #searchBar { flex-wrap: wrap; padding: 9px 12px; }
  .field.grow { flex-basis: 100%; }
  #searchBar select { flex: 1 1 40%; }
  .search-btn { flex: 1 1 auto; justify-content: center; }
  .logo-text strong { font-size: .98rem; }
  #categoryFilters { padding: 8px 12px; }
  #footer .links { gap: 14px; }
}
@media (max-width: 480px) {
  .overlay { padding: 10px; }
  .overlay .card { padding: 22px 16px 24px; border-radius: 18px; }
  .overlay .row { grid-template-columns: 1fr; }
  .action-buttons { grid-template-columns: 1fr 1fr; }
  .logo-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Draft pin dropped by tapping the map while adding a place */
.pin.pin-draft { background: var(--secondary); }
