/* ── CSS VARIABLES ── */
:root {
  --primary: #1A3C5E;
  --accent: #F4A41B;
  --accent-light: #FDE9B6;
  --secondary: #2D7DD2;
  --light-bg: #F5F7FA;
  --text: #1A1A2E;
  --muted: #6C7A8D;
  --border: #E2E8F0;
  --white: #fff;
  --success: #22C55E;
  --danger: #EF4444;
  --card-shadow: 0 4px 24px rgba(26,60,94,.10);
  --card-shadow-hover: 0 8px 40px rgba(26,60,94,.18);
}

* { box-sizing: border-box; }
body {
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--text);
  background: #fff;
  scroll-behavior: smooth;
}
h1,h2,h3,.display-font { font-family: 'Playfair Display', serif; }

/* ── PAGE SYSTEM ── */

/* ── NAV ── */
.navbar { background: var(--primary) !important; padding: 0 0; box-shadow: 0 2px 16px rgba(0,0,0,.15); }
.navbar-brand { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: #fff !important; letter-spacing: -1px; }
.navbar-brand span { color: var(--accent); }
.nav-link { color: rgba(255,255,255,.85) !important; font-weight: 500; font-size: .93rem; padding: .7rem 1rem !important; transition: color .2s; }
.nav-link:hover, .nav-link.active-nav { color: var(--accent) !important; }
.btn-nav-login { border: 1.5px solid rgba(255,255,255,.4); color: #fff !important; border-radius: 8px; padding: .38rem 1.1rem !important; margin-left: .5rem; font-size: .88rem; }
.btn-nav-login:hover { background: rgba(255,255,255,.1); }
.btn-nav-book { background: var(--accent); color: var(--primary) !important; border-radius: 8px; font-weight: 700; padding: .38rem 1.2rem !important; font-size: .88rem; }
.btn-nav-book:hover { background: #e09410; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d2540 100%);
  min-height: 520px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-badge { background: rgba(244,164,27,.18); color: var(--accent); border: 1px solid rgba(244,164,27,.4); border-radius: 50px; font-size: .8rem; font-weight: 600; padding: .3rem .9rem; display: inline-block; margin-bottom: 1rem; letter-spacing: .5px; }
.hero h1 { font-size: 3rem; color: #fff; font-weight: 900; line-height: 1.15; }
.hero h1 span { color: var(--accent); }
.hero p { color: rgba(255,255,255,.7); font-size: 1.05rem; }
.hero-stats { margin-top: 1.5rem; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.7rem; font-weight: 800; color: var(--accent); }
.hero-stat .lbl { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: -.2rem; }
.hero-divider { width: 1px; background: rgba(255,255,255,.15); align-self: stretch; margin: 0 1rem; }

/* ── SEARCH CARD ── */
.search-card {
  background: #fff;
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.search-tabs .nav-link { color: var(--muted); font-weight: 600; font-size: .9rem; border: none; border-bottom: 2.5px solid transparent; border-radius: 0; padding: .5rem 1rem; }
.search-tabs .nav-link.active { color: var(--primary); border-bottom-color: var(--accent); background: none; }
.search-tabs { border-bottom: 1.5px solid var(--border); margin-bottom: 1.2rem; }
.form-label { font-size: .83rem; font-weight: 600; color: var(--muted); margin-bottom: .3rem; letter-spacing: .3px; }
.form-control, .form-select {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: .55rem .9rem; font-size: .93rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(45,125,210,.12); }
.btn-search {
  background: var(--accent); color: var(--primary);
  font-weight: 800; border-radius: 12px; border: none;
  padding: .7rem 1.5rem; font-size: 1rem; width: 100%;
  transition: background .2s, transform .15s;
}
.btn-search:hover { background: #e09410; transform: translateY(-1px); }

/* ── SERVICES SECTION ── */
.section-label { font-size: .8rem; font-weight: 700; color: var(--secondary); letter-spacing: 2px; text-transform: uppercase; }
.section-title { font-size: 2rem; color: var(--primary); font-weight: 900; }
.service-card {
  border: 1.5px solid var(--border); border-radius: 16px;
  padding: 1.6rem 1.3rem; text-align: center;
  cursor: pointer; transition: all .25s; background: #fff;
  text-decoration: none; color: inherit;
}
.service-card:hover { border-color: var(--secondary); box-shadow: var(--card-shadow-hover); transform: translateY(-4px); color: inherit; }
.service-icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.6rem; }
.service-card h6 { font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.service-card p { font-size: .8rem; color: var(--muted); margin: 0; }

/* ── ROUTES ── */
.route-card {
  border: 1.5px solid var(--border); border-radius: 14px;
  padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: 1rem;
  cursor: pointer; transition: all .22s; background: #fff;
}
.route-card:hover { border-color: var(--accent); box-shadow: var(--card-shadow); }
.route-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.route-info { flex: 1; }
.route-info .route-name { font-weight: 700; font-size: .92rem; }
.route-info .route-detail { font-size: .78rem; color: var(--muted); }
.route-price { font-weight: 800; color: var(--primary); font-size: .95rem; white-space: nowrap; }

/* ── CARRIER CARDS ── */
.carrier-card {
  border: 1.5px solid var(--border); border-radius: 16px;
  padding: 1.3rem; background: #fff; transition: all .22s;
}
.carrier-card:hover { box-shadow: var(--card-shadow-hover); border-color: var(--secondary); }
.carrier-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--light-bg); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.stars { color: var(--accent); font-size: .8rem; }
.badge-trip { background: var(--accent-light); color: #8B5E00; font-size: .72rem; font-weight: 600; border-radius: 6px; padding: .2rem .55rem; }

/* ── BLOG ── */
.blog-card { border: none; border-radius: 16px; overflow: hidden; box-shadow: var(--card-shadow); transition: all .22s; }
.blog-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-3px); }
.blog-img { height: 180px; object-fit: cover; width: 100%; }
.blog-cat { font-size: .72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--secondary); }
.blog-title { font-size: 1rem; font-weight: 700; color: var(--text); margin: .4rem 0 .3rem; }
.blog-meta { font-size: .78rem; color: var(--muted); }

/* ── TRUST BAR ── */
.trust-bar { background: var(--primary); padding: 1.5rem 0; }
.trust-item { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 500; }
.trust-item i { font-size: 1.3rem; color: var(--accent); }

/* ── SEARCH RESULTS ── */
.filter-sidebar { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; padding: 1.3rem; position: sticky; top: 80px; }
.filter-sidebar h6 { font-weight: 700; color: var(--primary); border-bottom: 1.5px solid var(--border); padding-bottom: .6rem; margin-bottom: .8rem; }
.result-card {
  border: 1.5px solid var(--border); border-radius: 16px;
  padding: 1.3rem; background: #fff; transition: all .22s; cursor: pointer; margin-bottom: 1rem;
}
.result-card:hover { border-color: var(--secondary); box-shadow: var(--card-shadow); }
.result-card.selected { border-color: var(--accent); background: #FFFBF0; }
.price-badge { background: var(--primary); color: #fff; border-radius: 10px; padding: .3rem .8rem; font-weight: 800; font-size: 1.05rem; }
.tag-pill { background: var(--light-bg); color: var(--muted); border-radius: 6px; font-size: .72rem; font-weight: 600; padding: .18rem .55rem; }
.sort-bar { background: var(--light-bg); border-radius: 12px; padding: .6rem 1rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sort-btn { border: 1.5px solid var(--border); background: #fff; border-radius: 8px; padding: .28rem .8rem; font-size: .83rem; font-weight: 600; cursor: pointer; color: var(--text); transition: all .18s; }
.sort-btn.active { border-color: var(--primary); color: var(--primary); background: #EBF3FF; }

/* ── DETAIL PAGE ── */
.detail-hero { background: linear-gradient(135deg, var(--primary), #1d4f80); color: #fff; padding: 2.5rem 0 3rem; }
.detail-card { border: 1.5px solid var(--border); border-radius: 16px; padding: 1.4rem; background: #fff; }
.info-row { display: flex; align-items: flex-start; gap: .8rem; padding: .6rem 0; border-bottom: 1px dashed var(--border); }
.info-row:last-child { border-bottom: none; }
.info-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--light-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .9rem; color: var(--secondary); }
.amenity-tag { border: 1.5px solid var(--border); border-radius: 8px; padding: .35rem .75rem; font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.review-card { border: 1.5px solid var(--border); border-radius: 12px; padding: 1rem; margin-bottom: .8rem; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--light-bg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; color: var(--primary); }
.btn-book-cta { background: var(--accent); color: var(--primary); font-weight: 800; border: none; border-radius: 14px; padding: .9rem; font-size: 1.05rem; width: 100%; transition: all .2s; }
.btn-book-cta:hover { background: #e09410; transform: translateY(-2px); }
.btn-call { border: 2px solid var(--primary); color: var(--primary); font-weight: 700; border-radius: 14px; padding: .6rem; font-size: .9rem; width: 100%; background: none; transition: all .2s; }
.btn-call:hover { background: var(--primary); color: #fff; }
.sticky-cta { position: sticky; top: 75px; }

/* ── BOOKING FORM ── */
.booking-stepper { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 2rem; }
.step { display: flex; align-items: center; }
.step-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .88rem; transition: all .25s; }
.step-circle.done { background: var(--success); color: #fff; }
.step-circle.active { background: var(--accent); color: var(--primary); }
.step-circle.pending { background: var(--border); color: var(--muted); }
.step-label { font-size: .75rem; font-weight: 600; margin-top: .3rem; color: var(--muted); }
.step-label.active { color: var(--primary); }
.step-line { width: 60px; height: 2px; background: var(--border); }
.step-line.done { background: var(--success); }
.booking-card { border: 1.5px solid var(--border); border-radius: 18px; padding: 2rem; background: #fff; }
.trip-summary-box { background: var(--light-bg); border-radius: 12px; padding: 1.1rem; }

/* ── PROFILE PAGE ── */
.profile-sidebar { background: #fff; border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden; }
.profile-header-bg { background: linear-gradient(135deg, var(--primary), #1d4f80); padding: 2rem; text-align: center; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; color: var(--primary); margin: 0 auto 1rem; border: 3px solid rgba(255,255,255,.3); }
.profile-name { color: #fff; font-weight: 700; font-size: 1.1rem; }
.profile-email { color: rgba(255,255,255,.65); font-size: .83rem; }
.profile-nav-item { padding: .7rem 1.3rem; cursor: pointer; display: flex; align-items: center; gap: .7rem; font-weight: 500; font-size: .9rem; color: var(--text); transition: all .18s; border-left: 3px solid transparent; }
.profile-nav-item:hover, .profile-nav-item.active { background: var(--light-bg); color: var(--primary); border-left-color: var(--accent); }
.profile-nav-item i { width: 20px; text-align: center; }
.booking-history-card { border: 1.5px solid var(--border); border-radius: 14px; padding: 1.1rem; margin-bottom: 1rem; background: #fff; }
.status-badge-waiting { background: #FEF3C7; color: #B45309; border-radius: 6px; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; }
.status-badge-confirmed { background: #DCFCE7; color: #15803D; border-radius: 6px; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; }
.status-badge-done { background: var(--light-bg); color: var(--muted); border-radius: 6px; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; }

/* ── CARRIER PAGE ── */
.carrier-hero { background: linear-gradient(135deg, #0d2540, var(--primary)); padding: 2.5rem 0; color: #fff; }
.carrier-logo-lg { width: 80px; height: 80px; border-radius: 20px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.rating-bar-wrap { display: flex; align-items: center; gap: .7rem; margin-bottom: .4rem; }
.rating-bar { flex: 1; height: 8px; background: var(--border); border-radius: 10px; overflow: hidden; }
.rating-fill { height: 100%; background: var(--accent); border-radius: 10px; }

/* ── CONTENT/BLOG ── */
.blog-post-hero { background: linear-gradient(135deg, var(--primary), #1d4f80); padding: 3.5rem 0 2.5rem; color: #fff; }
.blog-post-body { max-width: 760px; margin: 0 auto; line-height: 1.85; font-size: 1.02rem; color: #2D3748; }
.blog-post-body h2 { font-size: 1.5rem; color: var(--primary); margin: 2rem 0 .8rem; }
.blog-post-body p { margin-bottom: 1rem; }

/* ── CONFIRMATION ── */
.confirm-icon { width: 90px; height: 90px; border-radius: 50%; background: #DCFCE7; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2.5rem; color: var(--success); animation: popIn .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── AUTH PAGES (đăng nhập, đăng ký, quên / đổi mật khẩu) ── */
@keyframes authSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.auth-page {
  flex: 1;
  padding: 2.5rem 1rem 3rem;
  background: linear-gradient(155deg, #0a1a2e 0%, var(--primary) 42%, #1d4f80 100%);
  position: relative;
  overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.auth-page-inner { position: relative; z-index: 1; max-width: 440px; margin: 0 auto; }
.auth-back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .86rem; font-weight: 600; color: rgba(255,255,255,.88);
  text-decoration: none; margin-bottom: 1.15rem;
}
.auth-back:hover { color: var(--accent); }
.auth-card {
  background: #fff;
  border-radius: 22px;
  padding: 2rem 1.85rem 2.2rem;
  box-shadow: 0 22px 50px rgba(0,0,0,.28);
  animation: authSlideUp .4s ease;
}
.auth-card-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem; font-weight: 900;
  color: var(--primary); text-align: center; margin-bottom: .15rem;
}
.auth-card-logo span { color: var(--accent); }
.auth-card-title {
  text-align: center; font-size: 1.28rem; font-weight: 800;
  color: var(--text); margin-bottom: .35rem;
}
.auth-card-sub {
  text-align: center; font-size: .87rem; color: var(--muted);
  margin-bottom: 1.4rem; line-height: 1.45;
}
.auth-input-group { position: relative; margin-bottom: 1rem; }
.auth-input-group .form-control { margin-bottom: 0; }
.auth-input-group .form-control { padding-right: 2.85rem; }
.auth-toggle-pw {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: var(--muted);
  padding: .4rem; cursor: pointer; line-height: 1; border-radius: 8px;
}
.auth-toggle-pw:hover { color: var(--primary); background: var(--light-bg); }
.auth-alt-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem; margin: -.15rem 0 1.1rem; font-size: .84rem;
}
.auth-alt-row a { color: var(--secondary); font-weight: 600; text-decoration: none; }
.auth-alt-row a:hover { text-decoration: underline; }
.auth-switch {
  text-align: center; margin-top: 1.35rem; font-size: .88rem; color: var(--muted);
}
.auth-switch a { color: var(--secondary); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-hint {
  font-size: .8rem; color: var(--muted); margin-top: -.35rem; margin-bottom: 1rem;
}
.auth-alert-done {
  background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46;
  border-radius: 12px; padding: .85rem 1rem; font-size: .88rem; margin-bottom: 1rem;
}
.auth-alert-done a { color: #047857; font-weight: 700; }

/* ── FOOTER ── */
footer { background: var(--primary); color: rgba(255,255,255,.8); padding: 3rem 0 1.5rem; }
footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: .9rem; letter-spacing: .3px; }
footer a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .87rem; display: block; margin-bottom: .4rem; transition: color .18s; }
footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; margin-top: 2rem; font-size: .82rem; color: rgba(255,255,255,.45); }
.social-btn { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); font-size: 1rem; transition: all .18s; margin-right: .4rem; cursor: pointer; }
.social-btn:hover { background: var(--accent); color: var(--primary); }

/* ── MISC ── */
.btn-primary-custom { background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: .55rem 1.4rem; font-weight: 700; font-size: .9rem; transition: all .2s; }
.btn-primary-custom:hover { background: #0d2540; color: #fff; }
.btn-accent { background: var(--accent); color: var(--primary); border: none; border-radius: 10px; padding: .55rem 1.4rem; font-weight: 700; font-size: .9rem; transition: all .2s; }
.btn-accent:hover { background: #e09410; }
.section-pad { padding: 4.5rem 0; }
.bg-light-custom { background: var(--light-bg); }
.rounded-xl { border-radius: 16px !important; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero-stat .num { font-size: 1.3rem; }
  .step-line { width: 35px; }
}
