:root{
  --purple:#6a2cff;
  --green:#20c997;
  --orange:#ff8a00;

  --bg:#0b0b10;
  --text:#0f172a;
  --muted:#64748b;
  --card:#ffffff;
  --line:rgba(15,23,42,.10);

  --shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius: 18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background: #f6f7fb;
}

a{color:inherit; text-decoration:none}
.container{
  width:min(1120px, 92vw);
  margin-inline:auto;
}

/* Topbar */
.topbar{
  background: #0e0e16;
  color:#fff;
  font-size:14px;
}
.topbar-inner{
  display:flex; justify-content:space-between; align-items:center;
  padding:10px 0;
  gap:12px;
}
.topbar-left{display:flex; gap:10px; align-items:center; opacity:.92}
.topbar-right{display:flex; gap:8px; align-items:center}
.dot{opacity:.6}
.pill{
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  opacity:.95;
}

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  background: rgba(246,247,251,.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
  padding:12px 0;
}
.brand{
  display:flex; align-items:center; gap:12px;
}
.brand-logo{
  width:44px; height:44px; object-fit:cover;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
}
.brand-text{display:flex; flex-direction:column; line-height:1.1}
.brand-name{font-weight:800}
.brand-tagline{font-size:12px; color:var(--muted)}
.nav{
  display:flex; gap:18px; align-items:center;
  font-size:14px;
}
.nav a{opacity:.85}
.nav a:hover{opacity:1}
.menu-btn{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  border-radius:12px;
}

