/* =========================================================
   SAPARAJA · POLES HOME + DAFTAR UNIT
   Menyempurnakan tampilan yang sudah ada (identitas maroon + emas tetap),
   senada dengan halaman profil unit: gerak halus, hover hidup, kaca,
   gelembung. Warna mengikuti palet tema (--hm-*) yang diatur dari
   Admin Utama > Website Management > Tema Home & Daftar Unit.
   Dimuat SEBELUM warna per-elemen buatan admin, jadi pilihan admin tetap menang.
   ========================================================= */
:root{
  --hm-primary:#790D18;--hm-secondary:#B51F32;--hm-accent:#E8BF69;--hm-page-bg:#FFFFFF;--hm-surface:#FFF8F5;
  --hm-heading:#292B30;--hm-body-text:#687078;--hm-border:#E9E5E2;--hm-hero-start:#57090D;--hm-hero-end:#9D1D2B;--hm-button-text:#FFFFFF;
  --hm-font-heading:inherit;--hm-r-sm:12px;--hm-r-md:18px;--hm-r-lg:24px;--hm-motion:1;
  --hm-ease:cubic-bezier(.22,1,.36,1);--hm-spring:cubic-bezier(.34,1.56,.64,1);
  --hm-shadow:0 16px 34px -22px color-mix(in srgb,var(--hm-primary) 45%,transparent),0 2px 8px color-mix(in srgb,var(--hm-heading) 5%,transparent);
  --hm-shadow-lift:0 30px 54px -26px color-mix(in srgb,var(--hm-primary) 55%,transparent),0 6px 14px color-mix(in srgb,var(--hm-heading) 6%,transparent);
}

/* ---------- Gelembung (disisipkan oleh saparaja-public-motion.js) ---------- */
.hm-bubbles{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:1}
.hm-bubble{position:absolute;bottom:-90px;left:var(--x);width:var(--s);height:var(--s);border-radius:50%;
  background:radial-gradient(circle at 30% 26%,rgba(255,255,255,.6) 0,rgba(255,255,255,.22) 24%,rgba(255,255,255,.12) 70%,rgba(255,255,255,.08) 100%);
  border:1px solid rgba(255,255,255,.4);box-shadow:inset -4px -6px 12px color-mix(in srgb,var(--hm-accent) 14%,transparent);
  animation:hmRise var(--d) linear infinite;animation-delay:var(--dl);will-change:transform}
@keyframes hmRise{0%{transform:translate3d(0,0,0) scale(.6);opacity:0}12%{opacity:1}100%{transform:translate3d(var(--sw),-62vh,0) scale(1.1);opacity:0}}
@keyframes hmUp{from{opacity:0;transform:translateY(26px)}}
@keyframes hmKen{from{transform:scale(1.02)}to{transform:scale(1.12) translate3d(-1.2%,-.8%,0)}}
@keyframes hmFloat{0%,100%{translate:0 0}50%{translate:0 -9px}}
@keyframes hmWave{from{transform:translateX(0)}to{transform:translateX(-4%)}}
@keyframes hmPulse{0%{transform:scale(1);opacity:.55}100%{transform:scale(1.9);opacity:0}}
@keyframes hmShine{0%{transform:translateX(-130%) skewX(-18deg)}60%,100%{transform:translateX(230%) skewX(-18deg)}}

/* =========================================================
   HOME
   ========================================================= */
