/* assets/css/ayda.css */
/* ============================================================
   AYDA BPR — Halaman Detail Aset
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #185FA5;
  --primary-light: #E6F1FB;
  --primary-dark:  #0C447C;
  --accent:        #0F6E56;
  --accent-light:  #E1F5EE;
  --text:          #1a1a1a;
  --text-muted:    #6b7280;
  --bg:            #ffffff;
  --bg-soft:       #f8f8f6;
  --bg-page:       #f3f2ef;
  --border:        rgba(0,0,0,0.10);
  --border-md:     rgba(0,0,0,0.18);
  --radius:        8px;
  --radius-lg:     12px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.06);
  --shadow:        0 4px 16px rgba(0,0,0,0.08);
}

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

a { color: inherit; text-decoration: none; }

/* ── TOP BAR ── */
.top-bar {
  background: var(--primary);
  padding: 10px 20px;
  display: flex; align-items: center; gap: 10px;
}
.top-bar svg { width: 18px; height: 18px; fill: rgba(255,255,255,.75); flex-shrink: 0; }
.top-bar-text { font-size: 11px; color: rgba(255,255,255,.85); letter-spacing: .07em; text-transform: uppercase; }
.top-bar-right { margin-left: auto; font-size: 11px; color: rgba(255,255,255,.65); }

/* ── WRAPPER ── */
.page-wrap { max-width: 900px; margin: 0 auto; }

/* ── GALLERY ── */
.gallery-section { background: var(--bg); }

.gallery-main {
  position: relative; overflow: hidden;
  background: #0C447C; cursor: pointer;
}
.gallery-main img {
  width: 100%; height: 380px; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.gallery-main:hover img { transform: scale(1.02); }
.gallery-count {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 12px; padding: 4px 10px; border-radius: 6px;
  display: flex; align-items: center; gap: 5px;
}
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding-top: 3px;
}
.gallery-thumb {
  position: relative; overflow: hidden; cursor: pointer; background: #185FA5;
}
.gallery-thumb img {
  width: 100%; height: 110px; object-fit: cover; display: block;
  transition: transform .25s;
}
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-thumb.has-more::after {
  content: attr(data-more);
  position: absolute; inset: 0;
  background: rgba(0,0,0,.52); color: #fff;
  font-size: 20px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}

/* ── HEADER ── */
.asset-header {
  background: var(--bg); padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.badge-jenis {
  display: inline-block; background: var(--primary-light); color: var(--primary-dark);
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; margin-bottom: 10px;
}
.badge-status {
  display: inline-block; margin-left: 6px;
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 4px; letter-spacing: .05em; text-transform: uppercase;
}
.badge-status.tersedia { background: var(--accent-light); color: var(--accent); }
.badge-status.proses   { background: #FAEEDA; color: #854F0B; }
.badge-status.terjual  { background: #FCEBEB; color: #A32D2D; }

.asset-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px; font-weight: 600; line-height: 1.3; margin-bottom: 6px;
}
.asset-address {
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 5px; margin-bottom: 18px;
}
.asset-address svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

.asset-price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px; font-weight: 600; color: var(--primary); margin-bottom: 10px;
}
.asset-summary {
  font-size: 13px; color: var(--text-muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.sum-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }

/* ── SECTION ── */
.section {
  background: var(--bg); margin-top: 10px; padding: 22px 24px;
  border-top: 1px solid var(--border);
}
.section-title {
  font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ── SPECS ── */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; }
.spec-row {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.spec-row:nth-child(odd)  { padding-right: 20px; border-right: 1px solid var(--border); }
.spec-row:nth-child(even) { padding-left: 20px; }
.spec-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.spec-value { font-size: 14px; font-weight: 500; }
.spec-mono  { font-family: 'Courier New', monospace; font-size: 13px; }

/* ── MAP ── */
.map-iframe-wrap {
  width: 100%; height: 210px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: 12px;
}
.map-iframe-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.btn-maps {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius);
  padding: 9px 18px; font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: inherit; text-decoration: none; transition: opacity .15s;
}
.btn-maps:hover { opacity: .88; }
.btn-maps svg { width: 16px; height: 16px; fill: #fff; }

/* ── KELEBIHAN ── */
.kelebihan-list { display: flex; flex-direction: column; gap: 9px; }
.kelebihan-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.kelebihan-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.kelebihan-icon svg { width: 12px; height: 12px; stroke: var(--accent); stroke-width: 3; fill: none; }

/* ── DESKRIPSI ── */
.desc-text { font-size: 14px; line-height: 1.9; color: var(--text-muted); }

/* ── FORM MINAT ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.form-group input,
.form-group textarea,
.form-group select {
  border: 1px solid var(--border-md); border-radius: var(--radius);
  padding: 9px 12px; font-size: 14px; font-family: inherit;
  background: var(--bg-soft); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24,95,165,.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.btn-submit {
  background: var(--primary); color: #fff; border: none; border-radius: var(--radius);
  padding: 11px 28px; font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: inherit; margin-top: 8px; transition: opacity .15s;
}
.btn-submit:hover { opacity: .88; }
.alert {
  padding: 10px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 14px;
}
.alert-success { background: var(--accent-light); color: var(--accent); }
.alert-error   { background: #FCEBEB; color: #A32D2D; }

/* ── CTA STICKY ── */
.cta-sticky {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg); border-top: 1px solid var(--border-md);
  padding: 12px 20px; display: flex; gap: 10px; z-index: 100;
  max-width: 900px; margin: 0 auto;
}
.btn-outline {
  flex: 1; padding: 11px; border-radius: var(--radius);
  border: 1.5px solid var(--primary); background: transparent;
  color: var(--primary); font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: background .15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-outline:hover { background: var(--primary-light); }
.btn-primary {
  flex: 1.4; padding: 11px; border-radius: var(--radius);
  border: none; background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: inherit; transition: opacity .15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary:hover { opacity: .9; }
.btn-outline svg, .btn-primary svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-outline svg { stroke: var(--primary); fill: none; }
.btn-primary svg { stroke: #fff; fill: none; }

/* ── LIGHTBOX ── */
.lightbox-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.9); z-index: 9999;
  align-items: center; justify-content: center; flex-direction: column;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img { max-width: 92vw; max-height: 72vh; border-radius: 6px; display: block; object-fit: contain; }
.lightbox-nav { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.lb-btn {
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-btn svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; }
.lb-counter { color: rgba(255,255,255,.7); font-size: 13px; min-width: 52px; text-align: center; }
.lb-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.12); border: none; color: #fff;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-close svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* ── KODE ASET ── */
.kode-aset { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; font-family: monospace; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .gallery-main img { height: 240px; }
  .gallery-thumb img { height: 80px; }
  .asset-name { font-size: 19px; }
  .asset-price { font-size: 24px; }
  .specs-grid { grid-template-columns: 1fr; }
  .spec-row:nth-child(odd) { border-right: none; padding-right: 0; }
  .spec-row:nth-child(even) { padding-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 16px 16px; }
  .asset-header { padding: 16px 16px; }
}
