* {margin: 0; padding: 0; box-sizing: border-box;}
    body {font-family: sans-serif; line-height: 1.6;
    background: url(https://th.airportels.asia/wp-content/uploads/sites/2/2023/07/2-may2.jpg);
      background-size: cover;
    }
* {
  font-family: 'Athiti', sans-serif;
}

    body{
      font-family: "Athiti", sans-serif;
  font-weight: 100;
  font-style: normal;
    }

/* ===== 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;
  }
}





.autocomplete {
  position: relative;
  display: inline-block;
  width: 100%;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-top: none;
  z-index: 99;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  max-height: 200px;
  overflow-y: auto;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.autocomplete-items div:hover {
  background-color: #f1f1f1;
}

.autocomplete-active {
  background-color: #007bff !important;
  color: #ffffff;
}













    /* ส่วนที่ 2: ค้นหา + พื้นหลังเลื่อน */
    .search-section {
      height: 774px;
      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;
    }

    .search-box {
      background: rgb(255, 255, 255);
      padding: 10px;
      /* border-radius: 10px; */
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      max-width: 10000px;   /* 👈 กำหนดความกว้างสูงสุด */
  margin: 0 auto;      /* 👈 จัดให้อยู่ตรงกลาง */
      
    }

    

    .search-box input, .search-box select, .search-box button {
      padding: 10px;
      border: none;
      border-radius: 5px;
      min-width: 150px;
      font-family: "Athiti", sans-serif;
  font-weight: 100;
  font-style: normal;
    }

    .search-box button {
      background-color: #000000;
      color: white;
      font-weight: bold;
      cursor: pointer;
    }

    .search-box .autocomplete {
  flex: 1;             /* 👈 ช่องค้นหาขยายเต็มพื้นที่ */
}
.search-box input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
}


    /* Section */
#listings {
  padding: 50px 0;
  background: #f9f9f9;
}
.container {
  max-width: 1200px;
  margin: auto;
}
#listings h2 {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
}

/* Card */
.property-card {
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: #fff;
  transition: 0.3s;
}
.property-card:hover {
  filter: brightness(85%);
}

/* Mobile */
@media (max-width: 768px) {
  .search-section h1 {
    text-align: center;
    font-size: 24px; /* ย่อขนาดฟอนต์ให้เหมาะกับมือถือ */
    margin-bottom: 20px; /* เว้นช่องก่อนกล่องค้นหา */
    padding: 0 10px; /* กันข้อความติดขอบจอ */
  }

  .search-box {
    flex-direction: column; /* เรียงเป็นแถวตั้ง */
    gap: 15px;
    width: 100%;
    max-width: 320px; /* ไม่ให้เกินจอ */
  }

  .search-box input,
  .search-box select,
  .search-box button {
    width: 100%;
  }
}






/* Footer */
footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 20px;
  font-family: "Athiti", sans-serif;
  font-weight: 100;
  font-style: normal;
}
footer .social-icons img {
  height: 23px;
  margin: 0 8px;
  transition: transform 0.3s;
}
footer .social-icons img:hover { transform: scale(1.2); }
* {margin: 0; padding: 0; box-sizing: border-box;}
    body {font-family: sans-serif; line-height: 1.6;}

    /* 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;
    }

/* ====================หน่้าเกี่ยวกับฉัน=============================== */
    
/* ส่วนที่ 2: เกี่ยวกับฉัน */
    .search-section {
      height: 774px;
      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 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  color: #fff;
  
}
.slide-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.5s ease;
}
.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 1.2s ease;
}
.show {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* Section 1 */
.about {
  padding: 80px 15%;
  background: #f5f5f5;
  text-align: center;
}
.about h1 {
  font-size: 40px;
  margin-bottom: 20px;
  color: #222;
}
.about p {
  font-size: 20px;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Section 2 Parallax */
.selling-points {
  position: relative;
  background: url(https://www.ananda.co.th/blog/thegenc/wp-content/uploads/2024/01/cityscape-night-bangkok-thailand-1-977x550.jpg) no-repeat center center/cover;
  background-attachment: fixed;
  color: white;
  padding: 120px 15%;
  text-align: center;
}
.selling-points .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}
.selling-points .content {
  position: relative;
  z-index: 2;
}
.selling-points h2 {
  font-size: 36px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px black;
}
.selling-points p {
  font-size: 20px;
  margin-bottom: 15px;
}

/* Section 3 Agent */
.agents {
  padding: 80px 10%;
  text-align: center;
  background: #2c2c2c;
}
.agent-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.agent-card {
  background: rgb(255, 255, 255);
  border-radius: 12px;
  padding: 25px;
  width: 320px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.agent-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}
.agent-card h3 {
  font-size: 22px;
  margin-bottom: 5px;
  color: #222;
}
.agent-card .role {
  color: #777;
  font-size: 20px;
  margin-bottom: 15px;
}
.agent-card blockquote {
  margin-top: 20px;
  font-style: italic;
  color: #444;
  border-left: 4px solid #222;
  padding-left: 10px;
}
.agent-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}




