/* ==========================================================================
   КЛАСТЕР: СТИЛИ ХАБА ГРУЗОПЕРЕВОЗОК И СПЕЦТЕХНИКИ (APPLE GLASS & HIGH-TECH)
   ========================================================================== */

/* 1. Главный тумблер переключения режимов платформы (Liquid Glass Segmented Control) */
.hub-mode-switcher-shelf {
  max-width: 1280px;
  width: 100%;
  margin: 12px auto 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.hub-mode-segmented-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(240, 253, 244, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 4px;
  border-radius: 9999px;
  border: 1.5px solid rgba(16, 185, 129, 0.26);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.07), inset 0 1px 2px rgba(255, 255, 255, 0.95);
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.platform-mode-transport .hub-mode-segmented-control {
  background: rgba(255, 251, 235, 0.88) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08), inset 0 1px 2px rgba(255, 255, 255, 0.95) !important;
}

.hub-mode-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  outline: none;
}

.hub-mode-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-mode-btn:hover .hub-mode-btn-icon {
  transform: scale(1.08);
}

/* === ВЕЩИ И РЕСУРСЫ: НЕЖНЫЙ ИЗУМРУДНЫЙ ЛАЙТ (LIGHT EMERALD) === */
#mode-btn-lots:hover {
  color: #047857;
  background: rgba(16, 185, 129, 0.07);
}

#mode-btn-lots.active,
body:not(.platform-mode-transport) #mode-btn-lots.active {
  color: #065f46 !important;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.96) 0%, rgba(209, 250, 229, 0.85) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.38) !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.16), 0 1px 3px rgba(16, 185, 129, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;
  font-weight: 700 !important;
}

#mode-btn-lots.active .hub-mode-btn-icon svg,
body:not(.platform-mode-transport) #mode-btn-lots.active .hub-mode-btn-icon svg {
  stroke: #059669 !important;
  filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.25));
}

#mode-btn-lots:not(.active) .hub-mode-btn-icon svg {
  stroke: #64748b;
}

/* === ГРУЗОПЕРЕВОЗКИ: НЕЖНО-ЯНТАРНЫЙ ЛАЙТОВЫЙ ОТТЕНОК (LIGHT AMBER GOLD) === */
#mode-btn-transport:hover {
  color: #92400e;
  background: rgba(245, 158, 11, 0.07);
}

#mode-btn-transport.active,
body.platform-mode-transport #mode-btn-transport.active {
  color: #92400e !important;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.96) 0%, rgba(253, 230, 138, 0.82) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.42) !important;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.15), 0 1px 3px rgba(217, 119, 6, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;
  font-weight: 700 !important;
}

#mode-btn-transport.active .hub-mode-btn-icon svg,
body.platform-mode-transport #mode-btn-transport.active .hub-mode-btn-icon svg {
  stroke: #d97706 !important;
  filter: drop-shadow(0 1px 2px rgba(217, 119, 6, 0.25));
}

#mode-btn-transport:not(.active) .hub-mode-btn-icon svg {
  stroke: #64748b;
}

/* Бейджик «Хаб» */
#mode-btn-transport .hub-mode-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.18);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.3);
  letter-spacing: 0.02em;
  margin-left: 2px;
  transition: all 0.2s ease;
}

#mode-btn-transport.active .hub-mode-badge-live,
body.platform-mode-transport #mode-btn-transport.active .hub-mode-badge-live {
  background: rgba(217, 119, 6, 0.18) !important;
  color: #78350f !important;
  border-color: rgba(217, 119, 6, 0.32) !important;
}

#mode-btn-transport .hub-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  animation: pulseLiveDot 1.8s infinite ease-in-out;
}

#mode-btn-transport.active .hub-live-dot,
body.platform-mode-transport #mode-btn-transport.active .hub-live-dot {
  background: #d97706 !important;
}

@keyframes pulseLiveDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hub-mode-cta-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-add-vehicle-hero {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.btn-add-vehicle-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

/* 2. Баннер Хаба Грузоперевозок (Showcase Banner) */
.transport-hero-banner {
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.85) 0%, rgba(240, 253, 250, 0.85) 100%);
  border: 1.5px solid rgba(199, 210, 254, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 16px 22px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.08);
}

.transport-hero-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.transport-hero-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 3. Карточки техники (Transport Cards) */
.transport-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
  width: 100%;
}

