/* ============================================================
   HOME PAGE — Hero search, services, routes, steps, FAQ, testimonials
   ============================================================ */

/* ---- HERO ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,23,42,0.10) 0%, rgba(15,23,42,0) 30%),
    url('/assets/img/hero-home.jpg') center / cover no-repeat;
  min-height: 720px;
}
.hero::before { content: none; }

/* Inner container: limits width, holds text + form on the LEFT,
   leaving the right side (boat image) clean. */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px 110px;     /* bottom padding for bottom-features bar */
  min-height: 720px;
  display: flex; flex-direction: column;
  gap: 28px;
}
.hero-text-block {
  max-width: 580px;
}

.hero h1 {
  font-size: 44px; font-weight: 800;
  color: var(--red);
  line-height: 1.15;
  margin-bottom: 14px;
  /* text-shadow: 0 2px 14px rgba(0,0,0,0.3); */
}
.hero-sub {
  font-size: 16px; color: var(--primary);;
  margin-bottom: 18px;
  /* text-shadow: 0 1px 4px rgba(0,0,0,0.3); */
}

/* Top feature list (small icons inline above form) */
.hero-feature-list {
  display: flex; flex-wrap: wrap;
  gap: 22px;
  font-size: 13.5px;
  color: var(--primary);
  /* text-shadow: 0 1px 3px rgba(0,0,0,0.4); */
}
.hero-feature-item {
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-feature-item svg { flex-shrink: 0; opacity: 0.9; }

/* Bottom features bar — positioned at the bottom-left of the hero,
   overlaying the image. Single row, semi-transparent. */
.hero-bottom-features {
  position: absolute;
  left: 0; right: 0; bottom: 32px;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex; flex-wrap: wrap;
  gap: 32px 40px;
  color: #fff;
}
.hbf-item {
  display: flex; align-items: center; gap: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hbf-item strong {
  display: block;
  font-size: 13.5px; font-weight: 700;
}
.hbf-item small {
  display: block;
  font-size: 12px;
  opacity: 0.85;
}

/* ---- SEARCH CARD (pill style) ---- */
.hero-search-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 24px;
  max-width: 650px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.20);
  margin-top: 4px;
}

/* Trip type tabs (radio-pill style) */
.home-trip-tabs {
  display: flex; gap: 8px;
  margin-bottom: 16px;
}
.home-trip-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px;
  border-radius: 99px;
  background: transparent;
  border: 1.5px solid var(--border);
  font-size: 13.5px; font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.home-trip-tab:hover { color: var(--blue); }
.home-trip-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.trip-tab-radio {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}
.home-trip-tab.active .trip-tab-radio::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #fff;
}

/* Form row: 4 fields + swap button between fields 1 and 2 */
.hero-search-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr 1fr;  /* from | swap | to | dateOut | dateRet */
  gap: 0;
  align-items: stretch;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: visible;   /* KHÔNG hidden — Nice Select dropdown cần thoát ra ngoài */
  margin-bottom: 14px;
  position: relative;
  z-index: 10;  /* đảm bảo nổi trên các element phía dưới */
}
/* Bo góc cho field đầu và cuối thay vì dùng overflow:hidden */
.hero-search-row > .hsr-field:first-child { border-radius: 12px 0 0 12px; }
.hero-search-row > .hsr-field:last-child  { border-radius: 0 12px 12px 0; }

.hsr-field {
  padding: 10px 14px;
  background: #fff;
  border-right: 1px solid #e2e8f0;
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
}
.hsr-field:last-child { border-right: none; }
.hsr-field.disabled {
  background: #f1f5f9;
  opacity: 0.65;
  cursor: not-allowed;
}
.hsr-field.disabled input { cursor: not-allowed; pointer-events: none; }

.hsr-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
  text-transform: none;
}

.hsr-control {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  min-width: 0;
}
.hsr-control select,
.hsr-control input {
  flex: 1;
  border: 0; outline: none; background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  padding: 0; min-width: 0;
  cursor: pointer;
  line-height: 1.3;
}

/* Select: ẩn arrow mặc định, dùng arrow CSS custom */
.hsr-control select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 22px;  /* chỗ cho mũi tên */
}

/* Wrapper bọc select để đặt mũi tên custom */
.hsr-select-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.hsr-select-wrap select {
  width: 100%;
  flex: 1;
}
/* Mũi tên custom bằng CSS — không cần SVG inline */
.hsr-select-wrap::after {
  content: '';
  position: absolute;
  right: 2px;
  top: 50%;
  translate: 0 -50%;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #94a3b8;
  pointer-events: none;
  flex-shrink: 0;
}
.hsr-select-wrap:focus-within::after {
  border-top-color: var(--blue);
}

