@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&family=Spinnaker&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  overflow: hidden;
}

.mq-home {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
}

.mq-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 175px;
  text-align: center;
}

.mq-content h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 118px;
  font-weight: 300;
  color: #315987;
  line-height: 1;
  margin-bottom: 58px;
}

.mq-content p {
  font-family: "DIN Next LT Pro", sans-serif;
  font-size: 29px;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 78px;
}

.mq-content nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
}

.mq-content nav a {
  font-family: "DIN Next LT Pro", sans-serif;
  font-size: 25px;
  color: #315987;
  text-decoration: none;
  letter-spacing: 1px;
}

.mq-content nav a:hover {
  opacity: 0.7;
}

.mq-content h1,
.mq-content p,
.mq-content nav {
  opacity: 0;
  animation: mqTextAppear 2.2s ease forwards;
  animation-delay: 0.5s;
}

.mq-content p {
  animation-delay: 1.8s;
}

.mq-content nav {
  animation-delay: 2.8s;
}

@keyframes mqTextAppear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


/* about page */

.inner-page {
  overflow: auto;
  background: #f7f7f7;
  font-family: Arial, Helvetica, sans-serif;
}

.inner-header {
  width: 98%;
  max-width: 1200px;
  margin: 28px auto 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;

  text-decoration: none;
  color: inherit;
}
.brand:hover {
  opacity: 0.9;
}

.brand img {
  width: 80px;
  height: auto;
  display: block;
}

.brand-title {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #3b5c8a;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.inner-header nav {
  display: flex;
  gap: 44px;
}

.inner-header nav a {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #3b5c8a;
  text-decoration: none;
  letter-spacing: 0.05em;
  padding-bottom: 18px;
}

.inner-header nav a {
  position: relative;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #3b5c8a;
  text-decoration: none;
  letter-spacing: 0.05em;
  padding-bottom: 18px;
}

.inner-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 2px;

  background: #c9d8ea; /* light blue hover line */

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.3s ease;
}

.inner-header nav a:hover::after {
  transform: scaleX(1);
}

.inner-header nav a.active::after {
  transform: scaleX(1);
  background: #8eb5dd;; /* darker active line */
}

.about-page {
  text-align: center;
  padding-bottom: 70px;
}

.about-main-img {
  width: 610px;
  max-width: 90%;
  margin-bottom: 44px;
}

.content-section {
  max-width: 620px;
  margin: 0 auto 62px;
  text-align: center;
}

.content-section h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 25px;
  font-weight: 700;
  color: #3b5c8a;
  letter-spacing: 0.10em;
  margin-bottom: 24px;
  -webkit-font-smoothing: antialiased;
}

.divider {
  width: 280px;
  height: 1px;
  background: #8eb5dd;
  margin: 0 auto 22px;
}

.content-section p,
.amenities-list li {
  font-family: "Spinnaker", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: #5f5c56;
}

.content-section p {
  margin-bottom: 21px;
}

.amenities-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.amenities-list li {
  margin-bottom: 3px;
}

.availability-buttons {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 35px;
}

.availability-buttons a {
  width: 140px;
  padding: 9px 0;
  border: 2px solid #315987;
  color: #315987;
  text-decoration: none;
  border-radius: 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
}

.availability-buttons a:hover {
  background: #315987;
  color: #ffffff;
}

.mq-footer {
  text-align: center;
  padding: 10px 0 45px;
}

