:root {
  --brand: #3fcbcb;
  --brand-dark: #1f8f8f;
  --brand-darker: #146868;
  --ink: #1c2b2b;
  --ink-soft: #4a5a5a;
  --bg: #fbfdfd;
  --bg-alt: #f0f9f9;
  --white: #ffffff;
  --border: #e1eeee;
  --shadow: 0 10px 30px rgba(31, 143, 143, 0.12);
  --radius: 16px;
  --max-width: 1160px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 { font-family: var(--font-heading); margin: 0 0 .5em; line-height: 1.2; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

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

.btn-light { background: var(--white); color: var(--brand-darker); }
.btn-light:hover { box-shadow: var(--shadow); }

.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.15); }

.btn-whatsapp { background: var(--white); color: var(--brand-darker); padding: 9px 18px; font-size: .88rem; }
.btn-whatsapp:hover { background: var(--bg-alt); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 253, 253, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand-logo { height: 52px; width: auto; border-radius: 8px; }

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-weight: 500;
}

.main-nav a { color: var(--ink); position: relative; padding: 4px 0; }
.main-nav a:hover, .main-nav a.active { color: var(--brand-darker); }

.header-cta { margin-left: 8px; background: var(--brand-dark); color: var(--white); }
.header-cta:hover { background: var(--brand-darker); }
.header-cta svg { flex-shrink: 0; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.icon-btn svg { width: 20px; height: 20px; }

.header-instagram { margin-left: 8px; background: var(--bg-alt); color: var(--brand-darker); }
.header-instagram:hover { background: var(--brand-dark); color: var(--white); transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #4fd6d6, #1f8f8f 70%);
  color: var(--white);
  padding: 90px 0 130px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  max-width: 760px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-photo {
  width: 100%;
  max-width: 300px;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  border: 4px solid rgba(255,255,255,.35);
  box-shadow: 0 24px 50px rgba(0,0,0,.25);
}

@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    gap: 64px;
  }
  .hero-text { align-items: flex-start; text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-photo { max-width: 320px; flex-shrink: 0; }
}

.hero-logo {
  height: 110px;
  width: auto;
  margin-bottom: 28px;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin-bottom: .6em;
}

.hero-sub {
  color: rgba(255,255,255,.92);
  font-size: 1.1rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 90px;
}
.hero-wave path { fill: var(--bg); }

/* Services */
.services { padding: 60px 0 20px; }
.services-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.service h3 { font-size: 1.1rem; color: var(--brand-darker); }
.service p { margin-bottom: 0; font-size: .95rem; }

/* Section head */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); }

.section-cta { text-align: center; margin-top: 48px; }

/* Properties */
.properties { padding: 90px 0; }

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(20,60,60,.08);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.property-cover {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
}
.property-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.property-card:hover .property-cover img { transform: scale(1.06); }

.property-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--brand-dark);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

.property-photocount {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(20,40,40,.65);
  color: var(--white);
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: 999px;
}

.property-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.property-price { font-family: var(--font-heading); font-size: 1.35rem; color: var(--brand-darker); font-weight: 700; }

.property-title { font-size: 1.2rem; margin-bottom: 2px; }
.property-title a { color: inherit; }
.property-title a:hover { color: var(--brand-darker); }

.property-location { color: var(--ink-soft); font-size: .92rem; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }

.property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  color: var(--ink);
}
.property-specs span { display: flex; align-items: center; gap: 6px; }

.property-desc { font-size: .93rem; flex: 1; }

.property-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.property-actions .btn { padding: 11px 20px; font-size: .88rem; }

.btn-secondary { background: var(--bg-alt); color: var(--brand-darker); }
.btn-secondary:hover { background: #e2f4f4; }

/* Page hero (subpages) */
.page-hero {
  background: linear-gradient(135deg, #4fd6d6, #1f8f8f 70%);
  color: var(--white);
  padding: 56px 0 64px;
}
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.92); margin-bottom: 0; max-width: 560px; }

.breadcrumb { color: var(--ink-soft); font-size: .88rem; margin: 24px 0; }
.breadcrumb a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--brand-darker); }
.breadcrumb span { margin: 0 6px; }

.page-hero .breadcrumb { color: rgba(255,255,255,.85); margin: 0 0 14px; }
.page-hero .breadcrumb a { color: var(--white); }

/* Property detail page */
.property-detail-section { padding: 8px 0 100px; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  grid-template-areas:
    "gallery sidebar"
    "description sidebar";
  gap: 40px;
  align-items: start;
}