.hsr-icon { flex-shrink: 0; }

/* Focus ring trên field chứa select */
.hsr-field:focus-within {
  background: #f8faff;
}
.hsr-field:focus-within .hsr-label {
  color: var(--blue);
}

/* Mobile: tăng font và touch area */
@media (max-width: 600px) {
  .hsr-field { padding: 12px 14px; }
  .hsr-control select,
  .hsr-control input { font-size: 16px; } /* 16px tránh iOS auto-zoom */
  .hsr-label { font-size: 11px; margin-bottom: 5px; }
  .hsr-select-wrap::after { right: 4px; }
}

/* Swap button — circular blue, between fields 1 and 2 */
.hsr-swap {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue-light);
  border: none;
  color: var(--blue);
  cursor: pointer;
  align-self: center;
  margin: 0 -14px;     /* slightly overlap the borders for visual centering */
  z-index: 2;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px #fff;   /* white ring to separate from the gray border */
  transition: all 0.15s;
  transform: rotate(90deg);
}
.hsr-swap:hover { background: var(--blue); color: #fff; }

/* CTA row */
.hero-search-cta-row {
  display: flex; gap: 12px;
  align-items: center;
  justify-content: end;
}
.hsr-promo-btn {
  flex: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px; color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.hsr-promo-btn:hover { border-color: var(--blue); color: var(--blue); }

.hero-search-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(211, 47, 47, 0.35);
  transition: all 0.15s;
}
.hero-search-btn:hover { background: #b71c1c; transform: translateY(-1px); }

/* ---- SECTIONS ---- */
.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 6px; }
.section-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }

/* ---- SERVICES ---- */
.service-card {
  text-align: center; padding: 32px 24px;
  border-radius: 14px; border: 1px solid var(--border);
  background: #fff; transition: all 0.2s;
}
.service-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: var(--blue-border);
}
.service-icon {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  /* No background — the SVG has its own circle */
}
.service-title { font-weight: 700; font-size: 16px; color: var(--primary); margin-bottom: 10px; }
.service-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---- ROUTE CARDS ---- */
.route-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  text-decoration: none; display: block;
  transition: transform 0.15s, box-shadow 0.15s;
}
.route-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.route-card-img {
  position: relative; height: 180px; overflow: hidden;
  background: #e0f2fe;
}
.route-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.3s;
}
.route-card:hover .route-card-img img { transform: scale(1.05); }
.route-card-img-label {
  position: absolute; left: 12px; bottom: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 99px;
  backdrop-filter: blur(4px);
}
.route-card-body { padding: 14px 16px; }
.route-name { font-weight: 700; font-size: 14px; color: var(--primary); margin-bottom: 8px; }
.route-name .arrow { color: var(--blue); }
.route-meta { display: flex; justify-content: space-between; align-items: center; }
.route-duration { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px;width: 30%; }
.route-duration svg {width:15px;}
.route-price { font-size: 13px; font-weight: 700; color: var(--blue); }

/* ---- STEPS SECTION (4 steps + boat illustration) ---- */
.steps-section {
  position: relative; overflow: hidden;
  padding: 60px 0;
  background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 60%, #b71c1c 100%);
}
.steps-title {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
}

.steps-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  position: relative;
}
/* Horizontal dotted line connecting all 4 steps */
.steps-list::before {
  content: '';
  position: absolute;
  top: 24px;     /* aligned with the center of step-num circles */
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background-image: linear-gradient(to right, rgba(255,255,255,0.5) 50%, transparent 50%);
  background-size: 8px 1px;
  z-index: 0;
}

.step-card {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 13px; font-weight: 800;
  color: #fff;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}
.step-icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  background: rgba(255,255,255,0.05);
}
.step-card h3 {
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 12.5px;
  opacity: 0.75;
  line-height: 1.7;
  color: #fff;
}

.steps-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps-illustration img {
  width: 100%;
  max-width: 280px;
  height: auto;
}

@media (max-width: 900px) {
  .steps-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .steps-illustration { max-width: 240px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .steps-list {
    grid-template-columns: 1fr 1fr;
    gap: 32px 16px;
  }
  .steps-list::before { display: none; }

  
}
@media (max-width: 480px) {
  /* .steps-list { grid-template-columns: 1fr; } */
  .trust-bar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr ;
  }
  .hero-feature-list {
    display: none;
  }
  .hero-text-block h1, .hero-text-block p.hero-sub{
    color:#FFF !important;
  }
  .hero-inner {
        padding: 40px 16px 100px !important;
        gap: 10px !important;
    }
}

