* {
  box-sizing: border-box;
}

.route-app * {
  box-sizing: border-box !important;
  font-family: 'Nunito Sans', sans-serif;
}

body {
  margin: 0;
  overflow: hidden;
  background: #f5f6fa;
  font-family: 'Nunito Sans', sans-serif;
}

.iframe-mode .campaign-section {
  padding: 0;
}

/* ===========================
   CAMPAIGN WRAPPER
   =========================== */

.campaign-section {
  padding: 120px 24px;
  background: linear-gradient(135deg, #fdf7ff, #ffffff);
  /*background:#ffffff;*/
}

.campaign-container {
  /*max-width: 1280px;     boxed size*/
  max-width: 100%;
  margin: 0 auto;
}

/* ===========================
   ROUTE SYSTEM
   =========================== */

.route-app .route-system {
  display: flex;
  height: 520px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(95,34,147,0.12);
}

/* LEFT PANEL */
.route-app .route-panel {
  width: 38%;
  padding: 56px 56px;
  background: #ffffff;
  border-right: 1px solid #eee;
}

/* ===========================
   TITLE
   =========================== */

.route-app .route-title {
  font-size: 48px;
  /*font-size: 72px;*/
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.route-app .route-title .highlight {
  color: #5f2293;
}

.route-app .route-title .route-word {
  font-family: 'Praise', cursive;
  color: #FBBE14;
  font-size: 54px;
  /*font-size: 72px;*/
  margin-left: 6px;
}

.route-app .route-subtitle {
  font-size: 18px;
  line-height: 1.7;
  max-width: 420px;
  color: #666;
  margin-bottom: 42px;
}

/* ===========================
   BOXES
   =========================== */

.route-app .route-boxes {
    margin-top:-30px;
  display: flex !important;
  flex-direction: column;
  gap: 24px !important;
}

.route-app .route-box {
  flex: 1;
  background: #ffffff !important;
  border-radius: 22px !important;
  padding: 15px 22px !important;
  border: 2px solid rgba(95,34,147,0.10) !important;
  box-shadow: 0 12px 36px rgba(95,34,147,0.12)!important;
}

.route-app .box-label {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

/* FROM BOX */
.from-box .dropdown-selected {
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  color: #5f2293;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

    /* Pastikan from-box jadi reference position */
    .route-app .from-box {
      position: relative !important;
      /*margin-bottom: 8px;*/
    }
    
    /* Paksa dropdown berpaut pada from-box */
    .route-app .dropdown-panel {
      position: absolute !important;
      top: calc(100% + 12px) !important;
      left: 0 !important;
      right: 0 !important;
    
      width: 100% !important;
      max-width: 100% !important;
      margin-top: -10px !important;
    
      background: #ffffff !important;
      border-radius: 18px !important;
      box-shadow: 0 18px 40px rgba(95,34,147,0.15) !important;
    
      border: 1px solid rgba(95,34,147,0.12) !important;
    
      overflow: hidden !important;
      z-index: 999999 !important;
    
      display: none;
    }

    
    /* Hanya show bila active */
    .route-app .dropdown-panel.active {
      display: block !important;
    }


/* ROUTE BOX */
.route-box-info .route-value {
  font-size: 18px;
  font-weight: 700;
  color: #5f2293;
}

.route-box-info .dot {
  margin: 0 10px;
  color: #999;
}

/* ===========================
   DROPDOWN
   =========================== */

.dropdown-panel {
  position: absolute;
  top: 100%;
  left: 30px;
  right: 30px;
  background: #ffffff;
  border-radius: 14px;
  display: none;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  margin-top: 12px;
  overflow: hidden;
}

.dropdown-panel.active {
  display: block;
}

/*#countrySearch {*/
/*  width: 100%;*/
/*  padding: 16px 18px;*/
/*  border: none;*/
/*  outline: none;*/
/*  background: #f8f9fa;*/
/*  border-bottom: 1px solid #ddd;*/
/*  font-size: 15px;*/
/*}*/

.route-app #countrySearch {
  width: 100% !important;
  padding: 16px 18px !important;
  border: none !important;
  outline: none !important;
  background: #f8f9fa !important;
  border-bottom: 1px solid rgba(95,34,147,0.12) !important;
  font-size: 15px !important;
  border-radius: 18px 18px 0 0 !important;
}


/*#countryList {*/
/*  list-style: none;*/
/*  margin: 0;*/
/*  padding: 0;*/
/*  max-height: 260px;*/
/*  overflow-y: auto;*/
/*}*/

.route-app #countryList {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-height: 260px !important;
  overflow-y: auto !important;
}

/*#countryList li {*/
/*  padding: 14px 18px;*/
/*  cursor: pointer;*/
/*  font-weight: 600;*/
/*  transition: background 0.2s ease;*/
/*}*/

.route-app #countryList li {
  padding: 14px 18px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

/*#countryList li:hover {*/
/*  background: #f1f3f5;*/
/*}*/

.route-app #countryList li:hover {
  background: #f3f0fa !important;
}

/* ===========================
   MAP
   =========================== */

.map-wrapper {
  width: 62%;
  height: 100%;
  position: relative;
  background: #eaf3f5;
}

#map {
  width: 100%;
  height: 100%;
  /*border-left: 4px solid #FBBE14;*/
  cursor: grab;
}

.leaflet-dragging #map {
  cursor: grabbing;
}

.leaflet-control-attribution {
  display: none !important;
}

.leaflet-interactive {
  filter: drop-shadow(0 0 14px rgba(251,190,20,0.65));
}



/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {

  .campaign-section {
    padding: 80px 16px;
  }

  .route-system {
    flex-direction: column;
    height: auto;
  }

  .route-panel {
    width: 100%;
    padding: 36px 24px;
  }

  .map-wrapper {
    width: 100%;
    height: 380px;
  }

  #map {
    height: 380px;
  }

  .route-boxes {
    display: block;
    flex-direction: column;
    gap: 20px;
  }

  .from-box .dropdown-selected {
    font-size: 22px;
  }

  .route-box-info .route-value {
    font-size: 22px;
  }

  .dropdown-panel {
    position: fixed;
    top: 120px;
    left: 16px;
    right: 16px;
    max-height: 60vh;
    border-radius: 18px;
  }
}