/* Hero */
.hero{
  padding:48px 0 22px;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(106,44,255,.18), transparent 60%),
    radial-gradient(700px 500px at 80% 10%, rgba(32,201,151,.16), transparent 60%),
    radial-gradient(700px 500px at 80% 90%, rgba(255,138,0,.16), transparent 60%);
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}
.hero-copy{
  background: rgba(255,255,255,.75);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:26px;
  box-shadow: var(--shadow);
}
.badge{
  display:inline-flex; align-items:center; gap:10px;
  font-size:13px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  margin-bottom:14px;
}
.dot-purple{
  width:10px; height:10px; border-radius:999px;
  background: var(--purple);
}
.hero h1{
  font-size: clamp(28px, 4vw, 44px);
  margin:0 0 10px;
  letter-spacing:-0.02em;
}
.hero p{
  margin:0 0 18px;
  color: rgba(15,23,42,.82);
  line-height:1.6;
}
.hero-actions{
  display:flex; gap:10px; flex-wrap:wrap;
}
.btn{
  display:inline-flex; justify-content:center; align-items:center;
  padding:12px 14px;
  border-radius: 14px;
  font-weight:700;
  border:1px solid transparent;
  transition: transform .06s ease, opacity .2s ease;
  font-family: inherit;
  font-size: 14px;
  line-height: 1;
}
.btn:active{transform: translateY(1px)}
.btn.primary{background: var(--purple); color:#fff}
.btn.secondary{background: var(--green); color:#0b0b10}
.btn.ghost{background:#fff; border-color: var(--line)}
.btn.pill{border-radius:999px; padding:12px 18px; font-weight:800}

/* Outline button variant (cleaner hierarchy) */
.btn.outline{
  background:#fff;
  color: var(--purple);
  border-color: rgba(106,44,255,.28);
  font-weight:800;
}

/* Button stack spacing (package detail sidebar) */
.btn-stack{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.trust-row{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top:18px;
}
.trust-item{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius: 14px;
  background:#fff;
  border:1px solid var(--line);
}
.trust-num{
  width:26px; height:26px; border-radius:10px;
  display:grid; place-items:center;
  background: rgba(106,44,255,.12);
  color: var(--purple);
  font-weight:900;
}
.trust-text{font-size:13px; color: rgba(15,23,42,.80)}

/* Hero card */
.hero-card{
  background:#0e0e16;
  color:#fff;
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.10);
}
.hero-card-title{font-weight:900}
.hero-card-sub{font-size:13px; opacity:.8; margin-top:2px}
.chips{
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:14px;
}
.chip{
  cursor:pointer;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color:#fff;
  font-weight:700;
}
.chip.outline{
  background:transparent;
}
.mini-note{
  font-size:12px;
  opacity:.75;
  margin-top:14px;
}

/* Sections */
.section{padding:42px 0}
.section-head h2{
  margin:0 0 6px;
  letter-spacing:-0.02em;
}
.section-head p{
  margin:0 0 18px;
  color:var(--muted);
}

/* Cards & grids */
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.grid-2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.grid-3{display:grid; gap:14px; grid-template-columns:1fr}

@media (min-width: 680px){
  .grid-3{grid-template-columns: repeat(2, minmax(0,1fr));}
}
@media (min-width: 1024px){
  .grid-3{grid-template-columns: repeat(3, minmax(0,1fr));}
}



.muted{color:var(--muted)}
.small{font-size:12px}

.list{list-style:none; padding:0; margin:0; display:grid; gap:10px}
.tick{
  display:inline-grid; place-items:center;
  width:22px; height:22px;
  border-radius:9px;
  background: rgba(106,44,255,.12);
  color: var(--purple);
  font-weight:900;
  margin-right:8px;
}
.tick.green{background: rgba(32,201,151,.14); color: var(--green)}
.tick.orange{background: rgba(255,138,0,.14); color: var(--orange)}

.tag{
  display:inline-flex;
  font-size:12px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
}
.tag.purple{color: var(--purple)}
.tag.green{color: var(--green)}
.tag.orange{color: var(--orange)}

/* Timeline */
.timeline{display:grid; gap:12px}
.t-item{display:flex; gap:12px; align-items:flex-start}
.t-dot{
  width:14px; height:14px; border-radius:999px; margin-top:6px;
  background: var(--purple);
}
.t-dot.green{background: var(--green)}
.t-dot.orange{background: var(--orange)}
.t-body{
  background:#fff;
  border:1px solid var(--line);
  border-radius: 16px;
  padding:14px;
  box-shadow: var(--shadow);
  flex:1;
}
.t-title{font-weight:900}
.t-desc{color:var(--muted); margin-top:4px}

/* Packages */
.toolbar{
  display:flex; justify-content:space-between; align-items:center;
  gap:10px;
  margin-bottom:12px;
}
.toolbar-left{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.filter-btn{
  cursor:pointer;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:800;
  font-size:13px;
  opacity:.92;
}
.filter-btn.active{
  border-color: rgba(106,44,255,.35);
  box-shadow: 0 8px 22px rgba(106,44,255,.12);
}
.search{
  width: min(360px, 92vw);
  padding:11px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  outline:none;
  background:#fff;
}
.pkg-head{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom:10px;
}
.price{font-weight:900}
.bullets{margin:10px 0 0; padding-left:18px; color: rgba(15,23,42,.80)}
.actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.btn.ghost{font-weight:800}

/* Quotes */
.quote p{margin:0 0 10px; line-height:1.6}

/* Contact */
.contact-list{display:grid; gap:10px}
.addr{line-height:1.5}
.form{display:grid; gap:8px}
input, textarea{
  padding:11px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  outline:none;
  background:#fff;
  font: inherit;
}

/* Footer */
.footer{
  background:#0e0e16;
  color:#fff;
  padding:26px 0;
  margin-top:30px;
}
.footer-inner{
  display:flex; justify-content:space-between; gap:14px; align-items:center;
}
.footer-title{font-weight:900}
.footer-links{display:flex; gap:14px; opacity:.9}

/* Floating WA */
.wa-float{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:80;
  background: var(--orange);
  color:#0b0b10;
  font-weight:900;
  padding:12px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.25);
}

/* Responsive */
@media (max-width: 900px){
  .hero-inner{grid-template-columns: 1fr}
  .nav{display:none}
  .menu-btn{display:inline-flex}
  .footer-inner{flex-direction:column; align-items:flex-start}
}

@media (max-width: 640px){
  .grid-3{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}

  /* Mobile topbar: prevent clipping, allow wrap like Home dropdown */
  .topbar{font-size:12px; line-height:1.35}
  .topbar-inner{flex-wrap:wrap; padding:10px 0}
  .topbar-left{flex:1 1 100%; gap:8px}
  .topbar-right{flex:1 1 100%; justify-content:flex-start; gap:8px}
  .pill{padding:6px 10px}
}



/* ===== V2: Clean travel UI components ===== */
.hero2{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:16px;
  align-items:stretch;
}
.hero2-left{
  background: rgba(255,255,255,.75);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:26px;
  box-shadow: var(--shadow);
}
.hero2-right{display:grid; gap:12px}
.search-card{
  background:#0e0e16;
  color:#fff;
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.10);
}
.search-title{font-weight:900}
.search-sub{font-size:13px; opacity:.8; margin-top:2px}
.search-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.field{display:grid; gap:6px}
.field.full{grid-column: 1 / -1}
.field label{font-size:12px; opacity:.85}
select, .field input{
  padding:11px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:#fff;
  outline:none;
  font: inherit;
}
.field input::placeholder{color: rgba(255,255,255,.55)}
.fullw{width:100%}
.mini-banners{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
.mini-banner{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}
.mini-banner.alt{
  background: rgba(255,255,255,.75);
}
.mb-title{font-weight:900}
.mb-desc{color:var(--muted); font-size:13px; margin-top:2px}

/* Page hero */
.page-hero{
  padding:26px 0 10px;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(106,44,255,.14), transparent 60%),
    radial-gradient(700px 500px at 80% 10%, rgba(32,201,151,.12), transparent 60%),
    radial-gradient(700px 500px at 80% 90%, rgba(255,138,0,.12), transparent 60%);
}
.breadcrumb{
  display:flex; gap:8px; align-items:center;
  font-size:13px;
  color: rgba(15,23,42,.72);
}
.breadcrumb span{opacity:.75}
.page-search{
  margin-top:14px;
  display:grid; gap:10px;
}
.page-search.marketplace{
  position: sticky;
  top: 86px; /* below header */
  z-index: 20;
  padding: 10px;
  border-radius: 18px;
  background: rgba(246,247,251,.80);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
}
.page-search.marketplace .searchbar{
  display:grid;
  grid-template-columns: 1fr 220px;
  gap:10px;
}
.page-search.marketplace.no-search .searchbar{
  grid-template-columns: 220px;
  justify-content: end;
}

/* Filter bar layout (packages.html): tabs left, sort right */
.page-search.marketplace .filter-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.page-search.marketplace .filter-row .tabs{ flex: 1 1 auto; }
.page-search.marketplace .filter-row .sort{ flex: 0 0 240px; max-width:240px; }
.select{
  width:100%;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.14);
  background:#fff;
  font-weight:900;
}

/* Custom sort dropdown (packages.html) */
.sort{ position:relative; width:100%; }
.sort-btn{ display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; }
.sort-menu{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  min-width: 260px;
  padding:8px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: #0b0b10;
  box-shadow: 0 16px 40px rgba(2,6,23,.28);
  display:none;
  z-index: 50;
}
.sort-menu.open{ display:block; }
.sort-item{
  width:100%;
  text-align:left;
  padding:10px 12px;
  border-radius:12px;
  border:0;
  background: transparent;
  color: rgba(255,255,255,.92);
  font-weight:900;
  cursor:pointer;
}
.sort-item:hover{ background: rgba(255,255,255,.10); }
.sort-item.active{ background: rgba(106,44,255,.22); }
@media (max-width: 720px){
  .page-search.marketplace{ top: 74px; }
  .page-search.marketplace .searchbar{ grid-template-columns:1fr; }
  .page-search.marketplace .filter-row{ flex-direction:column; align-items:stretch; }
  .page-search.marketplace .filter-row .sort{ flex:1 1 auto; max-width:none; }
}
.search.big{padding:14px 14px; border-radius: 16px}
.tabs{display:flex; gap:8px; flex-wrap:wrap}
.tab{
  cursor:pointer;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background:#fff;
  font-weight:900;
  font-size:13px;
  opacity:.92;
}
.tab.active{
  background: var(--purple);
  color:#fff;
  border-color: rgba(106,44,255,.45);
  box-shadow: 0 10px 24px rgba(106,44,255,.18);
  opacity: 1;
}

/* Package card v2 */
.pkg2{display:grid; gap:10px}
.pkg2-top{display:flex; justify-content:space-between; align-items:center}
.stars{font-weight:900; font-size:13px}
.pillrow{display:flex; flex-wrap:wrap; gap:8px}
.pill2{
  display:inline-flex;
  padding:7px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background:#fff;
  font-size:12px;
  font-weight:900;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.pill2.video-doc{
  /* Sama persis seperti tombol primary (mis. "Lihat Semua Paket") */
  background: var(--purple);
  color:#ffffff;
  border-color: transparent;
  box-shadow: none;
}
.pill2.video-doc:hover{
  transform: translateY(-1px);
  box-shadow: none;
}
.pill2.video-doc:active{ transform: translateY(0px); }
.pill2.green{border-color: rgba(32,201,151,.35); background: rgba(32,201,151,.08)}
.pill2.orange{border-color: rgba(255,138,0,.35); background: rgba(255,138,0,.08)}
.pkg2-bottom{display:flex; justify-content:space-between; align-items:center; gap:10px; flex-wrap:wrap; margin-top:4px}
.price2{font-weight:1000; font-size:18px; letter-spacing:-0.02em}
/* Detail page */
.detail-hero{
  padding:26px 0 10px;
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(106,44,255,.14), transparent 60%),
    radial-gradient(700px 500px at 85% 10%, rgba(32,201,151,.12), transparent 60%),
    radial-gradient(700px 500px at 85% 90%, rgba(255,138,0,.12), transparent 60%);
}
.detail-top{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:start;
}
.tagrow{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.highlights{display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; margin-top:14px}
.h-item{
  background:#fff;
  border:1px solid var(--line);
  border-radius: 16px;
  padding:12px;
  box-shadow: var(--shadow);
  display:flex; gap:10px; align-items:center;
}
.h-ic{width:12px; height:12px; border-radius:999px; background: var(--purple)}
.h-ic.green{background: var(--green)}
.h-ic.orange{background: var(--orange)}
.h-t{font-weight:1000; font-size:13px}

.book-card{
  position:sticky;
  top:92px;
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}
.bigprice{font-size:22px; font-weight:1000; letter-spacing:-0.02em}
.book-meta{display:grid; gap:8px; margin:12px 0}
.detail-grid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:14px;
  align-items:start;
}
.detail-main{display:grid; gap:14px}
.detail-side{display:grid; gap:14px}
.split-2{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:12px}

.checklist{list-style:none; padding:0; margin:0; display:grid; gap:10px}
.checklist li .tick{margin-right:8px}

/* Accordion */
.accordion{display:grid; gap:10px; margin-top:10px}
.acc-item{border:1px solid var(--line); border-radius: 16px; overflow:hidden; background:#fff}
.acc-btn{
  width:100%;
  padding:12px 14px;
  background:#fff;
  border:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-weight:1000;
  cursor:pointer;
}
.acc-panel{display:none; padding:0 14px 14px; color: rgba(15,23,42,.82); line-height:1.6}
.acc-ic{font-weight:1000}

/* FAQ */
.faq{display:grid; gap:10px; margin-top:10px}
.faq-q{font-weight:1000}
.faq-a{color: rgba(15,23,42,.78); line-height:1.6; margin-bottom:4px}

/* Responsive v2 */
@media (max-width: 640px){
  .hero2{grid-template-columns:1fr}
  .mini-banners{grid-template-columns:1fr}
  .detail-top{grid-template-columns:1fr}
  .detail-grid{grid-template-columns:1fr}
  .split-2{grid-template-columns:1fr}
  .highlights{grid-template-columns:1fr}
  .book-card{position:relative; top:auto}
}

.dest-card{display:block; transition: transform .08s ease, box-shadow .2s ease;}
.dest-card:hover{transform: translateY(-1px);}

/* ===== Images for packages ===== */
.pkg-cover{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background:#fff;
}
.pkg2{gap:12px}
.detail-cover{
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,.10);
  background:#fff;
  margin-top:12px;
  box-shadow: var(--shadow);
}

/* ===== V6 Destination page tweaks ===== */
.hero.compact{padding-top:32px;padding-bottom:22px}
.chips{display:flex;gap:8px;flex-wrap:wrap}


/* CTA slim (end of Paket section) */
.cta-slim{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap}
.cta-title{font-weight:1000}


/* --- Home Search Card: layout-only improvements (keep original colors) --- */
.search-card .search-form{display:grid; grid-template-columns: 1fr; gap:12px}
.search-card .field{margin:0}
.search-card label{display:block; margin-bottom:8px}

/* Make dropdown as wide as the button */
.search-card select{
  width:100%;
  display:block;
  box-sizing:border-box;
  min-height:54px;
  border-radius:16px;
  padding:14px 16px;
  font-size:16px;
}

/* Make button height consistent with dropdown */
.search-card #goSearchBtn,
.search-card .btn.primary{
  width:100%;
  min-height:54px;
  border-radius:16px;
}

/* Tighten header spacing */
.search-card h3{margin-bottom:6px}
.search-card .search-sub{margin:0 0 12px}

/* Tip spacing */
.search-card .mini-note{margin-top:10px; line-height:1.45}


/* --- Fix: make Destinasi dropdown truly full-width and tighten spacing --- */
.search-card,
.search-card .search-form,
.search-card .field{width:100%}
.search-card .search-form{gap:10px} /* reduce gap between dropdown and button */
.search-card .field select{
  width:100% !important;
  max-width:none !important;
}


/* --- FINAL override: search grid is 1 column so Destinasi spans full width --- */
.search-card .search-grid{grid-template-columns:1fr !important; gap:10px !important;}
.search-card .search-grid .field{grid-column:1 / -1 !important;}
/* ensure select fills the grid cell */
.search-card .search-grid select{width:100% !important; max-width:none !important;}
/* make select height visually match button */
.search-card .search-grid select{min-height:58px !important;}
.search-card #goSearchBtn{min-height:58px !important;}


/* --- tighten bottom space under Tip in search-card --- */
.search-card .mini-note{margin-bottom:0 !important; padding-bottom:0 !important;}
.search-card{padding-bottom:18px;} /* base; inline overrides in index */


/* Hide free-text search inputs (kept for JS compatibility) */
.hide-search{display:none !important;}


/* === FIX: dropdown options readable on Windows/Chrome (avoid white-on-white) === */
.search-card select,
#destSelect{
  color:#ffffff;
}

