:root{
  --ink:#211D2B;
  --bg:#FFFFFF;
  --card:#FFFFFF;
  --saffron:#E3A027;
  --saffron-dark:#C2820F;
  --clay:#C1443C;
  --jade:#2F6F5E;
  --text-primary:#241F2B;
  --text-muted:#8A8177;
  --text-search:#FFFFFF;
  --line:#EDE6D8;
  --radius-lg:26px;
  --radius-md:18px;
  --radius-sm:12px;
  --shadow-card:0 10px 24px -14px rgba(35,25,10,0.35);
  --header-h: 176px;   /* approx rendered header height, used to offset the first section */
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:'Plus Jakarta Sans', sans-serif;
  color:var(--text-primary);
  background:var(--bg);
}

h1,h2,h3{ font-family:'Fraunces', serif; margin:0; }

img{ -webkit-user-drag:none; user-select:none; }

/* ----------------------------------------------------------------
   Mobile screen layout — no device bezel, just mobile-resolution
   media (preview with a real mobile-simulator browser extension).
   Header + bottom nav stay put; only the middle area scrolls.
------------------------------------------------------------------- */
.viewport{
  position:relative;
  width:100%;
  max-width:430px;   /* iPhone 14 Pro Max logical width (430 x 932 pt, @3x) */
  margin:0 auto;
  height:100vh;
  height:100dvh;
  overflow:hidden;
}
.app{
  width:100%;
  height:100%;
  background:var(--bg);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  position:relative;
}

/* ---------- Scrollable content (everything except header/nav) ---------- */
.app-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:none;
  padding-bottom:28px;
}
.app-scroll::-webkit-scrollbar{ display:none; }

/* ---------- Header (fixed — does not scroll) ---------- */
.hero{
  flex:0 0 auto;
  position:relative;
  z-index:5;
  padding:calc(64px + env(safe-area-inset-top)) 22px 46px;
  color:#fff;
  background:
    linear-gradient(180deg, rgba(20,14,8,0.15) 0%, rgba(18,12,6,0.55) 65%, rgba(14,9,5,0.85) 100%),
    url('../img/tugu.jpg') center/cover no-repeat;
}
.hero-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.hero-greeting p{
  margin:0 0 2px;
  font-size:13.5px;
  color:rgba(255,255,255,0.82);
}
.hero-greeting h2{
  font-size:27px;
  font-weight:600;
  line-height:1.15;
}
.bell{
  width:40px; height:40px;
  border-radius:50%;
  background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.28);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  cursor:pointer;
  padding:0;
}
.bell img{ width:18px; height:18px; display:block; }

.location-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:14px;
  font-size:13.5px;
  color:rgba(255,255,255,0.92);
  cursor:default;
}
.location-pill span{ display:inline-flex; align-items:center; gap:5px; }
.icon-inline{ width:13px; height:13px; display:inline-block; vertical-align:middle; }
.location-pill .chev{ width:11px; height:11px; margin-left:2px; opacity:0.75; display:block; }

.searchbar{
  display:flex;
  align-items:center;
  gap:10px;
  background:#ffffff31;
  border-radius:12px;
  padding:10px 14px;
  box-shadow:0 16px 30px -12px rgba(20,14,8,0.5);
  position:relative;
  bottom:-20px;
}
.searchbar img{ width:18px; height:18px; flex-shrink:0; display:block; }
.searchbar input{
  border:none; outline:none;
  font-family:inherit;
  font-size:12px;
  width:100%;
  color:var(--text-search);
  background:transparent;
}
.searchbar input::placeholder{ color:var(--text-search); }

/* ---------- Section shell ---------- */
.section{
  padding:0 22px;
  margin-top:26px;
}
.section.first{ margin-top:26px; }
.section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:14px;
}
.section-head h2{
  font-size:15px;
  font-weight:600;
  color:var(--ink);
}
.view-all{
  font-size:12px;
  font-weight:600;
  color:var(--saffron-dark);
  background:none;
  border:none;
  cursor:pointer;
  font-family:inherit;
  padding:0;
}

/* ---------- Horizontal sliders ---------- */
.slider{
  display:flex;
  gap:14px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  padding:2px 22px 6px;
  /* margin:0 -22px; */
}
.slider::-webkit-scrollbar{ display:none; }

