/* ==========================================================
   Hobi Pages – mẫu trang dịch vụ / khu vực (v2.4.0)
   Chỉ nạp trên các trang dùng mẫu: Trang dịch vụ, Khu vực phục vụ (trang tổng), Trang khu vực.
   CSS thuần, không cần build lại Tailwind. Màu lấy từ biến --hb-* ở assets/css/hobi-ui.css.
   ========================================================== */

.hb-sv-hero,
.hb-sv-hero *,
.hb-sv-wrap,
.hb-sv-wrap *,
.hb-sv-final,
.hb-sv-final * {
  box-sizing: border-box;
}

/* ---------- HERO ---------- */
.hb-sv-hero {
  background: linear-gradient(135deg, var(--hb-blue-600) 0%, var(--hb-blue-700) 100%);
  color: #fff;
  font-family: var(--hb-halo-font);
}
.hb-sv-hero__inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 2.25rem;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 640px) { .hb-sv-hero__inner { padding: 2.5rem 1.5rem 2.75rem; } }
@media (min-width: 1024px) {
  .hb-sv-hero__inner { padding: 3rem 2rem 3.25rem; }
  .hb-sv-hero__inner--media { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2.5rem; }
}

.hb-sv-hero__title {
  margin: 0;
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hb-sv-hero__lead {
  margin: 1rem 0 0;
  max-width: 44rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #e3ecfa;
}
.hb-sv-hero__media { min-width: 0; }
.hb-sv-hero__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.28));
}

