/* Reset & Base */
* {
  box-sizing: border-box;
}

/* Desktop View (Default) */
gmpx-split-layout {
  width: 100%;
  height: 100vh; /* Tinggi penuh layar desktop */
}

gmpx-split-layout [slot="fixed"],
gmpx-split-layout [slot="main"] {
  min-width: 0;
}

/* Tablet View */
@media (max-width: 1024px) and (min-width: 769px) {
  gmpx-split-layout {
    height: calc(100vh - 64px);
  }

  gmpx-split-layout [slot="fixed"] {
    width: min(360px, 45vw) !important;
  }

  gmpx-split-layout [slot="main"] {
    min-height: 460px;
  }

  .panel {
    padding: 20px !important;
    gap: 12px !important;
  }
}

/* KODE SAKTI UNTUK HP */
@media (max-width: 768px) {
  #layout {
    height: auto !important;
  }

  gmpx-split-layout {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
  }

  /* Memaksa Slot Fixed (Form) ke Atas */
  gmpx-split-layout [slot="fixed"] {
    width: 100% !important;
    height: auto !important;
    flex: none !important;
  }

  /* Memaksa Slot Main (Peta) ke Bawah */
  gmpx-split-layout [slot="main"] {
    width: 100% !important;
    height: min(55vh, 420px) !important;
    min-height: 300px !important;
    flex: none !important;
  }

  .panel {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    gap: 12px !important;
  }

  .half-input-container {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .half-input {
    width: 100% !important;
  }

  /* Memperjelas input di HP */
  input {
    font-size: 16px !important; /* Mencegah auto-zoom di iPhone */
    padding: 8px 0 !important;
  }
}