.vehicle-card {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}

.vehicle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -8px rgba(15, 23, 42, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
}

.vehicle-card-media {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f1f5f9;
  overflow: hidden;
}

.vehicle-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vehicle-card:hover .vehicle-card-img {
  transform: scale(1.03);
}

.vehicle-live-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.vehicle-live-badge.is-neighbor {
  background: rgba(5, 150, 105, 0.85);
  border-color: rgba(52, 211, 153, 0.4);
}

.vehicle-views-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  padding: 4px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 750;
  border: 1px solid rgba(255, 255, 255, 0.22);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.vehicle-views-badge svg {
  color: #38bdf8;
}

.category-chip .cat-chip-thumb,
.category-chip .cat-mini-render {
  width: 26px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  margin-right: 4px;
}

.vehicle-type-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.vehicle-card-body {
  padding: 14px 15px 16px 15px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vehicle-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.vehicle-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
  min-height: 39px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

/* Премиальная капсула базирования борта в стиле Apple Glass */
.vehicle-location-row {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  font-size: 11.5px;
  color: #475569;
  background: rgba(248, 250, 252, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 3px 8px 3px 5px;
  border-radius: 9999px;
  margin-bottom: 9px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.vehicle-card:hover .vehicle-location-row {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 3px 8px -1px rgba(217, 119, 6, 0.12), inset 0 1px 0 #ffffff;
  transform: translateY(-0.5px);
}

.vehicle-loc-pin-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
  flex-shrink: 0;
}

.vehicle-loc-pin-wrap svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
}

.vehicle-location-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.vehicle-loc-settlement {
  font-weight: 750;
  color: #0f172a;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  max-width: 150px;
}

.vehicle-loc-divider {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0.65;
  user-select: none;
}

.vehicle-loc-district {
  color: #64748b;
  font-weight: 550;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
}

.vehicle-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: rgba(248, 250, 252, 0.9);
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 10px;
  text-align: center;
}

.vehicle-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.vehicle-spec-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.vehicle-spec-value {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.vehicle-card-desc {
  font-size: 12.5px;
  color: #475569;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 35px;
  max-height: 35px;
}

.vehicle-equip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 18px;
}

.vehicle-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(241, 245, 249, 0.9);
  min-width: 0;
}

.vehicle-price-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.vehicle-price-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vehicle-price-value {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  letter-spacing: -0.015em;
  margin-top: 2px;
}

.vehicle-price-value.is-points {
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.vehicle-card-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.vehicle-btn-map {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(203, 213, 225, 0.8);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.vehicle-btn-map:hover {
  background: #ffffff;
  border-color: #f59e0b;
  color: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.vehicle-btn-order {
  height: 34px;
  padding: 0 14px;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(217, 119, 6, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vehicle-btn-order:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
}

.btn-request-vehicle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.2);
}

.btn-request-vehicle:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(79, 70, 229, 0.3);
}

/* 4. Кастомные ультра-премиальные метки техники и попапы на карте (VisionOS / Apple Glass) */
.vehicle-map-pin-wrap {
  width: 46px;
  height: 56px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  perspective: 600px;
}

/* Сонарный импульс радара при наведении (как в разделе вещей) — В покое 0% движения/анимации */
.vehicle-map-pin-wrap::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.18);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.2s ease;
}

.vehicle-map-pin-wrap.is-neighbor-wrap::before {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
}

.vehicle-map-pin-wrap.is-my-vehicle-wrap::before {
  background: rgba(6, 182, 212, 0.22);
  border-color: rgba(6, 182, 212, 0.55);
}

.vehicle-map-pin-wrap:hover::before {
  opacity: 1;
  animation: superPinSonar 1.8s infinite ease-out;
}

