/* =========================================================
   BOTANICAL PURI ASRI — TEMA HIJAU PREMIUM
   ========================================================= */

:root {
    --green-950: #07140d;
    --green-900: #0c2117;
    --green-850: #102a1d;
    --green-800: #163826;
    --green-700: #1f4d33;
    --green-600: #2c6b46;
    --green-500: #3f8f5e;
    --gold: #c9a24b;
    --gold-light: #e0c374;
    --cream: #f3efe3;
    --text-muted: #a9b8ad;
    --text-soft: #cdd9cf;
    --red-soft: #c1564a;
    --amber-soft: #c98f3a;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--green-950);
    color: var(--text-soft);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--cream);
    margin: 0 0 0.5em;
}

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 20, 13, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--green-800);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    max-width: 1180px;
    margin: 0 auto;
}
.brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    color: var(--gold-light);
    letter-spacing: 0.5px;
}
.brand span { color: var(--cream); font-weight: 300; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-soft); font-size: 15px; }
.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--green-950) !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 110px 24px 90px;
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(63,143,94,0.18), transparent 60%),
        linear-gradient(180deg, var(--green-950), var(--green-900));
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(63,143,94,0.12) 0, transparent 35%),
        radial-gradient(circle at 85% 70%, rgba(201,162,75,0.10) 0, transparent 40%);
    pointer-events: none;
}
.hero-eyebrow {
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: 48px;
    max-width: 760px;
    margin: 0 auto 20px;
    position: relative;
}
.hero p.lead {
    max-width: 560px;
    margin: 0 auto 36px;
    color: var(--text-muted);
    font-size: 17px;
    position: relative;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 56px;
    flex-wrap: wrap;
    position: relative;
}
.hero-stat strong { display: block; font-size: 30px; color: var(--gold-light); font-family: 'Playfair Display', serif; }
.hero-stat span { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--green-950);
    box-shadow: 0 8px 24px rgba(201,162,75,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,162,75,0.35); }
.btn-outline {
    background: transparent;
    border: 1px solid var(--green-600);
    color: var(--cream);
    margin-left: 12px;
}
.btn-outline:hover { background: var(--green-800); }