/* --- Hero --- */
:root:root body.sj-page.sjr2 .r2-hero-photo.is-active img{animation:hmKen 20s ease-in-out infinite alternate;will-change:transform}
:root:root body.sj-page.sjr2 .r2-hero .r2-eyebrow{animation:hmUp .8s var(--hm-ease) .1s backwards}
:root:root body.sj-page.sjr2 .r2-hero .r2-copy h1{animation:hmUp .9s var(--hm-ease) .22s backwards}
:root:root body.sj-page.sjr2 .r2-hero .r2-lead{animation:hmUp .9s var(--hm-ease) .36s backwards}
:root:root body.sj-page.sjr2 .r2-hero .r2-actions{animation:hmUp .9s var(--hm-ease) .5s backwards}
:root:root body.sj-page.sjr2 .r2-copy h1{font-family:var(--hm-font-heading)}
:root:root body.sj-page.sjr2 .r2-gold-btn,:root:root body.sj-page.sjr2 .r2-search-btn{position:relative;overflow:hidden;transition:transform .35s var(--hm-spring),box-shadow .3s,filter .2s!important}
:root:root body.sj-page.sjr2 .r2-gold-btn::after,:root:root body.sj-page.sjr2 .r2-search-btn::after{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);transform:translateX(-130%) skewX(-18deg);pointer-events:none}
:root:root body.sj-page.sjr2 .r2-gold-btn:hover,:root:root body.sj-page.sjr2 .r2-search-btn:hover{transform:translateY(-4px)!important;filter:brightness(1.05);box-shadow:0 20px 34px -16px color-mix(in srgb,var(--hm-accent) 70%,transparent)}
:root:root body.sj-page.sjr2 .r2-gold-btn:hover::after,:root:root body.sj-page.sjr2 .r2-search-btn:hover::after{animation:hmShine .9s ease}
:root:root body.sj-page.sjr2 .r2-play{position:relative}
:root:root body.sj-page.sjr2 .r2-play::before{content:"";position:absolute;inset:0;border-radius:50%;border:1.5px solid rgba(255,255,255,.7);animation:hmPulse 2.4s ease-out infinite;pointer-events:none}
:root:root body.sj-page.sjr2 .r2-watch:hover .r2-play{transform:scale(1.1)}
:root:root body.sj-page.sjr2 .r2-stamp{animation:hmFloat 6s ease-in-out infinite}
:root:root body.sj-page.sjr2 .r2-slider-controls{-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
:root:root body.sj-page.sjr2 .r2-slider-arrow{transition:transform .3s var(--hm-spring),background .2s}
:root:root body.sj-page.sjr2 .r2-slider-arrow:hover{transform:scale(1.14)}
:root:root body.sj-page.sjr2 .r2-slider-dot{transition:width .4s var(--hm-ease),background .3s}
:root:root body.sj-page.sjr2 .r2-hero .r2-wave{animation:none!important;transform:none!important;left:0!important;right:0!important;width:100%!important;max-width:none!important}

/* --- Panel pencarian --- */
:root:root body.sj-page.sjr2 .r2-search{border-radius:var(--hm-r-lg);-webkit-backdrop-filter:blur(18px) saturate(1.3);backdrop-filter:blur(18px) saturate(1.3);
  box-shadow:0 36px 70px -34px rgba(20,8,10,.55),0 2px 10px rgba(20,8,10,.06);transition:transform .4s var(--hm-ease),box-shadow .4s;position:relative}
:root:root body.sj-page.sjr2 .r2-search::before{content:"";position:absolute;left:28px;right:28px;top:0;height:3px;border-radius:0 0 4px 4px;background:linear-gradient(90deg,transparent,var(--hm-accent),transparent);opacity:.9}
:root:root body.sj-page.sjr2 .r2-search:hover{transform:translateY(-3px)}
:root:root body.sj-page.sjr2 .r2-field{border-radius:var(--hm-r-sm);transition:border-color .25s,box-shadow .3s,transform .3s var(--hm-ease)}
:root:root body.sj-page.sjr2 .r2-field:hover{transform:translateY(-2px)}
:root:root body.sj-page.sjr2 .r2-field:focus-within{box-shadow:0 0 0 4px color-mix(in srgb,var(--hm-accent) 34%,transparent);border-color:var(--hm-accent)}
:root:root body.sj-page.sjr2 .r2-tab{transition:transform .3s var(--hm-spring),background .25s,color .2s,box-shadow .25s}
:root:root body.sj-page.sjr2 .r2-tab:hover{transform:translateY(-2px)}

/* --- Keunggulan --- */
:root:root body.sj-page.sjr2 .r2-benefit{transition:transform .4s var(--hm-ease)}
:root:root body.sj-page.sjr2 .r2-benefit:hover{transform:translateY(-5px)}
:root:root body.sj-page.sjr2 .r2-benefit-icon{transition:transform .5s var(--hm-spring),box-shadow .3s;border-radius:var(--hm-r-sm)}
:root:root body.sj-page.sjr2 .r2-benefit:hover .r2-benefit-icon{transform:rotate(-9deg) scale(1.12);box-shadow:0 14px 22px -12px color-mix(in srgb,var(--hm-primary) 55%,transparent)}

/* --- Judul bagian --- */
:root:root body.sj-page.sjr2 .r2-title{font-family:var(--hm-font-heading);letter-spacing:-.02em}
:root:root body.sj-page.sjr2 .r2-section-head .r2-kicker{display:inline-flex;align-items:center;gap:10px}

/* --- Destinasi --- */
:root:root body.sj-page.sjr2 .r2-dest-card{border-radius:var(--hm-r-md);overflow:hidden;box-shadow:var(--hm-shadow);
  transition:box-shadow .45s var(--hm-ease),translate .45s var(--hm-ease),opacity .6s,transform .6s}
:root:root body.sj-page.sjr2 .r2-dest-card:hover{translate:0 -9px;box-shadow:var(--hm-shadow-lift)}
:root:root body.sj-page.sjr2 .r2-dest-photo{position:relative;overflow:hidden}
:root:root body.sj-page.sjr2 .r2-dest-photo img{transition:transform 1.2s var(--hm-ease)}
:root:root body.sj-page.sjr2 .r2-dest-card:hover .r2-dest-photo img{transform:scale(1.1)}
:root:root body.sj-page.sjr2 .r2-dest-photo::after{content:"";position:absolute;inset:auto 0 0 0;height:42%;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--hm-hero-start) 42%,transparent));pointer-events:none}
:root:root body.sj-page.sjr2 .r2-dest-info h3{font-family:var(--hm-font-heading);letter-spacing:-.015em}
:root:root body.sj-page.sjr2 .r2-dest-unit-toggle{transition:transform .35s var(--hm-spring),background .25s,color .2s}
:root:root body.sj-page.sjr2 .r2-dest-card:hover .r2-dest-unit-toggle{transform:translateX(3px)}
:root:root body.sj-page.sjr2 .r2-dest-price-icon{transition:transform .45s var(--hm-spring)}
:root:root body.sj-page.sjr2 .r2-dest-card:hover .r2-dest-price-icon{transform:rotate(-10deg) scale(1.12)}
:root:root body.sj-page.sjr2 .r2-dest-arrow{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:transform .3s var(--hm-spring),box-shadow .25s}
:root:root body.sj-page.sjr2 .r2-dest-arrow:hover{transform:scale(1.14);box-shadow:0 12px 22px -10px rgba(0,0,0,.4)}
:root:root body.sj-page.sjr2 .r2-link{transition:letter-spacing .3s var(--hm-ease),opacity .2s}
:root:root body.sj-page.sjr2 .r2-link:hover{letter-spacing:.02em}