.vehicle-pin-ground-shadow {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 6px;
  background: rgba(15, 23, 42, 0.28);
  border-radius: 50%;
  filter: blur(2px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.vehicle-map-pin-elite {
  width: 40px;
  height: 40px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2.5px solid #d97706;
  box-shadow: 0 8px 18px -3px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 1px 2px #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.vehicle-map-pin-elite.is-neighbor {
  border-color: #059669;
  box-shadow: 0 8px 18px -3px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 1px 2px #ffffff;
}

.vehicle-map-pin-elite.is-manipulator {
  border-color: #d97706;
  box-shadow: 0 8px 18px -3px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 1px 2px #ffffff;
}

.vehicle-map-pin-elite.is-dump {
  border-color: #b45309;
  box-shadow: 0 8px 18px -3px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 1px 2px #ffffff;
}

.vehicle-map-pin-elite.is-evacuator {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ffffff;
  box-shadow: 0 8px 24px -2px rgba(239, 68, 68, 0.65), 0 0 0 1.5px rgba(239, 68, 68, 0.35), inset 0 1.5px 2px rgba(255, 255, 255, 0.6);
}

.vehicle-pin-inner-icon {
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
}

.vehicle-map-pin-elite.is-neighbor .vehicle-pin-inner-icon {
  color: #059669;
}

.vehicle-map-pin-elite.is-manipulator .vehicle-pin-inner-icon {
  color: #d97706;
}

.vehicle-map-pin-elite.is-dump .vehicle-pin-inner-icon {
  color: #b45309;
}

.vehicle-map-pin-elite.is-evacuator .vehicle-pin-inner-icon {
  color: #ffffff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.vehicle-pin-status-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: rotate(45deg);
  z-index: 3;
}

.vehicle-pin-status-dot.is-evacuator-dot {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

/* Сирена / Мигалка SOS Эвакуатора */
.vehicle-pin-siren-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 850;
  padding: 2px 6.5px;
  border-radius: 20px;
  border: 1.2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
  white-space: nowrap;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 3.5px;
  pointer-events: none;
  letter-spacing: -0.01em;
  animation: evacuatorBadgeGlow 2.2s infinite ease-in-out;
}

.vehicle-pin-siren-badge .siren-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fef08a;
  box-shadow: 0 0 6px #fef08a;
  animation: sirenPulseDot 0.8s infinite alternate ease-in-out;
}

@keyframes sirenPulseDot {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 1; }
}

@keyframes evacuatorBadgeGlow {
  0%, 100% { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 4px 18px rgba(239, 68, 68, 0.85), 0 0 0 3px rgba(239, 68, 68, 0.25); }
}

.vehicle-map-pin-wrap.is-evacuator-wrap::before {
  border-color: rgba(239, 68, 68, 0.75);
}

.vehicle-map-pin-wrap:hover .vehicle-map-pin-elite {
  transform: rotate(-45deg) translate(3px, -3px) scale(1.12);
  box-shadow: 0 12px 28px -3px rgba(15, 23, 42, 0.24), 0 0 0 2px rgba(255, 255, 255, 1) !important;
}

.vehicle-map-pin-wrap:hover .vehicle-pin-ground-shadow {
  transform: translateX(-50%) scale(1.25);
  opacity: 0.7;
}

/* ==================== VISIONOS / APPLE GLASS POPUP ДЛЯ ТЕХНИКИ ==================== */
.transport-glass-popup {
  pointer-events: auto !important;
  touch-action: auto !important;
  -webkit-tap-highlight-color: transparent !important;
}

.transport-glass-popup .leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(28px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%) !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 42px -8px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.95), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  color: #0f172a !important;
}

.transport-glass-popup .leaflet-popup-tip-container {
  width: 22px;
  height: 11px;
}

.transport-glass-popup .leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  box-shadow: none !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  border-top: 0 !important;
  border-left: 0 !important;
}

.transport-glass-popup .leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.3 !important;
  width: 320px !important;
  max-width: calc(100vw - 28px) !important;
}

.transport-glass-popup .leaflet-popup-close-button {
  color: #64748b !important;
  font-size: 15px !important;
  top: 9px !important;
  right: 9px !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
  z-index: 20 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
}

.transport-glass-popup .leaflet-popup-close-button:hover {
  color: #0f172a !important;
  background: #ffffff !important;
  transform: scale(1.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}

/* 5. Модальные окна: Заказ перевозки & Добавить технику */
.transport-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.transport-modal-card {
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-sizing: border-box;
  position: relative;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.transport-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.transport-modal-title {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
}

.transport-modal-close {
  background: rgba(241, 245, 249, 0.85);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s;
}

.transport-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.transport-field-group {
  margin-bottom: 14px;
}

.transport-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

.transport-input,
.transport-select,
.transport-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--font-main);
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
  transition: all 0.2s;
  outline: none;
}

