:root {
  --font-main: "Inter", sans-serif;
  --body-bg: #ffffff;
  --text: #2f3a47;
  --heading: #000000;
  --primary: #3c78d8;
  --secondary: #c9daf8;
  --white: #ffffff;
  --surface-alt: #c9daf8;
  --border: #d8dee8;
  --text-on-dark: #eef4ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

main {
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 0.65rem;
}

p {
  margin-top: 0;
}

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

.section {
  padding: 2.6rem 0;
}

.about {
  padding: 2.6rem 0;
}

.section-surface {
  border-radius: 0;
  margin-top: 0;
  box-shadow: none;
}

.section-alt {
  background: inherit;
}

#home {
  background: var(--primary);
  color: var(--text-on-dark);
}

#home h1,
#home h2,
#home h3,
#home p {
  color: var(--text-on-dark);
}

#home .eyebrow {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

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

#home .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
}

#home .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

#properties {
  background: var(--white);
}

#about {
  background: var(--white);
}

#features {
  background: var(--secondary);
}

#faq {
  background: var(--primary);
  color: var(--text-on-dark);
}

#faq h2 {
  color: var(--white);
}

#contact {
  background: var(--secondary);
}

.section-lead {
  margin-bottom: 1.8rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand img {
  width: 120px;
  height: auto;
  border-radius: 0;
}

.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-nav a {
  color: var(--heading);
  font-weight: 500;
  padding: 0.35rem 0.45rem;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  padding: 0.6rem;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--heading);
  margin: 4px 0;
}

.hero-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 2rem;
  align-items: start;
}

.map-container {
  width: 100%;
  min-height: 320px;
}

.about-content h3 {
  margin-bottom: 1rem;
}

.highlights-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.eyebrow {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 3vw, 2.8rem);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-weight: 600;
  transition: 0.2s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  filter: brightness(0.95);
}

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

.btn-secondary:hover {
  background: var(--secondary);
}

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

.property-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.property-gallery-shell {
  position: relative;
}

.property-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #dbe5f6;
}

.property-gallery::-webkit-scrollbar {
  height: 8px;
}

.property-gallery::-webkit-scrollbar-track {
  background: #dbe5f6;
}

.property-gallery::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
}

.property-gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0;
  scroll-snap-align: start;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.93);
  color: var(--heading);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-btn:hover {
  background: var(--secondary);
}

.gallery-btn-prev {
  left: 0.45rem;
}

.gallery-btn-next {
  right: 0.45rem;
}

.card-body {
  padding: 1rem;
}

.rent {
  font-weight: 700;
  color: var(--heading);
}

.location {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.availability {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.feature-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  padding: 0.8rem;
  border-radius: 10px;
}

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

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: var(--white);
}

.faq-list summary {
  cursor: pointer;
  color: var(--heading);
  font-weight: 600;
}

.faq-list p {
  margin-top: 0.7rem;
  margin-bottom: 0;
  color: var(--text);
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-info li {
  margin-bottom: 0.5rem;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.contact-form label {
  display: block;
  margin: 0.65rem 0 0.3rem;
  color: var(--heading);
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfd4dc;
  border-radius: 9px;
  font-family: var(--font-main);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
}

.radio-group input[type="radio"] {
  width: auto !important;
  margin-right: 0.5rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(60, 120, 216, 0.18);
}

.form-status {
  margin-top: 0.75rem;
  min-height: 1.4em;
  font-weight: 500;
}

.form-status.success {
  color: #146c2e;
}

.form-status.error {
  color: #a4262c;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--primary);
  padding: 1.2rem 0;
  text-align: center;
  color: var(--white);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .section {
    padding: 1.8rem 0;
  }

  .about {
    padding: 1.8rem 0;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 4%;
    left: 4%;
    padding: 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .site-nav a {
    width: 100%;
    padding: 0.4rem 0.45rem;
  }

  .site-nav.open {
    display: flex;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 160px;
  }

  .cards,
  .gallery,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .property-gallery::-webkit-scrollbar {
    height: 6px;
  }

  .gallery-btn {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(1120px, 94%);
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  .card-body,
  .contact-form {
    padding: 0.95rem;
  }
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.lightbox-close:hover {
  color: #ccc;
}

.lang-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-switcher a {
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.2s;
  line-height: 1;
}

.lang-switcher a:hover {
  transform: scale(1.2);
}

@media (max-width: 700px) {
  .lang-switcher {
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
    justify-content: center;
  }

  .lang-switcher a {
    font-size: 1.8rem;
  }
}

.social-links {
  margin-top: 2rem;
}

.social-links h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-apply {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.8rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-apply:hover {
  background: #2d5fb0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(60, 120, 216, 0.3);
}