:root {
  --background: #f6f4ea;
  --foreground: #24301f;
  --brand: #3c5a3f;
  --brand-dark: #28402b;
  --brand-light: #dde5cd;
  --accent: #6b5228;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", sans-serif;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3 {
  font-family: "Fraunces", serif;
  color: var(--brand-dark);
  margin: 0;
}

a {
  color: inherit;
}

img, video {
  max-width: 100%;
}

.wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-sm {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  border-bottom: 1px solid var(--brand-light);
  background: rgba(246, 244, 234, 0.95);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(4px);
}

.header-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}

.logo-link img {
  height: 36px;
  width: auto;
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 500;
}

nav.site-nav a.nav-link {
  color: rgba(36, 48, 31, 0.8);
  text-decoration: none;
  transition: color 0.15s;
}

nav.site-nav a.nav-link:hover {
  color: var(--brand);
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  nav.site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}

.btn {
  display: inline-block;
  border-radius: 9999px;
  padding: 12px 24px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--brand);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  width: 100%;
  overflow: hidden;
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1152px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 24px 64px;
  color: white;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
}

.hero-content h1 {
  color: white;
  max-width: 42rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.hero-content p.hero-desc {
  margin-top: 16px;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-price {
  margin-top: 12px;
  font-size: 1.125rem;
  font-weight: 500;
}

.hero-price span {
  margin-left: 4px;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}

.hero-content .btn {
  margin-top: 32px;
}

/* Sections */
section.section {
  padding: 64px 0;
}

section.section-alt {
  background: rgba(221, 229, 205, 0.4);
}

.section-title {
  font-size: 1.875rem;
}

.section-lead {
  margin-top: 12px;
  max-width: 42rem;
  color: rgba(36, 48, 31, 0.7);
}

.center {
  text-align: center;
}

.center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  margin-top: 40px;
  display: grid;
  gap: 40px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--brand-light);
  margin-bottom: 12px;
}

.feature-photo img,
.feature-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-grid h3 {
  font-size: 1.25rem;
}

.feature-grid p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: rgba(36, 48, 31, 0.7);
}

video.showcase-video {
  display: block;
  margin: 32px auto 0;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  border: 1px solid var(--brand-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Cards */
.card {
  border-radius: 16px;
  border: 1px solid var(--brand-light);
  background: rgba(255, 255, 255, 0.6);
  padding: 24px;
}

.card-grid {
  margin-top: 40px;
  display: grid;
  gap: 32px;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card h2 {
  font-size: 1.25rem;
}

.card p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: rgba(36, 48, 31, 0.7);
}

.note-box {
  margin-top: 32px;
  border-radius: 16px;
  border: 1px solid var(--brand-light);
  background: rgba(221, 229, 205, 0.3);
  padding: 24px;
  font-size: 0.9rem;
  color: rgba(36, 48, 31, 0.7);
}

/* Map containers */
.map-container {
  width: 100%;
  height: 420px;
  border-radius: 16px;
  border: 1px solid var(--brand-light);
  overflow: hidden;
}

.map-container.map-sm {
  height: 360px;
}

.map-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(36, 48, 31, 0.7);
}

.link-inline {
  margin-top: 12px;
  display: inline-block;
  font-size: 0.9rem;
  color: var(--brand);
  text-decoration: underline;
}

/* Info table */
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--brand-light);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 12px 20px;
  border-bottom: 1px solid var(--brand-light);
  white-space: nowrap;
}

.info-table th {
  font-weight: 600;
  color: var(--brand-dark);
  background: rgba(221, 229, 205, 0.3);
}

.info-table tbody tr:last-child td {
  border-bottom: none;
}

/* Leaflet tooltip override */
.leaflet-tooltip.brand-tooltip {
  background: var(--brand-dark);
  color: white;
  border: none;
  box-shadow: none;
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 12px;
}
.leaflet-tooltip.brand-tooltip::before {
  border-top-color: var(--brand-dark);
}

/* Gallery */
.gallery-grid {
  margin-top: 24px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--brand-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item img,
.feature-photo img {
  cursor: zoom-in;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 24px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}

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

.lightbox-close {
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

@media (max-width: 640px) {
  .lightbox-nav {
    display: none;
  }
}

/* WhatsApp floating button */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}

.whatsapp-btn:hover {
  transform: scale(1.05);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--brand-light);
  background: rgba(221, 229, 205, 0.4);
  margin-top: 64px;
}

.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  gap: 32px;
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-logo span {
  font-family: "Fraunces", serif;
  font-size: 1.125rem;
  color: var(--brand-dark);
}

footer.site-footer p {
  color: rgba(36, 48, 31, 0.7);
  margin: 4px 0;
}

footer.site-footer p.label {
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(221, 229, 205, 0.6);
  padding: 16px;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(36, 48, 31, 0.5);
}
