@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --teal:        #0b7c6e;
  --teal-light:  #e6f4f2;
  --teal-mid:    #1a9e8e;
  --gold:        #b8923a;
  --gold-light:  #fdf6ea;
  --gold-border: #e8d5a3;
  --text:        #1a1a1a;
  --text-2:      #555;
  --text-3:      #999;
  --border:      #e4e0d8;
  --bg:          #faf9f7;
  --white:       #fff;
  --success:     #1a7a5e;
  --danger:      #c0392b;
  --radius:      10px;
  --radius-lg:   16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  position: sticky; top: 0; z-index: 100;
}
.logo { font-family: 'Lora', serif; font-size: 18px; font-weight: 600; color: var(--teal); text-decoration: none; display: flex; align-items: center; gap: 7px; }
.logo span { color: var(--gold); }
.topbar-nav { display: flex; align-items: center; gap: 22px; }
.topbar-nav a { font-size: 13px; color: var(--text-2); text-decoration: none; }
.topbar-nav a:hover { color: var(--teal); }
.btn-wa-top { background: var(--teal); color: var(--white); padding: 8px 16px; border-radius: 20px; font-size: 13px; text-decoration: none; display: flex; align-items: center; gap: 5px; }
.btn-wa-top:hover { background: var(--teal-mid); }

/* ── LAYOUT ── */
.page { max-width: 960px; margin: 0 auto; padding: 0 2rem 4rem; }
.breadcrumb { padding: 14px 0; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }

/* ── SECTION LABEL ── */
.slabel { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }

/* ── RS HERO ── */
.rs-hero { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.rs-logo-wrap { width: 60px; height: 60px; border-radius: var(--radius); background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--teal); flex-shrink: 0; }
.rs-info { flex: 1; }
.rs-name { font-family: 'Lora', serif; font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.rs-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.rs-tag { font-size: 12px; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; display: flex; align-items: center; gap: 4px; }
.rs-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.rs-ctas { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

/* ── BUTTONS ── */
.btn-primary { background: var(--teal); color: var(--white); border: none; border-radius: var(--radius); padding: 10px 18px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-family: 'DM Sans', sans-serif; text-decoration: none; }
.btn-primary:hover { background: var(--teal-mid); }
.btn-secondary { background: transparent; color: var(--text-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 18px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; white-space: nowrap; font-family: 'DM Sans', sans-serif; text-decoration: none; }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

/* ── FASILITAS ── */
.fasilitas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 26px; }
.fas-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.fas-item i { font-size: 15px; color: var(--teal); }

/* ── NOTICE ── */
.notice-box { background: var(--gold-light); border: 1px solid var(--gold-border); border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 20px; font-size: 13px; color: #7a5c1e; line-height: 1.5; }
.notice-box i { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* ── PKG GRID ── */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 26px; }
.single-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }

.pkg-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.pkg-card.recommended { border: 2px solid var(--teal); }
.pkg-card:hover { border-color: var(--teal); }
.pkg-top { padding: 18px 18px 14px; }
.rec-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; background: var(--teal-light); color: var(--teal); padding: 2px 8px; border-radius: 20px; margin-bottom: 10px; }
.pkg-tier { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.tier-pip { width: 7px; height: 7px; border-radius: 50%; }
.tier-txt { font-size: 11px; color: var(--text-3); }
.pkg-name { font-family: 'Lora', serif; font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.pkg-rm { font-size: 24px; font-weight: 300; color: var(--text); }
.pkg-idr { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.pkg-gender { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }
.pkg-divider { height: 1px; background: var(--border); }
.pkg-items { padding: 14px 18px; }
.pkg-items-title { font-size: 11px; font-weight: 500; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.pkg-item { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; color: var(--text-2); margin-bottom: 7px; line-height: 1.4; }
.pkg-item i { font-size: 14px; color: var(--success); flex-shrink: 0; margin-top: 1px; }
.pkg-footer { padding: 10px 18px 16px; display: flex; flex-direction: column; gap: 7px; }
.btn-book { width: 100%; padding: 10px; border-radius: var(--radius); background: var(--teal); color: var(--white); border: none; font-size: 13px; cursor: pointer; font-family: 'DM Sans', sans-serif; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn-book:hover { background: var(--teal-mid); }
.btn-compare-add { width: 100%; padding: 8px; border-radius: var(--radius); background: transparent; color: var(--text-2); border: 1px solid var(--border); font-size: 12px; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.btn-compare-add:hover { border-color: var(--teal); color: var(--teal); }

/* ── EXPAND/COLLAPSE PAKET (CSS-only via :checked) ── */
.expand-toggle { display: none; }
.expand-label {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--teal); cursor: pointer;
  padding: 0 18px 12px; user-select: none;
}
.expand-label::before { content: '+'; font-size: 14px; font-weight: 500; }
.expand-content { display: none; }
.expand-toggle:checked ~ .expand-content { display: block; }
.expand-toggle:checked ~ .expand-label::before { content: '−'; }

/* ── INFO PANEL ── */
.info-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.info-panel-title { font-family: 'Lora', serif; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.info-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-icon { width: 32px; height: 32px; background: var(--teal-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--teal); flex-shrink: 0; }
.info-key { font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.info-val { font-size: 13px; color: var(--text); }

/* ── OTHER RS ── */
.other-rs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 28px; }
.other-rs-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-decoration: none; display: block; }
.other-rs-card:hover { border-color: var(--teal); }
.other-rs-name { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.other-rs-price { font-size: 11px; color: var(--text-3); }

/* ── FORM ── */
.form-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-top: 32px; }
.form-header { background: var(--teal); padding: 20px 24px; }
.form-title { font-family: 'Lora', serif; font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.form-sub { font-size: 13px; color: rgba(255,255,255,.75); }
.form-body { padding: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea {
  font-size: 14px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); color: var(--text);
  font-family: 'DM Sans', sans-serif; width: 100%;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
.field textarea { height: 80px; resize: none; }
.hint { font-size: 11px; color: var(--text-3); }
.req { color: var(--danger); }
.form-divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── PKG SELECTOR (CSS radio) ── */
.pkg-selector { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 6px; }
.pkg-radio { display: none; }
.pkg-opt-label {
  display: block; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; cursor: pointer; background: var(--bg); transition: border-color .15s;
}
.pkg-opt-label:hover { border-color: var(--teal); }
.pkg-radio:checked + .pkg-opt-label { border: 2px solid var(--teal); background: var(--teal-light); }
.pkg-radio:checked + .pkg-opt-label .pn { color: var(--teal); }
.pn { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 3px; }
.pp { font-size: 12px; color: var(--text-3); }

.form-footer { padding: 16px 24px; background: var(--bg); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-submit { background: var(--teal); color: var(--white); border: none; padding: 11px 28px; border-radius: var(--radius); font-size: 14px; font-weight: 500; cursor: pointer; font-family: 'DM Sans', sans-serif; display: flex; align-items: center; gap: 7px; }
.btn-submit:hover { background: var(--teal-mid); }
.form-note { font-size: 12px; color: var(--text-3); flex: 1; }

/* ── SUCCESS MESSAGE ── */
.success-box { background: #f0faf6; border: 1px solid #a8dfc7; border-radius: var(--radius-lg); padding: 36px; text-align: center; margin-top: 32px; display: none; }
.success-box.show { display: block; }
.success-box i { font-size: 36px; color: var(--success); display: block; margin-bottom: 10px; }
.success-box h3 { font-family: 'Lora', serif; font-size: 18px; color: var(--success); margin-bottom: 6px; }
.success-box p { font-size: 14px; color: #3a8c6a; }

/* ── PHP success redirect message ── */
.alert-success { background: #f0faf6; border: 1px solid #a8dfc7; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--success); }
.alert-error { background: #fef2f2; border: 1px solid #fca5a5; border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--danger); }

/* ── WA FLOAT ── */
.wa-float { position: fixed; bottom: 28px; right: 28px; background: #25d366; color: var(--white); width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; box-shadow: 0 4px 16px rgba(37,211,102,.3); cursor: pointer; z-index: 999; text-decoration: none; }
.wa-float:hover { transform: scale(1.07); }

/* ── GENDER TABS (CSS radio) ── */
.gender-filter { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.gf-radio { display: none; }
.gf-label { font-size: 13px; padding: 6px 16px; border-radius: 20px; border: 1px solid var(--border); background: var(--white); color: var(--text-2); cursor: pointer; display: flex; align-items: center; gap: 5px; }
.gf-label:hover { border-color: var(--teal); color: var(--teal); }
.gf-radio:checked + .gf-label { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* Show/hide cards based on gender filter using CSS sibling selectors */
.pkg-all  { display: block; }
.pkg-pria   { display: none; }
.pkg-wanita { display: none; }

#gf-all:checked    ~ .pkg-grid .pkg-pria,
#gf-all:checked    ~ .pkg-grid .pkg-wanita,
#gf-all:checked    ~ .pkg-grid .pkg-all     { display: block; }
#gf-pria:checked   ~ .pkg-grid .pkg-pria,
#gf-pria:checked   ~ .pkg-grid .pkg-all     { display: block; }
#gf-pria:checked   ~ .pkg-grid .pkg-wanita  { display: none; }
#gf-wanita:checked ~ .pkg-grid .pkg-wanita,
#gf-wanita:checked ~ .pkg-grid .pkg-all     { display: block; }
#gf-wanita:checked ~ .pkg-grid .pkg-pria    { display: none; }

/* ── KATALOG: accordion per RS (CSS :checked) ── */
.rs-accordion { margin-bottom: 8px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.rs-acc-toggle { display: none; }
.rs-acc-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  cursor: pointer; background: var(--bg); user-select: none;
  border-bottom: 1px solid transparent; transition: background .15s;
}
.rs-acc-header:hover { background: #f0ede8; }
.rs-acc-icon { width: 34px; height: 34px; border-radius: var(--radius); background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--teal); flex-shrink: 0; }
.rs-acc-name { font-size: 14px; font-weight: 500; color: var(--text); flex: 1; }
.rs-acc-meta { display: flex; align-items: center; gap: 8px; }
.rs-acc-count { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: var(--white); border: 1px solid var(--border); color: var(--text-3); }
.rs-acc-price { font-size: 12px; color: var(--text-3); }
.rs-acc-hint { font-size: 11px; color: var(--text-3); }
.rs-acc-chevron { font-size: 16px; color: var(--text-3); transition: transform .2s; }
.rs-acc-toggle:checked ~ label .rs-acc-chevron { transform: rotate(180deg); }
.rs-acc-toggle:checked ~ label .rs-acc-hint { display: none; }
.rs-acc-toggle:checked ~ label { border-bottom: 1px solid var(--border); background: var(--white); }
.rs-acc-body { display: none; padding: 12px; }
.rs-acc-toggle:checked ~ .rs-acc-body { display: block; }
.rs-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }

/* ── SUMMARY STATS ── */
.summary-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px; flex: 1; min-width: 100px; }
.stat-label { font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.stat-val { font-size: 18px; font-weight: 500; color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .page { padding: 0 1rem 3rem; }
  .topbar { padding: 0 1rem; }
  .topbar-nav { display: none; }
  .rs-hero { flex-direction: column; }
  .rs-ctas { flex-direction: row; }
  .form-grid { grid-template-columns: 1fr; }
  .single-layout { grid-template-columns: 1fr; }
  .other-rs-grid { grid-template-columns: 1fr 1fr; }
  .form-footer { flex-direction: column; align-items: flex-start; }
}