/* City card */
.city-card{
  position:relative;
  flex:0 0 128px;
  height:168px;
  border-radius:var(--radius-md);
  overflow:hidden;
  scroll-snap-align:start;
  box-shadow:var(--shadow-card);
}
.city-card img{ width:100%; height:100%; object-fit:cover; display:block; }
.city-card::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 45%, rgba(10,7,4,0.78) 100%);
}
.city-card span{
  position:absolute; left:12px; bottom:12px;
  z-index:2;
  color:#fff;
  font-size:15px;
  font-weight:600;
  font-family:'Fraunces', serif;
}

/* Event card */
.event-card{
  position:relative;
  flex:0 0 250px;
  height:150px;
  border-radius:var(--radius-md);
  overflow:hidden;
  scroll-snap-align:start;
  box-shadow:var(--shadow-card);
}
.event-card img.photo{ width:100%; height:100%; object-fit:cover; display:block; }
.event-card::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(0deg, rgba(8,6,3,0.88) 0%, rgba(8,6,3,0.15) 55%, transparent 75%);
}
.event-info{
  position:absolute; left:14px; right:14px; bottom:12px; z-index:2; color:#fff;
}
.event-info .badge{
  display:inline-block;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:0.2px;
  background:var(--saffron);
  color:#2A1C02;
  padding:3px 9px;
  border-radius:999px;
  margin-bottom:7px;
}
.event-info h3{
  font-size:15.5px;
  font-weight:600;
  color:#fff;
  margin-bottom:6px;
  line-height:1.2;
}
.event-meta{
  display:flex;
  flex-direction:column;
  gap:3px;
  font-size:11.5px;
  color:rgba(255,255,255,0.88);
}
.event-meta div{ display:flex; align-items:center; gap:5px; }
.event-meta img{ width:11px; height:11px; flex-shrink:0; display:block; }

/* ---------- Category pills ---------- */
.pill-row{
  display:flex;
  gap:9px;
  overflow-x:auto;
  scrollbar-width:none;
  padding:2px 22px 4px;
  margin:0 -22px 16px;
}
.pill-row::-webkit-scrollbar{ display:none; }
.pill{
  flex:0 0 auto;
  display:flex; align-items:center; gap:7px;
  padding:9px 15px;
  border-radius:999px;
  border:1.5px solid var(--line);
  background:#fff;
  font-family:inherit;
  font-size:12.8px;
  font-weight:600;
  color:var(--text-muted);
  cursor:pointer;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.pill img{ width:15px; height:15px; flex-shrink:0; display:block; }
.pill.active{
  background:var(--ink);
  border-color:var(--ink);
  color:#fff;
}
/* Base icons are drawn in muted grey; flip to white on the dark active pill */
.pill.active img{ filter:brightness(0) invert(1); }

/* Place card (Explore Pacitan) */
.place-card{
  position:relative;
  flex:0 0 172px;
  scroll-snap-align:start;
  border-radius:var(--radius-md);
  background:var(--card);
  box-shadow:var(--shadow-card);
  overflow:hidden;
  animation:fadeIn .35s ease both;
}
@keyframes fadeIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:translateY(0); } }
.place-card .thumb{ position:relative; height:118px; }
.place-card .thumb img.photo{ width:100%; height:100%; object-fit:cover; display:block; }
.rating{
  position:absolute; top:9px; left:9px;
  display:flex; align-items:center; gap:4px;
  background:rgba(255,255,255,0.95);
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  color:var(--ink);
}
.rating img{ width:11px; height:11px; display:block; }
.place-body{ padding:10px 12px 13px; }
.place-body h3{
  font-size:13.8px;
  font-weight:600;
  font-family:'Plus Jakarta Sans', sans-serif;
  color:var(--ink);
  margin-bottom:4px;
  line-height:1.25;
}
.place-loc{
  display:flex; align-items:center; gap:4px;
  font-size:11.3px;
  color:var(--text-muted);
}
.place-loc img{ width:11px; height:11px; flex-shrink:0; display:block; }

