/* =========================================================
   CV. SIMPATI TRANS — Halaman Galeri Foto Wisatawan (galeri.css)
   CSS khusus halaman Galeri — berdiri sendiri,
   tidak memakai css/rental.css. Komponen umum (tombol, section,
   footer, navbar, dll.) tetap dari css/style.css.
   ========================================================= */

/* ---------- Progress bar atas ---------- */
.scroll-prog {
  position: fixed; top: 0; left: 0;
  height: 4px; width: 0;
  background: var(--grad-red);
  border-radius: 0 4px 4px 0;
  z-index: 9999;
  transition: width .1s linear;
}

/* ---------- Hero halaman (foto + overlay gradasi navy) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: left;
  padding: 4.6rem 0 5.6rem;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("../assets/ikon makassar lanscape.jpg") center/cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.1) brightness(.95);
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(2,21,51,.93) 8%, rgba(3,31,78,.72) 50%, rgba(7,70,176,.32) 100%),
    linear-gradient(to top, rgba(2,21,51,.75), transparent 55%);
}
.page-hero-grid { position: relative; z-index: 3; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: .7rem; }
.page-hero p { color: #cfe0ff; max-width: 640px; font-size: 1.02rem; }

/* blob dekoratif melayang */
.page-hero-blobs { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.page-hero-blobs span { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .45; }
.page-hero-blobs span:nth-child(1) { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, #ff8a3d, #810404); top: -70px; left: -40px; animation: floaty 9s ease-in-out infinite; }
.page-hero-blobs span:nth-child(2) { width: 150px; height: 150px; background: radial-gradient(circle at 30% 30%, #4f8dff, #01218f); bottom: -50px; right: 10%; animation: floaty 7s ease-in-out infinite 1s; }
.page-hero-blobs span:nth-child(3) { width: 80px;  height: 80px;  background: radial-gradient(circle at 30% 30%, #ffd166, #f8430a); top: 28%; right: 28%; animation: floaty 11s ease-in-out infinite .5s; }

/* breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: #9fc1ff; font-weight: 600; margin-bottom: 1rem;
}
.breadcrumb a { color: #cfe0ff; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { opacity: .55; }

/* wave putih di bawah hero */
.page-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 60c180 32 360 32 720 0s540-32 720 0v30H0V60z'/%3E%3Cpath fill='%23ffffff' opacity='.55' d='M0 74c240 22 480 22 720 0s480-22 720 0v16H0V74z'/%3E%3C/svg%3E") bottom center/100% 100% no-repeat;
  pointer-events: none;
}

/* ---------- Galeri foto wisatawan ---------- */
.gallery-section { padding-top: 1rem; }
.gallery-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  margin: 0 0 2rem;
}
.filter-pill {
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  padding: .6rem 1rem; border-radius: 50rem; font-size: .88rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: .5rem; transition: .25s;
}
.filter-pill span {
  font-size: .72rem; font-weight: 700; color: var(--muted);
  background: rgba(3,31,78,.08); padding: .1rem .45rem; border-radius: 50rem;
}
.filter-pill:hover { border-color: var(--navy-2); transform: translateY(-2px); }
.filter-pill.active {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 .5rem 1rem rgba(3,31,78,.2);
}
.filter-pill.active span { background: rgba(255,255,255,.18); color: #fff; }

.gallery-grid {
  display: block; column-count: 3; column-gap: 1rem;
}
.gallery-item[hidden], .gallery-empty[hidden], .gallery-more[hidden] { display: none !important; }
.gallery-item {
  display: inline-block; width: 100%; min-width: 0; margin: 0 0 1rem;
  break-inside: avoid; -webkit-column-break-inside: avoid;
  overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  animation: galleryFade .35s ease both;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
@keyframes galleryFade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.gallery-media {
  display: block; width: 100%; padding: 0; border: 0;
  background: #eef2f8; cursor: zoom-in; overflow: hidden;
}
.gallery-media img {
  display: block; width: 100%; height: auto;
  transition: transform .5s ease;
}
.gallery-media:hover img { transform: scale(1.06); }
.gallery-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.gallery-foot {
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  margin-top: 2rem;
}
.gallery-count { color: var(--muted); font-size: .88rem; margin: 0; }
.gallery-more { min-width: 200px; justify-content: center; }
.gallery-more span { opacity: .75; font-size: .8rem; }

/* ---------- Lightbox galeri ---------- */
.glightbox {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(3,12,28,.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: .3s;
  backdrop-filter: blur(6px);
}
.glightbox.open { opacity: 1; visibility: visible; }
.gl-stage {
  max-width: min(1100px, 90vw); margin: 0; text-align: center;
  transform: scale(.96); transition: .3s;
}
.glightbox.open .gl-stage { transform: none; }
.gl-stage img {
  display: block; max-width: 100%; max-height: 74vh; margin: 0 auto;
  border-radius: .7rem; box-shadow: 0 2rem 5rem rgba(0,0,0,.6);
  object-fit: contain;
}
.gl-cap {
  color: #dbe7ff; font-size: .9rem; margin-top: .9rem;
  display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap;
}
.gl-cap b { color: #fff; }
.gl-count {
  color: #9fc1ff; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; background: rgba(255,255,255,.1);
  padding: .18rem .6rem; border-radius: 50rem;
}
.gl-btn {
  position: absolute; z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  display: grid; place-items: center; transition: .3s;
}
.gl-btn:hover { background: #fff; color: var(--navy); transform: scale(1.08); }
.gl-btn svg { width: 22px; height: 22px; }
.gl-close { top: 22px; right: 22px; }
.gl-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.gl-next { right: 22px; top: 50%; transform: translateY(-50%); }
.gl-prev:hover, .gl-next:hover { transform: translateY(-50%) scale(1.08); }
body.gl-locked { overflow: hidden; }

/* ---------- Responsive galeri ---------- */
@media (max-width: 980px) {
  .gallery-grid { column-count: 2; }
}
@media (max-width: 640px) {
  .gallery-section .section-head { margin-bottom: 2rem; }
  .gallery-filters {
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto;
    margin: 0 0 1.5rem; padding: 0 0 .4rem;
    scrollbar-width: none;
  }
  .gallery-filters::-webkit-scrollbar { display: none; }
  .filter-pill { flex: 0 0 auto; min-height: 44px; }
  /* Mobile: tetap masonry dua kolom dengan jarak lebih rapat. */
  .gallery-grid { column-gap: .5rem; }
  .gallery-item { margin-bottom: .5rem; }
  .gl-btn { width: 40px; height: 40px; }
  .gl-close { top: 14px; right: 14px; }
  .gl-prev { left: 10px; }
  .gl-next { right: 10px; }
  .gl-stage { max-width: 94vw; }
  .gl-stage img { max-height: 66vh; }
}
