/* ============================================================
   FILE: assets/css/public-style.css
   Styling untuk halaman publik (wisatawan)
   ============================================================ */

/* ---- Base & Typography ---- */
:root {
  --primary:       #1a8a5a;
  --primary-dark:  #0d5c3b;
  --primary-light: #e8f5ee;
  --secondary:     #0d6efd;
  --warning:       #ffc107;
  --danger:        #dc3545;
  --text-dark:     #212529;
  --text-muted:    #6c757d;
  --border:        #dee2e6;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:     0 16px 48px rgba(0,0,0,.16);
  --radius:        .5rem;
  --radius-lg:     1rem;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.65;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #bbb; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #888; }

/* ---- Navbar ---- */
.navbar { box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.navbar .nav-link {
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem .9rem !important;
  border-radius: .35rem;
  transition: background .2s;
}
.navbar .nav-link:hover { background: rgba(255,255,255,.12); }
.navbar .nav-link.active { background: rgba(255,255,255,.2); }

/* ---- Section Title ---- */
.section-title {
  position: relative;
  padding-bottom: .75rem;
  margin-bottom: .25rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---- Card Wisata ---- */
.card-wisata {
  border: 0 !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.card-wisata:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.card-wisata .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform .4s ease;
}
.card-wisata:hover .card-img-top { transform: scale(1.04); }

/* ---- Badge Cluster ---- */
.badge-cluster-1 { background: #28a745; color: #fff; font-size: .72rem; }
.badge-cluster-2 { background: #007bff; color: #fff; font-size: .72rem; }
.badge-cluster-3 { background: #ffc107; color: #212529; font-size: .72rem; }

/* ---- Buttons ---- */
.btn-success, .btn-success:hover { background: var(--primary); border-color: var(--primary); }
.btn-success:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.btn-outline-success {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-success:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---- Hero ---- */
.hero-section { position: relative; overflow: hidden; }
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,138,90,.94), rgba(13,79,52,.97));
  z-index: 1;
}
.hero-section > * { position: relative; z-index: 2; }

/* ---- Banner Slider ---- */
.banner-slider .owl-nav button {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85) !important;
  color: var(--primary) !important;
  width: 40px; height: 40px;
  border-radius: 50% !important;
  font-size: 1rem !important;
  box-shadow: var(--shadow-sm);
  transition: .2s;
}
.banner-slider .owl-nav button:hover {
  background: var(--primary) !important;
  color: #fff !important;
}
.banner-slider .owl-nav .owl-prev { left: 12px; }
.banner-slider .owl-nav .owl-next { right: 12px; }
.banner-slider .owl-dots { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; }
.banner-slider .owl-dot span { background: rgba(255,255,255,.5) !important; }
.banner-slider .owl-dot.active span { background: #fff !important; }

/* ---- Filter Bar ---- */
.filter-bar {
  background: #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.07);
  z-index: 100;
}

/* ---- Pagination ---- */
.pagination .page-link {
  color: var(--primary);
  border-radius: .35rem !important;
  margin: 0 2px;
  font-size: .875rem;
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
}
.pagination .page-link:hover { background: var(--primary-light); color: var(--primary); }

/* ---- Detail Wisata ---- */
.detail-foto-thumb {
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  border-radius: .35rem;
  overflow: hidden;
}
.detail-foto-thumb:hover { opacity: .85; transform: scale(1.03); }

.fasilitas-item {
  display: flex;
  align-items: center;
  padding: .45rem .6rem;
  background: var(--primary-light);
  border-radius: .35rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary-dark);
}
.fasilitas-item i { width: 18px; text-align: center; }

/* ---- Info Sidebar Card ---- */
.info-card-wisata .list-group-item {
  padding: .65rem 1rem;
  font-size: .875rem;
}

/* ---- Wisata Terdekat ---- */
.card-terdekat .card-body { padding: .6rem; }
.card-terdekat img { border-radius: .35rem .35rem 0 0; }

/* ---- Peta Fullscreen ---- */
#peta-wrap { position: relative; }
.leaflet-popup-content-wrapper {
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-md) !important;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
}
.leaflet-popup-content { margin: 10px 14px; }
.leaflet-popup img { border-radius: .35rem; margin-bottom: 6px; }

/* ---- Custom Marker ---- */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(26,138,90,.2) !important;
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: rgba(26,138,90,.65) !important;
  color: #fff !important;
  font-weight: 700;
}

/* ---- Galeri Masonry ---- */
#galeriFoto { column-gap: 10px; }
#galeriFoto > div { break-inside: avoid; margin-bottom: 10px; }
.galeri-item { overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.galeri-item img { display: block; width: 100%; transition: transform .35s ease; }
.galeri-item:hover img { transform: scale(1.06); }
.galeri-overlay { transition: opacity .3s ease; }

/* ---- Cluster Tab ---- */
.nav-tabs .nav-link {
  color: var(--text-muted);
  font-size: .875rem;
  padding: .6rem 1.1rem;
  border-radius: .35rem .35rem 0 0;
}
.nav-tabs .nav-link.active {
  color: var(--primary);
  border-bottom-color: #fff;
  font-weight: 700;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

/* ---- Footer ---- */
footer a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .875rem; transition: color .2s; }
footer a:hover { color: #fff; }
footer h5, footer h6 { font-weight: 700; }

/* ---- Lightbox Override ---- */
.lb-data .lb-caption { font-family: 'Poppins', sans-serif; font-size: .875rem; }
.lb-outerContainer { border-radius: var(--radius); }

/* ---- AOS Override ---- */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: .82rem; }
.breadcrumb-item a { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-muted); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-section h1 { font-size: 2rem; }
  .card-wisata .card-img-top { height: 170px; }
  .banner-slider .item { height: 240px; }
  #peta-sidebar { max-height: 220px; }
  #peta-map { min-height: 55vh; }
}

@media (max-width: 576px) {
  .hero-section h1 { font-size: 1.6rem; }
  section { padding-top: 2rem !important; padding-bottom: 2rem !important; }
}