.transport-input:focus,
.transport-select:focus,
.transport-textarea:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.transport-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.transport-shield-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(238, 242, 255, 0.8);
  border: 1px solid rgba(199, 210, 254, 0.8);
  border-radius: 12px;
  font-size: 12px;
  color: #3730a3;
  margin-top: 14px;
  margin-bottom: 18px;
}

/* Адаптивность под мобильные устройства и экраны Apple iPhone/iPad */
@media (max-width: 768px) {
  .hub-mode-switcher-shelf {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 10px;
    padding: 0 12px;
  }

  .hub-mode-segmented-control {
    width: 100%;
    display: flex;
  }

  .hub-mode-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12.5px;
  }

  .btn-add-vehicle-hero {
    width: 100%;
    justify-content: center;
  }

  .transport-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .vehicle-card {
    border-radius: 16px !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
  }

  .vehicle-card-media {
    height: 125px !important;
  }

  .vehicle-card-body {
    padding: 8px 8px 10px 8px !important;
  }

  .vehicle-title {
    font-size: 13px !important;
    line-height: 1.28 !important;
    min-height: 33px !important;
    max-height: 33px !important;
    margin-bottom: 3px !important;
  }

  .vehicle-location-row {
    font-size: 10.5px !important;
    margin-bottom: 5px !important;
  }

  .vehicle-specs-grid {
    padding: 4px 2px !important;
    gap: 2px !important;
    margin-bottom: 5px !important;
  }

  .vehicle-spec-label {
    font-size: 8.5px !important;
  }

  .vehicle-spec-value {
    font-size: 10.5px !important;
  }

  .vehicle-equip-row,
  .vehicle-equip-chips,
  .vehicle-card-desc {
    display: none !important;
  }

  .vehicle-card-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding-top: 6px !important;
  }

  .vehicle-price-col {
    width: 100% !important;
  }

  .vehicle-price-label {
    font-size: 8.5px !important;
  }

  .vehicle-price-value {
    font-size: 12px !important;
  }

  .vehicle-card-btn-group {
    width: 100% !important;
    display: flex !important;
    gap: 5px !important;
  }

  .vehicle-btn-order {
    flex: 1 !important;
    justify-content: center !important;
    height: 28px !important;
    padding: 0 6px !important;
    font-size: 10.5px !important;
  }

  .vehicle-btn-map, .vehicle-btn-info {
    width: 28px !important;
    height: 28px !important;
  }

  .transport-modal-card {
    padding: 18px;
    border-radius: 20px;
  }

  .transport-two-col {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ==========================================================================
   СТИЛИ РЕЖИМА ХАБА ГРУЗОПЕРЕВОЗОК (BODY.PLATFORM-MODE-TRANSPORT)
   Премиальная палитра: Янтарно-золотой титан (Titanium Amber Gold & Slate)
   ========================================================================== */

/* 0. Атмосферное фоновое свечение раздела грузоперевозок */
body.platform-mode-transport {
  background: radial-gradient(circle at 50% -120px, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.03) 45%, #f8fafc 90%) !important;
}

/* 1. Премиальная стеклянная шапка хаба грузоперевозок (Amber Gold Frosted Glass) */
body.platform-mode-transport #header {
  background: rgba(255, 252, 245, 0.88) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.24) !important;
  box-shadow: 0 4px 28px rgba(245, 158, 11, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 1.1 Точка бренда «КЛАСТЕР.» трансформируется в сияющую янтарно-золотую сферу */
body.platform-mode-transport .logo-point {
  background: radial-gradient(circle at 35% 35%, #fde68a, #f59e0b 60%, #b45309 100%) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.9), 0 0 4px #f59e0b !important;
}

body.platform-mode-transport .logo-area-elite:hover .logo-title {
  color: #b45309 !important;
}

body.platform-mode-transport .logo-area-elite:hover .logo-point {
  box-shadow: 0 0 20px rgba(245, 158, 11, 1), 0 0 8px #f59e0b !important;
}

/* 1.2 Дескриптор в шапке меняется на "Хаб грузоперевозок" в безупречном титановом стекле */
body.platform-mode-transport .logo-area-elite::after {
  content: 'Хаб грузоперевозок' !important;
  color: #92400e !important;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.85) 0%, rgba(253, 230, 138, 0.65) 100%) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border: 0.5px solid rgba(245, 158, 11, 0.45) !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.16), inset 0 0.5px 0.5px rgba(255, 255, 255, 0.95) !important;
  font-weight: 700 !important;
}

body.platform-mode-transport .logo-area-elite:hover::after {
  background: linear-gradient(135deg, rgba(254, 243, 199, 1) 0%, rgba(253, 230, 138, 0.85) 100%) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  color: #78350f !important;
  box-shadow: 0 3px 12px rgba(217, 119, 6, 0.22), inset 0 0.5px 0.5px rgba(255, 255, 255, 1) !important;
}

/* 1.1 Активный тумблер в режиме грузоперевозок: Нежно-янтарный лайтовый оттенок */
body.platform-mode-transport #mode-btn-transport.active {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.96) 0%, rgba(253, 230, 138, 0.85) 100%) !important;
  color: #92400e !important;
  border: 1px solid rgba(245, 158, 11, 0.42) !important;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.15), 0 1px 3px rgba(217, 119, 6, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.95) !important;
  font-weight: 700 !important;
}

