*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--space-3); font-weight: 800; text-wrap: balance; }
h1, h2 { letter-spacing: -.015em; } /* 800 weight at display sizes reads loose at default tracking */
p, li, figcaption { text-wrap: pretty; } /* no one-word last lines */
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 var(--space-4); }
a { color: var(--c-primary-ink); text-decoration: none; }
/* Links inside running text are semi-bold so they stay recognisable without an underline. */
figcaption a, .sources a, .hero-caption a, .form-status a, .breadcrumb a { font-weight: 600; }
a:hover { color: var(--c-text); }
:focus-visible { outline: 3px solid var(--c-text); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; cursor: pointer; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--c-text); color: var(--c-white); padding: var(--space-2) var(--space-4); }
.skip-link:focus { left: var(--space-2); }
.skip-link:hover { color: var(--c-white); } /* beats the global a:hover, which would match the background */

/* ---------- Buttons, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: var(--space-2) var(--space-5);
  border: 2px solid var(--c-text); border-radius: 999px;
  font-weight: 700; text-decoration: none; color: var(--c-text); background: transparent;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--c-accent); color: var(--c-text); transform: translateY(-2px); }
.btn-primary { background: var(--c-primary); }
.btn-outline { background: var(--c-white); }
.btn-small { min-height: 40px; padding: var(--space-1) var(--space-4); font-size: .9rem; }

.badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.badge { font-size: .75rem; font-weight: 600; padding: 2px var(--space-3); border-radius: 999px; background: #FCE3DF; color: var(--c-text); }
.badge-accent { background: var(--c-accent); }


/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-bg); border-bottom: 1px solid rgba(156, 158, 159, .3); }
/* Home: header floats transparent over the hero carousel; JS adds .solid once scrolled past it (or menu open). */
.site-header.is-overlay { position: fixed; inset: 0 0 auto; background-color: transparent; border-bottom-color: transparent; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.site-header.is-overlay::before { content: ""; position: absolute; inset: 0 0 -32px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(30, 32, 33, .55), transparent); transition: opacity .3s; }
.site-header.is-overlay.solid { background-color: var(--c-bg); border-bottom-color: rgba(156, 158, 159, .3); box-shadow: 0 2px 16px rgba(51, 54, 56, .06); }
.site-header.is-overlay.solid::before { opacity: 0; }
.is-overlay:not(.solid) .brand img { filter: brightness(0) invert(1); }
.is-overlay:not(.solid) .nav-toggle span { background: var(--c-white); }
@media (min-width: 900px) {
  .is-overlay:not(.solid) .site-nav a { color: var(--c-white); }
  .is-overlay:not(.solid) .site-nav ul a:hover { background: rgba(255, 255, 255, .18); }
  .is-overlay:not(.solid) .site-nav .social-icons a:hover { color: var(--c-text); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.brand img { height: 38px; width: auto; }
.nav-toggle { display: grid; gap: 5px; padding: 12px 10px; background: none; border: 0; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--c-text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.site-nav {
  /* closed = hidden via visibility (not display) so closing animates too; visibility still drops it from tab order */
  visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .22s ease-out, transform .22s ease-out, visibility 0s .22s;
  position: absolute; inset: var(--header-h) 0 auto; background: var(--c-bg);
  padding: var(--space-4) var(--space-5) var(--space-5); border-bottom: 1px solid rgba(156, 158, 159, .3); box-shadow: var(--shadow);
}
.site-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .22s ease-out, transform .22s ease-out; }
.site-nav ul { list-style: none; margin: 0 0 var(--space-4); padding: 0; }
.site-nav a { display: block; padding: var(--space-2) 0; color: var(--c-text); font-weight: 600; text-decoration: none; }
.site-nav ul a { padding: var(--space-2) var(--space-3); border-radius: 999px; transition: background .2s; }
.site-nav ul a:hover { background: rgba(51, 54, 56, .08); }

.social-icons { display: flex; gap: var(--space-2); }
.social-icons a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--c-text); transition: background .2s; }
.social-icons a:hover { background: var(--c-accent); }
.icon { width: 20px; height: 20px; flex: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { visibility: visible; opacity: 1; transform: none; transition: none; display: flex; align-items: center; gap: var(--space-5); position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .site-nav ul { display: flex; gap: var(--space-1); margin: 0; }
}

/* ---------- Hero ---------- */
/* Desktop: fills the screen before scrolling. Phone: shorter so the category chips peek in below the fold. */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: var(--c-white); }
.hero-slides { position: absolute; inset: 0; display: flex; transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.hero-slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(51, 54, 56, .35), rgba(51, 54, 56, .7)); }
.hero-content { position: relative; padding-block: calc(var(--header-h) + var(--space-6)) var(--space-8); max-width: 760px; margin-left: max(1rem, (100% - var(--container)) / 2); }
.hero-emblem { width: 64px; height: 64px; background: var(--c-bg); border-radius: 50%; padding: 6px; margin-bottom: var(--space-3); }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
.hero-sub { font-size: 1.1rem; font-weight: 500; max-width: 560px; }
.hero-caption { margin-top: var(--space-5); font-size: .85rem; opacity: .9; }
.hero-caption a { display: inline-block; padding-block: var(--space-2); color: inherit; }
.hero-caption a:hover { color: var(--c-accent); }
.hero-controls { position: absolute; bottom: var(--space-4); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: var(--space-4); }
.hero-dots { display: flex; gap: var(--space-2); }
.hero-dots button { width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 2px solid var(--c-white); background: transparent; transition: width .3s, background .3s; }
.hero-dots button::before { content: ""; position: absolute; inset: -16px -4px; } /* larger tap target */
.hero-dots button { position: relative; }
.hero-dots button[aria-current="true"] { background: var(--c-accent); border-color: var(--c-accent); width: 28px; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--space-8); overflow: hidden; }
.section-alt { background: #FBEFEA; }
.section > .container { position: relative; z-index: 1; } /* content stays above the section ornaments */
.section-head { max-width: 640px; margin-bottom: var(--space-6); }
.hero + .section { padding-top: var(--space-7); }
@media (max-width: 599px) { .hero { min-height: min(78svh, 640px); } }

/* Decorative ornaments from the brand guideline */
.deco-dots::before {
  content: ""; position: absolute; top: var(--space-6); right: var(--space-4); width: 120px; height: 90px;
  background: radial-gradient(circle, var(--c-primary) 7px, transparent 8px) 0 0 / 30px 30px; opacity: .55;
}
.deco-dots::after {
  content: ""; position: absolute; bottom: -60px; left: -60px; width: 160px; height: 160px; border-radius: 50%; background: var(--c-accent); opacity: .8;
}
@media (max-width: 599px) { .deco-dots::before, .deco-wave::before { display: none; } } /* on phones they sit on the section heading */
.deco-wave::before {
  content: ""; position: absolute; top: var(--space-5); right: 0; width: 160px; height: 100px;
  background: url("../assets/logo/wave.svg") no-repeat center / contain; opacity: .7;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card { display: flex; flex-direction: column; background: var(--c-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; height: auto; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-5); }
.card-body p { font-size: .95rem; }
.card-body .badges { margin-bottom: var(--space-2); }
.card-link { display: flex; flex-direction: column; flex: 1; color: inherit; border-radius: inherit; }
.card-link:hover { color: inherit; }
.card-link:focus-visible { outline-offset: -3px; }
.card-more { margin-top: auto; font-weight: 700; color: var(--c-primary-ink); }
.card:hover .card-more { color: var(--c-text); }

/* "Tonton di TikTok" pill: top-left over a destination photo, or after the hero caption */
.dest-card { position: relative; }
.video-pill {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-3); border-radius: 999px;
  background: var(--c-text); color: var(--c-white); font-size: .78rem; font-weight: 700; transition: background .2s, color .2s;
}
.video-pill:hover { background: var(--c-accent); color: var(--c-text); }
/* reset what the card's own `.dest-card a` rule gives every link inside it */
.dest-card .video-pill { position: absolute; top: var(--space-3); left: var(--space-3); z-index: 1; display: inline-flex; aspect-ratio: auto; overflow: visible; box-shadow: none; background: var(--c-text); color: var(--c-white); }
.dest-card .video-pill:hover { background: var(--c-accent); color: var(--c-text); }
.dest-card .video-pill::before { content: ""; position: absolute; inset: -6px; } /* 44px tap target */
.hero-caption { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-3); }
.hero-caption .video-pill { background: var(--c-white); color: var(--c-text); }
.hero-caption .video-pill:hover { background: var(--c-accent); }