.detail-gallery { grid-area: gallery; }
.detail-sidebar { grid-area: sidebar; }
.detail-description { grid-area: description; }

.detail-main-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-alt);
}
.detail-main-image img { width: 100%; height: 100%; object-fit: cover; }

.detail-zoom-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(20,40,40,.65);
  color: var(--white);
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
}
.detail-main-image:hover .detail-zoom-hint { opacity: 1; transform: translateY(0); }

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  margin-top: 16px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}
.detail-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  transition: border-color .15s ease;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumb:hover { border-color: var(--brand); }
.detail-thumb.active { border-color: var(--brand-dark); }

.detail-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-price { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--brand-darker); }
.detail-title { font-size: 1.4rem; margin-bottom: 2px; }
.detail-location { color: var(--ink-soft); font-size: .95rem; margin-bottom: 6px; }

.detail-specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .92rem;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.detail-cta { justify-content: center; width: 100%; }
.detail-back { text-align: center; font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
.detail-back:hover { color: var(--brand-darker); }

.detail-description { padding-top: 8px; }
.detail-description h2 { font-size: 1.3rem; margin-bottom: 12px; }
.detail-description p { font-size: 1rem; max-width: 640px; }

.not-found { text-align: center; padding: 80px 20px; }
.not-found p { max-width: 480px; margin: 0 auto 24px; }

@media (max-width: 860px) {
  .detail-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "sidebar"
      "description";
  }
  .detail-sidebar { position: static; }
}

/* Listing layout */
.listing { padding: 56px 0 100px; }

.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.filters {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filters-head { display: none; align-items: center; justify-content: space-between; }
.filters-head h2 { margin: 0; font-size: 1.15rem; }
.filters-close { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft); }

.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-group > label { font-weight: 600; font-size: .9rem; color: var(--ink); }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--brand); }
.chip.active { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }

.price-inputs { display: flex; align-items: center; gap: 10px; }
.price-inputs input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
}
.price-inputs input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.price-inputs span { color: var(--ink-soft); }

#sort-select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
  background: var(--white);
}

.filters-reset { align-self: flex-start; }

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.filters-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
}

.results-count { color: var(--ink-soft); font-size: .92rem; margin: 0; }

.no-results {
  text-align: center;
  padding: 60px 20px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

@media (max-width: 960px) {
  .listing-layout { grid-template-columns: 1fr; }

  .filters {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 100%);
    height: 100vh;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 200;
    overflow-y: auto;
  }
  .filters.open { transform: translateX(0); box-shadow: -12px 0 30px rgba(0,0,0,.15); }
  .filters-head { display: flex; }
  .filters-toggle { display: inline-flex; }
}

/* Backdrop for the mobile filters drawer. Always out-of-flow/hidden by
   default so it can never participate in the .listing-layout grid on
   desktop, regardless of where it sits in the markup. */
.filters-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 25, .45);
  z-index: 150;
}
.filters-backdrop.open { display: block; }

/* About */
.about { background: var(--bg-alt); padding: 90px 0; }
.about-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.about h2 { color: var(--brand-darker); font-size: clamp(1.5rem, 3vw, 2rem); }

/* Contact */
.contact { padding: 90px 0; text-align: center; }
.contact h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.contact p { max-width: 520px; margin-left: auto; margin-right: auto; }

.contact-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 200px;
  box-shadow: 0 6px 20px rgba(20,60,60,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-icon { font-size: 1.8rem; }
.contact-label { font-size: .85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.contact-value { font-weight: 600; font-size: 1.05rem; color: var(--brand-darker); }

/* Footer */
.site-footer { background: var(--brand-darker); color: rgba(255,255,255,.85); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; text-align: center; }
.footer-logo { height: 40px; border-radius: 6px; }
.footer-inner p { margin: 0; color: rgba(255,255,255,.75); font-size: .88rem; }

.footer-social { width: 36px; height: 36px; background: rgba(255,255,255,.12); color: var(--white); }
.footer-social svg { width: 18px; height: 18px; }
.footer-social:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 25, .92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox-content { max-width: 900px; max-height: 85vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-content img { max-height: 75vh; width: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-caption { color: var(--white); margin-top: 14px; font-size: .9rem; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 860px) {
  .services-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
    display: none;
  }
  .main-nav.open { display: flex; }
  .header-cta span { display: none; }
  .header-cta { padding: 10px; }
  .nav-toggle { display: flex; }
  .hero { padding: 60px 0 100px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 12px; right: 12px; }
}

@media (max-width: 480px) {
  .contact-card { min-width: 100%; }
}