body.platform-mode-transport #mode-btn-transport.active .hub-mode-btn-icon svg {
  stroke: #d97706 !important;
  filter: drop-shadow(0 1px 2px rgba(217, 119, 6, 0.25));
}

body.platform-mode-transport #mode-btn-transport .hub-mode-badge-live,
body.platform-mode-transport #mode-btn-transport.active .hub-mode-badge-live {
  background: rgba(217, 119, 6, 0.18) !important;
  color: #78350f !important;
  border-color: rgba(217, 119, 6, 0.32) !important;
}

body.platform-mode-transport #mode-btn-transport .hub-live-dot,
body.platform-mode-transport #mode-btn-transport.active .hub-live-dot {
  background: #d97706 !important;
}

/* 1.2 Умный гео-баннер в режиме грузоперевозок: Нежный теплый медово-золотой оттенок */
body.platform-mode-transport .smart-geo-badge-icon {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.95) 0%, rgba(253, 230, 138, 0.75) 100%) !important;
  color: #b45309 !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}

body.platform-mode-transport .smart-geo-title strong {
  color: #b45309 !important;
}

body.platform-mode-transport .smart-geo-dist-badge {
  background: rgba(254, 243, 199, 0.75) !important;
  color: #78350f !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

body.platform-mode-transport .smart-geo-btn-switch {
  background: linear-gradient(135deg, #fde047 0%, #d97706 100%) !important;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.2) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(120, 53, 15, 0.25) !important;
}

body.platform-mode-transport .smart-geo-btn-switch:hover {
  background: linear-gradient(135deg, #fef08a 0%, #ca8a04 100%) !important;
}

body.platform-mode-transport .btn-add-vehicle-hero,
.btn-add-transport-theme {
  background: linear-gradient(135deg, #fde047 0%, #d97706 100%) !important;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.22) !important;
  border: 1px solid rgba(254, 243, 199, 0.8) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(120, 53, 15, 0.3) !important;
}

/* 2. Активные чипы категорий транспорта: Софтовый медово-золотой шелк с жидким стеклом */
body.platform-mode-transport .category-chip.active {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.98) 0%, rgba(253, 230, 138, 0.88) 100%) !important;
  color: #78350f !important;
  border: 1.5px solid rgba(217, 119, 6, 0.35) !important;
  box-shadow: 0 3px 12px rgba(217, 119, 6, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  font-weight: 750 !important;
}

body.platform-mode-transport .category-chip.active .cat-chip-icon {
  stroke: #b45309 !important;
}

/* 3. Поисковая строка в режиме перевозок: Мягкий золотистый фокус */
body.platform-mode-transport .search-input-wrapper:focus-within {
  border-color: rgba(217, 119, 6, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12) !important;
}

body.platform-mode-transport .search-icon-svg {
  stroke: #b45309 !important;
}

body.platform-mode-transport .smart-search-badge-hint {
  background: rgba(254, 243, 199, 0.75) !important;
  color: #78350f !important;
  border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

/* 4. Активные кнопки радиуса и сортировки: Нежные медовые пилюли */
body.platform-mode-transport .radius-chip.active {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.98) 0%, rgba(253, 230, 138, 0.88) 100%) !important;
  border: 1.5px solid rgba(217, 119, 6, 0.35) !important;
  color: #78350f !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  font-weight: 750 !important;
}

body.platform-mode-transport .sort-buttons-row button.active {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.98) 0%, rgba(253, 230, 138, 0.88) 100%) !important;
  border: 1.5px solid rgba(217, 119, 6, 0.35) !important;
  color: #78350f !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12) !important;
  font-weight: 750 !important;
}

