/* Kontrakan Griya Mas — style.css */
:root {
  --primary: #5d4037;
  --primary-dark: #4e342e;
  --primary-light: #795548;
  --accent: #ffb74d;
  --accent-dark: #f57c00;
  --bg: #fff8f0;
  --bg2: #fff3e0;
  --text: #1a1200;
  --text-muted: #6d5c4a;
  --white: #fff;
  --border: #e6d5c3;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(93,64,55,0.10);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  padding-top: 40px;
}
img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-dark); }
ul { list-style: none; }

/* Demo Bar */
.demo-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
}
.demo-bar a { color: var(--accent); font-weight: 600; }
.demo-bar a:hover { color: var(--white); }

/* Header & Nav */
header {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 40px;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  line-height: 1.2;
}
.logo svg { flex-shrink: 0; }
.logo span { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; display: block; }

/* Checkbox hack nav */
#nav-toggle { display: none; }
.nav-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-label span {
  display: block;
  width: 24px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all .3s;
}
nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
nav ul li a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: background .2s, color .2s;
}
nav ul li a:hover, nav ul li a.active {
  background: var(--bg2);
  color: var(--primary);
}
nav ul li a.btn-nav {
  background: var(--accent);
  color: var(--primary-dark);
  padding: 8px 16px;
}
nav ul li a.btn-nav:hover { background: var(--accent-dark); color: var(--white); }

/* Mobile nav */
@media (max-width: 700px) {
  .nav-label { display: flex; }
  nav {
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  #nav-toggle:checked ~ nav { max-height: 400px; }
  nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px; gap: 4px; }
  nav ul li a { font-size: 1rem; padding: 10px 12px; }
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #3e2723 100%);
  color: var(--white);
  padding: 56px 16px 48px;
  text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero svg { margin: 0 auto 24px; display: block; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; line-height: 1.2; }
.hero p { font-size: 1.05rem; opacity: .9; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background .2s, color .2s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); }

/* Section */
section { padding: 48px 0; }
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-sub {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.97rem;
}

