:root {
  --bg: #f8f3eb;
  --surface: #ffffff;
  --text: #1d1d1d;
  --muted: #5d5d5d;
  --primary: #5f3b24;
  --primary-soft: #8e6a52;
  --accent: #cba074;
  --shadow: 0 18px 40px rgba(38, 29, 23, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at top right, #f3e5d2 0%, var(--bg) 45%, #f7f5f1 100%);
  color: var(--text);
  line-height: 1.5;
}

.hero {
  min-height: 92vh;
  position: relative;
  padding: 1.5rem 6vw 3rem;
  color: #fff;
  background: #2f1f14;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 6s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(115deg, rgba(33, 22, 14, 0.78) 20%, rgba(95, 59, 36, 0.3) 80%),
    linear-gradient(to top, rgba(0, 0, 0, 0.22), transparent 45%);
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 4rem;
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  color: #fff;
  text-decoration: none;
}

.menu {
  display: flex;
  gap: 1.3rem;
}

.menu a,
.cta-nav {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.cta-nav {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.55rem 1rem;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 700px;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 6vw;
  bottom: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 260px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-dot.active {
  background: var(--accent);
  transform: scale(1.15);
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
}

.subtitle {
  margin-top: 1rem;
  max-width: 600px;
  font-size: 1.08rem;
  color: #f0ece7;
}

.btn-primary,
.btn-outline {
  display: inline-block;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn-primary {
  margin-top: 1.6rem;
  background: var(--accent);
  color: #2f1f12;
}

.btn-primary:hover,
.btn-outline:hover,
.cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

main {
  padding: 0 6vw 4rem;
}

.highlights {
  margin-top: 1.4rem;
  position: relative;
  z-index: 3;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlights article {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.highlights p {
  margin-top: 0.4rem;
  color: var(--muted);
}

section {
  margin-top: 4.5rem;
}

.section-head {
  margin-bottom: 1.4rem;
}

.section-head .tag {
  color: var(--primary);
  background: rgba(95, 59, 36, 0.1);
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-carousel {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 0.8rem;
}

.gallery-viewport {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform 0.45s ease;
}

.gallery-item {
  min-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.gallery-item img {
  width: 100%;
  height: clamp(260px, 45vw, 430px);
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.gallery-nav {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-nav:hover {
  transform: translateY(-1px);
}

.gallery-dots {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(95, 59, 36, 0.28);
  cursor: pointer;
}

.gallery-dot.active {
  background: var(--primary);
}

.gallery-hint {
  margin-top: 0.7rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.gallery-modal-image {
  position: relative;
  z-index: 2;
  max-width: min(94vw, 1100px);
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.gallery-modal-close {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1b1b1b;
  font-weight: 700;
  cursor: pointer;
}

.card {
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
}

.card-body p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.services .service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-grid article {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.service-grid p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.contact-box {
  background: linear-gradient(115deg, #412616 0%, #7e5035 100%);
  color: #fff;
  border-radius: 22px;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.contact-box p {
  margin-top: 0.7rem;
  color: #f3ebe4;
}

.contact-list {
  margin-top: 1rem;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.contact-list li {
  color: #f6eee7;
}

.contact-list a {
  color: #fff;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.actions .btn-primary {
  margin-top: 0;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
}

footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: #6b5648;
}

.floating-contact {
  position: fixed;
  z-index: 30;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.floating-chat-stack {
  display: grid;
  gap: 0.35rem;
  max-width: 280px;
}

.chat-bubble {
  margin: 0;
  border-radius: 14px;
  padding: 0.6rem 0.75rem;
  font-size: 0.87rem;
  line-height: 1.35;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.chat-bubble.primary {
  background: #fff;
  border: 1px solid rgba(95, 59, 36, 0.2);
  color: #2b2b2b;
}

.chat-bubble.secondary {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(95, 59, 36, 0.14);
  color: #5d5d5d;
  font-size: 0.8rem;
}

.chat-bubble.is-changing {
  opacity: 0;
  transform: translateY(4px);
}

.floating-agent {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
}

.floating-avatar {
  width: clamp(160px, 21vw, 260px);
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.3));
}

.floating-social {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(95, 59, 36, 0.18);
  border-radius: 999px;
  padding: 0.4rem 0.55rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

.floating-social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.floating-social a:hover {
  transform: translateY(-2px);
}

.floating-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 950px) {
  .menu {
    display: none;
  }

  .highlights,
  .property-grid,
  .services .service-grid {
    grid-template-columns: 1fr;
  }

  .gallery-carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 0.45rem;
  }

  .gallery-nav {
    width: 38px;
    height: 38px;
  }

  .highlights {
    margin-top: 1.5rem;
  }

  .card img {
    height: 220px;
  }

  .floating-contact {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .floating-chat-stack {
    max-width: 220px;
  }

  .chat-bubble {
    font-size: 0.78rem;
  }

  .floating-social {
    padding: 0.3rem 0.45rem;
  }
}
