/*
 * Trip pages - CSS riêng cho trang taxonomy-product_cat (danh sách chuyến)
 * và single-product (chi tiết chuyến).
 * LƯU Ý: Đã loại bỏ các rule header/footer/brand/nav vì header & footer
 * dùng chung giao diện của index.html (assets/css/main.css).
 */
:root {
  --blue-900: #001D52;
  --blue-800: #063376;
  --blue-700: #0A3F8E;
  --blue-100: #EAF3FF;
}

.shell {
  width: min(1300px, calc(100% - 96px));
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  color: #64748B;
  font-size: 13px;
  font-weight: 500;
}

.breadcrumb a {
  color: #64748B;
}

.breadcrumb svg {
  width: 15px;
  height: 15px;
  color: #94A3B8;
}

/* Yoast breadcrumb wrapper */
.breadcrumb #breadcrumbs {
  margin: 0;
}

.breadcrumb #breadcrumbs a {
  color: #64748B;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.03);
}

.search-summary {
  min-height: 90px;
  padding: 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

.summary-title svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.summary-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #1F2937;
  font-size: 14px;
  font-weight: 500;
}

.summary-meta .divider {
  width: 1px;
  height: 24px;
  background: #94A3B8;
}

.summary-meta svg {
  width: 17px;
  height: 17px;
  color: #2563EB;
  vertical-align: -3px;
}

.blue-btn {
  min-width: 150px;
  height: 44px;
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  background: #1D4ED8;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.18);
  font-size: 14px;
  font-weight: 700;
}

.blue-btn svg {
  width: 16px;
  height: 16px;
}

.list-layout {
  display: grid;
  grid-template-columns: 228px 1fr;
  gap: 18px;
  padding: 8px 0 28px;
}

.filters {
  align-self: start;
  padding: 18px 16px;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.filter-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.filter-head a,
.show-more {
  color: #2563EB;
  font-size: 13px;
  font-weight: 600;
}

.filter-block {
  padding: 0 0 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.filter-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-block h3 {
  margin: 0 0 14px;
  color: #1F2937;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
}

.check-row input {
  width: 14px;
  height: 14px;
  accent-color: #2563EB;
}

/* Ô nhập giá vé trong bộ lọc */
.price-inputs {
  display: flex;
  gap: 8px;
}

.price-inputs input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: var(--white);
  font-size: 12px;
}

.filters form .blue-btn {
  margin-top: 18px;
}

.price-range {
  margin-top: 18px;
}

.range-line {
  height: 7px;
  border-radius: 999px;
  background: #1D4ED8;
  position: relative;
}

.range-line::before,
.range-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #0B49D2;
  translate: 0 -50%;
}

.range-line::before {
  left: 0;
}

.range-line::after {
  right: 0;
}

.range-values {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: #64748B;
  font-size: 12px;
  font-weight: 500;
}

.range-label {
  margin-bottom: 12px;
  text-align: center;
  color: #1F2937;
  font-size: 12px;
  font-weight: 800;
}

.mini-search {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #94A3B8;
  background: var(--white);
}

.mini-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 12px;
}

.mini-search svg {
  width: 15px;
  height: 15px;
}

