/* RAPIKAN LAYOUT COVERAGE AREA */
.container {
    max-width: 1200px;
    margin: auto;
}

.row {
    display: flex;
    gap: 25px;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Kolom kiri & kanan */
.col {
    flex: 1;
    min-width: 350px;
}

/* Select full width */
.form-control,
select,
input {
    width: 100%;
}

/* Tombol dan hasil tarif rapih dalam satu baris */
.controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

/* Map seperti di Gambar 1 */
#map-wrapper {
    width: 100%;
    height: 500px;
    margin-top: 20px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

/* Pesan overlay tengah */
#map-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 14px 22px;
    background: rgba(255,255,255,0.92);
    border-radius: 10px;
    text-align: center;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    z-index: 1000;
    pointer-events:none;
}

/* === RESTORE COVERAGE AREA STYLE === */
body {
    background: #eaf3ff; /* warna biru muda seperti screenshot */
}

/* Judul Coverage Area ke tengah */
.title {
    text-align: center;
    font-size: 24px;
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #003c80; /* biru gelap agar matching */
}

/* Container diberi background putih (sesuai screenshot Anda) */
.container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 1200px;
    margin: auto;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.08);
}

/* Tombol kembali ke home tetap rapi */
.btn-home {
    display: block;
    width: fit-content;
    margin: 10px auto 15px auto; /* agar ke tengah */
    padding: 8px 14px;
    background: #0d6efd;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

/* ================================
   WRAPPER SECTION
================================ */
.coverage-section {
    background: #e8f1ff; /* warna biru muda seperti sebelumnya */
    padding: 40px 20px;
    text-align: center;
}

/* ================================
   TITLE HEADER
================================ */
.coverage-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center !important;
}

/* Tombol Home tetap di tengah */
.coverage-header-btn {
    text-align: center;
    margin-bottom: 30px;
}

/* ================================
   FORM BOX
================================ */
.coverage-form-box {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    max-width: 1100px;
    margin: 0 auto 30px auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Label */
.coverage-form-box label {
    font-weight: 600;
}

/* ================================
   PEMBERITAHUAN TENGAH
================================ */
.notice-box {
    position: absolute;
    z-index: 9999;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 30px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    max-width: 700px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

@media(max-width:768px){
    .notice-box {
        width: 90%;
        font-size: 14px;
    }
}

/* Background biru untuk header Coverage Area */
.header-coverage {
    background: #0d6efd;       /* biru */
    padding: 25px 10px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

/* Judul putih */
.header-coverage .title {
    color: #ffffff;
    margin: 0;
    font-size: 26px;
    font-weight: bold;
}

/* Tombol home menyesuaikan warna header */
.header-coverage .btn-home {
    background: #ffffff;
    color: #0d6efd;
    padding: 7px 14px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    text-decoration: none;
}

.header-coverage .btn-home:hover {
    background: #e9ecef;
}

/* HEADER COVERAGE AREA */
.header-coverage {
    background: linear-gradient(135deg, #0d6efd, #245fda);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 25px;

    /* efek shadow */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Judul */
.header-coverage .title {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Tombol Kembali */
.header-coverage .btn-home {
    background: #ffffff;
    color: #0d6efd;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: 0.2s ease-in-out;
}

.header-coverage .btn-home:hover {
    background: #f1f1f1;
    transform: scale(1.05);
}

/* Marker filter UI (pills) */
.map-filter {
  max-width: 1200px;
  margin: 18px auto;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  padding: 6px;
}
.map-filter .pill {
  background:#f3f4f6;
  border-radius:30px;
  padding:10px 18px;
  display:inline-flex;
  gap:10px;
  align-items:center;
  cursor:pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  user-select:none;
  font-weight:600;
}
.map-filter .pill .dot {
  width:18px; height:18px; border-radius:50%;
  display:inline-block; box-shadow:0 1px 2px rgba(0,0,0,0.12);
}
.map-filter .pill.active {
  background: linear-gradient(90deg,#ffd86b,#ffb86b);
  color:#0d3a6b;
  transform: translateY(-2px);
}

/* small responsive */
@media(max-width:780px){
  .map-filter { padding:10px; gap:10px; }
  .map-filter .pill { padding:8px 12px; font-size:14px; }
}

/* optional: ensure marker z-index */
.leaflet-marker-icon { z-index: 600 !important; }

.coverage-filter {
    text-align: center;
    margin-bottom: 12px;
    margin-top: 10px;
}

.coverage-filter button {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 14px;
    margin: 2px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.coverage-filter button:hover {
    background: #005dc0;
}

.filter-area {
    margin-bottom: 20px;
    text-align: center;
}

.filter-btn {
    padding: 8px 18px;
    border: none;
    margin: 4px;
    cursor: pointer;
    border-radius: 6px;
    background: #e0e0e0;
    font-weight: bold;
}

.filter-btn.active {
    background: #007bff;
    color: #fff;
}

/* Warna default rute */
.tr-sumatra { background: rgba(255, 194, 14, 0.2); } 
.tr-jawa { background: rgba(0, 123, 255, 0.2); } 
.tr-kalimantan { background: rgba(40, 167, 69, 0.2); } 
.tr-sulawesi { background: rgba(220, 53, 69, 0.2); } 
.tr-papua { background: rgba(108, 117, 125, 0.2); }



.tarif-section {
    text-align: center;
    padding: 50px 20px;
}

.tarif-section .btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    margin-top: 20px;
}

.tarif-section .btn-wa i {
    font-size: 22px;
}

.tarif-section .btn-wa:hover {
    background-color: #1ebe57;
    transform: scale(1.05);
}