/* --- Profil / cerita --- */
:root:root body.sj-page.sjr2 .r2-profile-visual,:root:root body.sj-page.sjr2 .r2-profile-copy{border-radius:var(--hm-r-lg);transition:box-shadow .45s var(--hm-ease),translate .45s var(--hm-ease)}
:root:root body.sj-page.sjr2 .r2-profile-visual:hover,:root:root body.sj-page.sjr2 .r2-profile-copy:hover{translate:0 -6px;box-shadow:var(--hm-shadow-lift)}
:root:root body.sj-page.sjr2 .r2-profile-features>*{transition:transform .4s var(--hm-ease),background .25s;border-radius:var(--hm-r-sm)}
:root:root body.sj-page.sjr2 .r2-profile-features>*:hover{transform:translateX(5px);background:color-mix(in srgb,var(--hm-primary) 5%,transparent)}
:root:root body.sj-page.sjr2 .r2-profile h2,:root:root body.sj-page.sjr2 .r2-profile-copy h3{font-family:var(--hm-font-heading)}

/* --- Jurnal --- */
:root:root body.sj-page.sjr2 .r2-journal-feature{border-radius:var(--hm-r-md);overflow:hidden;box-shadow:var(--hm-shadow);transition:box-shadow .45s var(--hm-ease),translate .45s var(--hm-ease),opacity .6s,transform .6s}
:root:root body.sj-page.sjr2 .r2-journal-feature:hover{translate:0 -8px;box-shadow:var(--hm-shadow-lift)}
:root:root body.sj-page.sjr2 .r2-journal-image{overflow:hidden}
:root:root body.sj-page.sjr2 .r2-journal-image img{transition:transform 1.2s var(--hm-ease)}
:root:root body.sj-page.sjr2 .r2-journal-feature:hover .r2-journal-image img{transform:scale(1.08)}
:root:root body.sj-page.sjr2 .r2-journal-feature-copy strong,:root:root body.sj-page.sjr2 .r2-journal-feature-copy h3{font-family:var(--hm-font-heading)}
:root:root body.sj-page.sjr2 .r2-journal-read{transition:gap .3s var(--hm-ease)}
:root:root body.sj-page.sjr2 .r2-journal-feature:hover .r2-journal-read{gap:14px}
:root:root body.sj-page.sjr2 .r2-journal-latest{border-radius:var(--hm-r-md);box-shadow:var(--hm-shadow)}
:root:root body.sj-page.sjr2 .r2-journal-news-row{transition:transform .35s var(--hm-ease),background .25s;border-radius:var(--hm-r-sm)}
:root:root body.sj-page.sjr2 .r2-journal-news-row:hover{transform:translateX(5px);background:color-mix(in srgb,var(--hm-primary) 5%,transparent)}
:root:root body.sj-page.sjr2 .r2-journal-all{transition:transform .35s var(--hm-spring),background-color .22s,color .22s}
:root:root body.sj-page.sjr2 .r2-journal-all:hover{transform:translateY(-3px)}

