/* =====================================================================
   NATAMA GROUP PLATFORM
   One stylesheet for the public site, the tenant portal and the admin
   portal. Both languages share every rule: nothing here assumes the
   length of an English or an Indonesian string.
   ===================================================================== */

:root {
  /* Palette taken from the Natama Group logo: burnt orange, warm gold,
     charcoal wordmark, on a cream ground. */
  --bg:        #FAF7F2;
  --surface:   #FFFFFF;
  --surface-2: #FDFBF7;
  --line:      #EDE4D8;
  --line-2:    #DBCEBC;

  --ink:   #241F1B;
  --ink-2: #52483F;
  --ink-3: #8A7C6E;

  --brand:   #C2571A;
  --brand-2: #E0701F;
  --brand-3: #FCEDE1;
  --accent:  #A8823F;
  --accent-2:#F8F0E2;

  --ok:   #256D4F;
  --ok-bg:#E4F0E9;
  --warn: #8A6410;
  --warn-bg:#FAF0D9;
  --bad:  #A63428;
  --bad-bg:#F8E5E2;
  --info: #23628C;
  --info-bg:#E3EEF6;

  --radius:   14px;
  --radius-s: 9px;
  --shadow:   0 1px 2px rgba(36, 31, 27, .05), 0 8px 24px rgba(36, 31, 27, .07);
  --shadow-s: 0 1px 2px rgba(36, 31, 27, .06);

  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
h3 { font-size: 1.15rem; }
p  { margin: 0 0 1em; }
a  { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny  { font-size: .8rem; }
.strong { font-weight: 700; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.mt1 { margin-top: 12px; } .mt2 { margin-top: 24px; } .mt3 { margin-top: 40px; }
.mb1 { margin-bottom: 12px; } .mb2 { margin-bottom: 24px; }
.hide { display: none; }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer; text-decoration: none; min-height: 44px;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #a2681f; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.btn-light { background: #fff; color: var(--brand); }
.btn-danger { background: transparent; color: var(--bad); border-color: #E5C7C2; }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { padding: 7px 14px; min-height: 36px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------------------------------------------------------------------
   Cards, panels, tables
   --------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-s);
}
.card-pad { padding: 22px; }
.card-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.card-hd h2, .card-hd h3 { margin: 0; font-size: 1.05rem; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 12px 14px; text-align: left; vertical-align: middle; }
table.data thead th {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data tbody tr + tr td { border-top: 1px solid var(--line); }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }

.empty { padding: 34px 22px; text-align: center; color: var(--ink-3); }

/* ---------------------------------------------------------------------
   Status pills
   --------------------------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: .78rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok      { background: var(--ok-bg);   color: var(--ok); }
.pill-warn    { background: var(--warn-bg); color: var(--warn); }
.pill-bad     { background: var(--bad-bg);  color: var(--bad); }
.pill-info    { background: var(--info-bg); color: var(--info); }
.pill-neutral { background: #F1ECE4;       color: #6B6055; }
.pill-muted   { background: #EEEAE2;        color: var(--ink-3); }

/* ---------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field > label, .label {
  display: block; font-size: .82rem; font-weight: 700;
  color: var(--ink-2); margin-bottom: 6px;
}
.field .hint { font-size: .8rem; color: var(--ink-3); margin-top: 5px; }

input[type=text], input[type=password], input[type=email], input[type=tel],
input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .95rem;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--radius-s);
  min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-3);
}
input[type=file] { font-size: .9rem; padding: 9px; background: var(--surface-2); }
select { appearance: none; background-image: none; }

.check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: .92rem; }
.check input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; flex: none; }

.form-grid { display: grid; gap: 0 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }

/* A bilingual pair of inputs, Indonesian left, English right. */
.bi { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.bi .tag {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em;
  color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px;
  padding: 0 5px; margin-left: 6px; vertical-align: 1px;
}

/* ---------------------------------------------------------------------
   Notices
   --------------------------------------------------------------------- */
.notice {
  padding: 13px 17px; border-radius: var(--radius-s); margin-bottom: 18px;
  font-size: .92rem; border: 1px solid transparent;
}
.notice-ok   { background: var(--ok-bg);   color: var(--ok);   border-color: #C8E0D4; }
.notice-warn { background: var(--warn-bg); color: var(--warn); border-color: #EEDCB8; }
.notice-bad  { background: var(--bad-bg);  color: var(--bad);  border-color: #EBCCC7; }
.notice-info { background: var(--info-bg); color: var(--info); border-color: #C7DDEC; }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

/* =====================================================================
   PUBLIC SITE
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 249, 245, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 18px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  letter-spacing: -.02em;
}

/* The square monogram cut from the logo artwork. */
.brand-logo {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  background-color: var(--brand-3);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(36, 31, 27, .08);
}
.brand-name { font-weight: 800; letter-spacing: .06em; color: var(--ink); line-height: 1.1; }
.brand-name small { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .3em; color: var(--brand); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  padding: 9px 13px; border-radius: 999px; color: var(--ink-2);
  font-size: .93rem; font-weight: 600;
}
.site-nav a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--brand); background: var(--brand-3); }

.header-tools { display: flex; align-items: center; gap: 10px; flex: none; }

.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden;
  background: var(--surface); flex: none;
}
.lang-switch a, .lang-switch span {
  padding: 7px 12px; font-size: .78rem; font-weight: 800; letter-spacing: .04em;
  color: var(--ink-3); min-height: 36px; display: inline-flex; align-items: center;
}
.lang-switch a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.lang-switch .on { background: var(--brand); color: #fff; }
.lang-switch .sep { padding: 0; color: var(--line-2); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface);
  cursor: pointer; padding: 0; place-items: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* Hero */
.hero { padding: 74px 0 60px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto -10% -60% 40%; height: 420px;
  background: radial-gradient(closest-side, rgba(224, 112, 31, .13), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; gap: 48px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-3);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { margin-bottom: 18px; max-width: 15ch; }
.hero-lead { font-size: 1.08rem; color: var(--ink-2); max-width: 52ch; margin-bottom: 26px; }

.hero-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); padding: 26px; position: relative; z-index: 1;
}
.hero-card .row { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; }
.hero-card .row + .row { border-top: 1px solid var(--line); }

.stat-band {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 54px;
}
.stat-band .stat { background: var(--surface); padding: 22px 20px; }
.stat-band .n { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand); line-height: 1.1; }
.stat-band .k { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }

.section { padding: 62px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-hd p { margin: 0; color: var(--ink-3); }

/* Property cards */
.kos-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.kos-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-s);
  transition: transform .16s ease, box-shadow .16s ease;
}
.kos-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kos-photo { aspect-ratio: 16 / 10; background: var(--brand-3); position: relative; overflow: hidden; }
.kos-photo img { width: 100%; height: 100%; object-fit: cover; }
.kos-photo .ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--brand); opacity: .32; font-size: 2.6rem; font-weight: 800; letter-spacing: .1em;
}
.kos-photo .badge {
  position: absolute; left: 12px; top: 12px;
  background: rgba(255, 255, 255, .95); border-radius: 999px;
  padding: 5px 11px; font-size: .74rem; font-weight: 800; color: var(--brand);
}
.kos-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.kos-body h3 { margin-bottom: 3px; font-size: 1.08rem; }
.kos-area { font-size: .85rem; color: var(--ink-3); margin-bottom: 14px; }
.kos-price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.kos-price .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.kos-price .v { font-size: 1.22rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.kos-price .v span { font-size: .82rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.kos-meta { display: flex; gap: 14px; font-size: .82rem; color: var(--ink-2); margin: 12px 0 0; }
.kos-meta b { color: var(--ink); }

/* Steps and features */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--accent); margin-bottom: 10px;
}
.step h3 { font-size: 1rem; }
.step p { margin: 0; font-size: .9rem; color: var(--ink-2); }

