:root {
  --pale-yellow:#fff9e6;
  --accent:#d9c37a;
  --text:#222;
  --muted:#555;
  --max-width:1100px;
}

* { box-sizing:border-box; margin:0; padding:0; }

body {
  font-family:"Noto Sans Thai","Helvetica",Arial,sans-serif;
  color:var(--text);
  background:var(--pale-yellow);
  line-height:1.6;
}

/* Container */
.wrap {
  max-width:var(--max-width);
  margin:24px auto;
  background:rgba(255,255,255,0.6);
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  overflow:hidden;
}

/* Header & Nav */
header {
  display:flex;
  flex-direction:column;
  padding:18px 24px;
  background:linear-gradient(180deg,var(--pale-yellow),#fff);
  border-bottom:1px solid rgba(0,0,0,0.04);
}

.top-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.site-title {
  font-weight:700;
  font-size:26px;
  cursor:pointer;
  color:var(--text);
}

nav {
  display:flex;
  justify-content:flex-end;
  gap:15px;
  margin-top:10px;
  flex-wrap:wrap;
}

nav a {
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  padding:6px 12px;
  border-radius:6px;
}

nav a:hover { background:rgba(217,195,122,0.3); }

/* Hamburger มือถือ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width:28px;
  height:20px;
  cursor:pointer;
}

.hamburger span {
  display:block;
  height:3px;
  background:#222;
  border-radius:2px;
}

/* Mobile Menu Overlay */
.mobile-menu {
  display:none;
  position:fixed;
  top:0; left:0;
  width:100%;
  height:100%;
  background:rgba(255,255,255,0.95);
  z-index:999;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

.mobile-menu a {
  color:var(--text);
  text-decoration:none;
  font-size:1.5rem;
  margin:15px 0;
}

.mobile-menu.active { display:flex; }

/* Banner */
.banner img {
  width:100%;
  height:auto;
  display:block;
  object-fit:cover;
  border-radius:10px 10px 0 0;
}

/* Sections */
section { padding:30px; }

h2 {
  text-align:center;
  color:#004aad;
  background:#cfe2ff;
  padding:10px;
  border-radius:8px;
  margin-bottom:20px;
}

/* กล่องสถานที่ */
.place {
  display:flex;
  align-items:center;
  gap:25px;
  margin:40px 0;
  background:#fff9c4;
  border-radius:10px;
  padding:20px;
}

.place:nth-child(even) { flex-direction:row-reverse; }

.place img {
  width:45%;
  height:260px;
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 3px 8px rgba(0,0,0,0.15);
}

.place-info {
  width:55%;
  font-size:16px;
  line-height:1.8;
  color:#004aad;
}

.place-info h3 {
  background:#ffeb3b;
  color:#004aad;
  padding:8px 12px;
  border-radius:6px;
  display:inline-block;
  margin-bottom:10px;
}

/* สำหรับสองรูป */
.two-images {
  display:flex;
  flex-direction:column;
  gap:12px;
  width:45%;
}

.two-images img {
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 3px 8px rgba(0,0,0,0.15);
}

/* Footer */
footer {
  background:#fff;
  border-top:1px solid rgba(0,0,0,0.04);
  padding:18px 24px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:14px;
  line-height:1.3;
}

footer div { margin:0; }

/* Responsive */
@media(max-width:900px){
  /* Hamburger ปรากฏและเมนู nav หาย */
  .hamburger { display:flex; }
  nav { display:none; }

  /* ทุก place เรียงแนวตั้ง รูปอยู่บนเนื้อหา */
  .place {
    flex-direction: column !important;
    align-items: flex-start;
  }

  .place img,
  .two-images {
    width:100% !important;
    height:auto !important;
  }

  .place-info {
    width:100% !important;
    margin-top:12px;
  }

  .two-images {
    flex-direction: column !important;
    gap:12px;
  }
}