/* =========================================================
   DAFTAR SEMUA UNIT
   ========================================================= */
:root{
  --wine:var(--hm-primary);--wine-deep:color-mix(in srgb,var(--hm-primary) 82%,#000);--gold:var(--hm-accent);
  --gold-soft:color-mix(in srgb,var(--hm-accent) 16%,#fff);--ink:var(--hm-heading);--muted:var(--hm-body-text);--line:var(--hm-border);
}
body .pl-header{background:linear-gradient(105deg,var(--hm-hero-start),var(--hm-hero-end))}
body .pl-search{border-radius:var(--hm-r-lg);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:0 26px 50px -28px rgba(10,4,6,.6)}
body .pl-submit{background:linear-gradient(135deg,color-mix(in srgb,var(--hm-accent) 78%,#fff),var(--hm-accent))!important;color:var(--hm-heading)!important;border-radius:var(--hm-r-sm);
  position:relative;overflow:hidden;transition:transform .35s var(--hm-spring),filter .2s}
body .pl-submit:hover{transform:translateY(-3px);filter:brightness(1.06)}

/* banner pengantar */
body .pl-main{position:relative}
body .pl-intro{position:relative;isolation:isolate;overflow:hidden;margin:26px 0 22px;padding:clamp(30px,4.2vw,54px) clamp(24px,4vw,56px);border:0;border-radius:var(--hm-r-lg);
  background:linear-gradient(112deg,var(--hm-hero-start),var(--hm-hero-end));box-shadow:0 36px 70px -40px color-mix(in srgb,var(--hm-hero-start) 90%,transparent);
  animation:hmUp .8s var(--hm-ease) backwards}
body .pl-intro::before{content:"";position:absolute;z-index:-1;right:-80px;top:-100px;width:360px;height:360px;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--hm-accent) 38%,transparent),transparent 68%)}
body .pl-intro::after{content:"";position:absolute;z-index:-1;left:30%;bottom:-140px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.12),transparent 66%)}
body .pl-intro .pl-kicker{color:var(--hm-accent)!important}
body .pl-intro .pl-kicker::after{background:var(--hm-accent)!important}
body .pl-intro h1{color:#fff!important;font-family:var(--hm-font-heading);letter-spacing:-.03em;text-shadow:0 6px 30px rgba(0,0,0,.2)}
body .pl-intro p{color:rgba(255,255,255,.84)!important}

/* statistik */
body .pl-stats{border-radius:var(--hm-r-lg);box-shadow:var(--hm-shadow);animation:hmUp .8s var(--hm-ease) .12s backwards}
body .pl-stat{transition:transform .4s var(--hm-ease)}
body .pl-stat:hover{transform:translateY(-4px)}
body .pl-stat-icon{border-radius:var(--hm-r-sm);transition:transform .5s var(--hm-spring);background:color-mix(in srgb,var(--hm-primary) 9%,#fff)!important;color:var(--hm-primary)!important}
body .pl-stat:hover .pl-stat-icon{transform:rotate(-9deg) scale(1.1)}

/* filter */
body .pl-sidebar{border-radius:var(--hm-r-lg);box-shadow:var(--hm-shadow);overflow:hidden;animation:hmUp .8s var(--hm-ease) .18s backwards}
body .pl-filter-head{background:linear-gradient(135deg,color-mix(in srgb,var(--hm-primary) 7%,#fff),#fff)}
body .pl-choice{transition:background .2s,transform .3s var(--hm-ease);border-radius:var(--hm-r-sm)}
body .pl-choice:hover{transform:translateX(4px)}
body .pl-filter-select,body .pl-price-input{border-radius:var(--hm-r-sm);transition:border-color .2s,box-shadow .25s}
body .pl-filter-select:focus,body .pl-price-input:focus{border-color:var(--hm-accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--hm-accent) 30%,transparent);outline:none}
body .pl-filter-form>button[type=submit],body .pl-filter-form .pl-apply{background:linear-gradient(135deg,var(--hm-primary),var(--hm-secondary))!important;color:var(--hm-button-text)!important;border:0!important;border-radius:999px!important;
  box-shadow:0 16px 26px -16px var(--hm-primary);transition:transform .3s var(--hm-spring),filter .2s}
body .pl-filter-form>button[type=submit]:hover,body .pl-filter-form .pl-apply:hover{transform:translateY(-3px);filter:brightness(1.07)}

/* kartu unit */
body .pl-card{position:relative;overflow:hidden;border-radius:var(--hm-r-lg);box-shadow:var(--hm-shadow);border-color:var(--hm-border);
  transition:box-shadow .45s var(--hm-ease),translate .45s var(--hm-ease);animation:hmUp .7s var(--hm-ease) backwards}
body .pl-card:nth-child(2){animation-delay:.07s}body .pl-card:nth-child(3){animation-delay:.14s}body .pl-card:nth-child(4){animation-delay:.21s}body .pl-card:nth-child(n+5){animation-delay:.28s}
body .pl-card:hover{translate:0 -7px;box-shadow:var(--hm-shadow-lift)}
body .pl-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,var(--hm-primary),var(--hm-accent));transform:scaleY(0);transform-origin:top;transition:transform .5s var(--hm-ease);z-index:2}
body .pl-card:hover::before{transform:scaleY(1)}
body .pl-media{overflow:hidden}
body .pl-media img{transition:transform 1.2s var(--hm-ease)}
body .pl-card:hover .pl-media img{transform:scale(1.1)}
body .pl-type{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-weight:800;letter-spacing:.04em}
body .pl-fav{transition:transform .4s var(--hm-spring),background .2s,color .2s}
body .pl-fav:hover{transform:scale(1.18)}
body .pl-name{font-family:var(--hm-font-heading);letter-spacing:-.02em;color:var(--hm-primary);transition:color .25s}
body .pl-intro+.pl-stats .pl-stat-copy strong,body .pl-results-head strong{color:var(--hm-heading)}
body .pl-card:hover .pl-name{color:var(--hm-secondary)}
body .pl-chip{border-radius:999px;transition:transform .3s var(--hm-spring),background .2s}
body .pl-chip:hover{transform:translateY(-2px)}
body .pl-price-panel{background:linear-gradient(160deg,color-mix(in srgb,var(--hm-primary) 5%,#fff),color-mix(in srgb,var(--hm-accent) 12%,#fff))}
body .pl-price strong{color:var(--hm-primary);letter-spacing:-.02em}
body .pl-detail{position:relative;overflow:hidden;border-radius:999px!important;background:linear-gradient(135deg,color-mix(in srgb,var(--hm-accent) 78%,#fff),var(--hm-accent))!important;color:var(--hm-heading)!important;border:0!important;
  font-weight:800;box-shadow:0 14px 24px -14px color-mix(in srgb,var(--hm-accent) 90%,#000);transition:transform .35s var(--hm-spring),filter .2s}
body .pl-detail::after{content:"";position:absolute;top:0;bottom:0;left:0;width:40%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.55),transparent);transform:translateX(-130%) skewX(-18deg);pointer-events:none}
body .pl-detail:hover{transform:translateY(-3px);filter:brightness(1.05)}
body .pl-detail:hover::after{animation:hmShine .9s ease}

/* ---------- Responsif & preferensi gerak ---------- */
@media(max-width:700px){
  body .pl-intro{padding:28px 22px;margin:18px 0}
  :root:root body.sj-page.sjr2 .r2-stamp{animation:none}
}
@media(prefers-reduced-motion:reduce){
  .hm-bubble{display:none}
  :root:root body.sj-page.sjr2 *,body .pl-card,body .pl-intro,body .pl-stats,body .pl-sidebar{animation:none!important;transition-duration:.001ms!important}
}
html[data-hm-motion="min"] .hm-bubble{display:none}
html[data-hm-motion="min"] :is(.r2-stamp,.r2-wave,.r2-hero-photo.is-active img,.r2-hero .r2-eyebrow,.r2-hero .r2-copy h1,.r2-hero .r2-lead,.r2-hero .r2-actions,.pl-card,.pl-intro,.pl-stats,.pl-sidebar){animation:none!important}