.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature .ico {
  width: 40px; height: 40px; border-radius: 11px; background: var(--accent-2); color: var(--accent);
  display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 14px;
}
.feature h3 { font-size: 1rem; }
.feature p { margin: 0; font-size: .9rem; color: var(--ink-2); }

/* Locations list and map */
.loc-list { display: grid; gap: 14px; }
.loc-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.loc-pin {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: var(--brand-3); color: var(--brand); display: grid; place-items: center; font-weight: 800;
}
.loc-item h3 { margin: 0 0 3px; font-size: 1rem; }
.map-frame { border: 0; width: 100%; height: 420px; border-radius: var(--radius); display: block; }

/* Property detail */
.detail-hero { display: grid; gap: 26px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.gallery .g0 { grid-column: 1 / -1; }
.gallery figure { margin: 0; border-radius: var(--radius-s); overflow: hidden; background: var(--brand-3); aspect-ratio: 4 / 3; }
.gallery .g0 figure { aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.fac-list { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 0; list-style: none; }
.fac-list li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; font-size: .87rem;
}

.price-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; flex-wrap: wrap;
}
.price-row + .price-row { border-top: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--ink); color: #C6BAAC; padding: 54px 0 26px; margin-top: 70px; }
.site-footer a { color: #EFE6DA; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: .92rem; }
.footer-bot {
  margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #94867A;
}

/* Auth screen */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  background: linear-gradient(160deg, #2B2521 0%, #46362B 100%); color: #D9CDBF; padding: 54px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-side h2 { color: #fff; max-width: 18ch; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 388px; }

/* =====================================================================
   PORTAL (tenant and admin)
   ===================================================================== */
.portal { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }

.side {
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 20px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 20px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: var(--radius-s); color: var(--ink-2); font-size: .93rem; font-weight: 600;
}
.side-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.side-nav a.active { background: var(--brand-3); color: var(--brand); }
.side-nav .ico { width: 20px; text-align: center; flex: none; opacity: .8; }
.side-nav .count {
  margin-left: auto; background: var(--bad); color: #fff; border-radius: 999px;
  font-size: .7rem; font-weight: 800; padding: 1px 7px;
}
.side-sep { margin: 18px 12px 8px; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 800; }

.topbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 28px; background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.topbar h1 { font-size: 1.2rem; margin: 0; }
.topbar .spacer { margin-left: auto; }
.who { display: flex; align-items: center; gap: 9px; font-size: .88rem; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand-3); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: .82rem; flex: none;
}
.portal-main { padding: 28px; }
.portal-main > .wrap { padding: 0; max-width: 1180px; }

.side-toggle { display: none; }

/* Metric tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.tile .k { font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.tile .n { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; margin-top: 4px; line-height: 1.15; }
.tile .sub { font-size: .82rem; color: var(--ink-3); margin-top: 2px; }
.tile-brand .n { color: var(--brand); }
.tile-ok .n   { color: var(--ok); }
.tile-warn .n { color: var(--warn); }
.tile-bad .n  { color: var(--bad); }

.meter { height: 7px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 12px; }
.meter > i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.meter.ok > i   { background: var(--ok); }
.meter.warn > i { background: var(--warn); }

/* The big "next payment" panel in the tenant dashboard */
.due-panel {
  background: linear-gradient(135deg, #2B2521 0%, #45352A 100%);
  color: #E9DFD3; border-radius: var(--radius); padding: 26px;
}
.due-panel h2, .due-panel .n { color: #fff; }
.due-panel .k { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #C9A373; font-weight: 800; }
.due-panel .n { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.due-panel .split { display: flex; gap: 34px; flex-wrap: wrap; margin: 18px 0 22px; }

.info-rows { display: grid; gap: 0; }
.info-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; font-size: .93rem; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row .k { color: var(--ink-3); }
.info-row .v { font-weight: 600; text-align: right; }

/* Occupancy board */
.room-board { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.room-chip {
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px;
  background: var(--surface); font-size: .82rem; display: block; color: var(--ink);
}
.room-chip:hover { text-decoration: none; border-color: var(--ink-3); }
.room-chip b { display: block; font-size: .95rem; }
.room-chip .who { font-size: .76rem; color: var(--ink-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-available   { background: var(--ok-bg);   border-color: #C8E0D4; }
.room-occupied    { background: var(--surface); }
.room-reserved    { background: var(--info-bg); border-color: #C7DDEC; }
.room-notice      { background: var(--warn-bg); border-color: #EEDCB8; }
.room-maintenance { background: #F1EEE8; }
.room-unavailable { background: #F1EEE8; color: var(--ink-3); }

/* Simple bar chart for the revenue trend */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; height: 100%; min-width: 0; }
.bars .b i { display: block; border-radius: 4px 4px 0 0; background: var(--brand-3); }
.bars .b i.paid { background: var(--brand); }
.bars .b span { font-size: .68rem; color: var(--ink-3); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend { display: flex; gap: 16px; font-size: .8rem; color: var(--ink-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* Wizard */
.wizard-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.wizard-steps li {
  list-style: none; font-size: .78rem; font-weight: 700; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
}
.wizard-steps li.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.credentials {
  background: var(--accent-2); border: 1px solid #E6D3BB; border-radius: var(--radius); padding: 20px;
}
.credentials code {
  display: inline-block; background: #fff; border: 1px solid var(--line-2); border-radius: 6px;
  padding: 5px 11px; font-size: 1rem; font-weight: 700; letter-spacing: .02em;
}

.qris-box { text-align: center; padding: 22px; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.qris-box img { margin: 0 auto 14px; max-width: 260px; border-radius: var(--radius-s); }

.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-row code { font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { margin: 0; min-width: 150px; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a {
  padding: 8px 15px; border-radius: 999px; font-size: .87rem; font-weight: 700;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
}
.tabs a:hover { text-decoration: none; border-color: var(--ink-3); }
.tabs a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.acc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.acc + .acc { margin-top: 12px; }
.acc summary {
  padding: 17px 20px; font-weight: 700; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--brand); font-weight: 800; font-size: 1.2rem; flex: none; }
.acc[open] summary::after { content: "\2013"; }
.acc .acc-body { padding: 0 20px 18px; color: var(--ink-2); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side, .detail-hero, .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }

  .portal { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; inset: 0 auto 0 0; width: 272px; z-index: 60;
    transform: translateX(-100%); transition: transform .2s ease;
    box-shadow: var(--shadow);
  }
  .portal.open .side { transform: none; }
  .side-toggle { display: grid; }
  .portal.open::after {
    content: ""; position: fixed; inset: 0; background: rgba(22, 33, 29, .38); z-index: 50;
  }
}

@media (max-width: 780px) {
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 14px 16px;
    display: none; box-shadow: var(--shadow);
  }
  .site-header.open .site-nav { display: flex; }
  .site-nav a { padding: 13px; border-radius: var(--radius-s); }
  .nav-toggle { display: grid; }
  .site-header .bar { gap: 10px; }
  .header-tools { margin-left: auto; }
  .header-tools .btn { display: none; }

  .g2, .g3, .g4, .form-grid, .bi { grid-template-columns: minmax(0, 1fr); }
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 46px 0 40px; }
  .section { padding: 44px 0; }
  .portal-main { padding: 18px 16px; }
  .topbar { padding: 12px 16px; }
  .card-pad { padding: 18px; }
  .due-panel { padding: 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .site-header, .site-footer, .side, .topbar, .btn, .no-print { display: none !important; }
  .portal { grid-template-columns: 1fr; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}
