@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #e30613;
  --primary-dark: #b8000a;
  --dark: #151515;
  --text: #333333;
  --muted: #666666;
  --light: #f7f7f7;
  --white: #ffffff;
  --border: #eeeeee;
  --shadow: 0 18px 45px rgba(21, 21, 21, .08);
  --shadow-hover: 0 22px 60px rgba(227, 6, 19, .16);
  --radius: 18px;
  --header-height: 76px;
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  background: var(--white);
  overflow-x: hidden;
}

body, button, input, textarea, select, .navbar, .btn, .form-control, .form-select {
  font-family: "Be Vietnam Pro", Arial, sans-serif;
}

img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 800; letter-spacing: 0; }
p { color: var(--muted); line-height: 1.75; }

.container {
  max-width: 1200px;
}

.site-main {
  flex: 1 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid rgba(227, 6, 19, .08);
  box-shadow: 0 10px 30px rgba(21, 21, 21, .06);
}

.site-header .navbar {
  min-height: var(--header-height);
  padding: 0;
  background: var(--white);
}

.site-nav {
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--primary) !important;
  font-size: 1rem;
  font-weight: 900;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.navbar-nav {
  gap: 4px;
}

.nav-link {
  color: var(--dark);
  font-size: .94rem;
  font-weight: 700;
  padding: .7rem .65rem !important;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
}

.nav-hotline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: .9rem;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(227, 6, 19, .22);
}

.nav-hotline:hover {
  color: var(--white);
  background: var(--primary-dark);
}

.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 96px 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 44%, rgba(255,255,255,.24) 100%),
    url('/images/destinations/hero-travel.jpg') center right / cover no-repeat;
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  margin: 12px 0 18px;
  color: var(--primary);
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: .98;
  font-weight: 900;
}

.hero .lead {
  max-width: 620px;
  margin: 0;
  color: #4f4f4f;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-note {
  max-width: 520px;
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.hero-note div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(227, 6, 19, .12);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}

.hero-note strong {
  display: block;
  color: var(--primary);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
}

.hero-note span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

.btn-red,
.btn-outline-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: .8rem 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.btn-red {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(227, 6, 19, .22);
}

.btn-red:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: var(--white);
}

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

.btn-outline-red:hover {
  background: var(--primary);
  color: var(--white);
}

.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--light);
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.section-title {
  margin: 0;
  color: var(--dark);
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
  line-height: 1.18;
  font-weight: 900;
}

.section-description {
  margin: 14px 0 0;
  color: var(--muted);
}

.section-link {
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.tour-card,
.service-card,
.news-card,
.gallery-card,
.testimonial,
.admin-card,
.consult-form {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.tour-card:hover,
.service-card:hover,
.news-card:hover,
.gallery-card:hover,
.destination-card:hover,
.testimonial:hover {
  transform: translateY(-6px);
  border-color: rgba(227, 6, 19, .18);
  box-shadow: var(--shadow-hover);
}

.tour-card img,
.news-card img,
.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: var(--light);
}

.tour-card img {
  transition: transform .35s ease;
}

.tour-card:hover img,
.news-card:hover img,
.gallery-card:hover img {
  transform: scale(1.04);
}

.card-body-pad,
.tour-card-body {
  padding: 24px;
}

.tour-card {
  display: flex;
  flex-direction: column;
}

.tour-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tour-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tour-card h5,
.news-card h5,
.service-card h5 {
  min-height: 52px;
  margin-bottom: 12px;
  color: var(--dark);
  font-size: 1.08rem;
  line-height: 1.45;
  font-weight: 800;
}

.tour-card p,
.news-card p,
.service-card p {
  color: var(--muted);
  font-size: .95rem;
}

.tour-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.price {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 900;
  white-space: nowrap;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .32rem .72rem;
  border-radius: 999px;
  background: #fff0f1;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
}

.service-card {
  padding: 28px;
}

.service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(227, 6, 19, .2);
}

.destination-card {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--dark);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.destination-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.destination-card:hover img {
  transform: scale(1.05);
}

.destination-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.76));
}

.destination-card > div {
  position: relative;
  z-index: 1;
  padding: 28px;
}

.destination-card h4 {
  margin: 0 0 8px;
  color: var(--white);
  font-weight: 900;
}

.destination-card p {
  margin: 0;
  color: rgba(255,255,255,.88);
}

.why-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}

