/* ==========================================================================
   Vgorode Map Engine & Controls (MapLibre, Navigation HUD, Turn-by-Turn, GPS Marker, Map Pins)
   ========================================================================== */

/* ==========================================================================
   2. Рабочая область: Карта + Плавающая панель
   ========================================================================== */
.main-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: calc(100vh - 60px);
  width: 100%;
}

.map-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

#map {
  width: 100%;
  height: 100%;
}

/* Кнопка Моё местоположение */
.map-ctrl-btn {
  position: absolute;
  bottom: 30px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  z-index: 25;
}

.map-ctrl-btn:hover {
  background: var(--bg-hover);
}


/* -------------------------------------------------------------------------- */

/* ==========================================================================
   20. Компактная строка поиска на карте (В НАЧАЛЕ)
   ========================================================================== */
.main-search-trigger-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}
.main-search-trigger-bar:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.09);
}
.search-trigger-icon {
  font-size: 1.35rem;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.search-trigger-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-trigger-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-trigger-search-go {
  background: var(--accent-orange);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  min-height: 40px;
  padding: 9px 16px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--accent-orange-glow);
  transition: all 0.15s ease;
}
.btn-trigger-search-go:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-orange-glow);
}

.search-trigger-arrow {
  color: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Быстрые кнопки городских сервисов в мобильной шторке */
.mobile-services-quick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

.quick-service-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-light, #e2e8f0);
  border-radius: 12px;
  color: var(--text-main, #0f172a);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.quick-service-pill:active {
  transform: scale(0.97);
  background: var(--bg-hover, #f1f5f9);
}

.qsp-icon {
  font-size: 1rem;
  line-height: 1;
}

.qsp-label {
  font-weight: 500;
  color: var(--text-main);
}

/* Сводка выбранного маршрута */
.route-chosen-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 10px 14px;
}
.chosen-summary-route {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.chosen-point {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chosen-text {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-change-route {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.btn-change-route:hover {
  color: var(--text-main);
  background: #f1f5f9;
}


/* -------------------------------------------------------------------------- */

/* ==========================================================================
   14. ПУЛЬСИРУЮЩИЙ GPS МАРКЕР ПОЛЬЗОВАТЕЛЯ НА КАРТЕ
   ========================================================================== */
.user-gps-pulse-marker {
  position: relative;
  width: 22px;
  height: 22px;
}
.gps-pulse-dot {
  width: 14px;
  height: 14px;
  background: #2563eb;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 4px;
  left: 4px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.5);
  z-index: 2;
}
.gps-pulse-ring {
  width: 28px;
  height: 28px;
  background: rgba(37, 99, 235, 0.25);
  border-radius: 50%;
  position: absolute;
  top: -3px;
  left: -3px;
  animation: gpsPulse 2s ease-out infinite;
  z-index: 1;
}
@keyframes gpsPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}


/* -------------------------------------------------------------------------- */

/* ========================================================
   TURN-BY-TURN НАВИГАТОР (HUD В СТИЛЕ ЯНДЕКС / GOOGLE)
   ======================================================== */

/* Плавающая кнопка вызова навигатора на карте */
.btn-map-navigator {
  position: absolute;
  top: 16px;
  right: 14px;
  z-index: 25;
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 22px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.45);
  transition: all 0.18s ease;
  user-select: none;
}

.btn-map-navigator:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.55);
}

.btn-map-navigator:active {
  transform: translateY(0) scale(0.98);
}

.nav-btn-icon {
  font-size: 1.1rem;
}

.nav-btn-text {
  letter-spacing: normal;
}

/* ========================================================================== */
/* ПРЕМИУМ 3D TURN-BY-TURN НАВИГАТОР (СТИЛЬ ЯНДЕКС / GOOGLE MAPS)             */
/* ========================================================================== */

/* Верхний HUD-баннер директив маневра */
.nav-hud-top {
  position: fixed !important;
  top: calc(12px + env(safe-area-inset-top, 0px)) !important;
  left: 12px !important;
  right: 12px !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  z-index: 100050 !important;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  color: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-sizing: border-box;
  animation: slideDownNav 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownNav {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-hud-maneuver-box {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.nav-maneuver-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.28), rgba(5, 150, 105, 0.42));
  border: 1.5px solid rgba(52, 211, 153, 0.6);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s ease;
}

