/* ============================================================
   hotaps — hospitality theme
   Fonts: Playfair Display (display) + Inter (body)
   Palette: cream #faf7f2 · ink #1c1917 · teal #0f766e · gold #b45309
   ============================================================ */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e0d8;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --gold: #b45309;
  --danger: #b91c1c;
  --ok: #15803d;
  --warn: #b45309;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28,25,23,.05), 0 8px 24px rgba(28,25,23,.07);
  --shadow-lg: 0 12px 40px rgba(28,25,23,.14);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.big { font-size: 4rem; font-family: var(--font-display); color: var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
}
.brand-name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .01em; }
.site-nav { display: flex; gap: 4px; margin-left: 8px; }
.site-nav a {
  color: var(--ink); padding: 8px 12px; border-radius: 8px;
  font-size: .92rem; font-weight: 500;
}
.site-nav a:hover { background: #f0eae1; text-decoration: none; }
.header-auth { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.2rem; padding: 4px 10px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 11px 20px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.outline:hover { background: #ecfdf5; }
.btn.ghost { color: var(--ink); background: transparent; }
.btn.ghost:hover { background: #f0eae1; }
.btn.sm { padding: 7px 14px; font-size: .85rem; }
.btn.lg { padding: 14px 28px; font-size: 1.02rem; }
.btn.block { width: 100%; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.gold { background: var(--gold); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Flash ---------- */
.flash-wrap { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: 10px; font-size: .92rem; font-weight: 500; }
.flash-success { background: #ecfdf5; color: #166534; border: 1px solid #a7f3d0; }
.flash-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.flash-warn    { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.flash-info    { background: #f0f9ff; color: #075985; border: 1px solid #bae6fd; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 520px;
  display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.25) 0%, rgba(15,23,42,.62) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero-kicker {
  display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 640px; text-shadow: 0 2px 18px rgba(0,0,0,.3); }
.hero p.lead { margin-top: 14px; max-width: 520px; font-size: 1.08rem; opacity: .95; }
.hero-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn.outline { border-color: rgba(255,255,255,.7); color: #fff; }
.hero .btn.outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: 1.9rem; }
.section-head .kicker { color: var(--gold); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Cards: rooms / services / posts ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 1.25rem; }
.card-body p { color: var(--muted); font-size: .93rem; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.price { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.price small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.facilities { display: flex; flex-wrap: wrap; gap: 6px; }
.facility {
  font-size: .74rem; font-weight: 600; color: var(--accent-dark);
  background: #f0fdfa; border: 1px solid #99f6e4; padding: 3px 9px; border-radius: 999px;
}
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em;
}
.badge-pending              { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-waiting_verification { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-confirmed            { background: #ecfdf5; color: #166534; border: 1px solid #a7f3d0; }
.badge-rejected             { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge-expired              { background: #f5f5f4; color: #57534e; border: 1px solid #d6d3d1; }
.badge-cancelled            { background: #f5f5f4; color: #57534e; border: 1px solid #d6d3d1; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; max-width: 460px; margin: 40px auto;
}
.form-card.wide { max-width: 640px; }
.form-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(15,118,110,.25); border-color: var(--accent);
}
.field .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.form-foot { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.form-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 10px 14px; border-radius: 10px; font-size: .88rem; margin-bottom: 16px;
}
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Member gate ---------- */
.gate { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 40px auto; }
.gate .choice {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.gate .choice h2 { font-size: 1.4rem; }
.gate .choice p { color: var(--muted); font-size: .92rem; }

/* ---------- Tables ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  text-align: left; padding: 12px 16px; background: #faf7f2;
  border-bottom: 1px solid var(--line); font-size: .78rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }

/* ---------- Payment ---------- */
.pay-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; margin: 32px 0 64px; align-items: start; }
.pay-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.total-box {
  background: linear-gradient(135deg, #134e4a, #0f766e);
  color: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg);
}
.total-box .lbl { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.total-box .amount { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; margin-top: 4px; }
.total-box .note { font-size: .82rem; opacity: .9; margin-top: 8px; }
.code-pill {
  display: inline-block; background: rgba(255,255,255,.16); border: 1px dashed rgba(255,255,255,.5);
  border-radius: 8px; padding: 2px 8px; font-weight: 700;
}
.bank-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-top: 10px; background: #faf7f2;
}
.bank-row .bank-name { font-weight: 700; }
.bank-row .bank-num { font-family: ui-monospace, monospace; font-size: 1.05rem; font-weight: 600; letter-spacing: .04em; }
.deadline { display: flex; align-items: center; gap: 8px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 10px 14px; border-radius: 10px; font-size: .9rem; font-weight: 600; }

/* ---------- Steps indicator (alur booking) ---------- */
.steps { display: flex; align-items: center; gap: 10px; margin-top: 32px; }
.step { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.step .s-n { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: #f0eae1; color: var(--muted); font-size: .8rem; font-weight: 700; flex: none; }
.step.active { color: var(--accent-dark); }
.step.active .s-n { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(15,118,110,.15); }
.step.done { color: var(--ink); }
.step.done .s-n { background: #dcfce7; color: #166534; }
.step-line { flex: 1; height: 2px; background: var(--line); border-radius: 2px; min-width: 18px; }

/* ---------- Timeline status booking ---------- */
ul.timeline { list-style: none; margin: 0 0 16px; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--line); margin-left: 12px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.timeline .tl-dot { position: absolute; left: -8px; top: 3px; width: 12px; height: 12px; border-radius: 999px; background: #fff; border: 3px solid var(--line); }
.timeline li.done .tl-dot { border-color: var(--accent); background: var(--accent); }
.timeline li.done strong { color: var(--accent-dark); }

/* ---------- Tabs filter (admin) ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .85rem; font-weight: 600; }
.tab:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Home upgrade ---------- */
.hero-stats {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.25);
}
.hero-stats .hs { display: flex; flex-direction: column; }
.hero-stats .hs strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.hero-stats .hs span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.hero-stats .hs-sep { width: 1px; height: 34px; background: rgba(255,255,255,.3); }

.pull-up { margin-top: -64px; position: relative; z-index: 5; padding-bottom: 8px; }
.hero-quick { box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hero-quick .btn { height: 46px; }

.room-card .card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.room-card .card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.room-card:hover .card-img { transform: scale(1.06); }
.card-price-tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(250,247,242,.95); border-radius: 10px;
  padding: 6px 12px; font-weight: 800; font-size: 1.02rem; color: var(--ink);
  box-shadow: var(--shadow);
}
.card-price-tag small { font-weight: 600; color: var(--muted); font-size: .74rem; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title-row h3 { font-size: 1.25rem; }

.why-band { background: #f3ede4; }
.benefit {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 26px;
}
.benefit-ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: #f0fdfa; border: 1px solid #99f6e4; color: var(--accent-dark);
  display: grid; place-items: center; margin-bottom: 16px;
}
.benefit-ico svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.15rem; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: .93rem; }

.cta-band {
  background: linear-gradient(120deg, #134e4a, #0f766e);
  color: #fff; margin-top: 24px;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 52px; padding-bottom: 52px; flex-wrap: wrap; }
.cta-band h2 { font-size: 1.9rem; }
.cta-band p { opacity: .92; margin-top: 6px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn.wa { background: #16a34a; color: #fff; }
.btn.wa:hover { background: #15803d; }

/* ---------- Booking page ---------- */
.avail-bar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px;
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end;
  margin-bottom: 30px;
}
.avail-result { grid-column: 1 / -1; }
.avail-ok  { background: #ecfdf5; border: 1px solid #a7f3d0; color: #166534; padding: 10px 14px; border-radius: 10px; font-size: .9rem; font-weight: 600; }
.avail-no  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 10px 14px; border-radius: 10px; font-size: .9rem; font-weight: 600; }
.room-dates { font-size: .82rem; color: var(--gold); font-weight: 600; }

/* ---------- Admin ---------- */
.admin-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 28px; margin: 28px 0 64px; }
.admin-side {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); height: fit-content;
  position: sticky; top: 88px;
}
.admin-side a {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink);
  font-size: .92rem; font-weight: 500; margin-bottom: 2px;
}
.admin-side a:hover, .admin-side a.active { background: #f0fdfa; color: var(--accent-dark); text-decoration: none; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}
.stat .n { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; }
.stat .l { font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.site-footer { background: #1c1917; color: #d6d3d1; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 48px 20px 32px; }
.site-footer h4 { color: #fff; font-family: var(--font-display); margin-bottom: 10px; font-size: 1.05rem; }
.site-footer a { display: block; color: #d6d3d1; margin-bottom: 8px; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { color: #fff; margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid #292524; padding: 18px 20px; font-size: .8rem; }

/* ---------- Empty / misc ---------- */
.empty { text-align: center; padding: 80px 20px; }
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: 2.2rem; }
.page-head .sub { color: var(--muted); margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pay-grid, .gate, .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .row-2 { grid-template-columns: 1fr; }
  .avail-bar { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 10px 20px 16px; box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .header-auth .btn.ghost { display: none; }
  .hero { min-height: 440px; }
}

/* ===== Admin panel: layout 2 kolom + field row ===== */
.admin-2col { display:grid; grid-template-columns: 380px 1fr; gap:20px; align-items:start; }
@media (max-width: 900px) { .admin-2col { grid-template-columns: 1fr; } }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width: 600px) { .field-row { grid-template-columns:1fr; } }
.bank-row { background:#fafaf8; }