body.platform-mode-transport .sort-buttons-row button.active svg {
  stroke: #b45309 !important;
}

/* 5. Плавающая кнопка (Floating Action Button):
   Цвет меняется на нежный теплый янтарный шелк, текст "Добавить борт" */
body.vehicle-page-body #floating-nav-dock,
body.vehicle-page-body .floating-nav-dock,
body.vehicle-page-body #dock-add-btn,
body.vehicle-page-body .btn-dock-add,
body.vehicle-page-body #btn-dock-top,
body.vehicle-page-body .btn-dock-top,
body.vehicle-page-body .btn-dock-transport {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

body.platform-mode-transport .floating-nav-dock:hover {
  border-color: rgba(245, 158, 11, 0.38) !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42), 0 0 20px rgba(245, 158, 11, 0.2) !important;
}

body.platform-mode-transport #floating-nav-dock #dock-add-btn,
body.platform-mode-transport .btn-dock-add,
.btn-dock-add.btn-dock-transport {
  background: linear-gradient(135deg, #fde047 0%, #d97706 100%) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(120, 53, 15, 0.3) !important;
  box-shadow: 0 8px 22px rgba(217, 119, 6, 0.25), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

body.platform-mode-transport #floating-nav-dock #dock-add-btn:hover,
body.platform-mode-transport .btn-dock-add:hover,
.btn-dock-add.btn-dock-transport:hover {
  background: linear-gradient(135deg, #fef08a 0%, #ca8a04 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.35) !important;
}

/* 6. Баннер О платформе в режиме перевозок */
body.platform-mode-transport .platform-showcase-banner {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.94) 0%, rgba(254, 243, 199, 0.68) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.22) !important;
  box-shadow: 0 8px 24px -6px rgba(217, 119, 6, 0.08) !important;
}

body.platform-mode-transport .platform-showcase-banner .banner-action-btn {
  background: linear-gradient(135deg, #fde047 0%, #d97706 100%) !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(120, 53, 15, 0.28) !important;
}

body.platform-mode-transport .platform-showcase-banner .banner-tech-chip {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(245, 158, 11, 0.22) !important;
  color: #78350f !important;
}

body.platform-mode-transport .platform-showcase-banner .banner-tech-chip svg {
  stroke: #b45309 !important;
}

/* 7. Кнопка заказа борта в карточке */
body.platform-mode-transport .btn-request-vehicle:not([title]) {
  background: linear-gradient(135deg, #fde047 0%, #d97706 100%) !important;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.2) !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(120, 53, 15, 0.25) !important;
}

body.platform-mode-transport .btn-request-vehicle:not([title]):hover {
  background: linear-gradient(135deg, #fef08a 0%, #ca8a04 100%) !important;
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3) !important;
}

.transport-modal-card .btn-primary {
  background: linear-gradient(135deg, #fde047 0%, #d97706 100%) !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.22) !important;
  border: none !important;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(120, 53, 15, 0.25) !important;
}

.transport-modal-card .btn-primary:hover {
  background: linear-gradient(135deg, #fef08a 0%, #ca8a04 100%) !important;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35) !important;
}

/* ==================== APPLE / IOS GLASS TOGGLE SWITCH ==================== */
.apple-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  vertical-align: middle;
}

.apple-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
  margin: 0;
  pointer-events: none;
}

.apple-switch-slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 9999px;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid rgba(203, 213, 225, 0.85);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.apple-switch-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 2px;
  top: 1.5px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.22), 0 0 1px rgba(15, 23, 42, 0.12);
}

.apple-switch input:checked + .apple-switch-slider {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #059669;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25), 0 2px 8px rgba(16, 185, 129, 0.25);
}

.apple-switch input:checked + .apple-switch-slider::before {
  transform: translateX(18px);
}

.apple-switch:hover .apple-switch-slider {
  border-color: #94a3b8;
}

.apple-switch input:checked:hover + .apple-switch-slider {
  border-color: #047857;
}

.apple-switch:active .apple-switch-slider::before {
  width: 24px;
}

/* Mini version for compact tables */
.apple-switch.apple-switch-sm {
  width: 38px;
  height: 22px;
}

.apple-switch.apple-switch-sm .apple-switch-slider::before {
  height: 16px;
  width: 16px;
  left: 1.5px;
  top: 1.5px;
}

.apple-switch.apple-switch-sm input:checked + .apple-switch-slider::before {
  transform: translateX(15px);
}

.apple-switch.apple-switch-sm:active .apple-switch-slider::before {
  width: 19px;
}

/* Apple Glass Локация борта и карта */
.veh-hero-loc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(241, 245, 249, 0.9);
  flex-wrap: wrap;
}

