html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

:root {
  --primary-yellow: #ffde59;
  --primary-dark: #0f2f2d;
  --primary-teal: #004944;
  --primary-teal-hover: #006e67;
  --light-gray: #ececec;
  --dark-gray: #161616;
  --mid-gray: #444;
  --mid-gray-2: #333;
  --light-gray-2: #ccc;
  --light-gray-3: #ddd;
  --light-background: #f7f7f7;
  --secondary-text: #2f4f4f;
  --accent-blue: #1776d1;
  --hover-background: #134240;
  --accent-white: white;
}

.qwitcher-grypen-bold {
  font-family: "Qwitcher Grypen", cursive;
  font-weight: 400;
  font-style: normal;
  text-align: right;
  margin-left: auto;
  margin-bottom: -70px;
  font-size: 110px;
  color: var(--primary-yellow);
  z-index: 1;
  position: relative;
}

img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

body {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
}

.navbar {
  padding: 10px 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  z-index: 999;
  margin-bottom: 40px;
}

/* Hamburger Icon hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 22px;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: var(--accent-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--accent-white);
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.nav-links a {
  font-size: 16px;
  color: var(--accent-white);
  text-decoration: none;
  margin-left: 30px;
  margin-right: 15px;
  font-weight: bold;
  opacity: 0.7;
  transition: opacity 0.3s ease;

}

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

.logo-container {
  margin-top: 50px;
  width: 400px;
  height: 100%;
}

.hero-main {
  text-transform: uppercase;
  font-size: 160px;
}

.heroSecondary {
  display: block;
  font-size: 60px;
  text-align: right;
  margin-top: -40px;
  font-weight: 400;
}

.inline-text {
  display: block;
}

.btns {
  margin-top: 150px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.contact-btn {
  position: relative;
  font-size: 20px;
  width: 300px;
  height: 45px;
  text-transform: uppercase;
  background-color: transparent;
  color: var(--accent-white);
  border: none;
  cursor: pointer;
  font-weight: 100;
  overflow: hidden;
  transition: letter-spacing 0.3s, font-weight 0.3s;
}

.contact-btn svg {
  height: 45px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.contact-btn rect {
  fill: none;
  stroke: var(--accent-white);
  stroke-width: 2;
  stroke-dasharray: 422, 0;
  transition: all 0.35s linear;
}

.contact-btn:hover {
  letter-spacing: 1px;
}

.contact-btn:hover rect {
  stroke-width: 5;
  stroke-dasharray: 15, 310;
  stroke-dashoffset: 48;
  transition: all 1.35s cubic-bezier(0.19, 1, 0.22, 1);
}

.property-btn {
  position: relative;
  overflow: hidden;
  font-size: 20px;
  width: 300px;
  height: 45px;
  text-transform: uppercase;
  background-color: #004944;
  color: var(--light-gray);
  border: none;
  cursor: pointer;
  z-index: 1;
}

.property-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}

.property-btn:hover::after {
  left: 120%;
}

.hero {
  height: 100vh;
  background-image: url('img/hero-background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-gray);
}

.form-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: -160px;
  padding: 80px 40px;
  gap: 20px;
}

.left {
  flex: 1;
}

.left h2 {
  font-size: 28px;
  letter-spacing: 3px;
  font-weight: 700;
}

.left p {
  font-size: 16px;
  margin-bottom: 30px;
}

.left img {
  max-width: 100%;
  height: auto;
}

.right {
  flex: 1;
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  padding: 12px 16px;
  border: none;
  background-color: var(--light-background);
  font-size: 16px;
  border-radius: 4px;
  resize: none;
}

textarea {
  height: 150px;
}

textarea::placeholder {
  font-family: "nunito", sans-serif;
}

.form-btn {
  background-color: #0c2d2c;
  color: var(--accent-white);
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.form-btn::after {
  content: '➤';
  position: absolute;
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 16px;
}

.form-btn:hover {
  padding-right: 40px;
  background-color: #134240;
}

.form-btn:hover::after {
  right: 15px;
  opacity: 1;
}


.privacy-note {
  font-size: 11px;
  color: #777;
  margin-top: 10px;
}

.privacy-note a {
  color: var(--accent-blue);
  text-decoration: none;
}

.section-divider {
  line-height: 0;
  position: relative;
}

.section-divider svg {
  display: block;
  width: 100%;
  height: auto;
}


.team-section {
  background-color: #f7f7f7;
  color: var(--dark-gray);
  padding: 50px 100px;
  text-align: center;
}

.team-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.team-subtitle {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 40px;
  color: var(--dark-gray);
}

.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 50px;
}

.employee-container {
  background-color: var(--accent-white);
  max-width: 250px;
  padding: 25px 15px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.employee-container img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 1px solid green;
}

.employee-name {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px;
}

.about-employee {
  font-size: 14px;
  line-height: 1.5;
  color: var(--mid-gray);
  margin: 10px 0;
}

.employee-title {
  font-weight: bold;
  font-size: 15px;
  margin-top: 10px;
  color: var(--mid-gray-2);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-icons i {
  width: 20px;
  height: 20px;
  color: var(--dark-gray);
  cursor: pointer;
  transition: color 0.3s ease;
}

.social-icons i:hover {
  color: green;
}

.social-icons a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
}

.social-icons a:hover {
  color: green;
}

.real-estate-section {
  max-width: 1260px;
  margin: 80px auto 120px auto;
  padding: 0 20px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  color: var(--dark-gray);
}

.cards-container {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 40px;
}

.card {
  position: relative;
  width: 300px;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', sans-serif;
  flex: 0 0 auto;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  transition: transform 0.7s ease;
}

.slide.slide1 {
  z-index: 1;
  transform: translateY(0);
  transition: none;
}

.card:hover .slide.slide1 {
  transform: translateY(0);
}

.slide.slide2 {
  background-color: var(--accent-white);
  padding: 20px;
  box-sizing: border-box;
  color: #004944;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  z-index: 2;
  transform: translateY(100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
  transition: transform 0.7s ease;
  text-align: center;
}


.card:hover .slide.slide2 {
  transform: translateY(0);
}

.slide.slide2 .content h3 {
  margin: 0 0 10px 0;
  font-weight: 700;
  font-size: 20px;
}

.slide.slide2 .content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--secondary-text);
}

.subtitle {
  font-family: "Qwitcher Grypen", cursive;
  font-size: 70px;
  color: #555;
  margin-bottom: -15px;
}

.title {
  font-weight: 700;
  font-size: 80px;
  margin: 0;
  letter-spacing: 1.2px;
  color: #004944;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 30px;
}

.subtitle2 {
  font-size: 16px;
  margin-top: 4px;
  color: var(--mid-gray);
  font-family: 'Segoe UI', sans-serif, sans-serif;
}

.description {
  max-width: 600px;
  margin: 20px auto 40px auto;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mid-gray);
  font-family: 'Segoe UI', sans-serif, sans-serif;
}

.no-properties-message {
  font-size: 20px;
  text-align: center;
}

.no-properties-illustration {
  max-width: 300px;
  margin: 1rem auto;
  display: block;
  opacity: 0.8;
}


.site-footer {
  margin-top: 120px;
  background-color: #0f2f2d;
  color: var(--light-gray);
  padding: 60px 40px 20px;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-logo img {
  width: 200px;
  margin-bottom: 10px;
}

.slogan {
  font-style: italic;
  font-size: 14px;
  color: var(--light-gray-3);
  margin-top: 5px;
}

.footer-links,
.footer-contact {
  min-width: 200px;
  color: var(--light-background);
  text-decoration: none;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #ffde59;
}

.footer-links a {
  display: block;
  color: var(--light-gray);
  text-decoration: none;
  margin-bottom: 8px;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffde59;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-social {
  margin-top: 10px;
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: var(--light-gray);
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #ffde59;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #244543;
  margin-top: 30px;
}


/*------------------All Properties CSS ---------------------*/

