@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('nav-dropdown.css');


*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', Arial, sans-serif; background: #f8fafc; color: #1e293b; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.top-header { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 120; overflow: visible; }
.top-header .inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; flex-wrap: nowrap; overflow: visible; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand-name { font-size: 22px; font-weight: 800; color: #2563eb; }
.top-nav { display: flex; gap: 18px; flex-wrap: nowrap; align-items: center; overflow: visible; flex: 1 1 auto; min-width: 0; }
.brand { flex-shrink: 0; }
.top-nav a { font-size: 14px; font-weight: 500; color: #475569; }
.top-nav a:hover, .top-nav a.active { color: #2563eb; }
.header-right { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn-login { padding: 9px 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; font-weight: 600; }
.auth-user-box { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; max-width: min(100%, 320px); }
.btn-user-dash {
  padding: 9px 12px; border-radius: 8px; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; text-decoration: none;
  white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; min-width: 0;
}
.btn-logout-mini, .btn-home-mini { font-size: 12px; padding: 8px 10px; text-decoration: none; color: #334155; white-space: nowrap; flex-shrink: 0; }
.btn-partner { padding: 9px 18px; background: #2563eb; color: #fff; border-radius: 8px; font-size: 14px; font-weight: 600; }

.cat-hero {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  padding: 40px 0 24px;
}
.cat-hero h1 { font-size: 32px; margin-bottom: 8px; }
.cat-hero p { opacity: .9; font-size: 16px; margin-bottom: 16px; }
.cat-hero .fnb-type-tabs { margin-top: 8px; }
.cat-hero .fnb-type-tab {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.cat-hero .fnb-type-tab:hover,
.cat-hero .fnb-type-tab.active {
  background: #fff;
  color: #2563eb;
  border-color: #fff;
}

.cat-toolbar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  position: relative;
  z-index: 1;
}

/* Khối tìm kiếm trong luồng nội dung — không đè lên card */
.fnb-search-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.fnb-search-block .cat-search {
  max-width: 100%;
}
.cat-search {
  display: flex;
  gap: 10px;
  max-width: 600px;
}
.cat-search input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
}
.cat-search button {
  padding: 12px 24px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.cat-main {
  padding: 28px 0 60px;
  position: relative;
  z-index: 1;
  clear: both;
}
.cat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.cat-head h2 { font-size: 20px; color: #1e293b; }
.cat-count { font-size: 14px; color: #64748b; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.cat-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: box-shadow .2s, transform .2s;
}
.cat-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.cat-card-img { position: relative; display: block; height: 180px; overflow: hidden; background: #f1f5f9; }
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cat-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}
.cat-card-body { padding: 16px; }
.cat-card-body h3 { font-size: 17px; font-weight: 700; color: #1e293b; margin-bottom: 6px; }
.cat-card-body h3:hover { color: #2563eb; }
.cat-loc { font-size: 13px; color: #64748b; margin-bottom: 4px; }
.cat-merchant { font-size: 12px; color: #2563eb; font-weight: 600; margin-bottom: 6px; }
.cat-desc { font-size: 13px; color: #64748b; margin: 8px 0; line-height: 1.5; min-height: 40px; }
.cat-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f1f5f9; }
.cat-price { font-size: 16px; font-weight: 800; color: #2563eb; }
.cat-cta { font-size: 13px; font-weight: 700; color: #2563eb; }
.cat-empty { text-align: center; padding: 60px 20px; color: #64748b; grid-column: 1 / -1; }
.cat-empty a { color: #2563eb; font-weight: 600; margin-top: 12px; display: inline-block; }

.place-card-lg .cat-card-img { height: 200px; }

.hero-guide {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
  color: #fff;
  padding: 48px 0 36px;
}
.hero-guide h1 { font-size: 32px; margin-bottom: 10px; }
.hero-guide p { opacity: 0.9; max-width: 640px; }

/* Guide page */
.guide-hero-page {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  padding: 60px 0;
}
.guide-hero-page h1 { font-size: 36px; margin-bottom: 12px; }
.guide-hero-page em { color: #d4a24c; font-style: normal; }
.guide-benefits { list-style: none; margin: 24px 0; }
.guide-benefits li { padding: 8px 0 8px 28px; position: relative; }
.guide-benefits li::before { content: '✓'; position: absolute; left: 0; color: #22c55e; font-weight: 700; }
.btn-guide-lg {
  display: inline-block;
  padding: 14px 28px;
  background: #d4a24c;
  color: #000;
  border-radius: 10px;
  font-weight: 800;
  margin-top: 16px;
}
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.guide-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  text-align: center;
}
.guide-lang-badge {
  display: inline-block;
  font-size: 11px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.guide-meta { color: #64748b; font-size: 13px; margin: 4px 0 8px; }
.guide-bio { font-size: 13px; color: #475569; line-height: 1.5; margin-bottom: 8px; min-height: 40px; }
.guide-phone { font-size: 13px; color: #0f172a; margin-bottom: 12px; }
.guide-rate-hint { font-size: 12px; color: #2563eb; font-weight: 600; margin: 4px 0 8px; }
.guide-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-guide-card {
  padding: 8px 14px;
  background: #2563eb;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}
.btn-guide-outline {
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.guide-avatar {
  width: 64px; height: 64px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  margin: 0 auto 12px;
}
.guide-avatar-photo {
  object-fit: cover;
  display: block;
  border: 2px solid #e2e8f0;
  background: #f1f5f9;
}

/* FOOTER → assets/css/footer.css */

.cat-hero.hero-luutru {
  background: linear-gradient(135deg, #003580 0%, #004a9f 100%);
}
.cat-hero.hero-dichuyen {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
}

/* Listing cards — Lưu trú & Di chuyển */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.listing-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.listing-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.listing-img {
  position: relative;
  display: block;
  min-height: 140px;
  height: 100%;
  overflow: hidden;
  background: #f1f5f9;
}
.listing-img img { width: 100%; height: 100%; min-height: 140px; object-fit: cover; object-position: center; }
.listing-body { padding: 12px 14px; display: flex; flex-direction: column; }
.listing-body h3 { font-size: 15px; font-weight: 700; color: #003580; margin-bottom: 4px; line-height: 1.3; }
.listing-body .loc { font-size: 12px; color: #64748b; }
.listing-body .ptype { font-size: 11px; color: #94a3b8; }
.listing-body .stars { color: #febb02; font-size: 12px; }
.listing-desc { font-size: 12px; color: #64748b; margin: 6px 0; flex: 1; }
.listing-top { display: flex; justify-content: space-between; gap: 8px; }
.listing-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.listing-foot .price { font-size: 16px; font-weight: 800; color: #003580; }
.listing-foot small { font-size: 11px; color: #64748b; }
.btn-book {
  background: #003580; color: #fff; padding: 6px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 700; white-space: nowrap;
}
.btn-book:hover { background: #00224f; }
.score-box { text-align: center; min-width: 44px; flex-shrink: 0; }
.score-num {
  display: block; background: #003580; color: #fff; font-weight: 800;
  font-size: 13px; padding: 4px 6px; border-radius: 6px 6px 0 0;
}
.score-label {
  display: block; background: #f0f6ff; font-size: 9px; padding: 3px 4px;
  border-radius: 0 0 6px 6px; color: #003580; font-weight: 600; line-height: 1.2;
}
.partner-badge {
  position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 4px;
  font-size: 9px; font-weight: 700; background: rgba(0,53,128,.85); color: #fff;
}
.partner-badge.badge-a2c { background: #059669; }
.partner-badge.badge-api { background: #003580; }

@media (max-width: 640px) {
  .listing-card { grid-template-columns: 1fr; }
  .listing-img { min-height: 120px; }
}

/* FNB hub — 7 nhóm danh mục */
.page-fnb .cat-hero {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
}
.fnb-layout { display: block; }
.fnb-layout.fnb-layout-listing {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.fnb-sidebar:empty { display: none; }
.fnb-layout-listing .fnb-sidebar:not(:empty) { display: block; }
.fnb-sidebar-nav {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.fnb-sidebar-back {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}
.fnb-sidebar-group { margin-bottom: 12px; }
.fnb-sidebar-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
}
.fnb-sidebar-group ul {
  list-style: none;
  padding-left: 8px;
  margin: 0;
}
.fnb-sidebar-group li a {
  display: block;
  font-size: 12px;
  color: #64748b;
  padding: 4px 0;
}
.fnb-sidebar-group li a:hover,
.fnb-sidebar-group li a.active { color: #ea580c; font-weight: 600; }
.fnb-menu-hub {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fnb-menu-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
  scroll-margin-top: 96px;
}
.fnb-menu-section.is-highlight {
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}
.fnb-menu-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
}
.fnb-menu-icon {
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
}
.fnb-icon-an-sang,
.fnb-icon-an-dem {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 24px;
}
/* Mặt trời — nền vàng cam, ký tự trắng */
.fnb-icon-an-sang {
  background: linear-gradient(145deg, #fde047 0%, #f59e0b 100%);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
  color: #fff;
  text-shadow: 0 1px 3px rgba(180, 83, 9, 0.45);
}
/* Mặt trăng — nền xanh đêm, ký tự bạc */
.fnb-icon-an-dem {
  background: linear-gradient(145deg, #6366f1 0%, #312e81 100%);
  box-shadow: 0 2px 10px rgba(49, 46, 129, 0.4);
  color: #e0e7ff;
  text-shadow: 0 1px 2px rgba(30, 27, 75, 0.6);
}
.fnb-menu-section-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
}
.fnb-section-link { color: inherit; text-decoration: none; }
.fnb-section-link:hover { color: #ea580c; }
.fnb-menu-tags {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding: 0;
}
.fnb-menu-tags:not(.fnb-menu-tags-chips) li::before {
  content: '•';
  color: #ea580c;
  font-weight: 700;
  margin-right: 8px;
}
/* Ảnh nhỏ — chỉ mục con Ăn sáng & Ăn đêm (5 cột cân đối) */
.fnb-menu-tags-chips {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.fnb-tag-chip {
  list-style: none;
  min-width: 0;
}
.fnb-tag-chip a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-align: center;
  transition: box-shadow .2s, border-color .15s;
}
.fnb-tag-chip a:hover {
  border-color: #fdba74;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.12);
}
.fnb-tag-chip img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  flex-shrink: 0;
}
.fnb-tag-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 40px;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  line-height: 1.25;
}
.fnb-tag-link {
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  transition: color .15s;
}
.fnb-tag-link:hover { color: #ea580c; }
.fnb-breadcrumb {
  font-size: 13px;
  margin-bottom: 10px;
  opacity: .95;
}
.fnb-breadcrumb a { text-decoration: underline; }
.fnb-breadcrumb span { margin: 0 6px; opacity: .7; }
.fnb-search-results { margin-top: 32px; }
.region-tabs.is-hidden { display: none; }

/* FNB listing — breadcrumb only, partners above the fold (mobile/tablet) */
.fnb-listing-mode .fnb-sidebar { display: none !important; }
.fnb-listing-mode .fnb-layout-listing { display: block; }
.fnb-listing-mode .cat-hero {
  padding: 10px 0;
  min-height: 0;
}
.fnb-listing-mode .fnb-listing-hero-inner { padding: 0; }
.fnb-listing-mode .fnb-breadcrumb {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}
.fnb-listing-mode .fnb-breadcrumb strong { color: #fff; }
.fnb-listing-mode .fnb-search-block { display: none; }
.fnb-listing-mode .cat-main { padding-top: 8px; }
.fnb-listing-mode .fnb-content .cat-head {
  margin: 0 0 8px;
  padding: 0;
}
.fnb-listing-mode .fnb-content .cat-head h2 {
  font-size: 1rem;
  margin: 0;
}
.fnb-listing-mode .region-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-bottom: 10px;
  padding-bottom: 4px;
}
.fnb-listing-mode .region-tabs::-webkit-scrollbar { display: none; }
.fnb-listing-mode .region-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
  padding: 6px 12px;
}
.fnb-listing-mode .merchant-card-img {
  height: 160px;
  background: #f1f5f9;
}
.fnb-listing-mode .merchant-card-img > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.fnb-listing-mode .merchant-logo-badge { width: 36px; height: 36px; }

@media (min-width: 901px) {
  .fnb-listing-mode .fnb-search-block { display: block; }
  .fnb-listing-mode .cat-hero { padding: 16px 0; }
}

@media (max-width: 900px) {
  .fnb-listing-mode .cat-hero {
    padding: 8px 0;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  }
  .fnb-listing-mode .cat-main.container { padding-left: 12px; padding-right: 12px; }
  .fnb-listing-mode .merchant-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0;
    align-items: stretch;
  }
  .fnb-listing-mode .merchant-card-img {
    height: auto;
    min-height: 100%;
    align-self: stretch;
  }
  .fnb-listing-mode .merchant-card-img > img:first-child {
    height: 100%;
    min-height: 100px;
  }
  .fnb-listing-mode .merchant-card-body { padding: 10px 12px; }
  .fnb-listing-mode .merchant-card-body h3 { font-size: 14px; }
  .fnb-listing-mode .region-section .region-title { font-size: 15px; margin: 12px 0 8px; }
}

@media (max-width: 520px) {
  .fnb-listing-mode .cat-count { font-size: 12px; }
  .fnb-listing-mode .merchant-card { grid-template-columns: 88px 1fr; }
}
.nav-dropdown-fnb { min-width: 200px; }
.nav-dropdown-fnb-wide { min-width: 240px; max-height: 70vh; overflow-y: auto; }
.nav-fnb-group { border-bottom: 1px solid #f1f5f9; padding-bottom: 4px; margin-bottom: 4px; }
.nav-fnb-group-head { font-weight: 600; }
.nav-fnb-sub { padding-left: 28px !important; font-size: 13px; }
.nav-drop-all { border-top: 1px solid #e2e8f0; margin-top: 4px; padding-top: 8px; }

@media (max-width: 900px) {
  .top-nav { display: none; }
  .cat-grid { grid-template-columns: 1fr; }
  .fnb-layout.fnb-layout-listing { grid-template-columns: 1fr; }
  .fnb-sidebar-nav { position: static; max-height: none; margin-bottom: 16px; }
  .fnb-menu-tags { grid-template-columns: 1fr; }
  .fnb-menu-tags-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .fnb-menu-tags-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fnb-tag-chip img { height: 76px; }
}
