/* ===================================================
   ИНТЕРАКТИВНЫЙ СЕЛЕКТОР КУЗОВА (PDR SCHEME)
   Файл: wp-content/themes/InStyle/widget-car-map.css
   =================================================== */

.pdr-car-map-wrapper {
  max-width: 1050px;
  width: 100%;
  margin: 20px auto 20px;
  padding: 0 10px;
  box-sizing: border-box;
  clear: both;
}

/* Заголовок и вводный текст */
.pdr-map-top {
  text-align: center;
  margin-bottom: 16px;
  padding: 0 10px;
}

.pdr-map-main-title {
  font-size: 26px;
  line-height: 1.25;
  color: #1a4f8b;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.pdr-map-lead-text {
  font-size: 15px;
  line-height: 1.5;
  color: #4b5563;
  max-width: 780px;
  margin: 0 auto;
}

/* Рамка виджета */
.pdr-car-map-inner {
  position: relative;
  width: 100%;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  background: #ffffff;
  border: 1px solid #dce4ec;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  box-sizing: border-box;
}

/* Холст с автомобилем: срезает лишний пустой воздух сверху */
.pdr-car-canvas {
  position: relative;
  width: 100%;
  margin-top: -6%;
  margin-bottom: -1%;
  line-height: 0;
}

.pdr-car-map-img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Точки на кузове */
.pdr-spot {
  position: absolute;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  z-index: 10;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.pdr-spot-ring {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(26, 79, 139, 0.45);
  animation: pdr-wave-pulse-pdr 2.2s infinite ease-out;
  pointer-events: none;
}

.pdr-spot-core {
  position: relative;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #1a4f8b;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.pdr-spot:hover .pdr-spot-core {
  background: #d9383a;
  transform: scale(1.35);
}

.pdr-spot:hover .pdr-spot-ring {
  background: rgba(217, 56, 58, 0.45);
}

/* Всплывающие подсказки */
.pdr-spot-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.pdr-spot-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.92) transparent transparent transparent;
}

.pdr-spot:hover .pdr-spot-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Сетка преимуществ */
.pdr-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.pdr-benefit-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-sizing: border-box;
}

.pdr-benefit-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: #1a4f8b;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.pdr-benefit-content {
  display: flex;
  flex-direction: column;
}

.pdr-benefit-content strong {
  font-size: 14px;
  color: #1e293b;
  font-weight: 700;
  margin-bottom: 2px;
}

.pdr-benefit-content span {
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
}

/* Анимация пульса */
@keyframes pdr-wave-pulse-pdr {
  0% { transform: scale(0.9); opacity: 0.9; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .pdr-map-main-title { font-size: 21px; }
  .pdr-map-lead-text { font-size: 14px; }
  .pdr-benefits-grid { grid-template-columns: 1fr; gap: 10px; }
  .pdr-spot-tooltip { display: none; }
  .pdr-spot { width: 38px; height: 38px; margin-left: -19px; margin-top: -19px; }
}