.filter-section {
  margin-top: 20px;
  padding: 40px;
}

.filter-btn {
  background-color: #004944;
  color: var(--accent-white);
  font-weight: bold;
  padding: 10px 8px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all, 0.3s;
}

.filter-btn:hover {
  background-color: #006e67;
}

.prop-title {
  color: var(--dark-gray);
}

.found-props {
  margin-top: -15px;
  color: #004944;
}

.modal-filtros {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal-filtros.oculto {
  display: none;
}

.modal-filtros-contenido {
  background: var(--accent-white);
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-filtros-contenido h2 {
  margin-top: 0;
  text-align: center;
}

.modal-filtros-contenido label {
  font-weight: bold;
}

.modal-filtros-contenido select,
.modal-filtros-contenido input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--light-gray-3);
  border-radius: 4px;
}

.rango-precio {
  display: flex;
  gap: 0.5rem;
}

.cerrar-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color, 0.5s;
}

.cerrar-btn:hover {
  color: red;
}

.properties-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 1rem;
  margin-bottom: 60px;
}

.property-card {
  border: 1px solid var(--light-gray-2);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.5s;
  height: 100%;
  width: 100%;
  max-width: 500px;
  min-width: 450px;
  flex: 1 1 450px;

}

.property-link {
  text-decoration: none;
}