.why-image {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.why-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.why-item {
  padding: 20px 20px 20px 24px;
  border-left: 4px solid var(--primary);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.why-item strong {
  color: var(--dark);
}

.testimonial {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.testimonial p {
  margin: 0;
  color: var(--text);
}

.testimonial strong {
  color: var(--dark);
}

.consult-section {
  background:
    linear-gradient(90deg, rgba(21,21,21,.86), rgba(21,21,21,.68)),
    url('/images/destinations/phu-quoc.jpg') center / cover no-repeat;
  color: var(--white);
}

.consult-section .section-title,
.consult-section .section-description {
  color: var(--white);
}

.consult-form {
  padding: 30px;
}

.consult-form .form-label {
  color: var(--dark);
  font-weight: 700;
}

.form-control,
.form-select {
  min-height: 48px;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  padding: .82rem 1rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(227, 6, 19, .45);
  box-shadow: 0 0 0 .2rem rgba(227, 6, 19, .08);
}

.page-hero {
  padding: 92px 0;
  background:
    linear-gradient(90deg, rgba(227,6,19,.96), rgba(184,0,10,.88)),
    url('/images/destinations/hero-travel.jpg') center / cover no-repeat;
  color: var(--white);
}

.page-hero h1 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.9);
}

.image-strip {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}

.image-strip img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-strip div {
  display: grid;
  gap: 18px;
}

.map-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.article-container {
  max-width: 860px;
}

.admin-login {
  max-width: 480px;
}

.admin-thumb {
  width: 90px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.admin-shell {
  min-height: 70vh;
  padding: 48px 0 88px;
  background: var(--light);
}

.admin-nav {
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-nav a {
  display: inline-block;
  margin: 6px;
  font-weight: 800;
}

.table {
  background: var(--white);
}

.footer {
  flex-shrink: 0;
  padding: 64px 0 26px;
  background: var(--dark);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, .85fr) minmax(0, .85fr);
  gap: 38px;
  align-items: start;
}

.footer-logo {
  width: 86px;
  height: 86px;
  margin-bottom: 18px;
  object-fit: contain;
  border-radius: 16px;
  background: var(--white);
}

.footer h5,
.footer h6 {
  color: var(--white);
  font-weight: 900;
}

.footer h5 {
  max-width: 430px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.footer h6 {
  margin-bottom: 18px;
  font-size: 1rem;
}

.footer p,
.footer li {
  color: rgba(255,255,255,.74);
  line-height: 1.7;
}

.footer-list,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-list span {
  display: block;
  color: rgba(255,255,255,.48);
  font-size: .82rem;
  font-weight: 700;
}

.footer-links a {
  color: rgba(255,255,255,.76);
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.56);
  font-size: .9rem;
}

.quick-actions {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 999;
  display: grid;
  gap: 12px;
}

.quick-action {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(227, 6, 19, .28);
}

.quick-action:hover {
  color: var(--white);
  background: var(--primary-dark);
  transform: translateY(-2px);
}

@media (max-width: 1199px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .site-header,
  .site-header .navbar,
  .site-nav {
    height: auto;
    min-height: var(--header-height);
  }

  .navbar-collapse {
    padding: 16px 0 20px;
    border-top: 1px solid var(--border);
    background: var(--white);
  }

  .navbar-nav {
    align-items: stretch !important;
    gap: 2px;
  }

  .nav-hotline {
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 86px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.8)),
      url('/images/destinations/hero-travel.jpg') center / cover no-repeat;
  }

  .card-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .brand span {
    font-size: .9rem;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .hero {
    padding: 124px 0 76px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-note,
  .card-grid,
  .service-grid,
  .footer-grid,
  .image-strip {
    grid-template-columns: 1fr;
  }

  .tour-card h5,
  .news-card h5,
  .service-card h5 {
    min-height: auto;
  }

  .destination-card {
    min-height: 300px;
  }

  .quick-actions {
    right: 16px;
    bottom: 18px;
    gap: 8px;
  }

  .quick-action {
    width: 48px;
    height: 48px;
  }

  .footer {
    padding-bottom: 92px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

.admin-body {
  background: #f3f4f6;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 22px;
  background: var(--dark);
  color: var(--white);
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--white);
  font-weight: 900;
}

.admin-logo:hover {
  color: var(--white);
}

.admin-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--white);
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  color: rgba(255,255,255,.78);
  font-weight: 700;
}

.admin-menu a:hover {
  background: rgba(227,6,19,.18);
  color: var(--white);
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 72px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(21,21,21,.04);
}

.admin-topbar span {
  display: block;
  color: var(--muted);
  font-size: .88rem;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-admin-logout,
.admin-action,
.admin-action-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
}

.btn-admin-logout,
.admin-action {
  background: var(--primary);
  color: var(--white);
}

.admin-action-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-content {
  padding: 30px;
}

.admin-page-head {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-page-head h1 {
  margin: 0;
  font-size: 1.8rem;
}

.admin-search {
  margin-bottom: 18px;
  display: flex;
  gap: 10px;
  max-width: 520px;
}

.admin-table-card,
.admin-form-card,
.stat-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-table-card {
  padding: 18px;
  overflow-x: auto;
}

.admin-form-card {
  padding: 24px;
}

.admin-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table th {
  color: var(--dark);
  font-size: .85rem;
  text-transform: uppercase;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-thumb {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 22px;
}

.stat-card span {
  color: var(--muted);
  font-size: .86rem;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
}

.status-pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: .8rem;
  font-weight: 800;
}

.status-pill.off {
  background: #f3f4f6;
  color: #6b7280;
}

.admin-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #fff, #fff1f1);
}

.admin-login-card {
  width: min(100%, 460px);
  padding: 30px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-login-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

@media (max-width: 1100px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .admin-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .admin-content,
  .admin-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .admin-menu,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-page-head,
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-search {
    flex-direction: column;
  }
}
