:root {
  --bg: #faf8f5;
  --ink: #1e2a26;
  --muted: #6b7570;
  --accent: #2f6f5e;
  --accent-ink: #ffffff;
  --card-bg: #ffffff;
  --border: #e6e1d8;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch button {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.lang-switch button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.lang-switch.attn button {
  animation: lang-attn-pulse 1.6s ease-in-out 3;
}

@keyframes lang-attn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 111, 94, 0); }
  50% { box-shadow: 0 0 0 4px rgba(47, 111, 94, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch.attn button { animation: none; }
}

.hero {
  padding: 56px 0 36px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 8px 0 64px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-body h3 { margin: 0; font-size: 1.2rem; }
.card-location { color: var(--muted); font-size: 0.9rem; }
.card-price { font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.card-summary { color: var(--muted); font-size: 0.92rem; }
.card-text { font-size: 0.92rem; }

.card-cta {
  margin-top: auto;
  display: inline-block;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
}
.card-cta:hover { text-decoration: none; opacity: 0.92; }

.listing-header {
  padding: 28px 0 6px;
}

.back-link { font-size: 0.9rem; }

.listing-title {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  margin: 10px 0 4px;
}

.listing-meta {
  color: var(--muted);
  margin-bottom: 4px;
}

.map-link {
  color: var(--accent, #2563eb);
  text-decoration: underline;
  white-space: nowrap;
}

.listing-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 6px 0 22px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

.listing-description {
  max-width: 720px;
  margin-bottom: 40px;
}

.listing-description ul {
  padding-left: 20px;
}

.listing-description h3 {
  margin-top: 28px;
  font-size: 1.05rem;
}

.contact-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  max-width: 480px;
  margin-bottom: 60px;
}

.contact-box h2 { margin-top: 0; font-size: 1.05rem; }
.contact-row { margin: 6px 0; }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 4px;
}
.whatsapp-btn:hover { background: #1ebe5a; }

.quiet-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 11, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}
.quiet-modal.open { display: flex; }
.quiet-modal-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 26px 28px;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.quiet-modal-box h3 { margin: 0 0 10px; font-size: 1.1rem; }
.quiet-modal-box p { margin: 0 0 20px; color: var(--muted); line-height: 1.5; }
.quiet-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quiet-cancel-btn {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}
.quiet-cancel-btn:hover { background: var(--bg); }

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.footer-note {
  max-width: 640px;
  margin: 0 auto 10px;
  line-height: 1.5;
}

.footer-links { margin: 0 0 10px; }
.footer-copy { margin: 0; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 11, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 51;
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

@media (max-width: 640px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 1rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
