/* app.css — faithful to the Google Maps look (light theme) */

:root {
  --gm-text: #3c4043;
  --gm-strong: #202124;
  --gm-icon: #5f6368;
  --gm-blue: #1a73e8;
  --gm-blue-d: #1664c9;
  --gm-hover: #f1f3f4;
  --gm-border: #e8eaed;
  --gm-disabled: #bdc1c6;
  --gm-teal: #129eaf;
  --gm-shadow: 0 1px 3px rgba(60,64,67,.3), 0 4px 8px rgba(60,64,67,.15);
  --gm-shadow-lg: 0 2px 6px rgba(60,64,67,.28), 0 8px 24px rgba(60,64,67,.18);
  font-family: Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

html, body { height: 100%; margin: 0; overflow: hidden; }
body { position: relative; }
#map { position: fixed; inset: 0; z-index: 0; }
.material-symbols-outlined { font-size: 22px; line-height: 1; user-select: none; }

/* ===== Top bar: hamburger + search + chips + account ===== */
.topbar {
  position: absolute; inset-block-start: 11px; inset-inline: 11px;
  z-index: 5; display: flex; align-items: flex-start; gap: 11px; pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.searchbar {
  display: flex; align-items: center; height: 48px;
  background: #fff; border-radius: 8px; box-shadow: var(--gm-shadow);
  width: 360px; max-width: 42vw; flex: none;
}
.searchbar .ham {
  border: 0; background: transparent; cursor: pointer; color: var(--gm-icon);
  width: 46px; height: 100%; display: grid; place-items: center; border-radius: 8px 0 0 8px;
}
.searchbar .ham:hover { background: var(--gm-hover); }
.searchbar input {
  flex: 1; border: 0; outline: none; font-size: 15px; color: var(--gm-strong);
  background: transparent; min-width: 0;
}
.searchbar input::placeholder { color: #80868b; }
.searchbar .sep { width: 1px; height: 26px; background: var(--gm-border); margin: 0 2px; }
.searchbar .ic {
  border: 0; background: transparent; cursor: pointer; width: 46px; height: 100%;
  display: grid; place-items: center;
}
.searchbar .ic.search { color: var(--gm-blue); }
.searchbar .ic.search:hover { background: var(--gm-hover); border-radius: 0; }
.searchbar .ic.dir { color: #fff; }
.searchbar .ic.dir .chip-dir {
  width: 38px; height: 38px; border-radius: 8px; background: var(--gm-blue);
  display: grid; place-items: center; margin-inline-end: 4px;
}
.searchbar .ic.dir:hover .chip-dir { background: var(--gm-blue-d); }

/* category chips */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px;
  height: 48px; align-items: center; scrollbar-width: none; flex: 1; min-width: 0;
  transition: mask-image .15s, -webkit-mask-image .15s;
}
.chips::-webkit-scrollbar { display: none; }
.chips.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%); }
.chips.fade-l { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 100%); mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 100%); }
.chips.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  height: 38px; padding: 0 14px; border-radius: 19px; background: #fff;
  box-shadow: var(--gm-shadow); border: 0; cursor: pointer;
  font-size: 14px; color: var(--gm-text); flex: none;
}
.chip .material-symbols-outlined { font-size: 18px; color: var(--gm-icon); }
.chip:hover { background: #f8f9fa; }

.account { flex: none; }
.app-launcher-wrap { margin-inline-start: auto; flex: none; position: relative; }
.signin {
  height: 40px; padding: 0 22px; border: 0; border-radius: 6px;
  background: var(--gm-blue); color: #fff; font-size: 14px; font-weight: 500;
  cursor: pointer; box-shadow: var(--gm-shadow);
}
.signin:hover { background: var(--gm-blue-d); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: #1a73e8; color: #fff; font-weight: 500; font-size: 16px;
  box-shadow: var(--gm-shadow); display: grid; place-items: center;
}

/* ===== Slide-over menu (Google-style) ===== */
.overlay {
  position: absolute; inset: 0; z-index: 8; background: rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.overlay.show { opacity: 1; visibility: visible; }

.panel {
  position: absolute; inset-block: 0; inset-inline-start: 0; z-index: 9;
  width: 300px; max-width: 86vw; background: #fff; box-shadow: var(--gm-shadow-lg);
  transform: translateX(-104%); transition: transform .26s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow: hidden;
}
.panel.show { transform: translateX(0); }

.panel-head {
  display: flex; align-items: center; gap: 4px; padding: 14px 8px 14px 16px;
}
.gm-logo { height: 18px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.gm-wordmark { font-size: 21px; color: var(--gm-strong); font-weight: 500; letter-spacing: -.2px; }
.panel-head .close {
  margin-inline-start: auto; border: 0; background: transparent; cursor: pointer;
  color: var(--gm-icon); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
}
.panel-head .close:hover { background: var(--gm-hover); }

.panel-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 10px; }
.panel-scroll::-webkit-scrollbar { width: 8px; }
.panel-scroll::-webkit-scrollbar-thumb { background: #dadce0; border-radius: 8px; }

.toggle-row {
  display: flex; align-items: center; gap: 18px; padding: 8px 24px 14px;
  font-size: 14px; color: var(--gm-text);
}
.switch { margin-inline-start: auto; position: relative; width: 36px; height: 14px; }
.switch input { display: none; }
.track {
  position: absolute; inset: 0; background: #b9c0c7; border-radius: 10px; transition: .2s;
}
.knob {
  position: absolute; top: -3px; inset-inline-start: 0; width: 20px; height: 20px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: .2s;
}
.switch input:checked + .track { background: #a7e0e3; }
.switch input:checked + .track + .knob { inset-inline-start: 16px; background: var(--gm-teal); }

.menu-item {
  display: flex; align-items: center; gap: 22px; width: 100%; text-align: start;
  border: 0; background: transparent; cursor: pointer;
  padding: 0 24px; height: 44px; font-size: 14px; color: var(--gm-text);
}
.menu-item .material-symbols-outlined { color: var(--gm-icon); font-size: 20px; }
.menu-item:hover { background: var(--gm-hover); }
.menu-item.disabled { color: var(--gm-disabled); cursor: default; }
.menu-item.disabled .material-symbols-outlined { color: var(--gm-disabled); }
.menu-item .lock { margin-inline-start: auto; font-size: 16px; color: var(--gm-disabled); }
.divider { height: 1px; background: var(--gm-border); margin: 8px 0; }

/* Saved places panel reuses .panel */
.saved-head { padding: 14px 8px 10px 20px; display: flex; align-items: center; gap: 10px; }
.saved-head .back { border: 0; background: transparent; cursor: pointer; color: var(--gm-icon);
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.saved-head .back:hover { background: var(--gm-hover); }
.saved-head h2 { font-size: 18px; font-weight: 500; color: var(--gm-strong); margin: 0; }
.save-cur {
  margin: 4px 16px 10px; display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px dashed #c5cad0; border-radius: 10px; padding: 11px 14px; color: var(--gm-blue);
  font-size: 14px; background: transparent;
}
.save-cur:hover { background: #f6f9fe; }
.place-row { display: flex; align-items: center; gap: 14px; padding: 11px 20px; font-size: 14px; color: var(--gm-text); }
.place-row:hover { background: var(--gm-hover); }
.place-row .pn { flex: 1; cursor: pointer; }
.place-row .del { border: 0; background: transparent; cursor: pointer; color: var(--gm-icon); }
.place-row .del:hover { color: #d93025; }
.empty { padding: 14px 20px; color: #80868b; font-size: 14px; }

/* ===== Layers / style (bottom left) ===== */
.layers {
  position: absolute; inset-block-end: 24px; inset-inline-start: 16px; z-index: 4;
  display: flex; gap: 2px; background: #fff; border-radius: 8px; box-shadow: var(--gm-shadow);
  overflow: hidden;
}
.layers button {
  border: 0; background: #fff; cursor: pointer; font-size: 13px; color: var(--gm-text);
  padding: 9px 14px; font-weight: 500;
}
.layers button.active { color: var(--gm-blue); background: #e8f0fe; }
.layers button:hover:not(.active) { background: var(--gm-hover); }

.toast {
  position: absolute; inset-block-end: 26px; inset-inline-start: 50%;
  transform: translate(-50%, 8px); z-index: 12;
  background: #323232; color: #fff; padding: 12px 18px; border-radius: 6px;
  font-size: 14px; box-shadow: var(--gm-shadow-lg); opacity: 0; transition: .2s; pointer-events: none;
  max-width: 80vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .searchbar { width: 100%; max-width: none; }
  .chips, .account { display: none; }
  .topbar { inset-inline: 8px; }
}

/* ===== Bottom bar (covers default Mapbox strip; keeps required credits) ===== */
.bottombar {
  position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 6;
  height: 28px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 14px; box-sizing: border-box;
  background: rgba(20,26,33,.94); color: #cfd6dd; font-size: 11px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.bottombar .bb-brand { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 600; letter-spacing: .2px; }
.bottombar .bb-brand img { height: 12px; width: auto; display: block; }
.bottombar .bb-attr { color: #9aa3ac; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Lift Mapbox controls above the bar; hide default logo + duplicate attribution (shown in our bar) */
.mapboxgl-ctrl-bottom-right { bottom: 30px; }
.mapboxgl-ctrl-bottom-left { display: none; }
.layers { inset-block-end: 42px; }

/* Directions panel: sit below the search bar, card style, scroll when long */
.mapboxgl-ctrl-top-left { inset-block-start: 66px; inset-inline-start: 11px; }
.mapboxgl-ctrl-directions {
  max-width: 340px; max-height: calc(100vh - 150px); overflow-y: auto;
  border-radius: 10px; box-shadow: var(--gm-shadow-lg);
}
@media (max-width: 760px) {
  .mapboxgl-ctrl-top-left { inset-block-start: 64px; inset-inline-start: 8px; inset-inline-end: 8px; }
  .mapboxgl-ctrl-directions { max-width: none; }
}

/* ===== Modal / dialogs for sidebar features ===== */
.modal-overlay {
  position: absolute; inset: 0; z-index: 14; background: rgba(0,0,0,.32);
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  position: absolute; z-index: 15; inset-block-start: 50%; inset-inline-start: 50%;
  transform: translate(-50%, -46%); width: 460px; max-width: 92vw; max-height: 82vh;
  background: #fff; border-radius: 14px; box-shadow: var(--gm-shadow-lg);
  display: flex; flex-direction: column; opacity: 0; visibility: hidden;
  transition: opacity .18s, transform .18s;
}
.modal.show { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 16px 12px 12px 20px; border-bottom: 1px solid var(--gm-border); }
.modal-head h3 { margin: 0; font-size: 18px; font-weight: 500; color: var(--gm-strong); flex: 1; }
.m-close { border: 0; background: transparent; cursor: pointer; color: var(--gm-icon); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.m-close:hover { background: var(--gm-hover); }
.modal-body { padding: 14px 20px 20px; overflow-y: auto; overflow-x: hidden; color: var(--gm-text); font-size: 14px; line-height: 1.5; overflow-wrap: break-word; word-break: break-word; }
.modal-body p { margin: 0 0 10px; }
.m-list { display: flex; flex-direction: column; }
.m-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 8px; cursor: pointer; }
.m-row:hover { background: var(--gm-hover); }
.m-row .material-symbols-outlined { color: #ea4335; font-size: 20px; }
.m-row > span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-row .m-meta { margin-inline-start: auto; color: #80868b; font-size: 12px; white-space: nowrap; }
.m-empty, .m-note { color: #80868b; }
.m-note { margin-top: 10px; font-size: 12px; }
.m-label { display: block; margin: 14px 0 6px; font-weight: 500; color: var(--gm-strong); }
.m-input, .m-area, .m-select { width: 100%; box-sizing: border-box; border: 1px solid var(--gm-border); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--gm-strong); background: #fff; outline: none; }
.m-input:focus, .m-area:focus, .m-select:focus { border-color: var(--gm-blue); }
.m-area { min-height: 84px; resize: vertical; }
.m-row2 { display: flex; gap: 8px; }
.m-row2 .m-input { flex: 1; }
.m-copy { border: 0; background: var(--gm-blue); color: #fff; border-radius: 8px; padding: 0 16px; cursor: pointer; font-size: 13px; }
.m-copy:hover { background: var(--gm-blue-d); }
.m-btn { width: 100%; margin-top: 14px; border: 0; border-radius: 8px; background: var(--gm-blue); color: #fff; padding: 11px 16px; font-size: 14px; font-weight: 500; cursor: pointer; }
.m-btn:hover { background: var(--gm-blue-d); }
.m-btn.ghost { background: #fff; color: var(--gm-blue); border: 1px solid var(--gm-border); }
.m-btn.ghost:hover { background: #f6f9fe; }
.m-stats { display: flex; gap: 10px; margin-bottom: 8px; min-width: 0; }
.m-stat { flex: 1; background: var(--gm-hover); border-radius: 10px; padding: 12px 6px; text-align: center; }
.m-stat b { display: block; font-size: 22px; color: var(--gm-strong); }
.m-stat span { font-size: 12px; color: #80868b; }
.m-opt { display: flex; align-items: center; gap: 10px; padding: 9px 6px; cursor: pointer; border-radius: 8px; }
.m-opt:hover { background: var(--gm-hover); }
.m-ul { margin: 0; padding-inline-start: 18px; }
.m-ul li { margin-bottom: 8px; }
.pop-del { margin-top: 6px; border: 0; background: #fff; color: #d93025; cursor: pointer; font-size: 13px; padding: 2px 0; }
.pop-del:hover { text-decoration: underline; }

@media (max-width: 760px) { .modal { width: 94vw; } }

/* ===== Bottom bar copyright link ===== */
.bb-copy { color: #cfd6dd; text-decoration: none; font-weight: 500; }
.bb-copy:hover { color: #fff; text-decoration: underline; }

/* ===== Avatar with photo ===== */
.avatar { overflow: hidden; padding: 0; }
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

/* ===== Profile ===== */
.pf-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.pf-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.pf-initial { display: grid; place-items: center; background: var(--gm-blue); color: #fff; font-size: 26px; font-weight: 500; }
.pf-name { font-size: 18px; font-weight: 500; color: var(--gm-strong); }
.pf-sub { font-size: 13px; color: #80868b; }

/* ===== Photos in dialogs / popups / lists ===== */
.m-preview { margin-top: 8px; max-width: 100%; border-radius: 8px; display: block; }
.m-thumb { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; flex: none; }
.pop-img { width: 252px; max-width: 100%; border-radius: 6px; margin-bottom: 6px; display: block; }
.mapboxgl-popup-content { max-width: 290px; padding: 12px 16px 14px; }

/* ===== Bottom bar centered (single copyright) ===== */
.bottombar { justify-content: center; }

/* ===== 3D / Weather toggles (bottom-left, above layers) ===== */
.mapmodes {
  position: absolute; inset-block-end: 86px; inset-inline-start: 16px; z-index: 4;
  display: flex; gap: 6px;
}
.mapmodes button {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border: 0; border-radius: 8px; background: #fff; color: var(--gm-text);
  font-size: 13px; font-weight: 500; cursor: pointer; box-shadow: var(--gm-shadow);
}
.mapmodes button .material-symbols-outlined { font-size: 18px; color: var(--gm-icon); }
.mapmodes button.active { background: #e8f0fe; color: var(--gm-blue); }
.mapmodes button.active .material-symbols-outlined { color: var(--gm-blue); }

/* ===== Marker popup info ===== */
.pop-title { font-size: 14px; color: #202124; }
.pop-cat { color: #5f6368; font-size: 12px; margin: 2px 0 6px; }
.pop-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #3c4043; margin: 3px 0; }
.pop-line .material-symbols-outlined { font-size: 16px; color: #5f6368; }
.pop-line a { color: #1a73e8; text-decoration: none; }
.pop-line a:hover { text-decoration: underline; }
.pop-note { font-size: 13px; color: #3c4043; margin: 6px 0; white-space: pre-wrap; }
.pop-actions { display: flex; gap: 14px; margin-top: 8px; }
.pop-edit { border: 0; background: #fff; color: #1a73e8; cursor: pointer; font-size: 13px; padding: 2px 0; }
.pop-edit:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .mapmodes { inset-block-end: 84px; }
}

/* ===== Hide Mapbox attribution control (credit kept minimal per request) ===== */
.mapboxgl-ctrl-attrib, .mapboxgl-ctrl-bottom-left { display: none; }

/* ===== Bottom bar: coordinates (left) + copyright & social (right) ===== */
.bottombar { justify-content: space-between; height: 30px; gap: 10px; }
.bb-coords { color: #aeb6bf; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; min-width: 0; }
.bb-right { display: flex; align-items: center; gap: 12px; flex: none; }
.bb-copy { color: #cfd6dd; text-decoration: none; font-weight: 500; font-size: 11px; white-space: nowrap; }
.bb-copy:hover { color: #fff; text-decoration: underline; }
.bb-social { display: flex; align-items: center; gap: 10px; }
.bb-social a { color: #aeb6bf; display: inline-flex; }
.bb-social a:hover { color: #fff; }
.bb-social svg { width: 15px; height: 15px; fill: currentColor; display: block; }
@media (max-width: 760px) { .bb-coords { display: none; } }

/* ===== Photo lightbox ===== */
.lightbox {
  position: absolute; inset: 0; z-index: 20; background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.lightbox.show { opacity: 1; visibility: visible; }
.lb-card {
  position: relative; background: #fff; border-radius: 14px; padding: 16px;
  max-width: 760px; width: 92vw; max-height: 90vh; overflow: auto; box-shadow: var(--gm-shadow-lg);
}
.lb-card img { width: 100%; border-radius: 8px; display: block; }
.lb-title { font-size: 18px; font-weight: 500; color: var(--gm-strong); margin-top: 12px; }
.lb-close {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0;
  border-radius: 50%; background: rgba(255,255,255,.92); cursor: pointer; font-size: 20px; color: #3c4043;
  display: grid; place-items: center;
}
.lb-close:hover { background: #fff; }

/* ===== Place detail panel (right) ===== */
.panel.right { inset-inline-start: auto; inset-inline-end: 0; width: 380px; transform: translateX(104%); }
.dp-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 8px; border-bottom: 1px solid var(--gm-border); }
.dp-head .close {
  border: 0; background: transparent; cursor: pointer; color: var(--gm-icon);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; padding: 0;
}
.dp-head .close:hover { background: var(--gm-hover); }
.dp-head .close .material-symbols-outlined { font-size: 22px; }
.dp-htitle { font-size: 16px; font-weight: 500; color: var(--gm-strong); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-hero img { width: 100%; height: 184px; object-fit: cover; display: block; cursor: pointer; }
.dp-headinfo { padding: 14px 18px 8px; }
.dp-name { margin: 0 0 6px; font-size: 22px; font-weight: 500; color: var(--gm-strong); }
.dp-rating { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gm-text); }
.dp-stars .star { color: #dadce0; font-size: 15px; } .dp-stars .star.on { color: #fbbc04; }
.dp-stars.sm .star { font-size: 13px; }
.dp-rcount, .dp-cat { color: #5f6368; font-size: 13px; }
.dp-cat { margin-top: 4px; }
.dp-actions { display: flex; gap: 2px; margin: 18px 0 6px; padding: 0 4px; }
.dp-act {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 0; background: transparent; cursor: pointer; color: var(--gm-blue);
  font-size: 11px; padding: 0; flex: 1 1 0; min-width: 0;
}
.dp-act span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dp-act .material-symbols-outlined { width: 36px; height: 36px; border-radius: 50%; background: #e8f0fe; display: grid; place-items: center; font-size: 18px; }
.dp-act:hover .material-symbols-outlined { background: #d7e6fd; }
.dp-info { padding: 4px 18px; border-top: 1px solid var(--gm-border); }
.dp-row { display: flex; align-items: flex-start; gap: 14px; padding: 11px 0; font-size: 14px; color: var(--gm-text); border-bottom: 1px solid var(--gm-border); overflow-wrap: anywhere; word-break: break-word; }
.dp-row:last-child { border-bottom: 0; }
.dp-row .material-symbols-outlined { color: var(--gm-icon); font-size: 20px; }
.dp-row a { color: var(--gm-blue); text-decoration: none; word-break: break-word; }
.dp-section { padding: 14px 18px; border-top: 8px solid #f1f3f4; }
.dp-section h4 { margin: 0 0 10px; font-size: 16px; font-weight: 500; color: var(--gm-strong); }
.dp-attr-group { margin-bottom: 14px; }
.dp-attr-group h5 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--gm-strong); }
.dp-attr { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--gm-text); padding: 3px 0; }
.dp-attr .material-symbols-outlined { font-size: 18px; color: #5f6368; }
.dp-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dp-photo { width: 100%; height: 92px; object-fit: cover; border-radius: 8px; cursor: pointer; }
.muted { color: #80868b; font-size: 14px; }
.review-summary { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.rs-score { text-align: center; }
.rs-num { font-size: 40px; font-weight: 500; color: var(--gm-strong); line-height: 1; }
.rs-count { font-size: 12px; color: #5f6368; margin-top: 4px; }
.rs-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rs-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #5f6368; }
.rs-track { flex: 1; height: 8px; background: #e8eaed; border-radius: 6px; overflow: hidden; }
.rs-fill { height: 100%; background: #fbbc04; }
.rev-list { margin: 6px 0; }
.review { padding: 10px 0; border-top: 1px solid var(--gm-border); }
.rev-top { display: flex; align-items: center; gap: 8px; }
.rev-text { margin: 4px 0; font-size: 14px; color: var(--gm-text); }
.rev-date { font-size: 12px; color: #80868b; }
.rev-form { margin-top: 10px; }
.rev-pick { display: flex; gap: 4px; margin-bottom: 8px; }
.rev-pick .star { font-size: 26px; color: #dadce0; cursor: pointer; }
.rev-pick .star.on { color: #fbbc04; }
.m-rate { color: #fbbc04; font-size: 12px; }
@media (max-width: 760px) { .panel.right { width: 100%; max-width: 100%; } }

/* ===== Rich add/edit listing form (in modal) ===== */
.lf-attrs { margin-top: 4px; }
.lf-attrgroup { margin-bottom: 10px; }
.lf-attrgroup h5 { margin: 10px 0 4px; font-size: 13px; color: var(--gm-strong); font-weight: 600; }
.lf-chk { display: inline-flex; align-items: center; gap: 6px; width: 50%; padding: 3px 0; font-size: 13px; color: var(--gm-text); cursor: pointer; vertical-align: top; }
.lf-chk input { width: auto; margin: 0; }
.lf-rm { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #e5534b; color: #fff; cursor: pointer; line-height: 18px; padding: 0; }
@media (max-width: 520px) { .lf-chk { width: 100%; } }

/* ===== FIX: right detail panel must slide in when shown ===== */
.panel.right.show { transform: translateX(0); }

/* ===== Hover preview card (Google-style) ===== */
.hovercard .mapboxgl-popup-content { padding: 0; border-radius: 14px; box-shadow: var(--gm-shadow-lg); overflow: hidden; pointer-events: none; }
.hovercard .mapboxgl-popup-tip { display: none; }
.hc { width: 232px; background: #fff; }
.hc-photo img { width: 100%; height: 112px; object-fit: cover; display: block; }
.hc-main { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.hc-text { flex: 1; min-width: 0; }
.hc-name { font-size: 15px; font-weight: 500; color: var(--gm-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--gm-text); margin: 2px 0; }
.hc-rating .star { font-size: 12px; color: #dadce0; } .hc-rating .star.on { color: #fbbc04; }
.hc-count { color: #5f6368; }
.hc-cat { font-size: 12px; color: #5f6368; }
.hc-hours { font-size: 12px; color: #188038; margin-top: 2px; }
.hc-actions { display: flex; gap: 6px; }
.hc-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gm-border); display: grid; place-items: center; color: var(--gm-blue); }
.hc-btn .material-symbols-outlined { font-size: 18px; }

.dp-about { white-space: pre-wrap; font-size: 14px; color: var(--gm-text); line-height: 1.55; margin: 0; }
.lf-about { min-height: 96px; }

/* ===== Category pins (Google-style: colored badge with icon) ===== */
.pin {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  cursor: pointer;
  /* No transition on the element itself: Mapbox updates its transform on every
     pan/zoom frame to keep it pinned to its coordinate. Animating that transform
     makes the pin visibly lag behind the map ("jelly" effect). */
  transition: filter .12s ease, box-shadow .12s ease;
}
.pin:hover { filter: brightness(1.15); box-shadow: 0 2px 7px rgba(0,0,0,.55); }
.pin .material-symbols-outlined { font-size: 14px; color: #fff; }

/* ===== Hover card: now interactive ===== */
.hovercard .mapboxgl-popup-content { pointer-events: auto; padding: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--gm-shadow-lg); }
.hc-top { cursor: pointer; }
.hc-top:hover { background: #fafafa; }
.hc-actions { display: flex; gap: 8px; padding: 0 12px 12px; justify-content: flex-end; }
.hc-actions .hc-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gm-border); background: #fff; color: var(--gm-blue); cursor: pointer; display: grid; place-items: center; padding: 0; }
.hc-actions .hc-btn:hover { background: #e8f0fe; }
.hc-actions .hc-btn .material-symbols-outlined { font-size: 18px; }

/* ===== Detail panel tabs (Google-style) ===== */
.dp-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--gm-border);
  padding: 0 10px; margin-top: 8px; overflow-x: auto;
  scrollbar-width: none;
}
.dp-tabs::-webkit-scrollbar { display: none; }
.dp-tab {
  background: transparent; border: 0; cursor: pointer; padding: 11px 10px;
  font-size: 13px; font-weight: 500; color: var(--gm-text); font-family: inherit;
  position: relative; white-space: nowrap; flex: 0 0 auto;
}
.dp-tab:hover { color: var(--gm-strong); }
.dp-tab.active { color: var(--gm-blue); }
.dp-tab.active::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px;
  height: 3px; background: var(--gm-blue); border-radius: 3px 3px 0 0;
}
.dp-tabs-body { }
.dp-tab-pane[hidden] { display: none; }

/* Menu tab: big link block */
.dp-menu-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px;
  background: #e8f0fe; color: var(--gm-blue); text-decoration: none;
  border-radius: 10px; font-weight: 500; font-size: 14px;
}
.dp-menu-link:hover { background: #d7e6fd; }
.dp-menu-link .material-symbols-outlined { font-size: 18px; }

/* Admin-dashboard link button (in profile modal) */
.m-btn-link {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
}
.m-btn-link .material-symbols-outlined { font-size: 18px; }

/* Delete action uses danger red */
.dp-act.danger { color: #d93025; }
.dp-act.danger .material-symbols-outlined { background: #fce8e6; }
.dp-act.danger:hover .material-symbols-outlined { background: #fad2cf; }

/* ===== Your contributions: folders + pagination ===== */
.contrib-folders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
@media (max-width: 480px) { .contrib-folders { grid-template-columns: 1fr; } }
.contrib-folder {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--gm-border); background: #fff; border-radius: 10px;
  padding: 12px 14px; cursor: pointer; text-align: start; font-family: inherit;
}
.contrib-folder:hover { background: var(--gm-hover); border-color: #c7cdd3; }
.contrib-folder .material-symbols-outlined { font-size: 20px; color: var(--gm-blue); }
.contrib-folder .cf-label { flex: 1; font-size: 14px; color: var(--gm-strong); font-weight: 500; }
.contrib-folder .cf-count { font-size: 12px; color: #5f6368; background: #f1f3f4; padding: 2px 8px; border-radius: 999px; }

.contrib-back {
  display: flex; align-items: center; gap: 6px; border: 0; background: transparent;
  color: var(--gm-blue); font-size: 13px; font-weight: 500; cursor: pointer;
  padding: 0 0 12px; font-family: inherit;
}
.contrib-back .material-symbols-outlined { font-size: 18px; }

.contrib-pager {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--gm-border);
  font-size: 13px; color: var(--gm-text);
}
.contrib-pager button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.contrib-pager button:disabled { opacity: .35; cursor: default; }
.m-meta { color: #80868b; font-size: 12px; margin-inline-start: auto; white-space: nowrap; }

/* ===== Location sharing modal ===== */
.loc-loading { display: flex; align-items: center; gap: 10px; color: var(--gm-text); font-size: 14px; padding: 6px 0 4px; }
.loc-loading .spin { animation: bm-spin 1s linear infinite; font-size: 20px; color: var(--gm-blue); }
@keyframes bm-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.loc-coords { background: #f1f3f4; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.loc-dms { font-size: 15px; font-weight: 500; color: var(--gm-strong); font-variant-numeric: tabular-nums; }
.loc-dec { font-size: 12px; color: #5f6368; margin-top: 2px; font-variant-numeric: tabular-nums; }
.loc-gmaps { display: flex; align-items: center; justify-content: center; margin-top: 8px; text-decoration: none; }

/* ===== Drop pin (draggable crosshair-style marker) ===== */
.drop-pin { cursor: grab; color: #d93025; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.drop-pin:active { cursor: grabbing; }
.drop-pin .material-symbols-outlined { font-size: 42px; }

/* ===== Bottom pin info card (Google-style) ===== */
.pin-card {
  position: absolute; left: 50%; bottom: 46px; z-index: 12;
  transform: translate(-50%, 16px); width: min(420px, calc(100vw - 32px));
  background: #fff; border-radius: 14px; box-shadow: var(--gm-shadow-lg);
  display: none; align-items: center; gap: 10px; padding: 12px 14px;
  opacity: 0; transition: opacity .18s, transform .18s;
}
.pin-card.show { display: flex; opacity: 1; transform: translate(-50%, 0); }
.pc-thumb {
  width: 56px; height: 56px; border-radius: 10px; background: #fdecea;
  display: grid; place-items: center; flex: none;
}
.pc-thumb .material-symbols-outlined { font-size: 28px; color: #d93025; }
.pc-body { flex: 1; min-width: 0; }
.pc-title { font-size: 14px; font-weight: 500; color: var(--gm-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-coords { font-size: 12px; color: var(--gm-blue); margin-top: 2px; font-variant-numeric: tabular-nums; }
.pc-act {
  width: 38px; height: 38px; border-radius: 50%; border: 0; background: #e8f0fe; color: var(--gm-blue);
  display: grid; place-items: center; cursor: pointer; flex: none;
}
.pc-act:hover { background: #d7e6fd; }
.pc-act .material-symbols-outlined { font-size: 19px; }
.pc-close {
  position: absolute; top: -10px; right: -10px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--gm-border); background: #fff; color: var(--gm-icon); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.pc-close .material-symbols-outlined { font-size: 15px; }
@media (max-width: 480px) { .pin-card { bottom: 40px; } }

/* ===== Explore strip (Google-style nearby recommendations) ===== */
.explore-toggle {
  position: absolute; right: 64px; bottom: 42px; z-index: 11;
  display: flex; align-items: center; gap: 4px;
  background: #202124; color: #fff; border: 0; border-radius: 20px;
  padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: var(--gm-shadow-lg);
}
.explore-toggle:hover { background: #2c2d30; }
.explore-toggle .material-symbols-outlined { font-size: 18px; }

.explore-strip {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 10;
  display: none; gap: 10px; overflow-x: auto; padding: 12px 14px;
  background: rgba(15, 18, 22, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  scrollbar-width: none;
}
.explore-strip::-webkit-scrollbar { display: none; }
.explore-strip.show { display: flex; }
.explore-empty { color: #c8ccd1; font-size: 13px; padding: 20px 8px; }

.ex-card {
  position: relative; flex: none; width: 150px; height: 110px;
  border-radius: 10px; overflow: hidden; border: 0; padding: 0; cursor: pointer;
  background: #2a2f36;
}
.ex-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ex-noimg { width: 100%; height: 100%; display: grid; place-items: center; }
.ex-noimg .material-symbols-outlined { font-size: 30px; color: #fff; opacity: .9; }
.ex-cat {
  position: absolute; top: 7px; left: 7px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.ex-cat .material-symbols-outlined { font-size: 13px; color: #fff; }
.ex-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 9px 8px;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
  display: flex; flex-direction: column; gap: 2px;
}
.ex-name { color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-meta { color: #d7dadf; font-size: 11px; }
.ex-rate { color: #fbbc04; }
@media (max-width: 480px) { .ex-card { width: 130px; height: 96px; } }

/* ===== Weather card (knows where you are) ===== */
.weather-card {
  position: absolute; top: 71px; left: 11px; z-index: 5;
  width: 240px; background: #fff; border-radius: 12px; box-shadow: var(--gm-shadow-lg);
  display: none; flex-direction: column; cursor: pointer; overflow: hidden;
}
.weather-card.show { display: flex; }
.weather-card:hover { background: #fafafa; }
.wx-top { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; }
.wx-name { flex: 1; font-size: 14px; font-weight: 600; color: var(--gm-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-temp { font-size: 18px; font-weight: 600; color: var(--gm-strong); }
.wx-icon .material-symbols-outlined { font-size: 22px; color: #f9a825; }
.wx-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--gm-border); }
.wx-row-icon {
  width: 28px; height: 28px; border-radius: 50%; background: #fff3cd;
  display: grid; place-items: center; flex: none;
}
.wx-row-icon .material-symbols-outlined { font-size: 16px; color: #b8860b; }
.wx-row-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wx-cond { font-size: 13px; color: var(--gm-strong); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wx-sub { font-size: 11.5px; color: #5f6368; }
.wx-chevron { font-size: 18px; color: var(--gm-icon); flex: none; }
@media (max-width: 560px) { .weather-card { display: none !important; } }

/* ===== Sponsored / Recommended pins ===== */
.dp-sponsored {
  font-size: 11px; font-weight: 700; color: #5f6368; text-transform: none;
  margin-bottom: 4px; display: flex; align-items: center; gap: 4px;
}
.dp-sponsored::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #1a73e8; display: inline-block; }
.hc-sponsored { font-size: 10.5px; font-weight: 700; color: #5f6368; margin-bottom: 2px; }
.m-ad, .ex-ad {
  font-size: 10px; font-weight: 700; color: #5f6368; background: #f1f3f4;
  padding: 1px 6px; border-radius: 4px; vertical-align: middle;
}
.ex-ad { position: absolute; top: 7px; right: 7px; background: rgba(255,255,255,.92); color: #3c4043; z-index: 2; }

/* Ad creative mini-card (Overview tab) — matches the headline/desc/CTA layout */
.ad-card {
  margin: 14px 18px 18px; border: 1px solid var(--gm-border); border-radius: 12px;
  padding: 14px; display: flex; align-items: center; gap: 14px; background: #fafbfc;
}
.ad-text { flex: 1; min-width: 0; }
.ad-headline { font-size: 13.5px; font-weight: 600; color: var(--gm-strong); }
.ad-desc { font-size: 12.5px; color: #5f6368; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ad-cta {
  flex: none; background: #e8f0fe; color: var(--gm-blue); text-decoration: none;
  font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 18px; white-space: nowrap;
}
.ad-cta:hover { background: #d7e6fd; }

/* ===== 9-dot App Launcher (Google-style) ===== */
.app-launcher-btn {
  width: 40px; height: 40px; border: 0; background: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--gm-icon); transition: background .15s;
}
.app-launcher-btn:hover { background: var(--gm-hover); color: var(--gm-strong); }
.app-launcher-img { width: 26px; height: auto; object-fit: contain; display: block; }
.app-launcher-dropdown {
  display: none; position: absolute; top: calc(100% + 10px); right: 0;
  background: #1a1d21; border: 1px solid #2a343f; border-radius: 16px;
  padding: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4); z-index: 30; width: 224px;
}
.app-launcher-dropdown.show { display: block; }
.app-launcher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.app-item {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 4px; border-radius: 10px; text-decoration: none;
  color: #eef2f6; font-size: 11px; text-align: center;
  transition: background .15s; cursor: pointer;
}
.app-item:hover { background: rgba(255,255,255,.08); }
.app-item-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; font-size: 22px; overflow: hidden;
}
.app-item-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