.veh-hero-loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #334155;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  padding: 4px 11px 4px 6px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.035), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.veh-hero-loc-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
  flex-shrink: 0;
}

.veh-hero-loc-pin svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}

.veh-hero-loc-settlement {
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.veh-hero-loc-divider {
  color: #94a3b8;
  font-weight: 700;
  opacity: 0.65;
}

.veh-hero-loc-district {
  font-weight: 600;
  color: #b45309;
  background: rgba(245, 158, 11, 0.09);
  border: 1px solid rgba(245, 158, 11, 0.22);
  padding: 1.5px 7px;
  border-radius: 9999px;
  font-size: 11.5px;
}

.veh-hero-dist-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 3.5px 9px;
  border-radius: 9999px;
  font-size: 12px;
}

.veh-map-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.veh-map-header-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.8) 0%, rgba(253, 230, 138, 0.5) 100%);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15), inset 0 1px 0 #ffffff;
}

.veh-map-geo-pill {
  font-size: 12px;
  font-weight: 700;
  color: #b45309;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 2.5px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.veh-map-status-pill {
  font-size: 11.5px;
  font-weight: 650;
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 2.5px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.veh-map-all-btn {
  font-size: 12.5px;
  font-weight: 700;
  color: #d97706;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.veh-map-all-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(217, 119, 6, 0.35);
  transform: translateY(-1px);
}

.veh-map-coverage-footer {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
  background: rgba(248, 250, 252, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 8px 12px;
  border-radius: 12px;
}

body.dark-theme .veh-hero-loc-pill {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}
body.dark-theme .veh-hero-loc-settlement { color: #f8fafc; }
body.dark-theme .veh-map-coverage-footer {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

/* ==================== SOS / EMERGENCY TOW & HELP STYLES ==================== */
.category-chip.sos-category-chip {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.12) 0%, rgba(245, 158, 11, 0.14) 100%) !important;
  border: 1.5px solid rgba(225, 29, 72, 0.35) !important;
  color: #be123c !important;
  font-weight: 800 !important;
}

.category-chip.sos-category-chip:hover {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.22) 0%, rgba(245, 158, 11, 0.24) 100%) !important;
  border-color: rgba(225, 29, 72, 0.55) !important;
  transform: translateY(-1px);
}

.category-chip.sos-category-chip.active {
  background: linear-gradient(135deg, #e11d48 0%, #d97706 100%) !important;
  color: #ffffff !important;
  border-color: #be123c !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35) !important;
}

.sos-chip-beacon-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e11d48;
  box-shadow: 0 0 8px #e11d48;
  display: inline-block;
  animation: liveDotPulse 1.2s infinite alternate;
  margin-right: 2px;
}

.category-chip.sos-category-chip.active .sos-chip-beacon-dot {
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

.vehicle-sos-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.sos-spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 750;
  padding: 3px 8px;
  border-radius: 8px;
  line-height: 1.2;
}

.sos-tag-tow {
  background: rgba(225, 29, 72, 0.1);
  color: #be123c;
  border: 1px solid rgba(225, 29, 72, 0.25);
}

.sos-tag-offroad {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.28);
}

.sos-tag-help {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.veh-equip-chip.sos-equip-chip {
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.25);
  color: #be123c;
}

.veh-equip-chip.sos-equip-chip.active {
  background: #e11d48 !important;
  color: #ffffff !important;
  border-color: #be123c !important;
}

body.dark-theme .sos-tag-tow {
  background: rgba(225, 29, 72, 0.2);
  color: #fda4af;
  border-color: rgba(225, 29, 72, 0.4);
}

body.dark-theme .sos-tag-offroad {
  background: rgba(217, 119, 6, 0.2);
  color: #fde68a;
  border-color: rgba(217, 119, 6, 0.4);
}

body.dark-theme .sos-tag-help {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.4);
}

