:root {
  --primary-color: #ffffff;
  --secondary-color: #1a1a1a;
  --accent-color: #4a5d4e;
  /* Deep forest green */
  --bg-dark: #0f110f;
  --bg-card: #1c1f1c;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --glass-bg: rgba(26, 26, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
  zoom: 0.75;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn--outline {
  border: 1.5px solid var(--primary-color);
  color: var(--secondary-color);
  background-color: var(--primary-color);
}

.btn--outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--primary-color);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.btn--dark:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.btn--white-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
}

.btn--white-outline:hover {
  background: white;
  color: black;
}

.btn--green {
  background: #ffffff;
  color: black;
}

.btn--green:hover {
  background: #e1e1e1;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 8px 0;
  transition: var(--transition);
}


.nav__container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.nav__logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 30px;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 2px;
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  opacity: 1;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__burger span {
  width: 25px;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 20px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 17, 15, 0) 0%, rgba(15, 17, 15, 0.8) 100%);
}

.hero__content {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero__subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  opacity: 0.9;
  max-width: 500px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 20px;
}

/* ===== ABOUT ===== */
.about {
  padding: 120px 20px;
  background-color: var(--bg-dark);
}

.about__container {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__lead {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
  line-height: 1.4;
}

.about__list {
  display: grid;
  gap: 20px;
}

.about__list li {
  padding-left: 30px;
  position: relative;
  font-weight: 300;
  color: var(--text-muted);
}

.about__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

.about__image-wrap {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
}

.about__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 1s ease;
}

.about__image-wrap:hover .about__img {
  transform: scale(1.05);
}

.about__image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.about__image-overlay p {
  font-weight: 600;
  font-size: 1.1rem;
}

/* ===== HOUSES ===== */
.houses {
  padding: 120px 20px;
}

.houses__container {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "tabs gallery"
    "info gallery";
  gap: 0 60px;
}


/* Tabs scroll track */
.houses__tabs-track {
  grid-area: tabs;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}


.houses__tabs {
  display: flex;
  gap: 0;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-left: calc(50% - 60px);
  padding-right: calc(50% - 60px);
}

.houses__tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 20px;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  scroll-snap-align: center;
  flex-shrink: 0;
  min-width: 120px;
  text-align: center;
  white-space: nowrap;
}

.tab-btn--active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.8s ease;
}

.tab-panel--active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.houses__title {
  font-size: 2rem;
  margin-bottom: 25px;
}

.houses__desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 300;
}

.houses__feature-head {
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.houses__feature-list {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}

.houses__feature-list li {
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.houses__feature-list li::before {
  content: '—';
  position: absolute;
  left: 0;
}

.houses__footer {
  display: flex;
  align-items: center;
  gap: 30px;
}

.houses__price {
  font-size: 1.2rem;
}

.houses__price strong {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.houses__gallery {
  grid-area: gallery;
  position: sticky;
  top: 100px;
  height: 600px;
  border-radius: 20px;
  overflow: hidden;
}

.houses__info {
  grid-area: info;
}


.houses__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
}

.houses__photo--hidden {
  opacity: 0;
}

/* ===== BOOKING ===== */
.booking {
  padding: 60px 20px;
}

.booking__container {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.booking__form-wrap {
  padding: 80px;
}

.booking__title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.booking__subtitle {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 1.2rem;
}

.booking__form {
  display: grid;
  gap: 12px;
}

.form-input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 22px;
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.booking__image-wrap {
  position: relative;
  overflow: hidden;
}

.booking__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.btn--white-outline {
  margin-top: 40px
}

/* ===== LOCATION ===== */
.location {
  padding: 120px 20px;
}

.location__container {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.location__title {
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.location__desc {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.location__list {
  display: grid;
  gap: 15px;
  margin-bottom: 40px;
}

.location__map {
  height: 450px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== FOOTER ===== */
.footer {
  background: #080a08;
  padding: 80px 20px 40px;
}

.footer__container {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
}

.footer__tagline {
  color: var(--text-muted);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer__nav a:hover {
  color: white;
  padding-left: 5px;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer__phone {
  font-size: 1.2rem;
  font-weight: 700;
}

.footer__bottom {
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 1024px) {

  .about__container,
  .houses__container,
  .booking__container,
  .location__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .booking__form-wrap {
    padding: 40px;
  }

  .houses__gallery {
    position: relative;
    top: 0;
    height: 400px;
  }
}

@media (max-width: 768px) {

  /* Mobile nav - horizontal scroll, no burger */
  .nav__links {
    display: flex !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    flex: 1;
    margin-left: 12px;
    padding: 0;
    flex-wrap: nowrap;
  }

  .nav__links::-webkit-scrollbar {
    display: none;
  }

  .nav__link {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 4px 2px;
  }

  .nav__burger {
    display: none;
  }

  /* Hero */
  .hero {
    padding-top: 100px;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
  }

  .hero__title {
    font-size: 2rem;
    text-align: center;
    text-wrap: unset;
  }

  .hero__subtitle {
    text-align: center;
    margin: 0 auto 30px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* About */
  .about {
    padding: 80px 20px;
  }

  .about__lead {
    text-align: center;
  }

  .about__list {
    text-align: left;
  }

  /* Houses */
  .houses {
    padding: 80px 20px;
  }

  .houses__container {
    display: flex;
    flex-direction: column;
  }

  .houses__tabs {
    order: 1;
    margin-bottom: 16px;
    justify-content: flex-start;
    padding-left: 35vw;
    padding-right: 35vw;
  }

  .houses__gallery {
    order: 2;
    position: relative;
    top: 0;
    height: 260px;
    border-radius: 16px;
    margin-bottom: 20px;
  }

  .houses__info {
    order: 3;
  }

  .houses__title {
    font-size: 1.5rem;
    text-align: center;
  }

  .houses__tabs {
    justify-content: center;
  }

  .houses__desc {
    text-align: center;
  }

  .houses__feature-head {
    text-align: center;
  }

  .houses__footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .houses__footer .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Booking */
  .booking {
    padding: 60px 20px;
  }

  .booking__container {
    grid-template-columns: 1fr;
  }

  .booking__form-wrap {
    padding: 32px 24px;
  }

  .booking__title {
    font-size: 2rem;
    text-align: center;
  }

  .booking__subtitle {
    text-align: center;
    margin: 0 auto 24px;
  }

  .booking__image-wrap {
    height: 220px;
    order: -1;
  }

  .booking__form .btn {
    width: 100%;
  }

  /* Location */
  .location {
    padding: 80px 20px;
  }

  .location__title {
    font-size: 2rem;
    text-align: center;
  }

  .location__desc {
    text-align: center;
  }

  .location__list {
    text-align: left;
  }

  .nav__container {
    padding-left: 25px;
    padding-right: 25px;
  }

  .location__info .btn {
    width: 100%;
    max-width: 320px;
    display: flex;
    margin: 0 auto;
  }

  /* Footer */
  .footer {
    padding: 60px 20px 30px;
  }

  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer__nav {
    align-items: center;
  }

  .footer__contacts {
    align-items: center;
  }
  .nav__container{
    margin: 0 10px;
  }
}

/* ===== MOBILE NAV DROPDOWN ===== */
.nav--open .nav__links {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(10, 12, 10, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 32px 32px;
  z-index: 998;
  animation: slideDown 0.3s ease;
}

.nav--open .nav__links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav--open .nav__links li:last-child {
  border-bottom: none;
}

.nav--open .nav__link {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav__burger--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__burger--active span:nth-child(2) {
  opacity: 0;
}

.nav__burger--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}