/* Global styles */
body {
    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8; /* Light gray background */
    text-align: center;
}

:root {
    --nav-background-color: rgb(14, 0, 192); /* Warna default */
}

.custom-nav {
    background-color: var(--nav-background-color); /* Gunakan variabel untuk latar belakang */
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-nav a {
    text-decoration: none;
}

.custom-nav span {
    font-weight: 600;
}

#search-input {
    width: 200px;
    padding: 8px;
    transition: width 0.3s ease;
}

#search-input:focus {
    width: 300px;
}

#search-results {
    max-height: 200px;
    overflow-y: auto;
}

.hidden {
    display: none;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: black;
}

/* Styles for the list */
ul.list {
    background-color: #f9fafb; /* Light gray background */
    border-radius: 8px; /* Rounded corners */
    padding: 16px; /* Add padding inside the list */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

/* Gaya default untuk semua elemen <li> */
ul.list li {
    display: flex; /* Gunakan flex untuk perataan */
    justify-content: space-between; /* Spasi antara label dan nilai */
    font-size: 0.95rem; /* Ukuran font */
    border-bottom: 1px solid #e5e7eb; /* Garis bawah sebagai pemisah */
    padding: 8px 0; /* Jarak vertikal antar elemen */
}

/* Gaya khusus untuk elemen <li> Jam Operasional */
ul.list li.jam-operasional-item {
    border-bottom: none; /* Hilangkan garis bawah */
    flex-direction: column; /* Atur konten secara vertikal */
    align-items: flex-start; /* Teks rata kiri */
}

/* Pastikan elemen dalam daftar jam operasional tidak memiliki garis bawah */
ul.list li.jam-operasional-item ul.jam-operasional-list li {
    border-bottom: none; /* Hilangkan garis bawah */
    flex-direction: column; /* Atur konten secara vertikal */
    align-items: flex-start; /* Teks rata kiri */
    list-style: none; /* Opsional: Hilangkan bullet bawaan */
}

ul.list li:last-child {
    border-bottom: none; /* Remove the last item's border */
}

ul.list li strong {
    color: #374151; /* Dark gray for labels */
    font-weight: 600; /* Semi-bold font weight */
}

ul.list li span {
    text-align: left;
    color: #4b5563; /* Slightly lighter gray for values */
}

/* Styling untuk input radio dan checkbox agar seragam */
.leaflet-control-layers-expanded input[type="radio"],
.leaflet-control-layers-expanded input[type="checkbox"] {
    margin: 0 10px 0 0; /* Spasi kanan 10px */
    width: 15px; /* Ukuran input */
    height: 15px; /* Ukuran input */
    cursor: pointer; /* Pointer saat di-hover */
}

/* Pastikan label sejajar di kiri */
.leaflet-control-layers-expanded label {
    display: flex; /* Flexbox untuk tata letak */
    align-items: center; /* Sejajarkan secara vertikal */
    gap: 5px; /* Jarak antara input dan teks */
    line-height: 1.6; /* Spasi antar elemen */
    cursor: pointer; /* Pointer saat di-hover */
    margin-bottom: 5px; /* Jarak antar label */
    text-align: left; /* Rata kiri */
}

/* Base map label styling */
.leaflet-control-layers-base label {
    display: flex; /* Gunakan flex juga untuk base map */
    align-items: center;
    text-align: left;
    color: #333; /* Warna teks */
}

/* Hover effect */
.leaflet-control-layers-expanded label:hover {
    background-color: rgba(0, 0, 0, 0.05); /* Latar belakang abu saat hover */
    border-radius: 4px; /* Efek sudut melengkung */
}

/* Hilangkan margin default */
.leaflet-control-layers-expanded label input {
    margin: 0; /* Reset margin default */
}

footer {
    background: rgb(14,0,192);
    color: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

h1 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

p {
    font-size: 15px;
    margin-bottom: 15px;
}

blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre {
    margin: 0;
    margin-bottom: 15px;
}

/* Map styles */
#map {
    z-index: 0;
    width: 85%; /* Lebar peta 90% dari lebar layar */
    height: calc(80vh); /* Tinggi peta 80% dari tinggi layar */
    margin-top: -90px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    background: #fff; /* Tambahkan latar belakang putih */
}

/* Drawer styling */
#drawer-right-example {
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15); /* Add shadow to the drawer */
    border-left: 1px solid #ccc;
}

/* SweetAlert2 customization */
.custom-swal-popup {
    background-color: #ffffff;
    border-radius: 15px;
    border: none;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    margin: auto; /* Ensure centering on small screens */
}

.custom-swal-title {
    color: #333;
    font-size: 1.5em;
    font-weight: bold;
}

.custom-swal-content {
    color: #555;
    font-size: 1em;
    text-align: justify;
    line-height: 1.5;
    margin: 15px 0;
    margin-bottom: 15px;
}

.custom-swal-button:hover {
    background-color: #2563eb;
}

.custom-swal-close-button {
    z-index: 2;
    align-items: center;
    justify-content: center;
    /* width: 1.2em; */
    height: 1em;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: -11.2em;
    padding: 0;
    overflow: hidden;
    transition: color .1s, box-shadow .1s;
    border: none;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0);
    color: #ccc;
    font-size: 2em;
    justify-self: end;
    font-size: 1.5em;
    color: #aaa;
    transition: color 0.3s;
}

.custom-swal-close-button:hover {
    color: #555;
}