/* Destination card: full portrait photo, name + description on a dark fade at the bottom. The whole card is one link. */
.dest-card a {
  position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: #e9e3df; color: var(--c-white); text-decoration: none; box-shadow: var(--shadow);
}
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.dest-card-text {
  position: absolute; inset: auto 0 0; padding: var(--space-8) var(--space-5) var(--space-5);
  background: linear-gradient(transparent, rgba(24, 26, 27, .55) 35%, rgba(24, 26, 27, .9));
}
.dest-card h3 { font-size: 1.3rem; margin-bottom: var(--space-1); }
.dest-card p { margin: 0; font-size: .92rem; line-height: 1.5; color: rgba(255, 255, 255, .9);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dest-card a:hover img, .dest-card a:focus-visible img { transform: scale(1.06); }
.dest-card a:focus-visible { outline: 3px solid var(--c-text); outline-offset: 3px; }
.meta { font-size: .8rem; font-weight: 600; color: #5d6163; margin-bottom: var(--space-2); }
.meta time { white-space: nowrap; }
.result-count { font-size: .9rem; color: #5d6163; }
/* Home previews: a grid on wide screens, a swipe row on phones. The destination row ends in a "see all" tile. */
.dest-more { display: none; }
@media (max-width: 759px) {
  .swipe-row {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(82%, 320px); gap: var(--space-3);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -1rem; padding: 4px 1rem var(--space-2); scroll-padding-inline: 1rem;
  }
  .swipe-row > * { scroll-snap-align: start; }
  .dest-more {
    display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-5); text-align: center;
    border: 2px solid var(--c-text); border-radius: var(--radius); background: var(--c-primary);
    color: var(--c-text); font-size: 1.3rem; font-weight: 800; line-height: 1.3; transition: background .2s;
  }
  .dest-more:hover { background: var(--c-accent); color: var(--c-text); }
  .swipe-row-more { display: none; } /* the tile replaces the button */
}
.empty { grid-column: 1 / -1; padding: var(--space-6); text-align: center; background: var(--c-white); border-radius: var(--radius); border: 2px dashed var(--c-subtle); }
.empty p { margin-bottom: var(--space-4); }

/* Destinasi list: search + filter toolbar, overlapping the bottom of the coral page header */
.page-hero.has-toolbar { padding-bottom: calc(var(--space-7) + 56px); }
.list-toolbar {
  position: relative; z-index: 2; display: grid; gap: var(--space-4); margin: calc(-56px - var(--space-6)) 0 var(--space-5);
  padding: var(--space-5); background: var(--c-white); border: 2px solid var(--c-text); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--c-text);
}
.field label { display: block; margin-bottom: var(--space-1); font-size: .85rem; font-weight: 700; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0 var(--space-3); font: inherit; color: var(--c-text);
  background-color: var(--c-bg); border: 1.5px solid var(--c-subtle); border-radius: var(--radius-sm);
}
/* Custom chevron for every dropdown (search toolbar + contact form). Longhands only, so background-color rules elsewhere keep it. */
.field select, .contact-form select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23333638' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
}
.field select::-ms-expand, .contact-form select::-ms-expand { display: none; }
.field input:focus, .field select:focus { border-color: var(--c-text); outline: 3px solid var(--c-primary); outline-offset: 0; background-color: var(--c-white); }
.field input::placeholder { color: #75797b; }
.search-input { position: relative; }
.search-input .icon { position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%); color: #5d6163; pointer-events: none; }
.search-input input { padding-left: 2.6rem; }
.toolbar-reset { min-height: 48px; }
.toolbar-reset[hidden] { display: none; }
@media (min-width: 760px) {
  .list-toolbar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
}
.result-count { margin-bottom: var(--space-4); font-weight: 600; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: var(--space-6); }
.social-cards { display: grid; gap: var(--space-3); }
.social-card {
  display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4);
  background: var(--c-white); border-radius: var(--radius-sm); border: 2px solid transparent;
  color: var(--c-text); text-decoration: none; transition: border-color .2s, transform .2s;
}
.social-card:hover { border-color: var(--c-text); transform: translateX(4px); color: var(--c-text); }
.social-card .icon { width: 28px; height: 28px; padding: 4px; background: var(--c-accent); border-radius: 8px; box-sizing: content-box; }
.social-card strong { display: block; }
.social-card small { font-size: .88rem; color: #5d6163; }
.collab {
  margin-top: var(--space-7); padding: var(--space-6); border-radius: var(--radius);
  background: var(--c-white); border: 2px solid var(--c-text); display: grid; gap: var(--space-4);
}
.collab h3 { font-size: 1.4rem; }
.collab-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .social-cards { grid-template-columns: 1fr 1fr; }
  .collab { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .collab-actions { justify-content: flex-end; }
}

/* ---------- Contact ---------- */
.contact { background: #FCE3DF; padding-bottom: calc(var(--space-8) + 40px); }
.contact::before { /* sun behind the form */
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--c-accent);
  right: -90px; top: -90px;
}
@media (min-width: 900px) { .contact::before { width: 340px; height: 340px; right: -120px; top: -90px; } }
.contact::after { /* dots grid, bottom left */
  content: ""; position: absolute; left: var(--space-4); bottom: var(--space-4); width: 150px; height: 120px;
  background: radial-gradient(circle, var(--c-primary) 7px, transparent 8px) 0 0 / 30px 30px;
}
.contact-grid { display: grid; gap: var(--space-7); position: relative; z-index: 1; }
.contact-intro h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); max-width: 14ch; }
.contact-intro > p { font-size: 1.05rem; max-width: 42ch; }

