:root{--bg:#0f1311;--card:#151a17;--muted:#96a19a;--text:#e7ede9;--accent:#3fb67a;--accent-2:#2d8f60;--ring:#2a3430}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;background:var(--bg);color:var(--text)}
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(15,19,17,.8);backdrop-filter:saturate(150%) blur(8px);border-bottom:1px solid #1e2622}
.header-wrap{display:flex;align-items:center;justify-content:space-between;height:64px}
.brand{color:var(--text);text-decoration:none;font-weight:700;letter-spacing:.2px}
.nav{display:flex;gap:16px}
.nav-link{color:var(--muted);text-decoration:none;padding:8px 10px;border-radius:8px}
.nav-link:hover{color:var(--text);background:#111613}
.hero{padding:56px 0 28px;border-bottom:1px solid #1e2622;background:linear-gradient(180deg,rgba(63,182,122,.08),transparent)}
.hero{position:relative;overflow:hidden}
.hero-media{position:absolute;inset:0;z-index:0}
.hero-img{width:100%;height:100%;object-fit:cover;filter:brightness(.6)}
.hero-wrap{position:relative;z-index:1}
.hero-wrap h1{margin:0 0 6px;font-size:32px;line-height:1.2}
.hero-wrap p{margin:0 0 20px;color:var(--muted)}
.search-wrap{display:flex;gap:12px}
.search-wrap input,.search-wrap select{flex:1;max-width:520px;background:var(--card);border:1px solid var(--ring);color:var(--text);padding:12px 14px;border-radius:12px;outline:none}
.search-wrap select{flex:0 0 180px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:28px 0}
.grid-2{grid-template-columns:repeat(2,1fr)}
.card{background:var(--card);border:1px solid var(--ring);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.thumb{position:relative;aspect-ratio:16/9;background:#0b0e0d}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.badge{position:absolute;bottom:10px;left:10px;background:rgba(63,182,122,.9);color:#08120d;font-weight:600;padding:6px 10px;border-radius:999px;font-size:12px}
.content{padding:16px;display:flex;flex-direction:column;gap:8px}
.title{font-weight:600}
.meta{color:var(--muted);font-size:14px}
.tags{display:flex;flex-wrap:wrap;gap:8px}
.tag{background:#0f1412;border:1px solid #1e2622;color:var(--muted);padding:6px 8px;border-radius:999px;font-size:12px}
.actions{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-top:1px solid #1e2622}
.price{font-weight:700;color:var(--accent)}
.btn{appearance:none;border:0;background:var(--accent);color:#07110c;padding:10px 14px;border-radius:12px;font-weight:600;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:8px}
.btn:hover{background:var(--accent-2)}

.btn-wa{background:#25D366;color:#ffffff}
.btn-wa:hover{background:#1ebd5b}
.btn-map{background:#4285F4;color:#ffffff}
.btn-map:hover{background:#3367D6}

.modal{position:fixed;inset:0;display:grid;place-items:center;z-index:1000}
.modal.hidden{display:none}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5);z-index:0}
.modal-card{position:relative;background:var(--card);border:1px solid var(--ring);border-radius:16px;max-width:900px;width:92vw;max-height:86vh;overflow:auto;z-index:1}

.modal-close{position:absolute;top:10px;right:10px;background:transparent;color:var(--muted);border:1px solid #26302b;border-radius:12px;width:40px;height:40px;display:grid;place-items:center;font-size:18px;cursor:pointer;z-index:2;touch-action:manipulation}
.modal-body{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:18px}
.modal-body h2{margin:0}
.lead{color:var(--muted)}
.list{display:grid;gap:8px}
.list li{background:#0f1412;border:1px solid #1e2622;padding:8px 10px;border-radius:10px}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.gallery img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.map{margin-top:8px}
.map-frame{width:100%;height:300px;border:1px solid var(--ring);border-radius:12px}
.modal-open .hero-wrap{pointer-events:none}
.modal-open .search-wrap{visibility:hidden}
.site-footer{border-top:1px solid #1e2622;margin-top:18px}
.footer-wrap{display:flex;justify-content:space-between;align-items:center;height:64px;color:var(--muted)}
@media (max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}.modal-body{grid-template-columns:1fr}}
@media (max-width:560px){.grid{grid-template-columns:1fr}.grid-2{grid-template-columns:1fr}.search-wrap{flex-direction:column}.search-wrap select{flex:1}}
@media (max-width:560px){.admin .actions{flex-direction:column;align-items:flex-start;gap:10px}}
@media (max-width:560px){.admin .gallery{grid-template-columns:repeat(2,1fr)}.modal-card{width:96vw;max-height:90vh}.admin .modal-body{padding:12px}.admin .modal-body .btn{width:100%}}
/* auth */
.auth-main{padding:40px 0}
.auth-card{max-width:520px;margin:0 auto;padding:20px}
.content-lg{gap:12px}
.field{width:100%;background:var(--card);border:1px solid var(--ring);color:var(--text);padding:12px 14px;border-radius:12px;outline:none}
.field::placeholder{color:var(--muted)}
.field:focus{border-color:var(--accent)}
.actions-vertical{display:grid;gap:10px}

/* detail modal enhancements */
.detail-header{display:grid;grid-template-columns:1fr auto;gap:12px;padding:4px 0 12px;border-bottom:1px solid #1e2622}
.detail-title{margin:0;font-size:22px;line-height:1.3}
.detail-sub{color:var(--muted);font-size:14px}
.detail-actions{display:grid;gap:10px;align-content:start;justify-items:end}
.price-badge{display:inline-flex;align-items:center;justify-content:center;background:rgba(63,182,122,.12);color:var(--accent);border:1px solid var(--accent);border-radius:12px;padding:10px 12px;font-weight:700}
.cta-group{display:flex;gap:8px;flex-wrap:wrap}
.chip-list{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.chip{background:#0f1412;border:1px solid #1e2622;color:var(--text);padding:6px 10px;border-radius:999px;font-size:12px}
.section-title{margin:12px 0 8px;font-size:16px}
.timeline{position:relative;display:grid;gap:10px;padding-left:16px}
.timeline:before{content:"";position:absolute;left:6px;top:2px;bottom:2px;width:2px;background:#25302b;border-radius:2px}
.timeline-item{position:relative;background:#0f1412;border:1px solid #1e2622;border-radius:10px;padding:10px}
.timeline-item:before{content:"";position:absolute;left:-10px;top:12px;width:10px;height:10px;background:var(--accent);border:2px solid #163223;border-radius:999px}
.timeline-day{font-weight:700;color:var(--accent-2)}
.timeline-title{font-weight:600}
.gallery-scroll{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px}
.gallery-scroll img{flex:0 0 160px;height:120px;object-fit:cover;border-radius:12px}

body,.modal-card,.gallery-scroll{scrollbar-width:thin;scrollbar-color:var(--ring) transparent}
body::-webkit-scrollbar{width:8px}
.modal-card::-webkit-scrollbar{width:8px}
.gallery-scroll::-webkit-scrollbar{height:8px}
body::-webkit-scrollbar-track,.modal-card::-webkit-scrollbar-track,.gallery-scroll::-webkit-scrollbar-track{background:transparent}
body::-webkit-scrollbar-thumb,.modal-card::-webkit-scrollbar-thumb,.gallery-scroll::-webkit-scrollbar-thumb{background:var(--ring);border-radius:999px}
body::-webkit-scrollbar-thumb:hover,.modal-card::-webkit-scrollbar-thumb:hover,.gallery-scroll::-webkit-scrollbar-thumb:hover{background:var(--accent-2)}

.gallery-scroll{scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;position:relative}
.gallery-scroll img{scroll-snap-align:start}
.gallery-scroll::before,.gallery-scroll::after{content:"";position:absolute;top:0;bottom:0;width:24px;pointer-events:none}
.gallery-scroll::before{left:0;background:linear-gradient(to right, var(--card), rgba(0,0,0,0))}
.gallery-scroll::after{right:0;background:linear-gradient(to left, var(--card), rgba(0,0,0,0))}