:root {
  --green: #049004;
  --green-dark: #037503;
  --green-soft: #e6f4e6;
  --green-chip: #c5e8c5;
  --blue: #1877f2;
  --red: #dc2626;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f8fa;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Prompt", system-ui, sans-serif; font-size: 16px; line-height: 1.55;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40; background: #fff;
  border-top: 4px solid var(--green); box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-weight: 700; color: var(--green); font-size: 1.25rem; line-height: 1.1; display: flex; align-items: center; gap: 8px; }
.brand-name::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.brand-sub { font-size: .8rem; color: var(--ink-2); text-align: center; }
.nav { display: flex; gap: 8px; }
.nav a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; font-size: .95rem; color: var(--ink); }
.nav a:hover { background: var(--green-soft); }
.nav a.active { background: var(--green); color: #fff; font-weight: 600; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }
@media (max-width: 767px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 16px 16px; box-shadow: var(--shadow-lg); }
  .nav.open { display: flex; }
  .brand-name { font-size: 1.1rem; }
}

/* Hero */
.hero { position: relative; min-height: 420px; background: #2a3a2a center/cover no-repeat; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.05)); }
.hero-inner { position: relative; padding: 72px 16px 150px; max-width: 1200px; margin: 0 auto; }
.hero h1 { margin: 0 0 8px; font-size: 1.9rem; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.hero p { margin: 0 0 16px; max-width: 480px; font-size: .95rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 10px 18px; font-weight: 600; border: 2px solid transparent; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline-green { border-color: var(--green); color: var(--green); background: #fff; }
.btn-outline-blue { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-block { display: flex; width: 100%; }

/* Search box */
.search-card {
  position: relative; z-index: 5; max-width: 720px; margin: -120px auto 0; background: rgba(255,255,255,.96);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px;
}
.search-row { display: flex; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.search-row input { flex: 1; border: 0; padding: 12px 16px; font: inherit; outline: none; min-width: 0; }
.search-row button { background: var(--green); color: #fff; border: 0; padding: 0 16px; margin: 4px; border-radius: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.chip {
  appearance: none; border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 6px 30px 6px 14px; font: inherit; font-size: .92rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.chip.on { background-color: var(--green); color: #fff; border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.chip-clear { border: 0; background: var(--green-chip); color: var(--green-dark); border-radius: 999px; padding: 8px 16px; font-size: .92rem; }

/* Sections */
.section { padding: 48px 0 24px; }
.section-title { text-align: center; font-size: 1.9rem; margin: 0; }
.section-sub { text-align: center; color: var(--ink-2); margin: 6px 0 32px; }
.loc-head { display: flex; align-items: center; gap: 10px; margin: 32px 0 16px; font-weight: 700; font-size: 1.15rem; }
.loc-head svg { color: var(--green); }
.loc-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .grid { grid-template-columns: 1fr; } }

/* Card */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 379/192; background: #ddd; }
.card-media { overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; font-size: .8rem; padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.badge-code { top: 10px; left: 10px; background: #fff; color: var(--ink); }
.badge-type { bottom: 10px; left: 10px; background: #22c55e; color: #fff; }
.badge-count { bottom: 10px; right: 10px; background: rgba(0,0,0,.7); color: #fff; display: flex; align-items: center; gap: 4px; }
.badge-sold { top: 10px; right: 10px; background: var(--red); color: #fff; font-weight: 700; }
.card.sold .card-media img { filter: grayscale(.6); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-weight: 600; font-size: 1.05rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.muted-row { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .9rem; }
.kv { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-2); margin-top: 6px; }
.kv b { color: var(--ink); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.price { color: var(--green); font-weight: 700; font-size: 1.35rem; }
.per-wa { color: var(--muted); font-size: .85rem; }
.excerpt { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; color: var(--ink-2); font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.center { text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Detail */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); margin: 20px 0 16px; font-size: .95rem; }
.detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 899px) { .detail { grid-template-columns: minmax(0, 1fr); } .sidebar { position: static; } }
.gallery-main { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.gallery-main .stage { position: absolute; inset: 0; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: contain; }
.gallery-counter { position: absolute; left: 12px; top: 12px; background: rgba(0,0,0,.7); color: #fff; padding: 2px 12px; border-radius: 999px; font-size: .85rem; }
.gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.9); border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.gallery-btn.prev { left: 12px; } .gallery-btn.next { right: 12px; }
.gallery-expand { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.9); border: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; }
.thumbs button { flex: none; width: 76px; height: 52px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #000; position: relative; }
.thumbs button.on { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-top: 16px; }
.panel h2 { font-size: 1.1rem; margin: 0 0 12px; }
.tags { display: flex; gap: 8px; }
.tag { font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: #e0ecff; color: #1d4ed8; }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.red { background: #fee2e2; color: var(--red); font-weight: 700; }
.detail-title { font-size: 1.35rem; margin: 10px 0 4px; line-height: 1.45; }
.detail-price { color: var(--green); font-size: 1.8rem; font-weight: 700; margin: 6px 0 0; }
.loc-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; gap: 8px; }
.map-link { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 4px 12px; font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.spec small { color: var(--muted); display: block; }
.desc { color: var(--ink-2); overflow: hidden; }
.desc.clamped { max-height: 220px; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.desc p { margin: 0 0 8px; }
.more-btn { background: none; border: 0; color: var(--green); font-weight: 600; padding: 8px 0 0; }
.sidebar { position: sticky; top: 84px; }
.agent { display: flex; gap: 12px; align-items: center; }
.agent img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.agent-name { font-weight: 600; }
.agent small { color: var(--muted); display: block; }
.agent-lines { font-size: .88rem; color: var(--ink-2); margin: 8px 0; display: grid; gap: 2px; }
.agent-lines a, .agent-lines span { display: flex; align-items: center; gap: 6px; }
.pills { display: flex; gap: 8px; margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 12px; font-size: .85rem; color: #fff; }
.pill.line { background: #06c755; } .pill.fb { background: var(--blue); }
.stack { display: grid; gap: 10px; }
.sold-banner { background: #fee2e2; color: var(--red); border-radius: 10px; padding: 10px 14px; font-weight: 600; margin-bottom: 12px; }
.inapp-hint { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.95); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 96vw; max-height: 90vh; object-fit: contain; }
.lightbox .close { position: absolute; top: 14px; right: 14px; background: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; }

/* Contact page */
.contact-card { max-width: 520px; margin: 32px auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; }
.contact-card img.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; }
.contact-card .btn { font-size: 1.1rem; padding: 14px 18px; }
.howto { text-align: left; background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: var(--ink-2); margin-top: 16px; }
.copy-btn { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 2px 10px; font-size: .85rem; margin-left: 6px; }

/* Gallery page */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.photo-grid a { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #ddd; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile contact bar */
.contact-bar { display: none; }
@media (max-width: 767px) {
  .contact-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 10px rgba(0,0,0,.1); }
  .contact-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; padding: 10px; font-weight: 600; color: #fff; }
  .contact-bar .call { background: var(--green); } .contact-bar .line { background: #06c755; }
  body { padding-bottom: 70px; }
  .hero-inner { padding: 48px 16px 150px; }
  .hero h1 { font-size: 1.6rem; }
}

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 48px; padding: 40px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 767px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h3 { font-size: 1rem; margin: 0 0 10px; }
.footer-grid a, .footer-grid span { display: block; color: var(--ink-2); margin-bottom: 6px; }
.copyright { text-align: center; color: var(--muted); border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px; font-size: .85rem; }