.results-top {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

.sort-select {
  height: 40px;
  min-width: 164px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  color: #1F2937;
  background: var(--white);
}

.sort-select svg {
  width: 16px;
  height: 16px;
}

.count {
  color: #334155;
  font-size: 14px;
  font-weight: 500;
}

.count strong {
  font-weight: 800;
}

.trip-results {
  display: grid;
  gap: 8px;
}

.trip-card {
  min-height: 136px;
  padding: 10px 22px;
  display: grid;
  grid-template-columns: 318px 96px 1fr 156px;
  gap: 20px;
  align-items: center;
}

.operator {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
}

.operator-logo {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #052563, #0D43A5);
  font-size: 9px;
  line-height: 1.15;
  text-align: center;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.operator-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.operator-logo.green {
  background: linear-gradient(135deg, #047857, #0F5132);
}

.operator-name {
  margin: 0 0 5px;
  color: #1E293B;
  font-size: 15px;
  font-weight: 800;
}

.operator-type {
  margin: 0 0 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 12px;
}

.rating-line svg {
  width: 15px;
  height: 15px;
  fill: #F59E0B;
  color: #F59E0B;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  height: 20px;
  padding: 0 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  color: #2563EB;
  background: #DBEAFE;
  font-size: 11px;
  font-weight: 600;
}

.tag.green {
  color: #047857;
  background: #D1FAE5;
}

.timeline {
  height: 88px;
  display: grid;
  grid-template-columns: 1fr 18px;
  column-gap: 10px;
  align-items: stretch;
}

.timeline-times {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
}

.time strong {
  display: block;
  color: #111827;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

.time span {
  display: block;
  margin-top: 4px;
  color: #64748B;
  font-size: 10px;
  font-weight: 500;
}

.duration {
  align-self: center;
  color: #64748B;
  font-size: 11px;
  font-weight: 500;
}

.rail {
  position: relative;
}

.rail::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: #CBD5E1;
  translate: -50% 0;
}

.rail .dot {
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #0B49D2;
  translate: -50% 0;
}

.rail .dot:first-child {
  top: 5px;
}

.rail .dot:last-child {
  bottom: 5px;
}

.rail .mid-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94A3B8;
  translate: -50% -50%;
}

.station-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.station h3 {
  margin: 0 0 5px;
  color: #1F2937;
  font-size: 15px;
  font-weight: 800;
}

.station p {
  margin: 0;
  color: #64748B;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
}

.fare-box {
  text-align: right;
}

.fare {
  display: block;
  margin-bottom: 6px;
  color: var(--secondary);
  font-size: 23px;
  line-height: 1;
  font-weight: 800;
}

.fare-note {
  display: block;
  margin-bottom: 14px;
  color: #64748B;
  font-size: 12px;
}

.choose-btn {
  width: 132px;
  height: 36px;
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: linear-gradient(180deg, #0D54D9, #0639B9);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(29, 78, 216, 0.17);
}

.seats-left {
  display: block;
  margin-top: 8px;
  color: #16A34A;
  font-size: 12px;
  font-weight: 600;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 18px 0 0;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.page-btn,
.page-dot,
.pagination .page-numbers {
  min-width: 31px;
  height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #1E293B;
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.page-btn.active,
.pagination .page-numbers.current {
  color: var(--white);
  background: #1D4ED8;
  border-color: #1D4ED8;
}

.page-dot,
.pagination .page-numbers.dots {
  border: 0;
  background: transparent;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(410px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.gallery-main {
  height: 320px;
  position: relative;
  overflow: hidden;
  border-radius: 7px;
  background: #DBEAFE;
  outline: 0;
  isolation: isolate;
}

.gallery-main:focus-visible {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.gallery-track {
  height: 100%;
  display: flex;
  transition: transform 0.42s ease;
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  background: #DBEAFE;
}

.gallery-slide img,
.gallery-main > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.88);
  translate: 0 -50%;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.gallery-arrow:hover {
  background: var(--white);
  transform: scale(1.04);
}

.gallery-arrow.left {
  left: 12px;
}

.gallery-arrow.right {
  right: 12px;
}

.gallery-arrow svg {
  width: 22px;
  height: 22px;
}

.gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-width: 52px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(15, 23, 42, 0.64);
  font-size: 12px;
  font-weight: 800;
  z-index: 2;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.thumb {
  height: 62px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #E2E8F0;
  cursor: pointer;
  opacity: 0.72;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.thumb.active {
  border-color: #2563EB;
  opacity: 1;
}

.thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.thumb:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 2px;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.features-strip {
  height: 72px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 28px;
  padding: 0 14px;
  align-items: center;
}

.feature {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--blue-100);
  flex: 0 0 auto;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature strong {
  display: block;
  color: var(--primary);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

.feature span {
    display: flex;
    margin-top: 3px;
    color: #64748B;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 500;
    justify-content: center;
}

.booking-panel {
  padding: 14px 16px 16px;
}

.route-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.route-title {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--primary);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.route-title svg {
  width: 23px;
  height: 23px;
}

.private-badge {
  height: 26px;
  padding: 0 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  color: #16A34A;
  background: #D1FAE5;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.vehicle-line {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: #475569;
  font-size: 13px;
}

.stars {
  display: inline-flex;
  gap: 1px;
  color: #F59E0B;
}

.stars svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.stops-card {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.stop-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 140px;
  gap: 12px;
  padding: 0 0 14px;
  position: relative;
}

.stop-row:last-child {
  padding-bottom: 0;
}

.stop-row::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 23px;
  bottom: -6px;
  border-left: 1px dashed #CBD5E1;
}

.stop-row:last-child::before {
  display: none;
}

.stop-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--white);
  position: relative;
  z-index: 1;
}

.stop-icon svg {
  width: 18px;
  height: 18px;
}

.stop-copy strong {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.stop-copy span {
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.stop-time {
  color: #1F2937;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.trip-facts {
  display: grid;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.fact-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
}

.fact-row svg {
  width: 17px;
  height: 17px;
  color: #475569;
}

.fact-row strong {
  color: #1F2937;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.price-panel {
  margin-top: 0;
  padding: 14px 12px 10px;
  border-radius: 7px;
  background: #FFFDF9;
  border: 1px solid #F2E3CF;
}

.price-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.big-price {
  color: var(--secondary);
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
}

.old-price {
  margin-left: 18px;
  color: #64748B;
  font-size: 13px;
  text-decoration: line-through;
  font-weight: 600;
}

.vat-badge {
  height: 26px;
  padding: 0 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  color: #2563EB;
  background: #EFF6FF;
  font-size: 12px;
  font-weight: 700;
}

.available-seat {
  display: block;
  text-align: right;
  color: #16A34A;
  font-size: 12px;
  font-weight: 700;
}

.booking-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.orange-btn,
.outline-btn {
  height: 38px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.orange-btn {
  border: 0;
  color: var(--white);
  background: linear-gradient(90deg, #FF6B00, #FF7A00);
}

.outline-btn {
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--primary);
}

.orange-btn svg,
.outline-btn svg {
  width: 16px;
  height: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px 0 0;
}

.content-card {
  padding: 18px 16px;
  min-height: 300px;
}

.content-card h2 {
  margin: 0 0 16px;
  color: #1E293B;
  font-size: 16px;
  font-weight: 800;
}

.content-card p {
  margin: 0 0 20px;
  color: #475569;
  font-size: 13px;
  line-height: 1.72;
  font-weight: 500;
}

.benefit-list {
  display: grid;
  gap: 14px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
}

.benefit svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.schedule-box {
  display: grid;
  grid-template-columns: 70px 22px 1fr;
  column-gap: 14px;
  align-items: stretch;
  padding: 8px 4px 0;
}

.schedule-times {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0;
}

.schedule-time strong {
  display: block;
  color: #1F2937;
  font-size: 22px;
  line-height: 1;
  font-weight: 800;
}

.schedule-time span {
  display: block;
  margin-top: 7px;
  color: #64748B;
  font-size: 11px;
  font-weight: 500;
}

.schedule-rail {
  position: relative;
}

.schedule-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #CBD5E1;
  translate: -50% 0;
}

.schedule-rail .dot {
  position: absolute;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: var(--white);
  translate: -50% 0;
}

.schedule-rail .dot:first-child {
  top: 8px;
}

.schedule-rail .dot:nth-child(2) {
  top: 50%;
  border-color: #CBD5E1;
  translate: -50% -50%;
}

.schedule-rail .dot:last-child {
  bottom: 8px;
}

.schedule-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0;
}

.schedule-stop strong {
  display: block;
  color: #1F2937;
  font-size: 14px;
  font-weight: 800;
}

.schedule-stop span {
  display: block;
  margin-top: 7px;
  color: #64748B;
  font-size: 12px;
}

.schedule-duration {
  color: #64748B;
  font-size: 12px;
}

.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.review-head h2 {
  margin: 0;
}

.review-head a {
  color: #2563EB;
  font-size: 12px;
  font-weight: 700;
}

.review-summary {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  margin-bottom: 18px;
}

.review-score strong {
  display: inline-block;
  color: var(--primary);
  font-size: 27px;
  line-height: 1;
  font-weight: 800;
}

.review-score span {
  color: #64748B;
  font-size: 14px;
}

.review-score small {
  display: block;
  margin-top: 7px;
  color: #64748B;
  font-size: 11px;
  line-height: 1.4;
}

.bar-list {
  display: grid;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 42px 1fr 32px;
  gap: 8px;
  align-items: center;
  color: #64748B;
  font-size: 11px;
}

.bar-track {
  height: 4px;
  border-radius: 999px;
  background: #E2E8F0;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--secondary);
}

.review-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.reviewer {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
}

.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.reviewer strong {
  display: block;
  color: #1E293B;
  font-size: 13px;
  font-weight: 800;
}

.reviewer time {
  color: #64748B;
  font-size: 11px;
}

.review-item p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
}

.review-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CBD5E1;
}

.review-dots span.active {
  background: var(--primary);
}

.service-promises {
  min-height: 68px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 0 22px;
}

.promise-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.promise-icon {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--blue-100);
  flex: 0 0 auto;
}

.promise-icon svg {
  width: 20px;
  height: 20px;
}

.promise-item strong {
  display: block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.promise-item span {
  display: flex;
  margin-top: 3px;
  color: #64748B;
  font-size: 12px;
  font-weight: 500;
  justify-content: center;
}

.rental-cta {
  min-height: 62px;
  margin: 16px 0 12px;
  padding: 12px 26px;
  border: 1px solid #FDBA74;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #FFF7ED;
}

.rental-cta h2 {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
}

.rental-cta p {
  margin: 0;
  color: #64748B;
  font-size: 12px;
  font-weight: 500;
}

.cta-actions {
  display: flex;
  gap: 14px;
}

.cta-actions .outline-btn {
  min-width: 150px;
}

.contact-page {
  padding: 0 0 36px;
}

.contact-hero {
  margin-bottom: 18px;
  padding: 34px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(11, 45, 107, 0.97), rgba(21, 80, 163, 0.92) 58%, rgba(255, 122, 0, 0.78)),
    linear-gradient(180deg, #0B2D6B, #124A98);
}

.contact-hero::after {
  content: "";
  position: absolute;
  right: -56px;
  bottom: -72px;
  width: 360px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  transform: rotate(-9deg);
}

.content-hero-inner {
  width: min(760px, 100%);
  position: relative;
  z-index: 1;
}

.content-kicker {
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #EAF3FF;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.content-kicker svg {
  width: 16px;
  height: 16px;
}

.contact-hero h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 800;
}

.contact-hero p {
  max-width: 680px;
  margin: 0;
  color: #EAF3FF;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 500;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.post-meta span {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  font-size: 13px;
  font-weight: 700;
}

.post-meta svg {
  width: 16px;
  height: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-card {
  min-height: 144px;
  padding: 18px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1D4ED8;
  background: #EAF3FF;
}

.contact-icon svg {
  width: 21px;
  height: 21px;
}

.contact-card h2,
.map-card h2,
.contact-form h2 {
  margin: 0 0 9px;
  color: var(--primary);
  font-size: 17px;
  line-height: 1.28;
  font-weight: 800;
}

.contact-card a {
  display: inline-flex;
  margin-bottom: 8px;
  color: #1D4ED8;
  font-size: 15px;
  font-weight: 800;
}

.contact-card p,
.map-card p,
.contact-form > p {
  margin: 0;
  color: #64748B;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}

.map-card {
  margin-top: 14px;
  padding: 20px;
}

.map-visual {
  min-height: 220px;
  margin-top: 18px;
  border: 1px solid #D7E5F8;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.74) 0 1px, transparent 1px 54px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.74) 0 1px, transparent 1px 54px),
    linear-gradient(135deg, #EAF3FF, #F8FAFC 54%, #FFF7ED);
}

.map-visual::before {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  top: 52%;
  height: 34px;
  background: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(37, 99, 235, 0.16);
  border-bottom: 1px solid rgba(37, 99, 235, 0.16);
  transform: rotate(-12deg);
}

.map-pin-card {
  width: min(340px, calc(100% - 32px));
  padding: 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: #0F172A;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.map-pin-card > svg {
  width: 34px;
  height: 34px;
  color: var(--secondary);
  flex: 0 0 auto;
}

.map-pin-card strong,
.map-pin-card span {
  display: block;
}

.map-pin-card strong {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
}

.map-pin-card span {
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.map-embed {
  width: 100%;
  min-height: 260px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #D7E5F8;
  border-radius: 8px;
  background: #EAF3FF;
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  display: block;
  border: 0;
}

.contact-form {
  padding: 22px;
}

.contact-form > p {
  margin-bottom: 20px;
}

.form-grid,
.contact-form .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form .wpcf7-form p {
  margin: 0;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full,
.contact-form .wpcf7-form p:has(textarea),
.contact-form .wpcf7-form p:has(input[type="submit"]) {
  grid-column: 1 / -1;
}

.form-field label,
.contact-form .wpcf7-form label {
  color: #334155;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea,
.contact-form .wpcf7-form input,
.contact-form .wpcf7-form select,
.contact-form .wpcf7-form textarea {
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  outline: 0;
  color: #1E293B;
  background: var(--white);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input,
.form-field select,
.contact-form .wpcf7-form input,
.contact-form .wpcf7-form select {
  height: 44px;
  padding: 0 12px;
}

.form-field textarea,
.contact-form .wpcf7-form textarea {
  min-height: 132px;
  padding: 12px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.contact-form .wpcf7-form input:focus,
.contact-form .wpcf7-form select:focus,
.contact-form .wpcf7-form textarea:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.contact-submit,
.contact-form .wpcf7-submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--white);
  background: linear-gradient(90deg, #FF6B00, #FF7A00);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.22);
}

.contact-submit svg {
  width: 17px;
  height: 17px;
}

.contact-form .wpcf7-spinner {
  margin: 8px 0 0;
}

/* WooCommerce notices trong layout custom */
.woocommerce-notices-wrapper {
  margin-bottom: 14px;
}

@media (max-width: 1100px) {
  .shell {
    width: min(100% - 36px, 1300px);
  }

  .list-layout,
  .detail-grid,
  .info-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .trip-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .content-card {
    min-height: 0;
  }

  .timeline {
    width: 140px;
  }

  .fare-box {
    text-align: left;
  }

  .features-strip,
  .service-promises {
    height: auto;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
  }
}

@media (max-width: 680px) {
  .search-summary,
  .rental-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-meta,
  .cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-meta .divider {
    display: none;
  }

  .trip-results {
    gap: 12px;
  }

  .trip-card {
    padding: 14px;
    grid-template-columns: minmax(88px, 96px) minmax(0, 1fr);
    grid-template-areas:
      "operator operator"
      "timeline stations"
      "fare fare";
    column-gap: 12px;
    row-gap: 14px;
    align-items: start;
  }

  .operator {
    grid-area: operator;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }

  .operator-logo {
    width: 56px;
    height: 56px;
  }

  .operator-name {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.28;
  }

  .operator-type {
    margin-bottom: 6px;
    font-size: 12px;
    line-height: 1.35;
  }

  .tag-row {
    gap: 6px;
    margin-top: 7px;
  }

  .tag {
    max-width: 100%;
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .timeline {
    grid-area: timeline;
    width: auto;
    height: 126px;
    grid-template-columns: minmax(62px, 1fr) 16px;
    column-gap: 8px;
  }

  .time strong {
    font-size: 21px;
  }

  .time span {
    margin-top: 3px;
    font-size: 10px;
  }

  .duration {
    font-size: 11px;
    line-height: 1.25;
  }

  .station-list {
    grid-area: stations;
    min-height: 126px;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 0;
  }

  .station h3 {
    margin-bottom: 5px;
    font-size: 15px;
    line-height: 1.25;
  }

  .station p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .fare-box {
    grid-area: fare;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 12px;
    align-items: center;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .fare {
    margin: 0;
    font-size: 23px;
  }

  .fare-note {
    margin: 0;
    font-size: 12px;
  }

  .choose-btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 126px;
    height: 38px;
  }

  .seats-left {
    grid-column: 1 / -1;
    margin-top: 2px;
  }

  .gallery-main {
    height: 240px;
  }

  .thumb-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-promises,
  .contact-cards,
  .form-grid,
  .contact-form .wpcf7-form {
    grid-template-columns: 1fr;
  }

  .features-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
  }

  .feature {
    min-width: 0;
  }

  .contact-hero,
  .contact-form,
  .map-card {
    padding: 18px;
  }

  .contact-hero h1 {
    font-size: 26px;
  }

  .contact-card {
    min-height: 0;
  }
}

@media (max-width: 340px) {
  .trip-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "operator"
      "timeline"
      "stations"
      "fare";
  }

  .timeline {
    width: 140px;
  }

  .station-list {
    min-height: 0;
  }

  .fare-box {
    grid-template-columns: 1fr;
  }

  .choose-btn {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    margin-top: 6px;
  }
}
