/* =====================
   RESET & BASE
===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #fff;
  color: #222;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; border-radius: 8px; display: block; }
.wrap { width: 92%; max-width: 1200px; margin: 0 auto; }

/* =====================
   HEADER
===================== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: #007bff;
}
.search form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.search input[type=search] {
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 280px;
  transition: all 0.2s;
}
.search input[type=search]:focus {
  border-color: #007bff;
  outline: none;
}
.search button {
  padding: 9px 16px;
  border: none;
  border-radius: 8px;
  background: #007bff;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}
.search button:hover { background: #0056b3; }

/* =====================
   HERO
===================== */
.hero {
  background: linear-gradient(to right, rgba(0,123,255,0.9), rgba(0,86,179,0.9)),
              url('/assets/images/map-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 90px 20px;
}
.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
}

/* =====================
   SECTION BASE
===================== */
section {
  padding: 50px 0;
}
section h2 {
  font-size: 1.8rem;
  color: #007bff;
  margin-bottom: 25px;
  border-left: 4px solid #007bff;
  padding-left: 10px;
  font-weight: 700;
}

/* =====================
   CARD GRID
===================== */
.featured-grid, .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.place-card, .post-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
.place-card:hover, .post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.place-card img, .post-card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}
.overlay {
  padding: 14px 16px;
}
.overlay h3 {
  font-size: 1.05rem;
  color: #007bff;
  margin-bottom: 6px;
}
.overlay p {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}
.read-more {
  display: inline-block;
  margin-top: 8px;
  color: #007bff;
  font-size: 0.9rem;
  font-weight: 500;
}
.read-more:hover { text-decoration: underline; }

/* =====================
   FOOTER
===================== */
.site-footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 30px 15px;
  font-size: 0.9rem;
  margin-top: 60px;
}
.site-footer a { color: #66aaff; }
.site-footer a:hover { text-decoration: underline; }

/* =====================
   RESPONSIVE
===================== */

/* Tablet */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  section { padding: 40px 0; }
  .featured-grid, .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

/* Mobile Portrait */
@media (max-width: 600px) {
  .site-header .wrap { flex-direction: column; gap: 10px; align-items: flex-start; }
  .logo a { font-size: 1.6rem; }
  .search form { width: 100%; justify-content: space-between; }
  .search input[type=search] {
    width: 100%;
    flex: 1;
    padding: 10px;
    font-size: 1rem;
  }
  .search button {
    flex-shrink: 0;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 60px 15px;
    background-position: center;
  }
  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }
  .hero p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  section {
    padding: 35px 0;
  }
  section h2 {
    font-size: 1.3rem;
    margin-bottom: 18px;
  }

  /* grid: chỉ 1 cột */
  .featured-grid, .posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .place-card img, .post-card img {
    height: 200px;
  }
  .overlay {
    padding: 12px;
  }
  .overlay h3 {
    font-size: 1rem;
  }
  .overlay p {
    font-size: 0.85rem;
  }

  .site-footer {
    font-size: 0.85rem;
    padding: 20px 10px;
  }
}
