:root {
  --sand: #F0EDE5;
  --cyprus: #004643;
  --gold: #C9A45C;
  --dark: #071F1E;
  --white: #FFFFFF;
  --muted: #6D7A78;
  --shadow: 0 28px 80px rgba(0, 40, 37, 0.22);
  --radius: 28px;
}

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

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--sand);
  color: var(--dark);
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

.loader {
  position: fixed;
  inset: 0;
  background: var(--cyprus);
  color: var(--sand);
  display: grid;
  place-items: center;
  z-index: 9999;
  animation: hideLoader 1s ease 1.6s forwards;
}

.loader-inner {
  text-align: center;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 13px;
}

.loader-logo {
  font-size: 38px;
  font-family: Georgia, serif;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  color: var(--gold);
}

@keyframes hideLoader {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: 0.3s ease;
}

header.scrolled {
  background: rgba(0, 70, 67, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #fff2be);
  color: var(--cyprus);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-weight: bold;
  box-shadow: 0 0 32px rgba(201, 164, 92, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
}

.nav-links a {
  opacity: 0.86;
  transition: 0.25s;
}

.nav-links a:hover {
  color: var(--gold);
  opacity: 1;
}

.nav-cta,
.btn-primary,
.btn-secondary {
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-cta,
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #F4D98C);
  color: var(--cyprus);
  box-shadow: 0 18px 45px rgba(201, 164, 92, 0.28);
}

.nav-cta:hover,
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(201, 164, 92, 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(14px);
}

.menu-toggle {
  display: none;
  color: var(--white);
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(0, 70, 67, 0.88), rgba(0, 70, 67, 0.34)),
    url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=80') center/cover;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 190px;
  background: linear-gradient(transparent, var(--sand));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 90px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1,
.section-head h2,
.feature-wrap h2,
.map-info h3,
.contact-wrap h2,
.modal-body h2 {
  font-family: Georgia, serif;
}

.hero h1 {
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.95;
  margin-bottom: 24px;
  max-width: 860px;
}

.hero p {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 16px;
  max-width: 650px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  padding: 20px;
}

.stat-card strong {
  display: block;
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 6px;
}

section {
  padding: 100px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(34px, 4vw, 58px);
  color: var(--cyprus);
  max-width: 660px;
  line-height: 1.05;
}

.section-head p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 420px;
}

.search-panel {
  margin-top: -72px;
  position: relative;
  z-index: 5;
  padding: 0;
}

.search-box {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyprus);
  font-weight: 800;
}

.field input,
.field select,
textarea {
  border: 1px solid rgba(0, 70, 67, 0.14);
  background: var(--sand);
  padding: 14px 16px;
  border-radius: 16px;
  outline: none;
  color: var(--dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0, 70, 67, 0.12);
  transition: 0.35s ease;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 32px 76px rgba(0, 70, 67, 0.18);
}

.property-image {
  height: 250px;
  position: relative;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.property-card:hover img {
  transform: scale(1.08);
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--cyprus);
  color: var(--white);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
}

.badge.sold {
  background: #7B1E1E;
}

.property-body {
  padding: 24px;
}

.property-body h3 {
  color: var(--cyprus);
  font-size: 22px;
  margin-bottom: 8px;
}

.property-body p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.price {
  font-size: 22px;
  font-weight: 900;
  color: var(--cyprus);
  margin-bottom: 14px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta span {
  background: var(--sand);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--cyprus);
  font-weight: 700;
}

.feature-wrap {
  background: var(--cyprus);
  color: var(--white);
  border-radius: 44px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.feature-wrap::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(rgba(201, 164, 92, 0.32), transparent 65%);
  right: -120px;
  top: -140px;
}

.feature-wrap h2 {
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.feature-wrap p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.8;
  margin-bottom: 24px;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px;
  border-radius: 20px;
}

.feature-image img {
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.map-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.interactive-map {
  background: linear-gradient(135deg, #0a5753, #003533);
  border-radius: 36px;
  padding: 28px;
  min-height: 520px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-bg {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image: linear-gradient(45deg, #fff 1px, transparent 1px), linear-gradient(-45deg, #fff 1px, transparent 1px);
  background-size: 40px 40px;
}

.lot-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  height: 100%;
}

.lot {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  min-height: 96px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--white);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  transition: 0.25s ease;
}

.lot:hover,
.lot.active {
  background: var(--gold);
  color: var(--cyprus);
  transform: scale(1.04);
  box-shadow: 0 18px 50px rgba(201, 164, 92, 0.35);
}

.lot small {
  font-weight: 800;
  opacity: 0.88;
}

.map-info {
  background: var(--white);
  border-radius: 36px;
  padding: 32px;
  box-shadow: 0 22px 60px rgba(0, 70, 67, 0.12);
}

.map-info h3 {
  font-size: 32px;
  color: var(--cyprus);
  margin-bottom: 14px;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 70, 67, 0.12);
}

.calculator {
  background: var(--white);
  border-radius: 36px;
  padding: 34px;
  box-shadow: 0 22px 60px rgba(0, 70, 67, 0.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: end;
}

.result-box {
  grid-column: span 4;
  background: var(--cyprus);
  color: var(--white);
  border-radius: 24px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.result-box strong {
  font-size: 32px;
  color: var(--gold);
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  grid-auto-rows: 250px;
  gap: 18px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 70, 67, 0.13);
}

.gallery img:first-child {
  grid-row: span 2;
}

.contact-wrap {
  background: var(--cyprus);
  color: var(--white);
  border-radius: 44px;
  padding: 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.contact-wrap h2 {
  font-size: 50px;
  line-height: 1.06;
  margin-bottom: 18px;
}

.contact-wrap p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

footer {
  padding: 42px 0;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-card {
  width: min(980px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: var(--sand);
  border-radius: 36px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.32);
  position: relative;
}

.modal-image {
  height: 360px;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px 36px 0 0;
}

.modal-body {
  padding: 34px;
}

.modal-body h2 {
  color: var(--cyprus);
  font-size: 42px;
  margin-bottom: 10px;
}

.close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--cyprus);
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--cyprus);
  color: var(--white);
  padding: 16px 20px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transform: translateY(120px);
  transition: 0.3s;
  z-index: 4000;
}

.toast.show {
  transform: translateY(0);
}

@media (max-width: 940px) {
  .nav-links {
    position: fixed;
    top: 78px;
    right: -100%;
    width: 82%;
    height: calc(100vh - 78px);
    background: var(--cyprus);
    flex-direction: column;
    align-items: flex-start;
    padding: 34px;
    transition: 0.3s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .search-box,
  .grid,
  .feature-wrap,
  .map-layout,
  .calculator,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .result-box {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img:first-child {
    grid-row: span 1;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-wrap,
  .contact-wrap {
    padding: 30px;
    border-radius: 30px;
  }
}