.search-card select option,
#destSelect option{
  color:#0f172a;
  background:#ffffff;
}

.search-card select option:checked,
#destSelect option:checked{
  background:#e8fff3;
}

/* ===== Portfolio cards ===== */
.project-card.is-link{ cursor:pointer; }
.project-card.is-link:focus{ outline:2px solid rgba(91,44,255,.35); outline-offset:4px; }
.project-card .card-media{
  width:100%;
  height:160px;
  border-radius: 14px;
  overflow:hidden;
  margin-bottom:12px;
  background: rgba(0,0,0,.04);
}
.project-card .card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Make project cards behave like package cards: CTA stays at bottom-right */
.project-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
/* In a flex column, items stretch full width by default.
   Keep the category tag as a compact pill like before. */
.project-card .tag{
  align-self:flex-start;
  width: fit-content;
}

.project-card .chips{
  margin-top:auto;
  padding-top:14px;
  justify-content:flex-end;
}


/* --- Portfolio + Project Detail --- */
.card-link{ text-decoration:none; color:inherit; display:block; }
.card-link:focus{ outline:2px solid rgba(91,44,255,.35); outline-offset:4px; border-radius:16px; }

.filters{ display:flex; gap:12px; align-items:center; margin: 14px 0 18px; }
.input{ width:100%; max-width:520px; padding:12px 14px; border-radius:14px; border:1px solid rgba(0,0,0,.1); background:#fff; }

.project-detail-card h3{ margin-top:18px; }

/* Prevent long text (e.g., description) from overflowing to the right */
.project-detail-card p,
.project-detail-card li{
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bullets{ padding-left: 18px; margin: 10px 0; }
.bullets li{ margin: 6px 0; }

/* --- Back button (Project Detail) --- */
.backlink{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.2px;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(15,23,42,.10);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.backlink:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(15,23,42,.14);
  border-color: rgba(91,44,255,.25);
}
.backlink:focus{
  outline:2px solid rgba(91,44,255,.35);
  outline-offset:3px;
}

.gallery{ margin-top:14px; }
.gallery-main{ position:relative; border-radius:18px; overflow:hidden; border:1px solid rgba(0,0,0,.08); background:#fff; }
.gallery-main img{ width:100%; height:auto; display:block; }

/* Package detail: cover/galleries sering terlalu tinggi — buat lebih "travel site" (16:9 feel) */
.detail-hero .gallery-main img{
  height: clamp(220px, 30vw, 420px);
  object-fit: cover;
}
@media (max-width: 640px){
  .detail-hero .gallery-main img{
    height: clamp(200px, 52vw, 320px);
  }
}


/* --- Prev/Next overlay buttons inside main image --- */
.gnav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:46px;
  height:46px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(15,23,42,.40);
  color:#fff;
  font-size:30px;
  line-height:46px;
  text-align:center;
  cursor:pointer;
  box-shadow: 0 18px 40px rgba(15,23,42,.30);
  backdrop-filter: blur(6px);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.gnav:hover{
  background: rgba(15,23,42,.55);
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 22px 48px rgba(15,23,42,.38);
}
.gnav:active{
  transform: translateY(-50%) scale(.98);
}
.gnav.prev{ left:14px; }
.gnav.next{ right:14px; }

@media (max-width: 640px){
  .gnav{ width:42px; height:42px; line-height:42px; font-size:28px; }
  .gnav.prev{ left:10px; }
  .gnav.next{ right:10px; }
}
.gallery-thumbs{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.gthumb{ padding:0; border:1px solid rgba(0,0,0,.08); border-radius:14px; overflow:hidden; background:#fff; cursor:pointer; }
.gthumb img{ width:84px; height:60px; object-fit:cover; display:block; }
.gthumb.active{ border-color: rgba(91,44,255,.55); box-shadow: 0 0 0 3px rgba(91,44,255,.15); }

.gthumb.hidden{ display:none; }
.gthumb.more{
  width:84px;
  height:60px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  background: linear-gradient(135deg, rgba(91,44,255,.10), rgba(32,201,151,.10));
  color:#0f172a;
}

.gallery-admin{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.gallery-admin .gitem{ border:1px solid rgba(0,0,0,.08); border-radius:14px; padding:8px; background:#fff; width:160px; }
.gallery-admin img{ width:100%; height:90px; object-fit:cover; border-radius:10px; display:block; margin-bottom:8px; }
.pill2.danger{ border-color: rgba(220,38,38,.35); color:#b91c1c; }


/* ===== Project detail (seragam dengan package/destination) ===== */
.detail-layout{
  display:grid;
  grid-template-columns: 1.6fr .9fr;
  gap:18px;
  align-items:start;
}
.detail-main .card{ padding:18px; }
.detail-side .card{ padding:18px; }
.detail-side-title{ margin:10px 0 6px; font-size:20px; line-height:1.2; }
.detail-cta{ display:flex; flex-direction:column; gap:10px; margin-top:14px; }
.detail-cta .btn{ width:100%; justify-content:center; }
.prose{ line-height:1.75; max-width: 72ch; }
.prose{ overflow-wrap:anywhere; word-break:break-word; }

/* Sticky panel (desktop) */
.sticky{ position:sticky; top:110px; }

/* Gallery feels clickable */
.gallery-main{ cursor: zoom-in; }

@media (max-width: 980px){
  .detail-layout{ grid-template-columns: 1fr; }
  .sticky{ position:static; top:auto; }
  .prose{ max-width: 100%; }
}

/* Simple lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(15,23,42,.82);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 9999;
  padding: 18px;
}
.lightbox.open{ display:flex; }
.lightbox-inner{
  position:relative;
  max-width: 1100px;
  width:100%;
}
.lightbox-img{
  width:100%;
  max-height: 82vh;
  object-fit: contain;
  display:block;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
}
.lightbox-close{
  position:absolute;
  top:-10px;
  right:-10px;
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(15,23,42,.55);
  color:#fff;
  cursor:pointer;
  font-size:18px;
}
.lightbox-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:46px;
  height:46px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(15,23,42,.55);
  color:#fff;
  cursor:pointer;
  font-size:28px;
}
.lightbox-nav.prev{ left: -12px; }
.lightbox-nav.next{ right: -12px; }

@media (max-width: 640px){
  .lightbox-nav.prev{ left: 6px; }
  .lightbox-nav.next{ right: 6px; }
}



/* === Grids for Portfolio & Packages (responsive) === */
/*
  NOTE: Portfolio sebelumnya terlihat "mulai dari tengah" karena layout 3 kolom
  dengan jumlah item < 3 bisa membentuk baris yang tampak bergeser.
  Solusi paling stabil: Portfolio pakai 2 kolom di desktop.
*/
#portfolioGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  align-items:stretch;
  justify-items:stretch;
  justify-content:start;
  align-content:start;
  grid-auto-flow: row;
  width:100%;
}

#homePackageGrid, #projectsGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  align-items:stretch;
  justify-items:stretch;
  justify-content:start;
  align-content:start;
  grid-auto-flow: row;
  width:100%;
}

@media (max-width: 980px){
  #portfolioGrid{ grid-template-columns: repeat(2, 1fr); }
  #homePackageGrid, #projectsGrid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px){
  #portfolioGrid, #homePackageGrid, #projectsGrid{ grid-template-columns: 1fr; }
}
/* Card media (project images) */
.card-media{
  width:100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow:hidden;
  background: #f2f4f8;
  border:1px solid var(--line);
  margin-bottom:12px;
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Better CTA buttons inside sections */
.section-head .btn{font-weight:800}



/* Testimonials */
#testimonials .card.quote{position:relative;overflow:hidden}
#testimonials .t-avatar{width:46px;height:46px;border-radius:999px;overflow:hidden;border:1px solid rgba(15,23,42,.10);margin-bottom:10px}
#testimonials .t-avatar img{width:100%;height:100%;object-fit:cover;display:block}
#testimonials .t-stars{margin-top:8px;font-size:14px;letter-spacing:1px}