/* ---------- Bottom nav (fixed — does not scroll) ---------- */
.home-footer-brand{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  margin:8px 0 24px;
  padding-top:16px;
}
.home-footer-label{
  font-size:12.5px;
  font-weight:500;
  color:var(--text-primary);
}
.home-footer-badge{
  display:inline-flex;
  align-items:center;
  background:var(--ink);
  padding:7px 14px;
  border-radius:999px;
}
.home-footer-badge img{
  height:13px;
  width:auto;
  display:block;
}
.bottom-nav{
  flex:0 0 auto;
  position:relative;
  z-index:5;
  background:rgba(255,255,255,0.96);
  backdrop-filter:blur(6px);
  border-top:1px solid var(--line);
  display:flex;
  padding:11px 10px calc(16px + env(safe-area-inset-bottom));
}
.nav-item{
  flex:1;
  display:flex; flex-direction:column; align-items:center; gap:4px;
  background:none; border:none; font-family:inherit;
  color:var(--text-muted);
  cursor:pointer;
  padding:4px 0;
  opacity:0.55;
}
.nav-item img{ width:21px; height:21px; display:block; }
.nav-item span{ font-size:10.8px; font-weight:600; }
.nav-item.active{ color:var(--ink); opacity:1; }

/* ---------- Snackbar ---------- */
.snackbar{
  position:absolute;
  left:50%; bottom:88px;
  transform:translate(-50%, 12px);
  background:var(--ink);
  color:#fff;
  font-size:12.5px;
  font-weight:500;
  padding:10px 18px;
  border-radius:999px;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
  z-index:20;
  white-space:nowrap;
}
.snackbar.show{
  opacity:1;
  transform:translate(-50%, 0);
}

/* ---------- Splash / preloader screen ---------- */
.splash-screen{
  position:absolute;
  inset:0;
  z-index:100;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  background:linear-gradient(180deg,
    #57429b 0%,
    #7a55af 8%,
    #8a5db6 16%,
    #9862b7 24%,
    #b364b6 32%,
    #ca6eb2 40%,
    #e186a8 50%,
    #fe7f8a 60%,
    #ff8563 70%,
    #d46132 80%,
    #3c3314 92%,
    #241a12 100%);
  transition:opacity .55s ease, visibility .55s ease;
}
.splash-screen.hide{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
.splash-photo{
  position:absolute;
  top:0; left:0;
  width:100%;
  height:auto;
  display:block;
  z-index:1;
}
.splash-scrim{
  position:absolute;
  inset:0;
  z-index:2;
  background:linear-gradient(180deg,
    rgba(10,6,4,0.05) 0%,
    rgba(10,6,4,0.15) 22%,
    rgba(10,6,4,0.45) 55%,
    rgba(10,6,4,0.72) 100%);
}
.splash-content{
  position:relative;
  z-index:3;
  flex:1;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:0 28px;
  color:#fff;
}
.splash-brand{
  font-family:'Plus Jakarta Sans', sans-serif;
  font-size:29px;
  line-height:1.1;
  letter-spacing:-0.2px;
}
.splash-brand .bold{ font-weight:800; }
.splash-brand .light{ font-weight:400; }
.splash-version{
  margin:10px 0 0;
  font-size:13px;
  font-weight:500;
  color:rgba(255,255,255,0.82);
  letter-spacing:0.3px;
}
.splash-loader{
  display:flex;
  gap:7px;
  margin-top:26px;
}
.splash-loader span{
  width:7px; height:7px;
  border-radius:50%;
  background:rgba(255,255,255,0.85);
  animation:splashPulse 1.1s ease-in-out infinite;
}
.splash-loader span:nth-child(2){ animation-delay:.15s; }
.splash-loader span:nth-child(3){ animation-delay:.3s; }
@keyframes splashPulse{
  0%, 80%, 100%{ transform:scale(0.6); opacity:0.4; }
  40%{ transform:scale(1); opacity:1; }
}
.splash-footer{
  position:relative;
  z-index:3;
  margin:0;
  padding-bottom:calc(34px + env(safe-area-inset-bottom));
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:12.5px;
  font-weight:500;
  color:rgba(255,255,255,0.82);
  text-align:center;
}
.splash-footer-logo{
  height:14px;
  width:auto;
  display:block;
}


/* ==================================================================
   Top Destinations page (reached from "Best Cities to Explore" →
   Pacitan card, or that section's View All button)
=================================================================== */

/* Plain white top bar: back button + page title */
.page-header{
  flex:0 0 auto;
  position:relative;
  z-index:5;
  display:flex;
  align-items:center;
  gap:14px;
  padding:calc(20px + env(safe-area-inset-top)) 22px 16px;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.back-btn{
  width:36px; height:36px;
  border-radius:50%;
  border:none;
  background:var(--bg);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  cursor:pointer;
  padding:0;
  text-decoration:none;
}
.back-btn img{ width:16px; height:16px; display:block; }
.page-header h2{
  font-size:18px;
  font-weight:600;
  color:var(--ink);
}

/* Search bar variant used on plain (non-photo) pages */
.page-searchbar{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  margin:16px 22px 4px;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
}
.page-searchbar img{ width:17px; height:17px; flex-shrink:0; display:block; opacity:0.55; }
.page-searchbar input{
  border:none; outline:none;
  font-family:inherit;
  font-size:13px;
  width:100%;
  color:var(--text-primary);
  background:transparent;
}
.page-searchbar input::placeholder{ color:var(--text-muted); }

/* Masonry-style destination grid (native CSS columns — each card keeps
   its photo's natural aspect ratio, which is what creates the staggered
   Pinterest look; no fixed heights needed). */
.dest-grid{
  column-count:2;
  column-gap:14px;
  padding:18px 22px 28px;
}
.dest-card{
  display:block;
  width:100%;
  break-inside:avoid;
  margin-bottom:14px;
  position:relative;
  border-radius:var(--radius-md);
  overflow:hidden;
  box-shadow:var(--shadow-card);
  border:none;
  padding:0;
  background:none;
  cursor:pointer;
  font-family:inherit;
  text-align:left;
}
.dest-card img{
    width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  display:block;
}
.dest-card::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, transparent 40%, rgba(10,7,4,0.82) 100%);
}
.dest-info{
  position:absolute; left:12px; right:12px; bottom:11px;
  z-index:2;
}
.dest-info h3{
  font-size:14.5px;
  font-weight:600;
  font-family:'Fraunces', serif;
  color:#fff;
  line-height:1.2;
  margin-bottom:3px;
}
.dest-price{
  font-size:12px;
  font-weight:700;
  color:var(--saffron);
}


/* ==================================================================
   Destination detail page
=================================================================== */
.detail-hero{
  position:relative;
  flex:0 0 auto;
  height:300px;
}
.detail-hero img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.detail-hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 30%, transparent 100%);
}
.detail-back{
  position:absolute;
  top:calc(16px + env(safe-area-inset-top));
  left:16px;
  z-index:3;
  width:38px; height:38px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,0.92);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  padding:0;
  text-decoration:none;
}
.detail-back img{ width:16px; height:16px; display:block; }