.nav-hud-maneuver-box:hover .nav-maneuver-icon-wrap {
  transform: scale(1.05);
}

.nav-maneuver-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.nav-maneuver-dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-maneuver-dist {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #38bdf8;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-speed-limit-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #ef4444;
  color: #0f172a;
  font-size: 0.74rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.nav-maneuver-street {
  font-size: 0.96rem;
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.nav-sub-maneuver {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: #94a3b8;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-sub-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.nav-sub-icon {
  font-size: 1.15rem;
  color: #e2e8f0;
  font-weight: bold;
}

/* Плавающая кнопка возврата по курсу */
.btn-nav-recenter-floating {
  position: fixed !important;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
  right: 16px !important;
  z-index: 100040 !important;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  border: 1.5px solid #38bdf8;
  color: #ffffff;
  border-radius: 28px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulseRecenter 2s infinite;
}

@keyframes pulseRecenter {
  0%, 100% { box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35); }
  50% { box-shadow: 0 8px 30px rgba(56, 189, 248, 0.65); transform: translateY(-2px); }
}

.btn-nav-recenter-floating:hover {
  background: #0284c7;
  border-color: #ffffff;
}

.recenter-icon {
  font-size: 1.1rem;
}

/* Нижний HUD-бар навигатора */
.nav-hud-bottom {
  position: fixed !important;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  left: 12px !important;
  right: 12px !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  z-index: 100050 !important;
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  color: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  animation: slideUpNav 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpNav {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-bottom-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.nav-speed-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #ef4444;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.nav-speed-badge.speeding {
  background: #ef4444;
  color: #ffffff;
  border-color: #ffffff;
  animation: blinkSpeed 0.8s infinite alternate;
}

@keyframes blinkSpeed {
  from { transform: scale(1); }
  to { transform: scale(1.1); box-shadow: 0 0 18px #ef4444; }
}

.nav-speed-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
}

.nav-speed-unit {
  font-size: 0.65rem;
  color: inherit;
  opacity: 0.8;
  margin-top: -1px;
}

.nav-eta-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-eta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nav-eta-time {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #10b981;
  line-height: 1.1;
}

.nav-eta-arrival {
  font-size: 0.92rem;
  font-weight: 600;
  color: #94a3b8;
}

.nav-eta-sub {
  font-size: 0.84rem;
  color: #cbd5e1;
  white-space: nowrap;
}

.nav-bottom-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-nav-action {
  min-height: 42px;
  min-width: 42px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-nav-action:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-nav-action.active {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #a7f3d0;
}

.btn-nav-action.btn-nav-close {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-weight: 700;
}

.btn-nav-action.btn-nav-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* Маршрутный лист (Itinerary Sheet) */
.nav-itinerary-sheet {
  position: absolute;
  bottom: 86px;
  left: 14px;
  right: 14px;
  max-width: 540px;
  margin: 0 auto;
  max-height: 52vh;
  z-index: 48;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpNav 0.22s ease-out;
}

.itinerary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.itinerary-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.itinerary-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.itinerary-meta {
  font-size: 0.82rem;
  color: #94a3b8;
}

.btn-close-itinerary {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.itinerary-steps-container {
  padding: 8px 12px;
  overflow-y: auto;
  max-height: calc(52vh - 65px);
}

.itinerary-step-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.itinerary-step-item:last-child {
  border-bottom: none;
}

.itinerary-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.itinerary-step-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.itinerary-step-street {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f1f5f9;
}

.itinerary-step-desc {
  font-size: 0.80rem;
  color: #94a3b8;
}

.itinerary-step-dist {
  font-size: 0.88rem;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
}

/* Кнопка навигатора в карточке активной поездки */
.btn-trip-nav {
  background: #ff6b00 !important;
  color: #ffffff !important;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
  transition: all 0.15s ease;
}

.btn-trip-nav:hover {
  background: #ea580c !important;
}

/* 3D-стрелка автомобиля водителя (Navigation Vehicle Puck) */
.nav-vehicle-puck {
  width: 48px;
  height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.nav-puck-halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  animation: pulseNavHalo 2s infinite ease-out;
}

@keyframes pulseNavHalo {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.nav-puck-body {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  z-index: 2;
  transition: transform 0.2s linear;
}

.nav-puck-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 12px solid #ffffff;
  margin-top: -3px;
}

/* Режим навигации: карта на весь экран, панели и нижние панели навигации скрыты */
body.nav-active .side-panel,
body.nav-active #btn-my-location,
body.nav-active #btn-toggle-navigator,
body.nav-active #mobile-bottom-nav,
body.nav-active #driver-bottom-nav,
body.nav-active .mobile-bottom-nav,
body.nav-active.app-mode-passenger #mobile-bottom-nav,
body.nav-active.app-mode-driver #driver-bottom-nav,
body.nav-active.app-mode-passenger .mobile-bottom-nav,
body.nav-active.app-mode-driver .mobile-bottom-nav,
body.nav-active .map-car-marker,
body.nav-active .custom-map-marker.marker-a,
body.nav-active .maplibregl-ctrl-bottom-right,
body.nav-active .maplibregl-ctrl-top-right {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.nav-active .nav-hud-bottom {
  position: fixed !important;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 100050 !important;
}

body.nav-active .nav-vehicle-puck { width: 64px; height: 64px; }
body.nav-active .nav-puck-body {
  width: 40px;
  height: 40px;
  background: linear-gradient(160deg, #3b82f6, #1d4ed8);
  border-width: 3px;
}
body.nav-active .nav-puck-arrow {
  border-left-width: 8px;
  border-right-width: 8px;
  border-bottom-width: 15px;
}

body.nav-active .nav-maneuver-icon-wrap svg {
  animation: navIconPop 0.3s ease;
}

@keyframes navIconPop {
  from { transform: scale(0.7); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
  .nav-hud-bottom {
    padding: 8px 10px !important;
    gap: 8px !important;
  }
  .nav-speed-badge {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }
  .nav-speed-val {
    font-size: 1rem !important;
  }
  .nav-eta-time {
    font-size: 1.15rem !important;
  }
  .btn-nav-action {
    height: 36px !important;
    min-width: 35px !important;
    padding: 0 7px !important;
    font-size: 0.8rem !important;
  }
  .nav-maneuver-dist { font-size: 1.25rem !important; }
}






/* -------------------------------------------------------------------------- */

/* ==========================================================================
   ИНТЕРАКТИВНЫЕ ТОЧКИ НА КАРТЕ ДЛЯ ВКЛАДОК (АРЕНДА, КАФЕ, ОТДЫХ)
   ========================================================================== */
.catalog-map-pin {
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  z-index: 15;
  user-select: none;
}

.catalog-map-pin:hover,
.catalog-map-pin.active {
  transform: scale(1.15) translateY(-2px);
  z-index: 60;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.pin-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
  border: 2px solid #ffffff;
}

.cat-pin-rent .pin-bubble {
  background: #10b981;
  color: #ffffff;
}

.cat-pin-cafe .pin-bubble {
  background: #f97316;
  color: #ffffff;
}

.cat-pin-leisure .pin-bubble {
  background: #2563eb;
  color: #ffffff;
}

.pin-icon {
  font-size: 0.92rem;
  line-height: 1;
}

.pin-text {
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pin-anchor-pointer {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  margin: -1px auto 0;
}

.cat-pin-rent .pin-anchor-pointer {
  border-top: 6px solid #10b981;
}

.cat-pin-cafe .pin-anchor-pointer {
  border-top: 6px solid #f97316;
}

.cat-pin-leisure .pin-anchor-pointer {
  border-top: 6px solid #2563eb;
}

/* Кружки такси на карте без километров, с ценой при наведении */
.map-taxi-circle-marker {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease;
}

.map-taxi-circle-marker:hover {
  transform: scale(1.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3) !important;
  z-index: 50;
}

.map-taxi-circle-marker:hover .taxi-marker-tooltip {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(-2px) !important;
}