.email-pill {
  display: inline-flex; align-items: center; gap: var(--space-3); margin: var(--space-3) 0 var(--space-6);
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-3);
  background: var(--c-text); color: var(--c-bg); border-radius: 999px; text-decoration: none; font-weight: 700;
  transition: transform .2s, box-shadow .2s; word-break: break-all;
}
.email-pill .icon { width: 22px; height: 22px; padding: 10px; background: var(--c-accent); color: var(--c-text); border-radius: 50%; box-sizing: content-box; }
.email-pill small { display: block; font-size: .75rem; font-weight: 500; opacity: .8; }
.email-pill:hover { color: var(--c-bg); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--c-primary); }

.social-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); max-width: 440px; }
.social-tiles a {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3);
  background: var(--c-white); border: 2px solid var(--c-text); border-radius: var(--radius-sm);
  color: var(--c-text); text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.social-tiles a:hover { color: var(--c-text); background: var(--c-accent); transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--c-text); }
.social-tiles .icon { width: 24px; height: 24px; flex: none; }
.social-tiles strong { display: block; font-size: .95rem; line-height: 1.2; }
.social-tiles small { font-size: .75rem; color: #5d6163; }

.contact-form {
  display: grid; gap: var(--space-4); padding: var(--space-6) var(--space-5);
  background: var(--c-white); border: 2px solid var(--c-text); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--c-text);
}
.contact-form h3 { font-size: 1.4rem; margin: 0; }
.form-row { display: grid; gap: var(--space-4); }
.contact-form label { display: grid; gap: var(--space-1); font-weight: 600; font-size: .92rem; }
.optional { font-weight: 400; color: #5d6163; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--c-text); padding: var(--space-3); min-height: 48px; width: 100%;
  border: 1.5px solid var(--c-subtle); border-radius: var(--radius-sm); background-color: var(--c-bg);
}
.contact-form select { padding-block: 0; padding-right: 2.75rem; }
.contact-form textarea { resize: vertical; }
.contact-form ::placeholder { color: #75797b; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--c-text); outline: 3px solid var(--c-primary); outline-offset: 0; background-color: var(--c-white); }
.contact-form .btn { justify-self: stretch; min-height: 52px; font-size: 1rem; }
.form-status { margin: 0; font-size: .92rem; }
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .contact-form { padding: var(--space-7) var(--space-6); }
  .contact-form .btn { justify-self: start; }
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.25fr; align-items: center; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--c-text); color: var(--c-bg); padding-top: var(--space-6); }
.footer-wave { position: absolute; left: 0; bottom: calc(100% - 1px); width: 100%; height: 40px; fill: var(--c-text); }
.footer-grid { display: grid; gap: var(--space-6); padding-bottom: var(--space-6); }
.footer-logo { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; margin-bottom: var(--space-4); }
.footer-logo img { width: 56px; height: 56px; padding: 4px; background: var(--c-bg); border-radius: 50%; }
.footer-logo span { color: var(--c-primary); font-weight: 800; font-size: 1.6rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.footer-brand p { max-width: 34ch; opacity: .85; margin: 0; }
.footer-title { font-size: .95rem; font-weight: 700; color: var(--c-accent); margin-bottom: var(--space-3); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-1); }
.site-footer a { color: var(--c-bg); }
.site-footer a:hover { color: var(--c-accent); }
.footer-links a { display: inline-block; padding: var(--space-1) 0; text-decoration: none; font-weight: 500; }
.footer-socials { margin: 0 0 var(--space-3); }
.site-footer .social-icons a { color: var(--c-bg); border: 1.5px solid rgba(253, 249, 246, .35); margin-right: var(--space-1); }
.site-footer .social-icons a:hover { color: var(--c-text); background: var(--c-accent); border-color: var(--c-accent); }
.footer-email { font-weight: 600; word-break: break-all; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  padding-block: var(--space-5); border-top: 1px solid rgba(253, 249, 246, .2); font-size: .85rem;
}
.footer-bottom p { margin: 0; opacity: .8; }
.footer-bottom a { text-decoration: none; font-weight: 600; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

/* ---------- Detail pages (destinasi / blog) ---------- */
.detail-page { padding-top: var(--space-5); }
.breadcrumb { font-size: .85rem; color: #5d6163; margin-bottom: var(--space-5); }
.breadcrumb a { color: var(--c-text); font-weight: 600; }
.breadcrumb [aria-current] { color: #5d6163; }
.detail-lead { font-size: 1.15rem; font-weight: 500; max-width: 60ch; }

.detail-gallery { display: grid; gap: var(--space-3); margin-bottom: var(--space-7); }
@media (max-width: 759px) { /* swipeable row on phones */
  .detail-gallery { grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; }
  .detail-gallery.count-1 { grid-auto-columns: 100%; }
  .detail-gallery figure { scroll-snap-align: start; }
}
.detail-gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #e9e3df; }
.detail-gallery img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.detail-gallery figcaption, .article-cover figcaption {
  position: absolute; left: var(--space-2); bottom: var(--space-2); max-width: calc(100% - 1rem);
  font-size: .7rem; padding: 2px var(--space-2); border-radius: 6px; background: rgba(51, 54, 56, .75); color: var(--c-white);
}
.detail-gallery figcaption a, .article-cover figcaption a { color: inherit; }
@media (min-width: 760px) {
  .detail-gallery.count-2 { grid-template-columns: 1.6fr 1fr; }
  .detail-gallery.count-3 { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; height: 520px; }
  .detail-gallery.count-3 figure:first-child { grid-row: 1 / 3; }
  .detail-gallery.count-2 img, .detail-gallery.count-3 img { aspect-ratio: auto; }
  .detail-gallery.count-2 { height: 460px; }
  .detail-gallery.count-1 img { aspect-ratio: 21 / 9; }
}

.tip { background: #FFF8B3; padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); }
.info-card {
  align-self: start; padding: var(--space-5); background: var(--c-white);
  border: 2px solid var(--c-text); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--c-text);
}
.info-card h2 { font-size: 1.25rem; }
.info { display: grid; gap: var(--space-1); margin: 0 0 var(--space-5); }
.info dt { font-weight: 700; font-size: .85rem; margin-top: var(--space-3); }
.info dt:first-child { margin-top: 0; }
.info dd { margin: 0; }
.btn-block { width: 100%; }
.info-card h2 + .info { margin-top: var(--space-4); }

/* Destination page: gallery overlaps the coral header band; sidebar (info, TOC, share) sits on the right on desktop. */
.article-gallery { margin-top: -72px; position: relative; }
.article-gallery figure { box-shadow: var(--shadow); }
@media (min-width: 1000px) {
  .article-layout.dest-layout { grid-template-columns: minmax(0, 720px) 340px; }
  .dest-layout .article-aside { order: 2; }
}
.related h2 { margin-bottom: var(--space-5); }
.detail-missing { min-height: 50vh; padding-block: var(--space-8); }

/* Blog article */
.detail-page:has(.article-hero) { padding-top: 0; }
.article { padding-bottom: var(--space-8); }
.article-hero { position: relative; overflow: hidden; background: #FCE3DF; padding: var(--space-6) 0 calc(var(--space-6) + 72px); } /* 72px = how far the photo overlaps the band */
.article-hero:not(.page-hero) .container > :last-child { margin-bottom: 0; } /* detail pages only; list pages keep their spacing */
.article-hero::after { /* dots grid ornament (hidden on phones, it would cover the title) */
  display: none;
  content: ""; position: absolute; right: var(--space-4); top: var(--space-6); width: 150px; height: 120px;
  background: radial-gradient(circle, var(--c-primary) 7px, transparent 8px) 0 0 / 30px 30px; opacity: .7;
}
.article-hero .container { position: relative; z-index: 1; }
.article-hero .badge:not(.badge-accent) { background: var(--c-white); } /* pink badge would vanish on the pink band */
@media (min-width: 900px) { .article-hero::after { display: block; } }
.article-category {
  display: inline-block; margin-bottom: var(--space-3); padding: 2px var(--space-3); border-radius: 999px;
  background: var(--c-text); color: var(--c-white); font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.article-hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); max-width: 20ch; margin-bottom: var(--space-4); }
.article-hero .detail-lead { max-width: 60ch; }
.byline { display: flex; align-items: center; gap: var(--space-3); margin: var(--space-5) 0 var(--space-4); }
.byline img { width: 44px; height: 44px; padding: 4px; background: var(--c-white); border-radius: 50%; border: 2px solid var(--c-text); }
.byline strong { display: block; line-height: 1.3; }
.byline span { font-size: .88rem; color: #4d5153; }
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag-list li { font-size: .82rem; font-weight: 600; padding: 2px var(--space-3); border-radius: 999px; background: var(--c-white); border: 1.5px solid var(--c-text); }

.article-cover { position: relative; margin: -72px 0 var(--space-7); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) { .article-cover img { aspect-ratio: 21 / 9; } }

.article-layout { display: grid; gap: var(--space-6); }
.article-aside { display: grid; gap: var(--space-4); align-content: start; }
.toc { background: var(--c-white); border: 2px solid var(--c-text); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); }
.toc summary { font-weight: 700; cursor: pointer; padding: var(--space-1) 0; }
.toc ol { margin: var(--space-3) 0 var(--space-1); padding-left: 1.2rem; display: grid; gap: var(--space-2); font-size: .92rem; }
.toc a { color: var(--c-text); text-decoration: none; }
.toc a:hover { color: var(--c-primary-ink); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.share p { margin: 0 var(--space-2) 0 0; font-weight: 700; font-size: .9rem; }
.share a, .share button {
  min-height: 36px; padding: var(--space-1) var(--space-3); border-radius: 999px; border: 1.5px solid var(--c-text);
  background: var(--c-white); color: var(--c-text); font-size: .85rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center;
}
.share a:hover, .share button:hover { background: var(--c-accent); color: var(--c-text); }
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: var(--space-8); }
  .article-aside { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
  .share p { width: 100%; margin-bottom: var(--space-1); }
}

.article-body { font-size: 1.1rem; line-height: 1.8; min-width: 0; }
.article-body > p { margin-bottom: var(--space-5); }
.article-body > p:first-child { font-size: 1.2rem; }
.article-body h2 { font-size: clamp(1.4rem, 3.5vw, 1.75rem); margin: var(--space-7) 0 var(--space-4); scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.article-body > ul { padding-left: 0; list-style: none; margin: 0 0 var(--space-5); display: grid; gap: var(--space-2); }
.article-body > ul li { position: relative; padding-left: 1.6rem; }
.article-body > ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--c-primary); }
.article-body .tip { margin: 0 0 var(--space-5); font-size: 1rem; }
.article-figure { margin: var(--space-6) 0; }
/* Place card inside an article (e.g. each cafe): map or photo + address, highlights, Maps button */
.place-card { margin: 0 0 var(--space-5); border-radius: var(--radius); overflow: hidden; background: var(--c-white); box-shadow: var(--shadow); }
.place-card .place-media { margin: 0; }
.place-map { position: relative; aspect-ratio: 16 / 9; background: #e9e3df; }
.place-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.place-card .article-figure img { border-radius: 0; }
.place-card .article-figure figcaption { padding: 0 var(--space-5); }
.place-info { display: grid; gap: var(--space-3); padding: var(--space-5); font-size: 1rem; line-height: 1.6; }
.place-address { margin: 0; }
.place-address strong { display: block; font-size: .8rem; letter-spacing: .02em; color: #5d6163; }
.place-info .check-list { margin: 0; }
.place-info .btn { justify-self: start; }
.article-figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.article-figure figcaption { margin-top: var(--space-2); font-size: .88rem; line-height: 1.5; color: #4d5153; }
.article-figure figcaption span { display: block; font-size: .78rem; }
.article-figure figcaption a, .sources a { color: var(--c-text); }

.article-foot { margin-top: var(--space-7); padding-top: var(--space-6); border-top: 2px solid var(--c-text); display: grid; gap: var(--space-6); }
.sources h2 { font-size: 1.15rem; margin: 0 0 var(--space-3); }
.sources ol, .sources ul { margin: 0; padding-left: 1.2rem; display: grid; gap: var(--space-2); font-size: .92rem; line-height: 1.6; }
.sources ul { list-style: disc; }
.sources span { color: #4d5153; }
.follow-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-5); border-radius: var(--radius); background: var(--c-text); color: var(--c-bg);
}
.follow-box strong { display: block; font-size: 1.1rem; }
.follow-box span { font-size: .92rem; opacity: .85; }
.follow-box .social-icons a { color: var(--c-bg); border: 1.5px solid rgba(253, 249, 246, .35); }
.follow-box .social-icons a:hover { color: var(--c-text); background: var(--c-accent); border-color: var(--c-accent); }
.article-end { margin: 0; font-weight: 700; }


/* ---------- Lightbox (detail pages) ---------- */
.zoomable { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoomable img { transition: transform .4s cubic-bezier(.2, .7, .2, 1), filter .3s; }
.zoomable:hover img { transform: scale(1.03); filter: brightness(1.05); }
.zoomable:focus-visible { outline: 3px solid var(--c-text); outline-offset: -3px; border-radius: var(--radius); }
.article-figure .zoomable { border-radius: var(--radius); overflow: hidden; }

html:has(.lightbox[open]) { overflow: hidden; } /* no page scroll behind the open photo */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: var(--space-8) var(--space-4) var(--space-6);
  border: 0; background: transparent; color: var(--c-white);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20, 22, 23, .8); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lb-figure { margin: 0; display: grid; gap: var(--space-3); justify-items: center; max-width: min(1200px, 100%); }
.lb-figure img { max-width: 100%; max-height: calc(100dvh - 11rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-sm); }
.lb-figure figcaption { max-width: 70ch; text-align: center; font-size: .88rem; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.lb-figure figcaption span { display: block; font-size: .78rem; }
.lb-figure figcaption a { color: inherit; }
.lb-close, .lb-nav {
  position: fixed; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: var(--c-bg); color: var(--c-text); cursor: pointer; transition: background .2s;
}
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lb-close:hover, .lb-nav:hover { background: var(--c-accent); }
.lb-close { top: var(--space-4); right: var(--space-4); }
.lb-prev { left: var(--space-4); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--space-4); top: 50%; transform: translateY(-50%); }
.lb-count { position: fixed; top: var(--space-5); left: 50%; transform: translateX(-50%); margin: 0; font-size: .9rem; font-weight: 600; }
@media (max-width: 640px) { .lb-nav { top: auto; bottom: var(--space-4); transform: none; } } /* thumbs reach the arrows */
.lightbox[open] .lb-figure { animation: lb-in .25s ease-out; }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }

/* ---------- Multi-page pieces ---------- */
/* Current page in the nav */
.site-nav ul a[aria-current="page"] { font-weight: 800; }

/* List pages (Destinasi, Blog, Tentang Kami, Hubungi Kami) reuse the coral article band, without the photo overlap. */
.article-hero.page-hero { padding-bottom: var(--space-7); }
.page-hero h1 { max-width: 18ch; }
.list-section { padding-top: var(--space-6); overflow: visible; } /* lets the toolbar rise into the header band */
.section-more { margin: var(--space-6) 0 0; text-align: center; }

/* Home: closing call to action */
.cta-section { padding-bottom: calc(var(--space-8) + 40px); }
.cta-band {
  display: grid; gap: var(--space-5); padding: var(--space-6) var(--space-5); border-radius: var(--radius);
  background: var(--c-primary); border: 2px solid var(--c-text); box-shadow: 8px 8px 0 var(--c-text);
}
.cta-band h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
.cta-band p { margin: 0; font-weight: 500; }
.cta-band h2 + p { margin-top: var(--space-2); }
/* Closing band: following us leads; collaboration is the quieter second line. */
.cta-band .cta-collab { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1.5px solid rgba(51, 54, 56, .25); font-size: .95rem; }
.cta-collab a { color: var(--c-text); font-weight: 700; }
.cta-collab a:hover { color: var(--c-text); background: var(--c-accent); }
.cta-band .social-tiles small { display: none; } /* the handle is already in the band's text */
@media (min-width: 900px) {
  .cta-band { grid-template-columns: 1fr minmax(0, 440px); align-items: center; gap: var(--space-7); padding: var(--space-7); }
}

/* Home: category shortcuts into the filtered Destinasi list */
.category-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: calc(-1 * var(--space-4)) 0 var(--space-6); }
.category-chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .875rem; border-radius: 999px;
  border: 1.5px solid var(--c-text); background: var(--c-white); color: var(--c-text); font-size: .85rem; font-weight: 600;
  transition: background .2s, transform .2s;
}
.category-chips a:hover { background: var(--c-accent); color: var(--c-text); transform: translateY(-2px); }
@media (max-width: 599px) { /* labels are too long for two per row: one swipeable row instead of four stacked pills */
  .category-chips {
    flex-wrap: nowrap; overflow-x: auto; margin-inline: -1rem; padding: 4px 3rem 4px 1rem; scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 calc(100% - 3rem), transparent); /* fade at the edge says "swipe" */
  }
  .category-chips a { flex: none; }
}