.property-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.property-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.property-content {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.property-location {
  font-weight: 600;
  color: var(--primary-teal);
  font-size: 1rem;
}

.property-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin: 0.25rem 0;
  flex-grow: 1;
}

.property-price {
  color: #2a7c2e;
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.property-details {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  color: #555;
  flex-wrap: wrap;
}




/*------------------Individual Properties CSS ---------------------*/
.prop-section img {
  max-height: 400px;
  max-width: 600px;
}

.main-prop {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  position: relative;
}


@media (max-width: 600px) {
  .carousel-slide {
    flex: 1 0 90%;
  }
}

#prop-info {
  max-width: 600px;
  margin: auto;
  text-align: center;
}

#prop-info h1 {
  margin-bottom: 0.5rem;
}

#prop-info p {
  margin: 0.25rem 0;
}

.back-link {
  text-align: center;
  margin-top: 1rem;
}

.back-link a {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

.container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 5px 5px;
  grid-auto-flow: row;
  grid-template-areas:
    "main-grid sub1"
    "main-grid sub2"
    "main-grid sub3";
}

.main-grid {
  grid-area: main-grid;
}

.sub1 {
  grid-area: sub1;
}

.sub2 {
  grid-area: sub2;
}

.sub3 {
  grid-area: sub3;
}

.main-prop-img {
  width: 100%;
  border-radius: 8px;
}

.prop-gallery-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
}

.prop-features {
  margin-top: 10px;
  font-size: 1rem;
  color: #333;
}

.prop-features span {
  margin-right: 10px;
}

.image-modal {
  display: flex;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.image-modal.hidden {
  display: none;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

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

/*-------------Media Queries-----------*/

/* ≤600px */
@media (max-width: 600px) {
  .form-btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  input,
  textarea {
    font-size: 14px;
  }
}

/* ≤768px */
@media (max-width: 768px) {

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #0f2f2d;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    display: none;
    padding: 20px;
    gap: 10px;
  }

  .nav-links a {
    margin: 10px 0;
    font-size: 18px;
  }

  .nav-links.show {
    display: flex;
  }

  /* Hero section */
  .hero {
    height: 100vh;
    padding: 100px 20px 60px;
    text-align: center;
  }

  .logo-container {
    width: 250px;
    height: auto;
    margin: 20px auto;
  }

  .qwitcher-grypen-bold {
    font-size: 90px;
    margin-bottom: -20px;
    text-align: center;
  }

  .hero-main {
    font-size: 50px;
    text-align: center;
  }

  .heroSecondary {
    font-size: 28px;
    margin-top: -10px;
    text-align: center;
  }

  .btns {
    flex-direction: column;
    margin-top: 50px;
    gap: 15px;
  }

  .contact-btn,
  .property-btn,
  .real-estate-section .property-btn {
    width: 100%;
    max-width: 280px;
    font-size: 16px;
  }

  /* Real estate section */
  .real-estate-section .subtitle {
    font-size: 4rem;
    margin-bottom: -10px;
  }

  .real-estate-section .title {
    font-size: 4rem;
    margin-bottom: 20px;
  }

  .real-estate-section .description {
    font-size: 14px;
    padding: 0 10px;
  }

  .card {
    display: none;
  }

  .team-title {
    font-size: 28px;
  }

  .employee-container {
    min-width: 225px;
  }

  .property-card {
    min-width: 350px;
    flex: 1 1 350px;
  }
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-overlay.oculto {
  display: none;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #003b2a;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* ≤900px */
@media (max-width: 900px) {
  .form-container {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    margin-bottom: 0;
  }

  .form-container .left img {
    display: none;
  }

  .form-container .right {
    margin-top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  form {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }

}

@media (max-width: 425px) {

  /* Real estate section */
  .real-estate-section .subtitle {
    font-size: 3rem;
  }

  .real-estate-section .title {
    font-size: 3rem;
  }

  @media (max-width: 425px) {
    .property-card {
      min-width: 280px;
      flex: 1 1 280px;
    }
  }

  @media (max-width: 375px) {
    .qwitcher-grypen-bold {
      font-size: 70px;
    }

    .hero-main {
      font-size: 40px;
    }

    .real-estate-section .subtitle {
      font-size: 2.5rem;
    }

    .real-estate-section .title {
      font-size: 2.5rem;
    }
  }
}