.mq-footer img {
  width: 140px;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.footer-links a {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #3b5c8a;
  text-decoration: none;
  letter-spacing: 0.05em;
}

/* .inner-header,
.about-main-img,
.content-section,
.mq-footer {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 1.8s ease,
    transform 1.8s ease;
}

.inner-header.show,
.about-main-img.show,
.content-section.show,
.mq-footer.show {
  opacity: 1;
  transform: translateY(0);
} */

.fade-group {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

.fade-group.show {
  opacity: 1;
  transform: translateY(0);
}


/* apartments page */
.apartments-page {
  text-align: center;
  padding-bottom: 70px;
}

.apartments-hero {
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin-bottom: 35px;
}

.apartments-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apartment-gallery {
  text-align: center;
  margin-bottom: 65px;
}

.gallery-main {
  width: 720px;
  max-width: 90%;
  height: auto;
  margin-bottom: 35px;
}

.gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-thumbs img {
  width: 100px;
  height: 70px;
  object-fit: cover;
}

.three-buttons {
  gap: 30px;
}
.gallery-wrapper {
  position: relative;
  width: 720px;
  max-width: 90vw;
  margin: 0 auto 30px;
}

.gallery-main {
  width: 720px;
  height: 540px;
  max-width: 90vw;

  object-fit: cover;
  object-position: center;

  display: block;
  transition: opacity 0.4s ease;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  background: #4f6f97;
  color: white;
  cursor: pointer;
  font-size: 22px;
}

.prev {
  left: -70px;
}

.next {
  right: -70px;
}

.gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gallery-thumbs img {
  width: 90px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}

.gallery-thumbs img:hover {
  opacity: 1;
}

.active-thumb {
  opacity: 1 !important;
}


/* Sales page */
.sales-page {
  text-align: center;
  padding-bottom: 70px;
}

.sales-hero {
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin-bottom: 35px;
}

.sales-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sales-search {
  width: 450px;
  max-width: 90%;
  margin: 0 auto 35px;
  padding: 14px 18px 18px;
  background: #d9d9d9;
  border-radius: 6px;
  text-align: center;
}

.sales-search h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #315987;
  margin-bottom: 10px;
}

.sales-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.sales-filters select {
  width: 125px;
  height: 25px;
  border: 1px solid #9fb9d9;
  border-radius: 4px;
  color: #315987;
  font-size: 12px;
}

.sales-list {
  width: 720px;
  max-width: 92%;
  margin: 0 auto;
}

.sales-row {
  display: grid;
  grid-template-columns: 110px 160px 1fr 100px;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  font-family: "Spinnaker", sans-serif;
  font-size: 14px;
  color: #5f5c56;
}

.sales-row span:nth-child(3) {
  border-bottom: 1px solid #8eb5dd;
  padding-bottom: 12px;
}

.sales-row span:last-child {
  color: #3b5c8a;
}

@media (max-width: 768px) {
  .sales-filters {
    flex-direction: column;
    align-items: center;
  }

  .sales-filters select {
    width: 100%;
  }

  .sales-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
  }

  .sales-row span:nth-child(3) {
    border-bottom: 1px solid #8eb5dd;
  }
}

.sales-note {
  text-align: center;
  margin: 15px auto 10px;

  font-family: "Spinnaker", sans-serif;
  font-size: 12px;
  color: #666;

  letter-spacing: 0.02em;
}

/* rentals page */
/* Rentals page */

.rentals-page {
  text-align: center;
  padding-bottom: 70px;
}

.rental-note {
  text-align: center;
  margin: 15px auto 10px;

  font-family: "Spinnaker", sans-serif;
  font-size: 12px;
  color: #666;

  letter-spacing: 0.02em;
}

.content-section .availability-buttons {
  justify-content: center;
  margin-top: 25px;
}

.content-section .availability-buttons a {
  width: 140px;
  padding: 10px 0;

  border: 2px solid #315987;
  border-radius: 4px;

  color: #315987;
  text-decoration: none;

  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;

  transition: all 0.3s ease;
}

.content-section .availability-buttons a:hover {
  background: #315987;
  color: #fff;
}

/* contact page  */
/* Contact page */

.contact-page {
  text-align: center;
  padding-bottom: 70px;
}

.contact-form-section {
  width: 760px;
  max-width: 90%;
  margin: 0 auto 80px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 2px solid #315987;
  border-radius: 4px;
  padding: 8px 10px;
  font-family: "Spinnaker", sans-serif;
  font-size: 15px;
  color: #315987;
  background: transparent;
}

.contact-form textarea {
  height: 150px;
  resize: none;
}

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

.contact-form button {
  width: 150px;
  align-self: flex-end;
  padding: 9px 0;
  border: 2px solid #315987;
  border-radius: 4px;
  background: transparent;
  color: #315987;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #315987;
  color: white;
}

.contact-details {
  max-width: 620px;
  margin: 0 auto 120px;
  font-family: "Spinnaker", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #5f5c56;
}

.contact-details p {
  margin-bottom: 18px;
}

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

  .contact-form button {
    align-self: center;
  }
}

/* Local attractions page */

.local-page {
  text-align: center;
  padding-bottom: 70px;
}

.map-wrapper {
  width: 760px;
  max-width: 90%;
  margin: 30px auto 0;
}

/* contact enquiiry form  */
.form-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}


.availability-note {
  margin: 24px auto;
  max-width: 900px;
  padding: 16px 20px;
  background: #f8f8f8;
  border-left: 4px solid #b78a3d;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}

.availability-note strong {
  color: #222;
}


/* sales list  */
.sales-list-controls {
  margin: 30px auto 10px;
  text-align: center;
}

#salesResultsCount {
  margin-bottom: 15px;
  font-size: 15px;
  color: #555;
}

.sales-list-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sales-control-btn {
  min-width: 130px;
  padding: 12px 24px;
  border: 1px solid #222;
  background: transparent;
  color: #222;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.sales-control-btn:hover {
  background-color: #222;
  color: #fff;
}

#seeLessBtn {
  display: none;
}

@media (max-width: 768px) {
  .sales-control-btn {
    width: 100%;
    max-width: 220px;
  }
}