/* ---------- Section ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--green-900); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-eyebrow {
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    margin-bottom: 12px;
}
.section-head h2 { font-size: 34px; }
.section-head p { color: var(--text-muted); }

/* ---------- Unit Cards ---------- */
.unit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.unit-card {
    background: var(--green-850);
    border: 1px solid var(--green-800);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.unit-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.unit-thumb {
    height: 190px;
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.35);
    font-size: 13px;
    letter-spacing: 1px;
    position: relative;
}
.unit-thumb .status-tag {
    position: absolute;
    top: 14px; right: 14px;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.tag-tersedia { background: rgba(63,143,94,0.9); color: #fff; }
.tag-booking { background: rgba(201,143,58,0.9); color: #fff; }
.tag-terjual { background: rgba(193,86,74,0.9); color: #fff; }

.unit-body { padding: 22px; }
.unit-body h3 { font-size: 20px; margin-bottom: 4px; }
.unit-code { color: var(--gold-light); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.unit-price { font-size: 22px; color: var(--cream); margin: 14px 0 12px; font-family: 'Playfair Display', serif; }
.unit-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.unit-meta span { display: flex; align-items: center; gap: 5px; }
.unit-body .btn { width: 100%; text-align: center; padding: 12px; font-size: 14px; }

/* ---------- Fasilitas ---------- */
.fasilitas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.fasilitas-item {
    background: var(--green-850);
    border: 1px solid var(--green-800);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
}
.fasilitas-item .icon { font-size: 30px; margin-bottom: 14px; }
.fasilitas-item h4 { font-size: 16px; margin-bottom: 6px; }
.fasilitas-item p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ---------- Testimoni ---------- */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.testi-card {
    background: var(--green-850);
    border: 1px solid var(--green-800);
    border-radius: 14px;
    padding: 26px;
}
.testi-stars { color: var(--gold-light); margin-bottom: 12px; font-size: 14px; }
.testi-card p.isi { color: var(--text-soft); font-size: 14.5px; margin-bottom: 16px; }
.testi-name { color: var(--cream); font-weight: 600; font-size: 14px; }

/* ---------- Form / CTA Lead ---------- */
.cta-box {
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
    border-radius: 22px;
    padding: 56px;
    text-align: center;
    border: 1px solid var(--green-600);
}
.cta-box h2 { font-size: 30px; }
.cta-box p { color: var(--text-soft); max-width: 480px; margin: 0 auto 28px; }

.lead-form {
    max-width: 480px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}
.lead-form label { font-size: 13px; color: var(--text-muted); margin-bottom: -8px; }
.lead-form input, .lead-form textarea, .lead-form select {
    background: var(--green-950);
    border: 1px solid var(--green-700);
    color: var(--cream);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
}
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus {
    outline: none;
    border-color: var(--gold);
}
.lead-form button { margin-top: 6px; }
.form-msg { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.form-msg.success { background: rgba(63,143,94,0.18); border: 1px solid var(--green-600); color: var(--text-soft); }
.form-msg.error { background: rgba(193,86,74,0.15); border: 1px solid var(--red-soft); color: var(--text-soft); }

/* ---------- Footer ---------- */
footer {
    background: var(--green-950);
    border-top: 1px solid var(--green-800);
    padding: 50px 0 30px;
    text-align: center;
}
footer .brand { display: inline-block; margin-bottom: 10px; }
footer p { color: var(--text-muted); font-size: 13px; }

/* ---------- Floating WhatsApp Button ---------- */
#wa-float-btn {
    position: fixed;
    bottom: 26px;
    left: 26px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    z-index: 998;
    box-shadow: 0 10px 28px rgba(37,211,102,0.45);
    transition: transform 0.2s ease;
}
#wa-float-btn:hover { transform: scale(1.08); color: #fff; }

/* ---------- Floating AI Chat Widget ---------- */
#ai-chat-toggle {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(201,162,75,0.4);
    z-index: 999;
    border: none;
    transition: transform 0.2s ease;
}
#ai-chat-toggle:hover { transform: scale(1.07); }
#ai-chat-toggle .ai-chat-toggle-icon { font-size: 24px; line-height: 1; }
#ai-chat-toggle .float-btn-label { font-size: 14px; font-weight: 700; color: var(--green-950); white-space: nowrap; }

#ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 26px;
    width: 360px;
    max-height: 520px;
    background: var(--green-900);
    border: 1px solid var(--green-700);
    border-radius: 18px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    z-index: 999;
}
#ai-chat-window.open { display: flex; }

.ai-chat-header {
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--green-700);
}
.ai-chat-header strong { color: var(--cream); font-size: 14.5px; }
.ai-chat-header span.sub { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.ai-chat-close { cursor: pointer; color: var(--text-muted); font-size: 18px; background: none; border: none; }

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--green-950);
}
.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    white-space: pre-line;
}
.chat-bubble.bot {
    background: var(--green-800);
    color: var(--text-soft);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-bubble.user {
    background: var(--gold);
    color: var(--green-950);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-typing { font-size: 12px; color: var(--text-muted); align-self: flex-start; padding-left: 4px; }

.ai-chat-quick {
    display: flex;
    gap: 8px;
    padding: 10px 14px;
    flex-wrap: wrap;
    border-top: 1px solid var(--green-800);
    background: var(--green-900);
}
.quick-chip {
    background: var(--green-800);
    border: 1px solid var(--green-700);
    color: var(--text-soft);
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
}
.quick-chip:hover { border-color: var(--gold); color: var(--gold-light); }

.ai-chat-input {
    display: flex;
    border-top: 1px solid var(--green-800);
    background: var(--green-900);
}
.ai-chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 16px;
    color: var(--cream);
    font-size: 14px;
}
.ai-chat-input input:focus { outline: none; }
.ai-chat-input button {
    background: var(--gold);
    color: var(--green-950);
    border: none;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- Badges (shared with admin) ---------- */
.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-green { background: rgba(63,143,94,0.18); color: #6ec48b; }
.badge-amber { background: rgba(201,143,58,0.18); color: #d6a85e; }
.badge-red { background: rgba(193,86,74,0.18); color: #e08177; }
.badge-gray { background: rgba(255,255,255,0.08); color: var(--text-muted); }

/* ---------- Detail Unit Page ---------- */
.detail-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-top: 20px; }
.detail-img { height: 360px; border-radius: 18px; background: linear-gradient(135deg, var(--green-700), var(--green-600)); display:flex; align-items:center; justify-content:center; color: rgba(255,255,255,0.35); }
.detail-info { background: var(--green-850); border: 1px solid var(--green-800); border-radius: 18px; padding: 30px; }
.detail-info .unit-price { font-size: 30px; }
.spec-list { list-style: none; padding: 0; margin: 20px 0; }
.spec-list li { display:flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--green-800); font-size: 14px; color: var(--text-soft); }
.spec-list li b { color: var(--cream); }
.fasilitas-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.fasilitas-tags span { background: var(--green-800); border: 1px solid var(--green-700); padding: 6px 12px; border-radius: 20px; font-size: 12px; color: var(--text-soft); }

@media (max-width: 880px) {
    .nav-links { display: none; }
    .detail-wrap { grid-template-columns: 1fr; }
    .hero h1 { font-size: 34px; }
    #ai-chat-window { width: 92vw; right: 4vw; }
    #wa-float-btn { width: 52px; height: 52px; bottom: 20px; left: 16px; }
    #ai-chat-toggle { width: 56px; height: 56px; bottom: 20px; right: 16px; }
}