/* ---- FAQ ---- */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.faq-list-col { min-width: 0; }
.faq-image-col {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  position: sticky; top: 90px;
}
.faq-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
  display: block;
}
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-image-col { display: none; }   /* hide on mobile to save space */
}

/* ---- TESTIMONIALS ---- */
.testimonials-slider {
  overflow: hidden;
  margin-bottom: 24px;
}
.testimonials-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
  will-change: transform;
}
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
  border: 1px solid #f1f5f9;
  position: relative;
}
.testimonial-quote-mark {
  position: absolute;
  top: 16px; left: 22px;
  font-size: 38px;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  opacity: 0.85;
}
.testimonial-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin: 24px 0 18px;
  padding-top: 18px;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.testimonial-info { flex: 1; min-width: 0; }
.testimonial-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.testimonial-city { font-size: 12px; color: var(--muted); margin-top: 2px; }
.testimonial-stars {
  color: #f59e0b;
  font-size: 12px;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.testimonial-pager {
  display: flex; gap: 8px;
  justify-content: center;
}
.testimonial-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.testimonial-dot.active {
  background: var(--blue);
  width: 20px;
  border-radius: 99px;
}
@media (max-width: 900px) {
  .testimonials-slider .testimonial-card { min-width: 0; }
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%; background: none; border: none; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; text-align: left;
}
.faq-question { font-size: 14px; font-weight: 600; color: var(--text); padding-right: 16px; }
.faq-icon { font-size: 18px; color: var(--muted); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { font-size: 13px; color: var(--muted); line-height: 1.7; padding-bottom: 16px; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ---- TESTIMONIALS ---- */
.testimonial-card {
  background: #fff; border-radius: 14px; padding: 24px;
  border: 1px solid var(--border);
}
.stars { color: #f59e0b; font-size: 14px; margin-bottom: 12px; }
.testimonial-text { font-size: 14px; color: var(--text); line-height: 1.7; margin-bottom: 14px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
}
.testimonial-name { font-weight: 700; font-size: 13px; }
.testimonial-city { font-size: 12px; color: var(--muted); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-search-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "from to"
      "dateOut dateRet";
    gap: 0;
  }
  .hero-search-row > .hsr-field:nth-child(1) { grid-area: from; }
  .hero-search-row > .hsr-field:nth-child(3) { grid-area: to; border-right: none; }
  .hero-search-row > .hsr-field:nth-child(4) { grid-area: dateOut; border-top: 1px solid #e2e8f0; }
  .hero-search-row > .hsr-field:nth-child(5) { grid-area: dateRet; border-top: 1px solid #e2e8f0; border-right: none; }
  .hsr-swap {
    grid-area: from;
    align-self: end;
    justify-self: end;
    margin: 0 4px 4px 0;
    transform: rotate(90deg);
  }
}
@media (max-width: 768px) {
  .hero { min-height: 0; }
  .hero-inner {
    padding: 50px 20px 200px;     /* extra bottom for stacked features */
    min-height: 0;
  }
  .hero h1 { font-size: 28px; }
  .hero-bottom-features {
    bottom: 20px;
    padding: 0 20px;
    gap: 16px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: anchor-center;
  }
  .hbf-item small { display: none; }   /* hide subtext on mobile */
  .section { padding: 36px 0; }
}
@media (max-width: 600px) {
  .hero-inner { padding: 40px 16px 180px; }
  .hero-search-card { padding: 16px; }
  .hero-search-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "from"
      "to"
      "dateOut"
      "dateRet";
    position: relative;
  }
  .hero-search-row > .hsr-field {
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0;
  }
  .hero-search-row > .hsr-field:last-child { border-bottom: none; }
  .hsr-swap {
    grid-area: from;
    align-self: end;
    justify-self: end;
    margin: 0 4px 4px 0;
    transform: rotate(90deg);
    position: absolute;
    top: 45px;
    right: 50%;
    translate: 50%;
  }
  .hero-search-cta-row { flex-direction: column; }
  .hsr-promo-btn, .hero-search-btn { width: 100%; justify-content: center; }
  .home-trip-tab { font-size: 12px; padding: 6px 14px; }
}

/* ════════════════════════════════════════════════════════════════════════
   HOME REDESIGN (Lô 6) — bám theo layout mới (ảnh 1). Prefix .hm-
   Palette navy riêng, KHÔNG đụng var --primary đỏ của theme cũ.
   ════════════════════════════════════════════════════════════════════════ */
:root{
  --hm-navy:#0c2c5c; --hm-navy-2:#103a73;
  --hm-blue:#1656a8; --hm-blue-d:#0f4488;
  --hm-blue-light:#eef4fb; --hm-border:#e3ebf5;
  --hm-text:#16223a; --hm-muted:#5b6b86; --hm-red:#e11d2a;
}

/* ── Hero (ảnh 1) ───────────────────────────────────────────── */
.hm-hero{ min-height:560px; background-position:center; background-size:cover; }
.hm-hero .hero-inner{ min-height:560px; justify-content:center; padding:72px 40px; }
.hm-hero .hero-text-block{ max-width:620px; }
.hm-hero h1{ color:#fff; font-size:52px; line-height:1.1; font-weight:800;
  letter-spacing:.5px; text-transform:uppercase; text-shadow:0 2px 18px rgba(0,0,0,.35); margin-bottom:16px; }
.hm-hero .hero-sub{ color:#eaf2ff; font-size:18px; font-weight:500; margin-bottom:28px;
  text-shadow:0 1px 8px rgba(0,0,0,.35); }
.hm-hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* ── Nút dùng chung ─────────────────────────────────────────── */
.hm-btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:15px; padding:14px 28px; border-radius:10px;
  cursor:pointer; text-decoration:none; border:2px solid transparent; transition:.18s; white-space:nowrap; }
.hm-btn-sm{ padding:10px 18px; font-size:14px; border-radius:9px; }
.hm-btn-block{ display:flex; width:100%; }
.hm-btn-pill{ border-radius:999px; padding:12px 28px; background:var(--hm-navy); color:#fff; }
.hm-btn-pill:hover{ background:var(--hm-blue-d); }
.hm-btn-primary{ background:var(--hm-blue); color:#fff; }
.hm-btn-primary:hover{ background:var(--hm-blue-d); }
.hm-btn-ghost{ background:rgba(255,255,255,.14); color:#fff; border-color:rgba(255,255,255,.65);
  backdrop-filter:blur(2px); }
.hm-btn-ghost:hover{ background:rgba(255,255,255,.92); color:var(--hm-navy); }
.hm-btn-outline{ background:#fff; color:var(--hm-blue); border-color:var(--hm-blue); }
.hm-btn-outline:hover{ background:var(--hm-blue); color:#fff; }
.hm-btn-light{ background:#fff; color:var(--hm-navy); }
.hm-btn-light:hover{ background:var(--hm-blue-light); }

/* ── Section khung ──────────────────────────────────────────── */
.hm-section{ padding:64px 0; background:#fff; }
.hm-section-alt{ background:var(--hm-blue-light); }
.hm-sec-head{ text-align:center; margin-bottom:40px; }
.hm-sec-anchor{ display:inline-flex; color:var(--hm-blue); margin-bottom:8px; }
.hm-sec-anchor svg{ width:26px; height:26px; }
.hm-sec-title{ font-size:30px; font-weight:800; color:var(--hm-navy);
  text-transform:uppercase; letter-spacing:.5px; margin:0 0 8px; }
.hm-sec-sub{ color:var(--hm-muted); font-size:15px; margin:0; }
.hm-sec-cta{ text-align:center; margin-top:36px; }
.hm-sec-cta-left{ text-align:left; margin-top:20px; }

/* ── Card tuyến tàu ─────────────────────────────────────────── */
.hm-route-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
/* Wrapper trắng (chỉ là khung viền) + padding tạo viền quanh + shadow nhẹ */
.hm-route-card{ background:#fff; border:1px solid var(--hm-border); border-radius:18px;
  padding:5px; box-shadow:0 6px 22px rgba(12,44,92,.10); transition:.2s;
  display:flex; flex-direction:column; }
.hm-route-card:hover{ transform:translateY(-4px); box-shadow:0 16px 38px rgba(12,44,92,.18); }
.hm-route-img{ aspect-ratio:222/140; overflow:hidden; border-radius:14px 14px 0 0; }
.hm-route-img img{ width:100%; height:100%; object-fit:cover; transition:.3s; }
.hm-route-card:hover .hm-route-img img{ transform:scale(1.05); }
/* Thân card: nền NAVY, chữ trắng, bo góc dưới */
.hm-route-body{ background:#0c2c5c; border-radius:0 0 14px 14px; overflow:hidden;
  display:flex; flex-direction:column; flex:1; color:#fff; }
/* Dải tên tuyến: nền navy NHẠT hơn + viền dưới */
.hm-route-namebar{ background:#16447f; border-bottom:1px solid rgba(255,255,255,.18); padding:13px 16px; }
.hm-route-info{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:9px; flex:1; }
.hm-route-name{ display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px;
  font-size:18px; font-weight:800; color:#fff; }
.hm-route-port{ display:inline-flex; align-items:center; gap:5px; }
.hm-route-port svg{ width:17px; height:17px; color:#fff; }
.hm-route-arrow{ color:#fff; font-weight:700; }
.hm-route-price{ text-align:center; color:#eaf2ff; font-weight:700; font-size:15px; }
.hm-route-line{ display:flex; align-items:center; gap:8px; color:#dbe7f7; font-size:13.5px; }
.hm-route-line svg{ width:15px; height:15px; flex:none; color:#fff; }
.hm-route-actions{ display:flex; gap:10px; margin-top:auto; padding-top:8px; }
.hm-route-actions .hm-btn{ flex:1; }
/* Nút trên nền navy: Đặt vé = trắng đặc, Chi tiết = viền trắng */
.hm-route-actions .hm-btn-primary{ background:#fff; color:var(--hm-navy); border-color:#fff; }
.hm-route-actions .hm-btn-primary:hover{ background:#eaf2ff; color:var(--hm-navy); }
.hm-route-actions .hm-btn-outline{ background:transparent; color:#fff; border-color:rgba(255,255,255,.75); }
.hm-route-actions .hm-btn-outline:hover{ background:rgba(255,255,255,.14); color:#fff; }

/* ── Điểm đến + Tin tức (2 cột) ─────────────────────────────── */
.hm-two-col{ display:grid; grid-template-columns:380px 1fr; gap:32px; align-items:start; }
.hm-block-title{ display:flex; align-items:center; gap:9px; font-size:20px; font-weight:800;
  color:var(--hm-navy); text-transform:uppercase; letter-spacing:.4px; margin:0 0 18px; }
.hm-block-ic{ display:inline-flex; color:var(--hm-blue); }
.hm-block-ic svg{ width:22px; height:22px; }

/* Điểm đến — slider tự chạy, kéo được */
.hm-dest-slider{ position:relative; border-radius:16px; overflow:hidden;
  border:1px solid var(--hm-border); touch-action:pan-y; user-select:none; }
.hm-dest-track{ display:flex; }
.hm-dest-slide{ flex:0 0 100%; height:300px; background-size:cover; background-position:center;
  display:flex; align-items:flex-end; padding:18px; text-decoration:none; }
.hm-dest-name{ color:#fff; font-weight:800; font-size:19px; line-height:1.3;
  text-shadow:0 1px 8px rgba(0,0,0,.55); }
.hm-dest-dots{ position:absolute; bottom:12px; left:0; right:0; display:flex; justify-content:center; gap:7px; }
.hm-dest-dot{ width:8px; height:8px; border-radius:50%; border:0; padding:0; cursor:pointer;
  background:rgba(255,255,255,.55); transition:.2s; }
.hm-dest-dot.active{ background:#fff; width:20px; border-radius:5px; }

.hm-news-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.hm-news-card{ display:flex; flex-direction:column; background:#fff; border:1px solid var(--hm-border);
  border-radius:14px; overflow:hidden; text-decoration:none; transition:.18s; }
.hm-news-card:hover{ box-shadow:0 10px 28px rgba(12,44,92,.14); transform:translateY(-3px); }
.hm-news-thumb{ position:relative; height:118px; }
.hm-news-thumb img{ width:100%; height:100%; object-fit:cover; }
.hm-news-date{ position:absolute; top:8px; left:8px; background:var(--hm-blue); color:#fff;
  border-radius:8px; padding:5px 8px; text-align:center; line-height:1; }
.hm-news-date strong{ display:block; font-size:16px; }
.hm-news-date small{ font-size:9px; letter-spacing:.5px; }
.hm-news-body{ padding:12px 14px 14px; display:flex; flex-direction:column; gap:8px; flex:1; }
.hm-news-title{ font-size:14px; font-weight:700; color:var(--hm-text); line-height:1.4; margin:0;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.hm-news-more{ color:var(--hm-blue); font-size:13px; font-weight:700; margin-top:auto; }

/* ── Card bài viết "Tuyến nổi bật" (bg trắng, đổ bóng nhẹ, padding 3px quanh ảnh) ── */
.hm-feat-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.hm-feat-card{ background:#fff; border:1px solid var(--hm-border); border-radius:16px;
  padding:3px; box-shadow:0 6px 22px rgba(12,44,92,.08); transition:.2s;
  display:flex; flex-direction:column; }
.hm-feat-card:hover{ transform:translateY(-4px); box-shadow:0 14px 36px rgba(12,44,92,.16); }
.hm-feat-img{ display:block; height:176px; border-radius:13px; overflow:hidden; }
.hm-feat-img img{ width:100%; height:100%; object-fit:cover; transition:.3s; }
.hm-feat-card:hover .hm-feat-img img{ transform:scale(1.05); }
.hm-feat-body{ padding:16px 16px 18px; display:flex; flex-direction:column; gap:10px; flex:1; }
.hm-feat-title{ margin:0; font-size:17px; font-weight:800; line-height:1.35; }
.hm-feat-title a{ color:var(--hm-navy); text-decoration:none; }
.hm-feat-title a:hover{ color:var(--hm-blue); }
.hm-feat-excerpt{ margin:0; font-size:13.5px; color:var(--hm-muted); line-height:1.5;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hm-feat-actions{ display:flex; gap:10px; margin-top:auto; padding-top:4px; }
.hm-feat-actions .hm-btn{ flex:1; }

/* ── 3 cột: đặt vé / thông báo / hỗ trợ ─────────────────────── */
.hm-three-col{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; align-items:start; }
.hm-info-card{ background:#fff; border:1px solid var(--hm-border); border-radius:16px;
  padding:24px; box-shadow:0 6px 22px rgba(12,44,92,.06); }
.hm-section-alt .hm-info-card{ background:#fff; }
.hm-office{ display:flex; flex-direction:column; gap:3px; margin-bottom:12px; font-size:13.5px; color:var(--hm-muted); }
.hm-office strong{ color:var(--hm-navy); font-size:15px; }
.hm-map{ border-radius:12px; overflow:hidden; border:1px solid var(--hm-border); margin-bottom:14px; }
.hm-map iframe{ width:100%; height:170px; border:0; display:block; }
.hm-notice-list{ list-style:none; margin:0 0 14px; padding:0; display:flex; flex-direction:column; }
.hm-notice-list li{ border-bottom:1px dashed var(--hm-border); }
.hm-notice-list li:last-child{ border-bottom:0; }
.hm-notice-list a{ display:flex; align-items:flex-start; gap:9px; padding:11px 0;
  color:var(--hm-text); font-size:13.5px; line-height:1.45; text-decoration:none; transition:.15s; }
.hm-notice-list a:hover{ color:var(--hm-blue); }
.hm-notice-ic{ display:inline-flex; color:var(--hm-blue); flex:none; margin-top:1px; }
.hm-notice-ic svg{ width:16px; height:16px; }
.hm-notice-all{ color:var(--hm-blue); font-weight:700; font-size:14px; text-decoration:none; }
.hm-support-list{ list-style:none; margin:0 0 16px; padding:0; display:flex; flex-direction:column; gap:14px; }
.hm-support-list li{ display:flex; align-items:center; gap:11px; font-size:14px; color:var(--hm-text); }
.hm-support-list li svg{ width:20px; height:20px; flex:none; color:var(--hm-blue); }
.hm-support-list strong{ color:var(--hm-navy); }
.hm-support-badge{ display:flex; align-items:center; gap:8px; background:var(--hm-navy); color:#fff;
  border-radius:12px; padding:13px 16px; font-size:14px; font-weight:600; }
.hm-support-badge svg{ width:18px; height:18px; flex:none; }
.hm-empty{ color:var(--hm-muted); font-size:13.5px; padding:10px 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width:1024px){
  .hm-route-grid,.hm-feat-grid{ grid-template-columns:repeat(2,1fr); }
  .hm-three-col{ grid-template-columns:1fr; }
  .hm-two-col{ grid-template-columns:1fr; }
  .hm-news-grid{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:640px){
  .hm-hero h1{ font-size:34px; }
  .hm-hero .hero-sub{ font-size:16px; }
  .hm-route-grid,.hm-feat-grid{ grid-template-columns:1fr; }
  .hm-news-grid{ grid-template-columns:1fr; }
  .hm-section{ padding:44px 0; }
  .hm-sec-title{ font-size:24px; }
  .hm-hero-actions .hm-btn{ flex:1; }
}
