/* ========================================================================
   HERO CARD WILAYAH — Compact Floating Card (v15)
   Search bar 50% kiri + Wilayah card 36% kanan, di dalam hero slider.
   Ukuran lebih kecil & proporsional. Teks auto-scale pakai clamp().
   Fix: hero-visual-wrap diberi z-index agar floating cards tidak
   menumpuk di atas lengkungan white card layanan.
   ======================================================================== */

/* ===== HERO VISUAL WRAP — stacking context ===== */
.hero-visual-wrap {
  position: relative;
  z-index: 1;
  overflow: visible;
  background: #111827;
}

/* ===== WILAYAH FLOAT CARD — 36% kanan, Glass Transparan di dalam hero slider ===== */
.wilayah-float-card {
  position: absolute;
  bottom: 40px;
  right: clamp(12px, 3.5vw, 16px);
  width: 36%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 7px 8px 7px 7px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px) saturate(1.3);
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1px 0 rgba(255,255,255,0.18) inset;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.wilayah-float-card:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.18);
}

/* ===== TOP ROW: Icon + Name + Chevron ===== */
.wilayah-fc-top {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.wilayah-float-icon {
  width: clamp(16px, 4.5vw, 22px);
  height: clamp(16px, 4.5vw, 22px);
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  border: 1px solid rgba(255,255,255,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wilayah-float-icon svg {
  width: clamp(9px, 2.5vw, 12px);
  height: clamp(9px, 2.5vw, 12px);
}
.wilayah-float-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  flex: 1;
}
.wilayah-float-name {
  font-size: clamp(8px, 2.2vw, 11px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.wilayah-float-sub {
  font-size: clamp(6px, 1.5vw, 8px);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0,0,0,0.30);
}
.wilayah-float-chevron {
  width: clamp(9px, 2.5vw, 12px);
  height: clamp(9px, 2.5vw, 12px);
  flex-shrink: 0;
  margin-left: auto;
}

/* ===== DIVIDER ===== */
.wilayah-fc-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin: 4px 0;
  border: none;
}

/* ===== STATS ROW: Mitra + Jadwal ===== */
.wilayah-fc-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.wilayah-fc-stat {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.wilayah-fc-stat-icon {
  width: clamp(12px, 3vw, 15px);
  height: clamp(12px, 3vw, 15px);
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wilayah-fc-stat-icon svg {
  width: clamp(7px, 1.8vw, 9px);
  height: clamp(7px, 1.8vw, 9px);
  stroke: #fff;
}
.wilayah-fc-stat-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  overflow: hidden;
}
.wilayah-fc-stat-value {
  font-size: clamp(7px, 1.8vw, 10px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.30);
}
.wilayah-fc-stat-label {
  font-size: clamp(5px, 1.2vw, 7px);
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  line-height: 1.1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* ===== HERO SEARCH — 50% kiri, di dalam hero slider ===== */
.hero-search-float {
  position: absolute;
  bottom: 40px;
  left: clamp(12px, 3.5vw, 16px);
  width: calc(50% - clamp(12px, 3.5vw, 16px));
  z-index: 18;
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.5vw, 8px);
  padding: 0 clamp(8px, 2vw, 12px);
  height: clamp(30px, 8.5vw, 40px);
  background: #ffffff;
  border-radius: clamp(12px, 3.5vw, 20px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}
.hero-search-float:focus-within {
  box-shadow: 0 4px 24px rgba(34,197,94,0.18), 0 2px 10px rgba(0,0,0,0.08);
}
.hero-search-float .hero-search-icon {
  color: var(--g400);
  flex-shrink: 0;
}
.hero-search-float .hero-search-icon svg {
  width: clamp(12px, 3vw, 16px);
  height: clamp(12px, 3vw, 16px);
}
.hero-search-float .hero-search-input {
  flex: 1;
  border: none;
  background: none;
  font-size: clamp(9px, 2.4vw, 12px);
  color: var(--g800);
  padding: 0;
  line-height: 1.2;
  outline: none;
  min-width: 0;
}
.hero-search-float .hero-search-input::placeholder {
  color: var(--g400);
  font-size: clamp(9px, 2.4vw, 12px);
}
.hero-search-float .hero-search-loc {
  width: clamp(22px, 6vw, 28px);
  height: clamp(22px, 6vw, 28px);
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(34,197,94,0.3);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.hero-search-float .hero-search-loc svg {
  width: clamp(10px, 2.5vw, 13px);
  height: clamp(10px, 2.5vw, 13px);
}
.hero-search-float .hero-search-loc:active {
  transform: scale(0.94);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 320px) {
  .wilayah-float-card {
    padding: 5px 6px 5px 5px;
    border-radius: 11px;
    bottom: 32px;
    right: 10px;
  }
  .wilayah-float-name { font-size: 7px; }
  .wilayah-float-sub { font-size: 5px; }
  .wilayah-fc-stat-value { font-size: 6px; }
  .wilayah-fc-stat-label { font-size: 4px; }
  .wilayah-fc-stat-icon { width: 10px; height: 10px; }
  .wilayah-fc-stat-icon svg { width: 6px; height: 6px; }
  .hero-search-float {
    height: 26px;
    bottom: 32px;
    left: 10px;
    width: calc(50% - 10px);
    padding: 0 6px;
    gap: 4px;
  }
  .hero-search-float .hero-search-icon svg {
    width: 10px; height: 10px;
  }
  .hero-search-float .hero-search-input,
  .hero-search-float .hero-search-input::placeholder {
    font-size: 8px;
  }
  .hero-search-float .hero-search-loc {
    width: 18px; height: 18px;
  }
  .hero-search-float .hero-search-loc svg {
    width: 8px; height: 8px;
  }
}

@media (min-width: 414px) {
  .wilayah-float-card {
    padding: 9px 10px 9px 9px;
    bottom: 48px;
  }
  .hero-search-float {
    height: clamp(36px, 9.5vw, 44px);
    bottom: 48px;
  }
}

/* ===== TABLET ===== */
@media (min-width: 600px) {
  .wilayah-float-card {
    padding: 10px 12px 10px 10px;
    right: clamp(14px, 4vw, 18px);
    border-radius: 18px;
    bottom: 52px;
  }
  .hero-search-float {
    left: clamp(14px, 4vw, 18px);
    width: calc(50% - clamp(14px, 4vw, 18px));
    height: 46px;
    bottom: 52px;
  }
}
