* {margin: 0; padding: 0; box-sizing: border-box;}
    body {font-family: sans-serif; line-height: 1.6;}
  
    body{
      background: url("img/5.jpg");
      background-size: cover;
    }
/* ===== Header พื้นฐาน ===== */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  z-index: 1000;
  font-family: "Athiti", sans-serif;
  font-weight: 100;
  font-style: normal;
}

/* Logo */
.logo img {
  height: 30px;
}

/* ปุ่ม Hamburger */
.menu-toggle {
  display: none; /* ซ่อนใน Desktop */
  cursor: pointer;
}
.menu-toggle img {
  width: 28px;
}

/* Language */
.language img {
  width: 28px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.language img:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}


/* เมนู Desktop */
nav {
  display: flex;
  gap: 35px;
  font-size: 18px;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
nav a:hover {
  color: #aaa;
}

/* ===== Mobile Layout ===== */
@media (max-width: 768px) {
  header {
    justify-content: space-between;
  }

  .menu-toggle {
    display: block; /* โชว์ใน Mobile */
    order: 1;
  }

  .logo {
    order: 2;
    text-align: center;
    flex: 1;
  }
  .logo img {
    height: 40px;
  }

  .language {
    order: 3;
  }

  /* ซ่อนเมนูปกติ */
  nav {
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #1a1a1a;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  nav.active {
    max-height: 100vh;   /* ใช้เต็มความสูงจอ */
  overflow-y: auto;    /* ถ้าเมนูยาว ให้เลื่อนในตัวได้ */
  }

  nav a {
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid #333;
  }
}

    /* ส่วนที่ 2:  */
    .search-section {
      height: 309px;
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: white;
      text-shadow: 1px 1px 3px black;
      transition: background-image 1s ease-in-out;
      font-family: "Athiti", sans-serif;
  font-weight: 100;
  font-style: normal;
  font-size: 30px;
    }

/* ส่วนที่ 3 */

 footer {
      background-color: #1a1a1a;
      color: white;
      text-align: center;
      padding: 10px;
      font-family: "Athiti", sans-serif;
  font-weight: 100;
  font-style: normal;
    }

    .social-icons {
      margin-top: 10px;
    }

    .social-icons img {
      width: 30px;
      margin: 0 2px;
      margin: 5px;
      vertical-align: middle;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .properties {
        grid-template-columns: repeat(2, 1fr);
      }
      .search-box {
        flex-direction: column;
        align-items: stretch;
      }
    }

    @media (max-width: 480px) {
      .properties {
        grid-template-columns: 1fr;
      }
    }

    .font {
        font-family: "Athiti", sans-serif;
  font-weight: 100;
  font-style: normal;
    }

  /* Contact Section */
.contact-details, .social-section {
  text-align: center;
  margin: 50px auto;
  padding: 20px;
  max-width: 800px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border-radius: 0px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease-out;
}

.contact-details h2, .social-section h2 {
  margin-bottom: 15px;
  font-size: 28px;
  color: #ffffff;
}

.contact-details p {
  margin: 10px 0;
  font-size: 20px;
}

.contact-details a {
  color: #ffffff;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Social icons */
.social-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons img {
  width: 50px;
  height: 50px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0px 0px 6px #ffffff);
}

/* Animation */
@keyframes fadeInUp {
  0% {opacity: 0; transform: translateY(30px);}
  100% {opacity: 1; transform: translateY(0);}
}
