:root {
  --primary: #1e40af;
  --primary-dark: #1e3a8a;
  --accent: #f97316;
  --text: #333;
  --bg: #f9fafb;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Reset */
* {
  margin: 0; padding: 0; box-sizing: border-box;
}

body {
  font-family: "IBM Plex Sans Thai", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

/* Hero Section */
#hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  position: relative;
  color: white;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

#hero .hero-content {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}


#search {
  padding: 12px 18px;
  border-radius: var(--radius);
  border: none;
  width: 280px;
  font-size: 1rem;
}

#searchBtn {
  margin-left: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
#searchBtn:hover {
  background: #fb923c;
  transform: translateY(-2px);
}

/* Section Header */
section h2 {
  font-size: 2rem;
  margin-bottom: 35px;
  position: relative;
  color: var(--primary-dark);
}
section h2 span {
  font-size: 1.1rem;
  font-weight: normal;
  color: #555;
}

/* Card */
.card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.card:hover {
  transform: translateY(-6px);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-content {
  padding: 18px;
}
.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary);
}
.card-content p {
  font-size: 0.95rem;
  margin-bottom: 6px;
  color: #555;
}
.btn-detail {
  display: inline-block;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: background .2s;
}
.btn-detail:hover {
  background: var(--primary-dark);
}

/* Destination Card (Swiper) */
.destination-card {
  min-width: 260px;
  height: 180px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.destination-card span {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.55);
  padding: 6px 14px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 1rem;
}
.destination-card:hover {
  transform: scale(1.05);
}

/* Gallery */
.gallery-grid {
  column-count: 3;
  column-gap: 12px;
}
.gallery-card {
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery-card img {
  width: 100%;
  display: block;
  transition: transform .3s;
}
.gallery-card:hover img {
  transform: scale(1.07);
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: #eee;
  padding: 25px;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  #hero h1 { font-size: 1.8rem; }
  .cards { grid-template-columns: 1fr !important; }
  .gallery-grid { column-count: 2; }
}
@media (max-width: 480px) {
  .gallery-grid { column-count: 1; }
}