/* Breadcrumb trên nền xanh */
.hb-sv-hero .hb-breadcrumb { margin: 0 0 0.9rem; color: #c9d9f2; }
.hb-sv-hero .hb-breadcrumb a { color: #e8f0fc; }
.hb-sv-hero .hb-breadcrumb a:hover { color: #fff; }
.hb-sv-hero .hb-breadcrumb li + li::before { color: #9db6dd; }
.hb-sv-hero .hb-breadcrumb ol { justify-content: flex-start; }
.hb-sv-hero .hb-breadcrumb [aria-current] span { color: #fff; }

/* ---------- NÚT LIÊN HỆ ---------- */
.hb-sv-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hb-sv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.hb-sv-btn:hover { transform: translateY(-2px); }
.hb-sv-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.hb-sv-btn--call { background: var(--hb-halo-accent); color: #fff; }
.hb-sv-btn--call:hover { background: var(--hb-halo-accent-dark); color: #fff; }
.hb-sv-btn--zalo,
.hb-sv-btn--book { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.hb-sv-btn--zalo:hover,
.hb-sv-btn--book:hover { background: #fff; color: var(--hb-blue-700); border-color: #fff; }
@media (max-width: 480px) {
  .hb-sv-cta { flex-direction: column; }
  .hb-sv-btn { width: 100%; }
}

/* ---------- KHUNG NỘI DUNG ---------- */
.hb-sv-wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  font-family: var(--hb-halo-font);
  color: var(--hb-text);
}
@media (min-width: 640px) { .hb-sv-wrap { padding: 2rem 1.5rem 3.5rem; } }

.hb-sv-sec { margin-top: 2.5rem; scroll-margin-top: 6rem; }
.hb-sv-sec:first-child { margin-top: 0; }
.hb-sv-h2 {
  margin: 0 0 1.1rem;
  padding-left: 0.85rem;
  border-left: 5px solid var(--hb-halo-accent);
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  font-weight: 800;
  line-height: 1.4;
  color: var(--hb-blue-700);
  text-wrap: balance;
}
.hb-sv-sec__lead { margin: -0.4rem 0 1.1rem; color: var(--hb-halo-muted); line-height: 1.7; }
.hb-sv-note { margin: 0.85rem 0 0; font-size: 0.9rem; line-height: 1.6; color: var(--hb-halo-muted); }

/* Nội dung gõ trong trình soạn thảo */
.hb-sv-content img { border-radius: 0.75rem; }

/* ---------- CẢNH BÁO AN TOÀN ---------- */
.hb-sv-warn {
  display: flex;
  gap: 0.9rem;
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  background: #fff8e1;
  border: 1px solid #f2d27a;
  border-left: 5px solid #e0a800;
  border-radius: 0.75rem;
  color: #5c4500;
}
.hb-sv-warn i { margin-top: 0.2rem; font-size: 1.15rem; color: #b98400; }
.hb-sv-warn p { margin: 0; line-height: 1.7; }

/* ---------- HỘP KIỂM TRA (CHỈ NGƯỜI CÓ QUYỀN SỬA THẤY) ---------- */
.hb-sv-admin {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  background: #eef5ff;
  border: 1px dashed #7aa2d8;
  border-radius: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #1c3d6e;
}
.hb-sv-admin a { color: var(--hb-blue-600); font-weight: 700; margin-left: 0.4rem; }

/* ---------- THÔNG TIN NHANH CỦA KHU VỰC ---------- */
.hb-sv-facts {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  margin: 0 0 1.75rem;
}
@media (min-width: 640px) { .hb-sv-facts { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.hb-sv-fact {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--hb-blue-50);
  border: 1px solid var(--hb-halo-border);
  border-radius: 0.9rem;
}
.hb-sv-fact__ico {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--hb-blue-600);
  color: #fff;
}
.hb-sv-fact dt { margin: 0; font-size: 0.8rem; color: var(--hb-halo-muted); }
.hb-sv-fact dd { margin: 0; font-weight: 700; line-height: 1.45; color: var(--hb-halo-ink); overflow-wrap: anywhere; }

/* ---------- THẺ LỖI THƯỜNG GẶP ---------- */
.hb-sv-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.hb-sv-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--hb-halo-border);
  border-radius: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hb-sv-card:hover { border-color: var(--hb-blue-600); box-shadow: 0 12px 26px -14px rgba(0, 74, 173, 0.4); }
.hb-sv-card h3 { margin: 0 0 0.6rem; font-size: 1.1rem; font-weight: 800; line-height: 1.4; color: var(--hb-halo-ink); }
.hb-sv-card p { margin: 0 0 0.55rem; line-height: 1.65; }
.hb-sv-card strong { color: var(--hb-blue-700); }
.hb-sv-card__time { font-size: 0.92rem; color: var(--hb-halo-muted); }
.hb-sv-card__link {
  margin-top: auto;
  padding-top: 0.4rem;
  font-weight: 700;
  color: var(--hb-blue-600);
  text-decoration: none;
}
.hb-sv-card__link:hover { color: var(--hb-halo-accent); }

/* ---------- BẢNG ---------- */
.hb-sv-tablewrap {
  overflow-x: auto;
  border: 1px solid var(--hb-halo-border);
  border-radius: 1rem;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.hb-sv-table { width: 100%; min-width: 28rem; border-collapse: collapse; font-size: 1rem; }
.hb-sv-table th,
.hb-sv-table td { padding: 0.85rem 1rem; text-align: left; vertical-align: top; line-height: 1.55; }
.hb-sv-table thead th { background: var(--hb-blue-600); color: #fff; font-weight: 700; white-space: nowrap; }
.hb-sv-table tbody tr + tr th,
.hb-sv-table tbody tr + tr td { border-top: 1px solid var(--hb-line); }
.hb-sv-table tbody tr:nth-child(even) { background: var(--hb-blue-50); }
.hb-sv-table tbody th { font-weight: 700; color: var(--hb-halo-ink); }
.hb-sv-table__price { font-weight: 800; color: var(--hb-halo-accent); white-space: nowrap; }

/* ---------- QUY TRÌNH ---------- */
.hb-sv-steps { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: hb-step; grid-template-columns: 1fr; }
@media (min-width: 768px) { .hb-sv-steps { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); } }
.hb-sv-steps li {
  position: relative;
  padding: 1.25rem 1.1rem 1.1rem;
  background: #fff;
  border: 1px dashed var(--hb-halo-border);
  border-radius: 1rem;
  counter-increment: hb-step;
}
.hb-sv-steps li::before {
  content: counter(hb-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.6rem;
  border-radius: 999px;
  background: var(--hb-blue-600);
  color: #fff;
  font-weight: 800;
}
.hb-sv-steps h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 800; line-height: 1.4; color: var(--hb-halo-ink); }
.hb-sv-steps p { margin: 0 0 0.5rem; line-height: 1.65; }

/* ---------- CHIP, HÃNG, KHU VỰC ---------- */
.hb-sv-chips,
.hb-sv-brands { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.hb-sv-chips li a,
.hb-sv-chips li span {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--hb-halo-border);
  border-radius: 999px;
  background: var(--hb-blue-50);
  font-weight: 600;
  line-height: 1.4;
  color: var(--hb-blue-700);
  text-decoration: none;
}
.hb-sv-chips li a:hover { background: var(--hb-blue-600); border-color: var(--hb-blue-600); color: #fff; }
.hb-sv-chip--time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--hb-blue-50);
  font-size: 0.85rem;
  color: var(--hb-blue-700);
}
.hb-sv-brands li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 1.1rem;
  background: #fff;
  border: 1px solid var(--hb-halo-border);
  border-radius: 0.85rem;
  line-height: 1.45;
}
.hb-sv-brands a { color: var(--hb-blue-700); text-decoration: none; }
.hb-sv-brands a:hover { color: var(--hb-halo-accent); }
.hb-sv-brands span { font-size: 0.88rem; color: var(--hb-halo-muted); }

/* ---------- DỊCH VỤ LIÊN QUAN ---------- */
.hb-sv-rels { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.hb-sv-rel {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--hb-halo-border);
  border-radius: 1rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
a.hb-sv-rel:hover { border-color: var(--hb-blue-600); transform: translateY(-3px); box-shadow: 0 12px 26px -14px rgba(0, 74, 173, 0.4); }
.hb-sv-rel strong { font-size: 1.05rem; line-height: 1.4; color: var(--hb-blue-700); }
.hb-sv-rel span { font-size: 0.92rem; line-height: 1.55; color: var(--hb-halo-muted); }

/* ---------- CÂU HỎI THƯỜNG GẶP ---------- */
.hb-sv-faq { display: grid; gap: 0.7rem; }
.hb-sv-faq details { background: #fff; border: 1px solid var(--hb-halo-border); border-radius: 0.9rem; overflow: hidden; }
.hb-sv-faq summary {
  position: relative;
  padding: 0.95rem 3rem 0.95rem 1.1rem;
  cursor: pointer;
  list-style: none;
}
.hb-sv-faq summary::-webkit-details-marker { display: none; }
.hb-sv-faq summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 1.1rem;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hb-blue-600);
}
.hb-sv-faq details[open] summary::after { content: '\2212'; }
.hb-sv-faq summary:focus-visible { outline: 3px solid var(--hb-blue-600); outline-offset: -3px; }
.hb-sv-faq summary h3 { display: inline; margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.5; color: var(--hb-halo-ink); }
.hb-sv-faq__a { padding: 0 1.1rem 1rem; }
.hb-sv-faq__a p { margin: 0; line-height: 1.75; }

/* ---------- ĐÁNH GIÁ ---------- */
.hb-sv-quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.hb-sv-quote { margin: 0; padding: 1.15rem 1.25rem; background: var(--hb-blue-50); border: 1px solid var(--hb-halo-border); border-radius: 1rem; }
.hb-sv-quote blockquote { margin: 0 0 0.7rem; padding: 0; border: 0; font-style: normal; }
.hb-sv-quote blockquote p { margin: 0; line-height: 1.7; color: var(--hb-halo-ink); }
.hb-sv-quote figcaption { font-size: 0.9rem; color: var(--hb-halo-muted); }
.hb-sv-quote figcaption strong { color: var(--hb-blue-700); }

/* ---------- BẢN ĐỒ ---------- */
.hb-sv-map { overflow: hidden; border: 1px solid var(--hb-halo-border); border-radius: 1rem; background: var(--hb-blue-50); }
.hb-sv-map iframe { display: block; width: 100%; height: 22rem; border: 0; }
@media (max-width: 640px) { .hb-sv-map iframe { height: 16rem; } }

/* ---------- BÀI VIẾT LIÊN QUAN ---------- */
.hb-sv-posts { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.hb-sv-posts article .p-6 { padding: 1.1rem; }
.hb-sv-posts article h3 { font-size: 1.02rem; }
.hb-sv-posts article img { height: 10rem; }

/* ---------- CTA CUỐI TRANG ---------- */
.hb-sv-final {
  background: linear-gradient(135deg, var(--hb-blue-600) 0%, var(--hb-blue-700) 100%);
  color: #fff;
  font-family: var(--hb-halo-font);
  text-align: center;
}
.hb-sv-final__inner { width: 100%; max-width: 52rem; margin: 0 auto; padding: 3rem 1rem 3.25rem; }
.hb-sv-final h2 { margin: 0 0 0.6rem; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; line-height: 1.4; }
.hb-sv-final p { margin: 0 auto; max-width: 38rem; line-height: 1.7; color: #e3ecfa; }
.hb-sv-final .hb-sv-cta { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .hb-sv-btn,
  .hb-sv-card,
  .hb-sv-rel { transition: none; }
  .hb-sv-btn:hover,
  a.hb-sv-rel:hover { transform: none; }
}
@media print {
  .hb-sv-cta,
  .hb-sv-admin,
  .hb-sv-map { display: none; }
}