.detail-body{
  padding:22px 22px 24px;
}
.detail-title{
  font-size:22px;
  font-weight:600;
  color:var(--ink);
  line-height:1.2;
  margin-bottom:10px;
}
.detail-meta-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}
.detail-rating{
  display:flex; align-items:center; gap:5px;
  background:var(--bg);
  border:1px solid var(--line);
  padding:5px 10px;
  border-radius:999px;
  font-size:12.5px;
  font-weight:700;
  color:var(--ink);
}
.detail-rating img{ width:12px; height:12px; display:block; }
.detail-price-tag{
  font-size:16px;
  font-weight:800;
  color:var(--saffron-dark);
}
.detail-address{
  display:flex;
  align-items:flex-start;
  gap:6px;
  font-size:13px;
  color:var(--text-muted);
  padding-bottom:18px;
  margin-bottom:18px;
  border-bottom:1px solid var(--line);
}
.detail-address img{ width:13px; height:13px; margin-top:2px; flex-shrink:0; display:block; }
.detail-section-title{
  font-size:15px;
  font-weight:600;
  color:var(--ink);
  margin-bottom:8px;
}
.detail-desc{
  font-size:13.5px;
  line-height:1.65;
  color:var(--text-primary);
}
.detail-cta{
  flex:0 0 auto;
  padding:14px 22px calc(14px + env(safe-area-inset-bottom));
  background:#fff;
  border-top:1px solid var(--line);
}
.btn-primary{
  width:100%;
  border:none;
  border-radius:14px;
  background:var(--saffron);
  color:#2A1C02;
  font-family:inherit;
  font-size:14.5px;
  font-weight:700;
  padding:14px;
  cursor:pointer;
}