/* Tipe Hunian Cards */
.hunian-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.hunian-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.hunian-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.hunian-card .icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.hunian-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.hunian-card .price { font-size: 1.25rem; font-weight: 800; color: var(--accent-dark); margin-bottom: 8px; }
.hunian-card .price-sub { font-size: 0.8rem; color: var(--text-muted); }
.hunian-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; }
.tag {
  display: inline-block;
  background: var(--bg2);
  color: var(--primary);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.tag.green { background: #e8f5e9; color: #2e7d32; }
.tag.orange { background: #fff3e0; color: #e65100; }
.tag.red { background: #fce4ec; color: #c62828; }

/* Fasilitas */
.fasilitas-bg { background: var(--bg2); }
.fasilitas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.fasilitas-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.fasilitas-item .fas-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.fasilitas-item h4 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.fasilitas-item p { font-size: 0.82rem; color: var(--text-muted); }

/* Lokasi strip */
.lokasi-strip {
  background: var(--primary);
  color: var(--white);
  padding: 32px 16px;
  text-align: center;
}
.lokasi-strip h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.lokasi-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.lokasi-badge {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 24px;
  padding: 6px 18px;
  font-size: 0.88rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  padding: 48px 16px;
  text-align: center;
}
.cta-section h2 { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 12px; }
.cta-section p { color: var(--primary-dark); margin-bottom: 24px; opacity: .85; }

/* Listing */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.listing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s;
}
.listing-card:hover { transform: translateY(-4px); }
.listing-thumb {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.listing-thumb .thumb-label {
  position: absolute; bottom: 10px; left: 12px;
  background: rgba(0,0,0,.5);
  color: #fff; font-size: 0.78rem; padding: 3px 10px; border-radius: 12px;
}
.listing-body { padding: 16px 18px; }
.listing-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.listing-body .listing-price { font-size: 1.15rem; font-weight: 800; color: var(--accent-dark); margin-bottom: 8px; }
.listing-features { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.listing-features span {
  background: var(--bg2); color: var(--primary);
  border-radius: 14px; padding: 3px 10px; font-size: 0.78rem;
}
.listing-footer { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.avail-badge {
  font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 20px;
}
.avail-badge.tersedia { background: #e8f5e9; color: #2e7d32; }
.avail-badge.terbatas { background: #fff3e0; color: #e65100; }
.avail-badge.penuh { background: #fce4ec; color: #c62828; }

/* Detail halaman */
.detail-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 768px) {
  .detail-grid { grid-template-columns: 1fr 340px; }
}
.detail-visual {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.detail-meta { margin-top: 20px; }
.detail-meta h1 { font-size: 1.6rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.detail-price-box {
  background: var(--bg2);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 16px 0;
}
.detail-price-box .price-main { font-size: 1.8rem; font-weight: 800; color: var(--accent-dark); }
.detail-price-box .price-note { font-size: 0.85rem; color: var(--text-muted); }

.info-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.info-block h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.info-list { display: flex; flex-direction: column; gap: 8px; }
.info-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; }
.info-list li::before {
  content: "✓";
  color: var(--accent-dark);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.info-list li.no::before { content: "✗"; color: #c62828; }

.sidebar-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 110px;
}
.sidebar-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.cost-table td { padding: 7px 0; }
.cost-table td:last-child { text-align: right; font-weight: 600; }
.cost-table tr.total td { border-top: 2px solid var(--border); padding-top: 12px; font-weight: 800; font-size: 1rem; color: var(--primary); }

/* Peraturan */
.peraturan-list li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; display: flex; gap: 10px; }
.peraturan-list li:last-child { border-bottom: none; }
.peraturan-list li::before { content: "📌"; font-size: 0.9rem; flex-shrink: 0; }

/* Simulasi */
.sim-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}
.sim-card h2 { font-size: 1.25rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--primary); }
.form-group select,
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color .2s;
}
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-group textarea { min-height: 80px; resize: vertical; }

.result-box {
  background: var(--bg2);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
  display: none;
}
.result-box.show { display: block; }
.result-box h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 14px; }
.result-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.result-row:last-of-type { border-bottom: none; }
.result-row.total { font-weight: 800; font-size: 1.05rem; color: var(--primary); border-top: 2px solid var(--border); margin-top: 8px; padding-top: 12px; border-bottom: none; }
.result-row .val { font-weight: 700; color: var(--accent-dark); }
.result-row.total .val { color: var(--primary); }

.compare-box {
  margin-top: 20px;
  padding: 16px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.compare-box h4 { font-size: 0.9rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.compare-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 5px 0; }

/* Kontak */
.kontak-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 768px) {
  .kontak-grid { grid-template-columns: 1fr 1fr; }
}
.kontak-info-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.kontak-info-card h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
.kontak-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 0.9rem; }
.kontak-row .k-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--bg2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.kontak-row .k-label { font-size: 0.78rem; color: var(--text-muted); }
.kontak-row .k-val { font-weight: 600; }

.map-placeholder {
  background: linear-gradient(135deg, #e8d5c4 0%, #d7c4b3 100%);
  border-radius: var(--radius);
  height: 200px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; margin-top: 16px;
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.wa-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  margin-top: 16px;
  justify-content: center;
  transition: background .2s;
}
.wa-btn:hover { background: #128c3e; color: #fff; }

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 40px 16px 32px;
}
.page-header h1 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 6px; }
.page-header p { opacity: .85; font-size: 0.95rem; }

/* Breadcrumb */
.breadcrumb { font-size: 0.82rem; margin-bottom: 8px; opacity: .75; }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--white); }

/* Footer */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  padding: 36px 16px 20px;
  margin-top: 48px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
@media (min-width: 600px) {
  .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
}
footer h4 { color: var(--accent); font-size: 0.9rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .05em; }
footer p, footer li { font-size: 0.85rem; line-height: 1.7; }
footer li { margin-bottom: 4px; }
footer a { color: rgba(255,255,255,.75); }
footer a:hover { color: var(--accent); }
.footer-bottom { text-align: center; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 0.8rem; opacity: .6; max-width: 1100px; margin-left: auto; margin-right: auto; }

/* Utility */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }

@media (min-width: 768px) {
  .hero { padding: 72px 16px 64px; }
  section { padding: 64px 0; }
}