/* Home: about band, heading and text side by side on wide screens */
.about-split { display: grid; gap: var(--space-4); }
.about-split p { max-width: 40ch; } /* ~65 characters; Jakarta "0" is wide, and this keeps clear of the wave ornament */
@media (min-width: 900px) { .about-split { grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; } }

/* Tentang Kami */
.about-story h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.focus-grid { display: grid; gap: var(--space-3); }
.focus-card { padding: var(--space-5); background: var(--c-white); border-radius: var(--radius-sm); border: 2px solid var(--c-text); }
.focus-card:nth-child(1) { box-shadow: 5px 5px 0 var(--c-primary); }
.focus-card:nth-child(2) { box-shadow: 5px 5px 0 var(--c-accent); }
.focus-card:nth-child(3) { box-shadow: 5px 5px 0 var(--c-primary); }
.focus-card:nth-child(4) { box-shadow: 5px 5px 0 var(--c-accent); }
.focus-card h3 { margin-bottom: var(--space-2); }
.focus-card p { margin: 0; font-size: .95rem; }
@media (min-width: 600px) { .focus-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .social-cards-4 { grid-template-columns: repeat(4, 1fr); } }
.collab h2 { font-size: 1.5rem; }
.check-list { list-style: none; padding: 0; margin: var(--space-3) 0 0; display: grid; gap: var(--space-2); }
.check-list li { position: relative; padding-left: 1.8rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--c-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23333638' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Hubungi Kami */
.contact-hint { margin: 0 0 var(--space-5); padding: var(--space-4) var(--space-5); background: var(--c-white); border-radius: var(--radius-sm); border: 2px solid var(--c-text); }
.contact-hint strong { display: block; }

/* Kredit Foto page */
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.credit-item { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4); align-items: center; padding: var(--space-3); background: var(--c-white); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.credit-item img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.credit-item p { margin: 0; }
.credit-desc { font-weight: 600; line-height: 1.4; }
.credit-meta { font-size: .88rem; color: #5d6163; margin-top: var(--space-1) !important; }
.credit-meta a { font-weight: 600; }
@media (max-width: 480px) { .credit-item { grid-template-columns: 88px 1fr; } .credit-item img { width: 88px; height: 64px; } }

/* ---------- Motion ---------- */
/* Everything here is disabled by the prefers-reduced-motion rule at the top of this file. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } }

/* Home hero text enters on load, one line after another. */
.hero-content > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3) { animation-delay: .16s; }
.hero-content > :nth-child(4) { animation-delay: .24s; }
.hero-content > :nth-child(5) { animation-delay: .32s; }
.hero-controls { animation: rise .7s .4s both; }


/* Scroll reveal: app.js adds [data-reveal] (so nothing is hidden without JS) and .is-visible when on screen. */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
