/* ===== Sân Bay Cam Ranh - giao diện công khai (mobile first) ===== */
:root {
  --brand: #00B14F;
  --brand-dark: #008f40;
  --ink: #222222;
  --accent: #FFC107;
  --bg: #ffffff;
  --bg-alt: #f4f8f5;
  --card: #ffffff;
  --line: #e3e9e5;
  --muted: #5f6b64;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .08);
}
html[data-bs-theme="dark"] {
  --ink: #eef2ef;
  --bg: #121614;
  --bg-alt: #181e1b;
  --card: #1d2420;
  --line: #37453e;
  --muted: #adbcb3;
  --shadow: 0 8px 30px rgba(0, 0, 0, .4);
  --bs-danger-rgb: 255, 177, 114;
  --bs-warning-rgb: 255, 214, 127;
  --bs-secondary-color: var(--muted);
}
[data-bs-theme="dark"] .table {
  --bs-table-color: var(--ink);
  --bs-table-bg: transparent;
  --bs-table-border-color: var(--line);
}
[data-bs-theme="dark"] :is(.form-control, .form-select) {
  background-color: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
[data-bs-theme="dark"] .form-control::placeholder { color: var(--muted); opacity: 1; }
[data-bs-theme="dark"] .alert-danger {
  --bs-alert-color: #ffbc91;
  --bs-alert-bg: #311e1a;
  --bs-alert-border-color: #bb7960;
}
[data-bs-theme="dark"] .alert-warning {
  --bs-alert-color: #ffdb85;
  --bs-alert-bg: #302616;
  --bs-alert-border-color: #a98338;
}
[data-bs-theme="dark"] .btn-outline-brand { color: #78e6a9; }
[data-bs-theme="dark"] .btn-outline-brand:hover { color: #10261a; }
html { scroll-behavior: smooth; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-dark); }
[data-bs-theme="dark"] a:not(.btn) { color: #78e6a9; }
.skip-link { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* buttons */
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; border-radius: 12px; padding-inline: 1.25rem; }
.btn-brand:hover, .btn-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-brand:disabled { background: var(--brand); opacity: .5; color: #fff; }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand-dark); border-radius: 10px; font-weight: 600; background: transparent; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.form-control, .form-select { border-radius: 12px; padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(0,177,79,.2); }
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .3rem; }

/* header */
.site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 1030; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; text-decoration: none; color: var(--ink) !important; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 1.1rem; }
.navbar .nav-link { font-weight: 500; color: var(--ink); }
.navbar .nav-link:hover { color: var(--brand); }
.navbar-toggler:focus { box-shadow: none; }

/* hero */
.hero { padding: 2.5rem 0 3rem; background: radial-gradient(1200px 500px at 85% -10%, rgba(0,177,79,.18), transparent 60%), linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero-title { font-size: clamp(1.9rem, 5.5vw, 3.2rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.hero-title span { color: var(--brand); }
.hero-sub { color: var(--muted); max-width: 34rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-weight: 600; font-size: .95rem; }
.quote-box { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.25rem; box-shadow: var(--shadow); }

/* sections */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-weight: 800; font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: 1.5rem; }
.service-card { display: flex; flex-direction: column; gap: .25rem; height: 100%; padding: 1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.service-card small { color: var(--muted); line-height: 1.35; }
.service-icon { font-size: 1.8rem; }
.feature, .post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; height: 100%; }
.post-card { display: block; text-decoration: none; color: var(--ink); }
.post-card:hover { border-color: var(--brand); }
.price-table { background: var(--card); border-radius: var(--radius); overflow: hidden; }
.price-table thead th { background: var(--ink); color: var(--bg); border: 0; }

/* Public layout */
.site-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.site-body > main { flex: 1 0 auto; min-width: 0; }
.site-header .navbar-brand { margin-inline-end: .5rem; flex: none; }
.site-header-actions { flex: none; gap: clamp(.25rem, 1vw, .5rem); }
.site-header-languages { gap: .25rem; }
.site-header .site-header-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding-inline: clamp(.35rem, 1.4vw, .75rem);
  white-space: nowrap;
}
.site-hotline { gap: .3rem; }
.site-hotline svg { flex: none; }
.site-menu-toggle { flex: none; margin-inline-start: .5rem; padding-inline: .5rem; min-height: 40px; }
.site-footer { background: var(--bg); color: var(--muted); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: .3rem 1.25rem; flex-wrap: wrap; padding-block: .55rem; }
.site-footer-brand { font-weight: 700; color: var(--ink); font-size: .9rem; }
.site-footer-links { display: flex; flex-wrap: wrap; column-gap: 1rem; font-size: .9rem; }
.site-footer a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--brand-dark); text-decoration: underline; }
.order-lookup { padding-block: clamp(1.5rem, 6vw, 4rem); }
.order-lookup-card { max-width: 34rem; margin-inline: auto; padding: clamp(1rem, 5vw, 2rem); box-shadow: var(--shadow); }
.order-lookup-hint { color: var(--muted); margin-bottom: 1.25rem; }
.order-lookup :is(input, button) { min-height: 46px; }
@media (max-width: 440px) {
  .site-header .navbar-brand { margin-inline-end: .35rem; gap: .3rem; font-size: 1rem; }
  .site-header .site-header-actions .btn { font-size: .8rem; }
  .site-header .site-hotline { min-width: 36px; }
  .site-hotline-label { display: none; }
  .site-menu-toggle { margin-inline-start: .35rem; padding-inline: .3rem; }
  .site-menu-toggle .navbar-toggler-icon { width: 1.25em; height: 1.25em; }
}
@media (max-width: 359px) {
  .site-header .brand-text { display: none; }
}
@media (max-width: 575px) {
  .site-footer-inner { flex-direction: column; align-items: flex-start; padding-top: .85rem; }
}
.fab-call { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1040; width: 54px; height: 54px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-size: 1.4rem; text-decoration: none; box-shadow: 0 6px 20px rgba(0,177,79,.5); }

/* content */
.prose { max-width: 46rem; line-height: 1.75; }
.prose h2, .prose h3 { margin-top: 1.5rem; font-weight: 700; }
.auth-card { max-width: 440px; margin: 2rem auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status-steps { display: flex; gap: .25rem; flex-wrap: wrap; }
.status-steps .step { flex: 1 1 90px; text-align: center; font-size: .75rem; padding: .5rem .25rem; border-radius: 10px; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.status-steps .step.done { background: var(--brand); color: #fff; border-color: var(--brand); }
.status-steps .step.now { border-color: var(--brand); color: var(--brand-dark); font-weight: 700; }
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.info-card dt { color: var(--muted); font-weight: 500; font-size: .8rem; }
.info-card dd { margin-bottom: .6rem; font-weight: 600; }
.track-map { height: 320px; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); border: 1px solid var(--line); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 1.8rem; color: #c9d2cc; cursor: pointer; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--accent); }
@media (min-width: 992px) { .hero { padding: 4.5rem 0 5rem; } .section { padding: 4.5rem 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== Bổ sung cho các trang công khai ===== */
.btn-primary-brand { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; border-radius: 12px; padding-inline: 1.25rem; }
.btn-primary-brand:hover, .btn-primary-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #222; font-weight: 700; border-radius: 10px; }
.card-brand, .quick-book { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.25rem; box-shadow: var(--shadow); }
.brand-text { font-size: 1.05rem; }
.hero-points li { white-space: nowrap; }
.route-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.route-row:hover { border-color: var(--brand); transform: translateY(-2px); }
.route-price { font-weight: 800; color: var(--brand-dark); white-space: nowrap; }
.why { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem .8rem; font-size: 2rem; height: 100%; }
.why h3 { margin-top: .4rem; }
.post-card { display: flex; flex-direction: column; gap: .35rem; }
.post-card img { width: 100%; height: auto; border-radius: 12px; aspect-ratio: 20 / 11; object-fit: cover; }
.post-card small { color: var(--muted); }
.success-icon { width: 72px; height: 72px; margin-inline: auto; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; color: #fff; background: var(--brand); }
.success-icon.bad { background: #e53935; }
.summary-list { display: grid; grid-template-columns: 110px 1fr; gap: .4rem .8rem; margin: 0; }
.summary-list dt { color: var(--muted); font-weight: 500; font-size: .85rem; }
.summary-list dd { margin: 0; font-weight: 600; word-break: break-word; }
.summary-list dd.total { font-size: 1.3rem; color: var(--brand-dark); }
.content { line-height: 1.75; }
.content h2, .content h3 { margin-top: 1.4rem; font-weight: 700; }
.content img { max-width: 100%; height: auto; border-radius: 12px; }
.quick-book .form-select { margin-bottom: 0; }

/* Five locale shortcuts fit beside booking and hotline on phone screens. */
html[lang="ru"] body { font-family: system-ui, "Segoe UI", Arial, sans-serif; }
html[lang="zh"] body { font-family: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
html[lang="ko"] body { font-family: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif; }
.site-header .navbar-nav .nav-link { overflow-wrap: break-word; }
@media (min-width: 1400px) {
  .site-header .navbar-nav .nav-link { font-size: .875rem; padding-inline: .35rem; }
}
@media (max-width: 480px) {
  .site-header .site-header-actions { gap: 3px; }
  .site-header .site-header-languages { gap: 2px; }
  .site-header .site-header-actions .btn { padding-inline: .3rem; font-size: .75rem; }
  .site-header .site-header-languages .btn { min-width: 27px; }
  .site-header .site-menu-toggle { margin-inline-start: .25rem; }
  .site-header .site-hotline { min-width: 32px; }
  .site-header .site-hotline-label { display: none; }
  .site-header .site-menu-toggle { padding-inline: .3rem; }
  .site-header .site-menu-toggle .navbar-toggler-icon { width: 1.25em; height: 1.25em; }
}
@media (max-width: 380px) {
  .site-header .brand-text { display: none; }
}
@media (max-width: 359px) {
  .site-header .navbar > .container { padding-inline: 7px; }
  .site-header .brand-mark { width: 29px; }
  .site-header .site-header-languages .btn { min-width: 25px; padding-inline: .22rem; }
  .site-header .site-menu-toggle { padding-inline: .25rem; }
}

.btn.sbc-hotline {
  --bs-btn-color: #087445;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #087445;
  --bs-btn-hover-color: #065235;
  --bs-btn-hover-bg: #f0fff7;
  --bs-btn-hover-border-color: #065235;
  --bs-btn-active-color: #065235;
  --bs-btn-active-bg: #e2f9eb;
  --bs-btn-active-border-color: #065235;
  --bs-btn-focus-shadow-rgb: 8, 116, 69;
}
.hotline-ring { display: inline-block; }
.sbc-hotline:is(.site-hotline) svg, .sbc-hotline .hotline-ring {
  transform-origin: 50% 75%;
}
@media (prefers-reduced-motion: no-preference) {
  .sbc-hotline:is(.site-hotline) svg, .sbc-hotline .hotline-ring {
    animation: sbc-phone-ring 3s ease-in-out infinite;
  }
}
@keyframes sbc-phone-ring {
  0%, 21%, 100% { transform: rotate(0); }
  4%, 12% { transform: rotate(12deg); }
  8%, 16% { transform: rotate(-12deg); }
}
.ride-tracking-title { font-size: clamp(1.7rem, 5.8vw, 2.4rem); font-weight: 800; }
.ride-tracking-button { font-weight: 800; font-size: clamp(1.2rem, 4.6vw, 1.45rem); }
.status-steps .step.now { background: #087445; border-color: #087445; color: #fff; font-weight: 700; }
.booking-summary #statusBadge { max-width: 48%; }
.transfer-panel canvas { display: block; width: min(100%, 280px); height: auto; margin: 1rem auto; }

@media (max-width: 345px) {
  .site-header .site-header-languages .btn { min-width: 22px; padding-inline: .17rem; }
  .site-header .site-header-actions { margin-inline-start: auto; }
}

.site-mobile-nav { display: none; }
@media (max-width: 767.98px) {
  .site-body {
    --mobile-nav-space: 0px;
  }
  .site-mobile-layout {
    --mobile-nav-space: calc(72px + env(safe-area-inset-bottom));
    padding-bottom: var(--mobile-nav-space);
  }
  .site-mobile-layout .site-mobile-nav {
    position: fixed;
    z-index: 1030;
    inset: auto auto 0 0;
    width: 100dvw;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .25rem;
    padding: .3rem max(.4rem, env(safe-area-inset-right)) calc(.3rem + env(safe-area-inset-bottom)) max(.4rem, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 -4px 18px rgba(13, 46, 25, .07);
  }
  .site-mobile-nav a {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: .22rem;
    min-height: 53px;
    padding: .3rem .18rem;
    border-radius: 10px;
    color: var(--muted);
    overflow-wrap: anywhere;
    text-align: center;
    text-decoration: none;
    font-size: .7rem;
    font-weight: 650;
    line-height: 1.18;
  }
  .site-mobile-nav a[aria-current="page"] {
    background: rgba(0, 177, 79, .12);
    color: var(--ink);
  }
  .site-mobile-layout .site-header {
    padding-top: env(safe-area-inset-top);
  }
  .site-mobile-layout .site-header .navbar > .container {
    padding-inline: max(.5rem, env(safe-area-inset-left)) max(.5rem, env(safe-area-inset-right));
  }
  .site-mobile-layout .site-header-actions {
    flex: 1 1 0;
    min-width: 0;
    justify-content: flex-end;
    gap: .16rem;
  }
  .site-mobile-layout .site-header-languages {
    gap: .14rem;
  }
  .site-mobile-layout .site-header .site-header-actions .btn {
    font-size: clamp(.66rem, 2.9vw, .83rem);
    min-height: 44px;
    padding-inline: clamp(.23rem, 1vw, .55rem);
  }
  .site-mobile-layout .site-header .site-book-now {
    min-width: 0;
    padding-inline: clamp(.28rem, 1.3vw, .75rem);
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.12;
  }
  .site-mobile-layout .site-header .site-hotline {
    flex: none;
    min-width: 30px;
  }
}
@media (max-width: 420px) {
  .site-mobile-layout .brand-text { display: none; }
  .site-mobile-layout .site-header .brand-mark {
    background: var(--brand) url("../img/icon.svg") center / cover no-repeat;
    font-size: 0;
  }
}
@media (max-width: 359px) {
  .site-mobile-layout .site-header .navbar > .container {
    row-gap: .3rem;
  }
  .site-mobile-layout .site-header .site-menu-toggle:not(.ride-menu-toggle) {
    margin-inline-start: .2rem;
  }
}
