/* Gaya bersama halaman publik (Jelajah Objek & profil objek) */
:root {
	--pb-biru: #023258;
	--pb-biru-2: #2a7fc4;
	--pb-teks: #1d2630;
	--pb-redup: #6b7280;
	--pb-latar: #f4f7fa;
	--pb-kartu: #ffffff;
	--pb-garis: #e7ecf1;
}
body { background: var(--pb-latar); color: var(--pb-teks); }
[x-cloak] { display: none !important; }

.publik-nav { background: #fff; box-shadow: 0 2px 10px rgba(2, 50, 88, .12); }
.publik-nav .nav-link { color: var(--pb-biru) !important; }
.publik-nav .nav-link.active { border-bottom: 2px solid var(--pb-biru-2); }
/* Tablet (768–991 px): menu atas hanya ikon, dirapatkan */
@media (min-width: 768px) and (max-width: 991.98px) {
    .publik-nav .nav-link { padding-left: .5rem !important; padding-right: .5rem !important; font-size: 1.1rem; }
}
/* Laptop kecil (992–1199 px): label tidak muat sebaris, jadi ikon di atas dan label di bawah, keduanya di tengah */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .publik-nav .navbar-nav .nav-link { display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.15;
        font-size: .9rem; white-space: nowrap; padding-left: .4rem !important; padding-right: .4rem !important; }
    .publik-nav .navbar-nav .nav-link .ti { font-size: 1.15rem; }
}
/* HP (< 768 px): tombol menu (garis tiga) di atas + menu bawah */
.tombol-menu-hp { border: 0; background: transparent; color: var(--pb-biru); font-size: 1.6rem; line-height: 1; padding: 6px 4px; border-radius: 8px; }
.tombol-menu-hp:focus-visible { outline: 2px solid var(--pb-biru-2); }
.menu-hp { position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 10px 24px rgba(2, 50, 88, .18); padding: 6px 0; max-height: calc(100vh - 140px); overflow-y: auto; }
.menu-hp a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; color: var(--pb-teks); text-decoration: none; font-weight: 500; }
.menu-hp a i { font-size: 1.25rem; color: var(--pb-biru-2); width: 24px; text-align: center; }
.menu-hp a.aktif { background: #eef5fc; color: var(--pb-biru); font-weight: 700; }
.nav-bawah { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035; background: #fff; display: flex; box-shadow: 0 -2px 12px rgba(2, 50, 88, .14);
    padding-bottom: env(safe-area-inset-bottom); }
.nav-bawah a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 7px 2px 6px;
    color: #64748b; text-decoration: none; font-size: 11px; font-weight: 500; min-width: 0; border-top: 3px solid transparent; }
.nav-bawah a i { font-size: 1.35rem; line-height: 1; }
.nav-bawah a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.nav-bawah a.aktif { color: var(--pb-biru); font-weight: 700; border-top-color: var(--pb-biru-2); }
@media (max-width: 767.98px) {
    body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
    body .ke-atas { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
    .publik-nav .navbar-brand img:last-child { width: 105px; }
}
@media print { .nav-bawah, .tombol-menu-hp, .menu-hp { display: none !important; } }

/* Placeholder gambar per sektor (dipakai bila objek belum punya foto) */
.ph { position: relative; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .92); overflow: hidden; }
.ph i { font-size: 3rem; opacity: .9; }
.ph::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .25), transparent 45%); }
.ph-objek-wisata { background: linear-gradient(135deg, #0f766e, #22a3a0); }
.ph-akomodasi { background: linear-gradient(135deg, #5b3fa8, #8e6bdc); }
.ph-industri-pariwisata { background: linear-gradient(135deg, #c2410c, #f59e0b); }
.ph-jasa-pariwisata { background: linear-gradient(135deg, #1d4ed8, #3b9be8); }
.ph-sarana-penunjang { background: linear-gradient(135deg, #475569, #8292a7); }
.ph-umum { background: linear-gradient(135deg, var(--pb-biru), var(--pb-biru-2)); }

/* Hero direktori */
.jelajah-hero { background: linear-gradient(329deg, var(--pb-biru) 15%, var(--pb-biru-2) 100%); color: #fff; padding: 108px 0 72px; }
.jelajah-hero h1 { color: #fff; font-weight: 700; font-size: 1.9rem; }
.jelajah-hero p { color: rgba(255, 255, 255, .82); }
.jelajah-cari { max-width: 640px; margin: 0 auto; }
.jelajah-cari .form-control { border: 0; padding: .85rem 1.1rem; font-size: 1rem; }
.jelajah-isi { margin-top: -36px; }

/* Kartu objek: ukuran sedang, grid otomatis (±5 kolom di layar lebar, 2 di HP) */
.grid-objek { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.kartu-objek { background: var(--pb-kartu); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(2, 50, 88, .08); height: 100%; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; color: inherit; text-decoration: none; }
.kartu-objek:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(2, 50, 88, .16); color: inherit; }
/* Tinggi foto tetap; img absolut supaya foto tinggi tidak memanjangkan kartu */
.kartu-objek .media { height: 170px; position: relative; overflow: hidden; background: #dde5ee; flex-shrink: 0; }
.kartu-objek .media img, .kartu-objek .media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: flex; }
.kartu-objek .media .ph i { font-size: 2.6rem; }
.kartu-objek .label-lokasi { position: absolute; top: 0; left: 0; z-index: 2; background: #0a5fa8; color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px 4px 8px; border-radius: 12px 0 12px 0; display: flex; align-items: center; gap: 3px; max-width: 85%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kartu-objek .badan { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.kartu-objek h3 { font-size: 14px; font-weight: 700; margin: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kartu-objek .meta { font-size: 12px; color: var(--pb-redup); }
.kartu-objek .nilai { font-size: 12px; color: #1d6fd8; font-weight: 600; }
/* Objek terdekat di profil: kartu lebih pendek */
.grid-terdekat .kartu-objek .media { height: 130px; }
@media (min-width: 992px) { .grid-terdekat { grid-template-columns: repeat(4, 1fr); } } /* 8 kartu = 2 baris penuh */
@media (max-width: 576px) {
	.grid-objek { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.grid-terdekat .kartu-objek .media { height: 100px; }
	.kartu-objek .media { height: 120px; }
	.kartu-objek h3 { font-size: 13px; }
}
.chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; padding: 2px 8px; border-radius: 20px; background: #f1f5f9; color: #334155; }
.chip-ekraf { background: #fff7e6; color: #9a5b00; }
.chip-halal { background: #e8f7ef; color: #146c43; }
.bintang { color: #f5a623; letter-spacing: 1px; }

/* Peta */
.peta-jelajah { height: 70vh; min-height: 420px; border-radius: 14px; overflow: hidden; border: 1px solid var(--pb-garis); }
.legenda { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--pb-redup); }
.legenda span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; background: var(--warna); vertical-align: middle; }

/* Popup peta objek */
.popup-objek .leaflet-popup-content-wrapper { padding: 0; border-radius: 12px; overflow: hidden; }
.popup-objek .leaflet-popup-content { margin: 0; width: 260px !important; font-family: inherit; line-height: 1.4; }
.popup-objek .leaflet-popup-close-button { z-index: 3; color: #fff !important; background: rgba(0, 0, 0, .45); border-radius: 50%; width: 24px !important; height: 24px !important; line-height: 22px !important; font-size: 18px !important; top: 6px !important; right: 6px !important; }
.popup-objek .leaflet-popup-close-button:hover { background: rgba(0, 0, 0, .65); }
.pp-media { position: relative; height: 130px; background: #dde5ee; }
.pp-media img, .pp-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-media .ph i { font-size: 2.4rem; }
.pp-lokasi { position: absolute; top: 0; left: 0; z-index: 2; background: #0a5fa8; color: #fff; font-size: 11px; font-weight: 600; padding: 3px 9px 3px 7px; border-radius: 0 0 10px 0; }
.pp-badan { padding: 10px 12px 12px; }
.pp-nama { font-weight: 700; font-size: 14px; color: var(--pb-teks); }
.pp-meta { font-size: 12px; color: var(--pb-redup); }
.pp-rating { font-size: 12px; margin-top: 2px; }
.pp-rating b { color: #1d6fd8; }
.pp-alamat { font-size: 12px; color: #475569; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-aksi { display: flex; gap: 6px; margin-top: 10px; }
.pp-aksi .btn { flex: 1; font-size: 12px; padding: 5px 8px; }
.popup-objek .pp-aksi a.btn-primary { color: #fff; }
.pp-memuat { padding: 0 12px 12px; font-size: 12px; color: var(--pb-redup); }

/* Profil objek */
.profil-hero { position: relative; height: 420px; margin-top: 64px; background: #1d2630; overflow: hidden; }
.profil-hero > img, .profil-hero > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profil-hero .ph i { font-size: 6rem; opacity: .35; }
.profil-hero .tirai { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .72) 100%); }
.profil-hero .judul { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 0; color: #fff; }
.profil-hero h1 { color: #fff; font-weight: 700; font-size: 2.1rem; margin: 6px 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.profil-hero .remah a, .profil-hero .remah { color: rgba(255, 255, 255, .85); font-size: 13px; text-decoration: none; }
.profil-hero .chip { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(4px); }
.panel { background: var(--pb-kartu); border: 1px solid var(--pb-garis); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.panel h2 { font-size: 17px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel h2 i { color: var(--pb-biru-2); }
.deskripsi { white-space: pre-line; line-height: 1.75; color: #334155; }
.galeri-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.galeri-grid button { border: 0; padding: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #dde5ee; cursor: zoom-in; }
.galeri-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.galeri-grid button:hover img { transform: scale(1.05); }
.produk-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pb-garis); }
.produk-item:last-child { border-bottom: 0; }
.produk-item .gbr { width: 72px; height: 72px; border-radius: 10px; flex-shrink: 0; overflow: hidden; }
.produk-item .gbr img { width: 100%; height: 100%; object-fit: cover; }
.produk-item .gbr.ph i { font-size: 1.6rem; }
.produk-item .gbr-tombol { position: relative; border: 0; padding: 0; background: none; cursor: zoom-in; }
.produk-item .gbr-tombol:focus-visible { outline: 2px solid var(--pb-biru-2); outline-offset: 2px; }
.produk-item .jumlah-foto { position: absolute; right: 4px; bottom: 4px; font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 6px; background: rgba(15, 23, 42, .7); color: #fff; }
/* Deskripsi produk bisa berupa daftar (mis. spek kamar per baris) */
.produk-item .ket-produk { white-space: pre-line; }
.harga { font-weight: 700; color: var(--pb-biru); }
.tautan-mp { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--pb-garis); border-radius: 10px; margin-bottom: 8px; color: var(--pb-teks); text-decoration: none; transition: border-color .15s, background .15s; }
.tautan-mp:hover { border-color: var(--pb-biru-2); background: #f5f9ff; color: var(--pb-teks); }
.ulasan-item { padding: 14px 0; border-bottom: 1px solid var(--pb-garis); }
.ulasan-item:last-child { border-bottom: 0; }
.medsos { display: flex; flex-wrap: wrap; gap: 8px; }
.medsos a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; color: #334155; font-size: 20px; text-decoration: none; transition: .15s; }
.medsos a:hover, .medsos a:focus-visible { background: var(--pb-biru-2); color: #fff; }
.chip-checkin { background: #e8f7ef; color: #146c43; }
.chip-online { background: #eef4ff; color: #1d4ed8; }
.tulis-ulasan { border: 1px solid var(--pb-garis); border-radius: 12px; padding: 14px; margin-bottom: 8px; background: #fafcff; }
.pilih-bintang { display: flex; align-items: center; }
.pilih-bintang button { border: 0; background: none; font-size: 26px; line-height: 1; padding: 0 2px; color: #cbd5e1; cursor: pointer; }
.pilih-bintang button.aktif { color: #f5a623; }
.foto-ulasan { display: flex; gap: 8px; flex-wrap: wrap; }
.foto-ulasan .item, .foto-ulasan .tambah { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; }
.foto-ulasan .item img { width: 100%; height: 100%; object-fit: cover; }
.foto-ulasan .item.redup img { opacity: .45; }
.foto-ulasan .hapus { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(15, 23, 42, .7); color: #fff; font-size: 12px; line-height: 22px; padding: 0; }
.foto-ulasan .tanda { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; text-align: center; background: rgba(220, 38, 38, .85); color: #fff; }
.foto-ulasan .tambah { border: 1.5px dashed #cbd5e1; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; color: #64748b; cursor: pointer; margin: 0; }
.foto-ulasan .tambah i { font-size: 20px; }
.pilih-bintang button:focus-visible { outline: 2px solid var(--pb-biru-2); border-radius: 4px; }
.ulasan-item .foto img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.peta-mini { height: 240px; border-radius: 10px; overflow: hidden; }
.sisi { position: sticky; top: 84px; }
.info-baris { display: flex; gap: 10px; font-size: 14px; margin-bottom: 10px; }
.info-baris i { color: var(--pb-biru-2); font-size: 18px; margin-top: 1px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 15, 22, .92); display: flex; align-items: center; justify-content: center; padding: 48px 56px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lightbox .tombol { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.lightbox .tombol:hover { background: rgba(255, 255, 255, .25); }
.lightbox .tutup { top: 14px; right: 14px; }
.lightbox .kiri { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .kanan { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .ket { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .85); font-size: 13px; }

@media (max-width: 576px) {
	.jelajah-hero { padding: 96px 0 64px; }
	.jelajah-hero h1 { font-size: 1.35rem; }
	.profil-hero { height: 300px; }
	.profil-hero h1 { font-size: 1.45rem; }
	.lightbox { padding: 48px 8px; }
	.sisi { position: static; }
}

/* ── Katalog Produk & Layanan (/produk) ── */
.chip-jenis { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip-pilih { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--pb-garis); background: #fff; color: var(--pb-teks); border-radius: 20px; padding: 5px 12px; font-size: 12.5px; white-space: nowrap; transition: background .15s, border-color .15s; }
.chip-pilih:hover { border-color: var(--pb-biru-2); }
.chip-pilih.aktif { background: var(--pb-biru); border-color: var(--pb-biru); color: #fff; }
.chip-pilih .jml { font-size: 11px; padding: 0 6px; border-radius: 10px; background: #eef2f7; color: var(--pb-redup); }
.chip-pilih.aktif .jml { background: rgba(255, 255, 255, .2); color: #fff; }
.kartu-produk { width: 100%; cursor: pointer; }
.kartu-produk:focus-visible { outline: 2px solid var(--pb-biru-2); outline-offset: 2px; }
.kartu-produk .harga-kartu { font-size: 14px; font-weight: 700; color: var(--pb-biru); }
.kartu-produk .harga-kartu small { font-weight: 400; color: var(--pb-redup); font-size: 11px; }
.kartu-produk .harga-kartu.kosong, .harga-detail.kosong { font-size: 12px; font-weight: 500; color: var(--pb-redup); }
.kartu-produk .penyedia { font-size: 12px; color: var(--pb-redup); display: flex; gap: 4px; align-items: center; min-width: 0; }
.kartu-produk .penyedia span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.modal-produk { position: fixed; inset: 0; z-index: 2000; background: rgba(10, 15, 22, .6); display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.modal-produk .kotak { position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 880px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); margin: auto; }
.modal-produk .tutup { position: absolute; top: 10px; right: 10px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); font-size: 18px; display: flex; align-items: center; justify-content: center; }
.modal-produk .foto-produk { position: relative; aspect-ratio: 1 / 1; background: #eef2f7; }
.modal-produk .foto-produk img, .modal-produk .foto-produk .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.modal-produk .foto-produk .ph i { font-size: 4rem; }
.modal-produk .geser { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .55); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.modal-produk .geser.kiri { left: 10px; }
.modal-produk .geser.kanan { right: 10px; }
.modal-produk .hitung { position: absolute; bottom: 10px; right: 10px; font-size: 11px; padding: 3px 8px; border-radius: 10px; background: rgba(15, 23, 42, .65); color: #fff; }
.modal-produk .mini-foto { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #f8fafc; }
.modal-produk .mini-foto button { flex-shrink: 0; width: 52px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; opacity: .7; }
.modal-produk .mini-foto button.aktif { border-color: var(--pb-biru-2); opacity: 1; }
.modal-produk .mini-foto img { width: 100%; height: 100%; object-fit: cover; }
.modal-produk .isi { padding: 20px 22px; }
.modal-produk h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; padding-right: 30px; }
.modal-produk .harga-detail { font-size: 1.2rem; font-weight: 700; color: var(--pb-biru); margin-bottom: 10px; }
.modal-produk .ket { white-space: pre-line; font-size: 13.5px; color: #3b4651; margin-bottom: 12px; }
.modal-produk .kotak-penyedia { border: 1px solid var(--pb-garis); border-radius: 10px; padding: 10px 12px; background: #fbfcfe; }

@media (max-width: 767.98px) {
	.modal-produk { padding: 0; align-items: flex-end; }
	.modal-produk .kotak { border-radius: 14px 14px 0 0; max-height: 92vh; overflow-y: auto; margin: 0; }
	.modal-produk .foto-produk { aspect-ratio: 4 / 3; }
	.modal-produk .isi { padding: 16px; }
}
.modal-produk .catatan-katalog { font-size: 11.5px; color: var(--pb-redup); margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--pb-garis); }

/* Badge filter aktif di Jelajah Objek: klik untuk menghapus filter itu */
.filter-aktif { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--pb-garis); }
.chip-filter { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #cfe0f1; background: #eef5fc; color: var(--pb-biru); border-radius: 20px; padding: 4px 8px 4px 10px; font-size: 12.5px; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s; max-width: 100%; }
.chip-filter span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.chip-filter .tutup { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(2, 50, 88, .08); font-size: 12px; }
.chip-filter:hover, .chip-filter:focus-visible { background: #ffecec; border-color: #f5c2c2; color: #b42318; outline: none; }
.chip-filter:hover .tutup { background: rgba(180, 35, 24, .12); }
