/* ==========================================================================
   PETA JABODETABEK PREMIUM & PROFESIONAL
   Layanan Jasa Pembuatan SIM - Responsif Desktop & Mobile
   ========================================================================== */

/* Container Layout */
.area-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

/* Outer Card Container */
.area-map-card {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, #f4f8fc 60%, #eaf1f8 100%);
  border-radius: 20px;
  border: 1px solid rgba(23, 79, 138, 0.14);
  box-shadow: 
    0 24px 50px -12px rgba(16, 41, 78, 0.12),
    0 8px 24px -4px rgba(16, 41, 78, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  user-select: none;
}

.area-map-card:hover {
  border-color: rgba(23, 79, 138, 0.28);
  box-shadow: 
    0 30px 60px -15px rgba(16, 41, 78, 0.16),
    0 12px 28px -6px rgba(16, 41, 78, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Top Live Header Overlay */
.map-top-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.map-live-status {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(23, 79, 138, 0.12);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(16, 41, 78, 0.06);
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #10294e;
}

.map-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: map-radar-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes map-radar-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.map-badge-tag {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(16, 41, 78, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f1f5f9;
  border-radius: 999px;
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(16, 41, 78, 0.14);
}

.map-badge-tag span.gold {
  color: #f5cf82;
}

/* SVG Canvas Styling */
.map-svg-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(16, 41, 78, 0.04));
}

/* SVG Text Styles */
.map-sea-text {
  font-family: var(--display, 'Manrope', sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  fill: #7ba2c7;
  opacity: 0.85;
}

.map-island-text {
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-size: 9px;
  font-weight: 600;
  fill: #89a9c9;
  letter-spacing: 0.06em;
}

.map-landmark-text {
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-size: 9.5px;
  font-weight: 600;
  fill: #4b6480;
  letter-spacing: 0.02em;
}

/* Region Polygons */
.map-region {
  stroke-width: 1.5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.map-region.region-jkt {
  fill: rgba(23, 79, 138, 0.09);
  stroke: rgba(23, 79, 138, 0.42);
}

.map-region.region-tgr {
  fill: rgba(43, 115, 137, 0.07);
  stroke: rgba(43, 115, 137, 0.32);
}

.map-region.region-tangsel {
  fill: rgba(79, 70, 229, 0.06);
  stroke: rgba(79, 70, 229, 0.32);
}

.map-region.region-bks {
  fill: rgba(212, 173, 105, 0.09);
  stroke: rgba(197, 155, 39, 0.38);
}

.map-region.region-dpk {
  fill: rgba(16, 185, 129, 0.07);
  stroke: rgba(16, 185, 129, 0.35);
}

.map-region.region-bgr {
  fill: rgba(59, 130, 246, 0.06);
  stroke: rgba(59, 130, 246, 0.3);
}

.map-region:hover,
.map-region.is-active {
  fill-opacity: 0.24 !important;
  stroke-width: 2.2 !important;
  stroke-opacity: 0.9 !important;
  filter: drop-shadow(0 4px 12px rgba(23, 79, 138, 0.18));
}

.map-region.region-jkt:hover,
.map-region.region-jkt.is-active {
  fill: rgba(23, 79, 138, 0.22);
  stroke: #174f8a;
}

.map-region.region-tgr:hover,
.map-region.region-tgr.is-active {
  fill: rgba(43, 115, 137, 0.18);
  stroke: #2b7389;
}

.map-region.region-tangsel:hover,
.map-region.region-tangsel.is-active {
  fill: rgba(79, 70, 229, 0.16);
  stroke: #4f46e5;
}

.map-region.region-bks:hover,
.map-region.region-bks.is-active {
  fill: rgba(212, 173, 105, 0.22);
  stroke: #b8860b;
}

.map-region.region-dpk:hover,
.map-region.region-dpk.is-active {
  fill: rgba(16, 185, 129, 0.18);
  stroke: #059669;
}

.map-region.region-bgr:hover,
.map-region.region-bgr.is-active {
  fill: rgba(59, 130, 246, 0.16);
  stroke: #2563eb;
}

/* Expressway / Toll Highway Lines */
.map-highway-glow {
  stroke: rgba(23, 79, 138, 0.16);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.map-highway-core {
  stroke: #174f8a;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-opacity: 0.75;
}

.map-highway-dash {
  stroke: #60a5fa;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 4, 8;
  stroke-dashoffset: 0;
  fill: none;
  animation: highway-flow 25s linear infinite;
}

@keyframes highway-flow {
  to {
    stroke-dashoffset: -200;
  }
}

.map-highway-inner {
  stroke: #3b82f6;
  stroke-width: 2.2;
  stroke-linecap: round;
  fill: none;
  stroke-opacity: 0.85;
}

/* Region Beacon Hotspots */
.map-beacon {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.map-beacon:hover,
.map-beacon.is-active {
  transform: scale(1.08);
}

/* Beacon Ripple Animation */
.beacon-pulse {
  transform-origin: center;
  animation: beacon-ripple 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.beacon-pulse.delay-1 {
  animation-delay: 0.6s;
}

.beacon-pulse.delay-2 {
  animation-delay: 1.2s;
}

@keyframes beacon-ripple {
  0% {
    r: 6;
    opacity: 0.85;
    stroke-width: 1.5;
  }
  70% {
    r: 22;
    opacity: 0.15;
    stroke-width: 1;
  }
  100% {
    r: 28;
    opacity: 0;
    stroke-width: 0.5;
  }
}

/* Beacon Label Pin Pill */
.beacon-pill-bg {
  fill: #ffffff;
  stroke: rgba(23, 79, 138, 0.22);
  stroke-width: 1;
  filter: drop-shadow(0 4px 8px rgba(16, 41, 78, 0.12));
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.map-beacon:hover .beacon-pill-bg,
.map-beacon.is-active .beacon-pill-bg {
  fill: #10294e;
  stroke: #d4ad69;
}

.beacon-pill-title {
  font-family: var(--display, 'Manrope', sans-serif);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  fill: #10294e;
  transition: fill 0.2s ease;
}

.beacon-pill-sub {
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  fill: #64748b;
  transition: fill 0.2s ease;
}

.map-beacon:hover .beacon-pill-title,
.map-beacon.is-active .beacon-pill-title {
  fill: #ffffff;
}

.map-beacon:hover .beacon-pill-sub,
.map-beacon.is-active .beacon-pill-sub {
  fill: #f5cf82;
}

.beacon-star {
  fill: #d4ad69;
}

/* Floating Detail Info Card */
.map-floating-card {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  border: 1px solid rgba(23, 79, 138, 0.16);
  box-shadow: 0 16px 36px -8px rgba(16, 41, 78, 0.16);
  padding: 13px 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.map-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-card-badge {
  display: inline-block;
  padding: 3px 8px;
  background: #edf4fa;
  color: #174f8a;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 999px;
  border: 1px solid rgba(23, 79, 138, 0.12);
}

.map-card-title {
  font-family: var(--display, 'Manrope', sans-serif);
  font-size: 13px;
  font-weight: 800;
  color: #10294e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-card-desc {
  font-size: 11px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-card-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  background: #174f8a;
  color: #ffffff;
  border-radius: 8px;
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(23, 79, 138, 0.22);
}

.map-card-btn:hover {
  background: #0d3d70;
  transform: translateY(-1px);
}

.map-card-btn span {
  font-size: 13px;
  line-height: 1;
}

/* Compass & Map Legend (Top-Right / In-SVG) */
.map-compass-wrap {
  position: absolute;
  top: 50px;
  right: 14px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(23, 79, 138, 0.1);
  border-radius: 8px;
  padding: 6px 8px;
  box-shadow: 0 4px 10px rgba(16, 41, 78, 0.04);
}

.map-compass-arrow {
  width: 18px;
  height: 18px;
}

.map-compass-label {
  font-size: 8.5px;
  font-weight: 800;
  color: #174f8a;
  margin-top: 1px;
}

/* Enhanced Clickable Area Chips */
.area-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.area-chip {
  padding: 8px 13px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.area-chip i {
  width: 6px;
  height: 6px;
  background: #d4ad69;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.area-chip:hover,
.area-chip.is-active {
  background: #ffffff;
  border-color: #174f8a;
  color: #10294e;
  box-shadow: 0 4px 12px rgba(23, 79, 138, 0.1);
  transform: translateY(-1px);
}

.area-chip:hover i,
.area-chip.is-active i {
  background: #174f8a;
  transform: scale(1.3);
}

/* ==========================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 960px) {
  .area-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .area-map-card {
    order: 2; /* Map appears right below copy on mobile/tablet */
  }

  .map-card-title {
    font-size: 12px;
  }

  .map-card-desc {
    font-size: 10px;
  }
}

@media (max-width: 680px) {
  .area-layout {
    gap: 28px;
  }

  .map-top-bar {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .map-live-status {
    padding: 5px 10px;
    font-size: 9.5px;
  }

  .map-badge-tag {
    padding: 5px 9px;
    font-size: 9px;
  }

  .map-floating-card {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin: 8px 10px 10px 10px;
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .map-card-desc {
    white-space: normal;
  }

  .map-card-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 11px;
  }

  .beacon-pill-title {
    font-size: 9px;
  }

  .beacon-pill-sub {
    font-size: 7px;
  }

  .map-compass-wrap {
    top: 44px;
    right: 10px;
    padding: 4px 6px;
  }

  .area-chip {
    padding: 7px 10px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .map-badge-tag {
    display: none; /* Hide secondary badge on very narrow screens */
  }
}

