/* ===== RESET & ROOT ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #0EA5E9;
  --primary-dark: #0284C7;
  --primary-light: #E0F2FE;
  --secondary: #10B981;
  --accent: #F59E0B;
  --danger: #EF4444;
  --text-dark: #1E293B;
  --text-mid: #475569;
  --text-light: #94A3B8;
  --bg: #F0F9FF;
  --bg-white: #FFFFFF;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .14);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  box-shadow: var(--shadow-md);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: .25rem;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: .5rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-mid);
  letter-spacing: .05em;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-links a.active {
  border-bottom: 2px solid var(--primary);
  border-radius: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.btn-login {
  padding: .45rem 1.2rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 30px;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  background: transparent;
  transition: var(--transition);
}

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

/* ===== SECTION CONTROL ===== */
.section-page {
  display: none;
}

.section-page.active {
  display: block;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 45%, #7DD3FC 100%);
  padding: 3.5rem 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -100px;
  width: 350px;
  height: 350px;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: -80px;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, .06);
  border-radius: 50%;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 900;
  color: white;
  margin-bottom: .75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.hero-title span {
  color: #FCD34D;
}

.hero-sub {
  text-align: center;
  color: rgba(255, 255, 255, .85);
  font-size: .95rem;
  margin-bottom: 1.75rem;
}

/* ===== SEARCH BAR ===== */
.search-bar {
  background: white;
  border-radius: 60px;
  padding: .5rem .5rem .5rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin: 0 auto;
}

.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .6rem;
  border-right: 1px solid var(--border);
}

.search-field:last-of-type {
  border-right: none;
}

.search-field input:not([type="date"]),
.search-field select {
  border: none;
  outline: none;
  font-size: .9rem;
  color: var(--text-dark);
  background: transparent;
  flex: 1;
  font-family: inherit;
  width: 100%;
  min-width: 0;
}

/* ===== DATE PICKER CROSS-BROWSER FIX ===== */
.search-field input[type="date"] {
  min-width: 120px;
  text-transform: uppercase;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: .9rem;
  color: var(--text-dark);
}

/* Hide default native placeholder/empty formatting */
.search-field input[type="date"]:invalid::-webkit-datetime-edit {
  color: transparent;
}

.search-field select {
  cursor: pointer;
}

.search-field .icon {
  color: var(--text-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.btn-search {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 40px;
  padding: .75rem 2rem;
  font-weight: 800;
  font-size: .92rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(14, 165, 233, .5);
  font-family: inherit;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(14, 165, 233, .6);
}

.btn-search:active {
  transform: translateY(0);
}

/* ===== EMPTY HOME STATE ===== */
.empty-home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  padding: 3rem 2rem;
}

.empty-home-inner {
  text-align: center;
  max-width: 520px;
}

.empty-home-icon {
  font-size: 5rem;
  margin-bottom: 1.25rem;
}

.empty-home-inner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .75rem;
}

.empty-home-inner p {
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.quick-dests {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.quick-dest-label {
  font-size: .82rem;
  color: var(--text-light);
  font-weight: 600;
}

.quick-dest-btn {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text-dark);
  border-radius: 25px;
  padding: .45rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.quick-dest-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* ===== SEARCH RESULTS INFO ===== */
.search-results-info {
  background: var(--primary-light);
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: .7rem 1.1rem;
  font-size: .875rem;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clear-search {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: underline;
  font-family: inherit;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.badge-new {
  background: var(--secondary);
  color: white;
  font-size: .65rem;
  font-weight: 700;
  padding: .15rem .4rem;
  border-radius: 6px;
}

/* ===== TOUR GRID ===== */
.tour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

/* ===== TOUR CARD ===== */
.tour-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  cursor: pointer;
}

.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tour-card-img-wrap {
  position: relative;
  height: 190px;
  overflow: hidden;
}

.tour-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

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

.tour-type-badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  background: rgba(0, 0, 0, .55);
  color: white;
  font-size: .7rem;
  font-weight: 700;
  padding: .22rem .6rem;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

.tour-card-body {
  padding: 1.1rem;
}

.tour-card-provider {
  font-size: .72rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .2rem;
}

.tour-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .55rem;
  line-height: 1.4;
}

.tour-card-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--text-mid);
  margin-bottom: .35rem;
}

.star-rating {
  color: var(--accent);
}

.rating-count {
  color: var(--text-light);
  font-size: .75rem;
}

.tour-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: .8rem;
  margin-top: .4rem;
}

.tour-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.tour-price-sub {
  font-size: .72rem;
  color: var(--text-light);
  font-weight: 400;
}

.btn-detail {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  border-radius: 20px;
  padding: .42rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

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

/* ===== COMPARE SECTION ===== */
.compare-section {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border-top: 3px solid var(--primary);
}

/* ===== COMPARE SELECTORS ===== */
.compare-selectors {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.compare-selector-group {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1;
  min-width: 0;
}

.compare-selector-label {
  font-size: .8rem;
  font-weight: 700;
  color: white;
  background: var(--primary);
  border-radius: 20px;
  padding: .3rem .8rem;
  white-space: nowrap;
}

.compare-selector-label.b {
  background: var(--secondary);
}

.compare-selector {
  flex: 1;
  padding: .55rem .9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-family: inherit;
  color: var(--text-dark);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  min-width: 0;
  max-width: 100%;
}

.compare-selector:focus {
  border-color: var(--primary);
}

/* ===== COMPARE TABLE ===== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: .9rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  color: var(--text-mid);
  font-weight: 600;
  width: 180px;
  background: #fafbfc;
}

.compare-table thead th {
  font-weight: 800;
  background: var(--primary);
  color: white;
  font-size: .85rem;
}

.compare-table thead th:first-child {
  background: var(--text-dark);
  color: white;
}

.compare-table thead th.col-b {
  background: var(--secondary);
}

.compare-table tbody tr:hover {
  background: var(--bg);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table img {
  width: 110px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.criterion-icon {
  margin-right: .35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  padding: .22rem .65rem;
  font-size: .75rem;
  font-weight: 600;
}

.chip.green {
  background: #D1FAE5;
  color: #065F46;
}

.price-cell {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.price-cell.cheaper {
  color: var(--secondary);
  position: relative;
}

.price-cell.cheaper::after {
  content: '✅ Rẻ hơn';
  display: block;
  font-size: .68rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: .15rem;
}

.btn-book {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 30px;
  padding: .55rem 1.4rem;
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-book:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 165, 233, .45);
}

/* ===== REVIEWS ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.review-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--primary);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.review-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
}

.review-name {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-dark);
}

.review-sub {
  font-size: .72rem;
  color: var(--text-light);
}

.review-stars {
  color: var(--accent);
  font-size: .8rem;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  color: var(--secondary);
  font-size: .7rem;
  font-weight: 600;
}

.review-text {
  font-size: .83rem;
  color: var(--text-mid);
  line-height: 1.5;
  margin-top: .4rem;
}

/* ===== DESTINATIONS ===== */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.dest-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 155px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.dest-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.dest-card:hover img {
  transform: scale(1.08);
}

.dest-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .65) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: .75rem;
}

.dest-name {
  color: white;
  font-weight: 800;
  font-size: 1rem;
}

.dest-count {
  color: rgba(255, 255, 255, .8);
  font-size: .75rem;
}

/* ===== COMBO ===== */
.combo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.combo-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
}

.combo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.combo-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
}

.combo-card-body {
  padding: .9rem;
  flex: 1;
}

.combo-card-title {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .3rem;
  line-height: 1.3;
}

.combo-card-sub {
  font-size: .75rem;
  color: var(--text-light);
  margin-bottom: .5rem;
}

.combo-card-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.combo-card-save {
  display: inline-block;
  background: #FEF3C7;
  color: #92400E;
  font-size: .68rem;
  font-weight: 700;
  padding: .15rem .4rem;
  border-radius: 4px;
  margin-left: .4rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
  grid-column: 1/-1;
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: .4rem;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: white;
  border-radius: var(--radius);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform .25s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.modal-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.modal-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
}

.modal-provider {
  color: rgba(255, 255, 255, .8);
  font-size: .82rem;
  margin-top: .2rem;
}

.modal-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: rgba(255, 255, 255, .9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: white;
  transform: scale(1.05);
}

.modal-body {
  padding: 1.5rem;
}

.modal-section-title {
  font-size: .83rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 1rem 0 .6rem;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-mid);
}

.info-item span {
  font-weight: 600;
  color: var(--text-dark);
}

.itinerary-list {
  list-style: none;
}

.itinerary-list li {
  display: flex;
  gap: .75rem;
  padding: .55rem 0;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.itinerary-list li:last-child {
  border-bottom: none;
}

.day-badge {
  background: var(--primary);
  color: white;
  border-radius: 6px;
  padding: .12rem .5rem;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  height: fit-content;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .25rem .7rem;
  font-size: .8rem;
  color: var(--text-mid);
}

.tag.include {
  background: #D1FAE5;
  border-color: #6EE7B7;
  color: #065F46;
}

.tag.exclude {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #991B1B;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.modal-price-sub {
  font-size: .78rem;
  color: var(--text-light);
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1500;
}

.chat-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(14, 165, 233, .5);
  transition: var(--transition);
  animation: chatPulse 2.5s infinite;
}

.chat-btn:hover {
  transform: scale(1.08);
}

@keyframes chatPulse {

  0%,
  100% {
    box-shadow: 0 6px 20px rgba(14, 165, 233, .5);
  }

  50% {
    box-shadow: 0 6px 32px rgba(14, 165, 233, .8);
  }
}

.chat-bubble {
  position: absolute;
  bottom: 68px;
  right: 0;
  background: white;
  border-radius: var(--radius) var(--radius) 0 var(--radius);
  padding: .65rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  color: var(--text-dark);
}

.chat-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 12px;
  border: 8px solid transparent;
  border-top-color: white;
  border-bottom: none;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
}

.toast {
  background: var(--text-dark);
  color: white;
  padding: .6rem 1.25rem;
  border-radius: 30px;
  font-size: .83rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  animation: slideUp .3s ease, fadeOut .3s ease 2.3s forwards;
}

.toast.success {
  background: var(--secondary);
}

.toast.error {
  background: var(--danger);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
    pointer-events: none;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, .8);
  padding: 2.5rem 2rem 1rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: .75rem;
}

.footer-desc {
  font-size: .83rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .6);
}

.footer-col h4 {
  color: white;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: .4rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  font-size: .82rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .78rem;
  color: rgba(255, 255, 255, .4);
  text-align: center;
}

/* ===== GUIDEBOOK – Vinpearl magazine style ===== */
.guide-category-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.guide-cat-btn {
  padding: .4rem 1rem;
  border-radius: 25px;
  border: 1.5px solid var(--border);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  background: white;
  color: var(--text-mid);
  transition: var(--transition);
  font-family: inherit;
}

.guide-cat-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.guide-cat-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Featured hero */
.guide-featured {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 420px;
  cursor: pointer;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.guide-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.guide-featured:hover img {
  transform: scale(1.03);
}

.guide-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .78) 40%, rgba(0, 0, 0, .1) 75%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.guide-featured-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  padding: .28rem .85rem;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .65rem;
  width: fit-content;
}

.guide-featured-title {
  color: white;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: .5rem;
  max-width: 680px;
}

.guide-featured-meta {
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
}

.guide-featured-excerpt {
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  margin-top: .5rem;
  max-width: 600px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article card grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

.guide-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.guide-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}

.guide-card:hover .guide-card-img {
  transform: scale(1.04);
}

.guide-card-img-wrap {
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.guide-card-badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  padding: .2rem .6rem;
  font-size: .7rem;
  font-weight: 700;
}

.guide-card-body {
  padding: 1.1rem 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide-card-meta {
  font-size: .73rem;
  color: var(--text-light);
  margin-bottom: .45rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.guide-card-meta-dot {
  width: 3px;
  height: 3px;
  background: var(--text-light);
  border-radius: 50%;
}

.guide-card-title {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: .5rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card-excerpt {
  font-size: .82rem;
  color: var(--text-mid);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .85rem;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: .75rem;
  margin-top: auto;
}

.guide-card-author {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.guide-card-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .65rem;
  font-weight: 800;
}

.guide-card-author-name {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-mid);
}

.guide-read-time {
  font-size: .73rem;
  color: var(--text-light);
}

/* ===== PARTNER PAGE ===== */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.partner-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.partner-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.partner-input {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-family: inherit;
  outline: none;
  margin-bottom: .65rem;
  transition: var(--transition);
}

.partner-input:focus {
  border-color: var(--primary);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-label {
  font-size: .8rem;
  color: var(--text-mid);
  margin-top: .2rem;
}

.btn-compare {
  background: linear-gradient(135deg, var(--secondary), #059669);
  color: white;
  border: none;
  border-radius: 30px;
  padding: .6rem 1.5rem;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  width: 100%;
}

.btn-compare:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, .45);
}

/* ===== LOGIN MODAL ===== */
.login-modal {
  max-width: 520px;
  position: relative;
  padding: 0;
}

.login-header {
  text-align: center;
  padding: 2rem 2rem 1rem;
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1rem;
}

.login-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: .35rem;
}

.login-sub {
  font-size: .88rem;
  color: var(--text-mid);
}

.login-roles {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 0 1.75rem 1.75rem;
}

.role-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  text-align: left;
  transition: all .2s ease;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-family: inherit;
  position: relative;
}

.role-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(14, 165, 233, .15);
  transform: translateY(-2px);
}

.role-card.business:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.role-card.customer:hover {
  border-color: var(--secondary);
  background: #D1FAE5;
}

.role-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.role-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .25rem;
}

.role-desc {
  font-size: .82rem;
  color: var(--text-mid);
  line-height: 1.45;
}

.role-arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--text-light);
  transition: var(--transition);
}

.role-card:hover .role-arrow {
  color: var(--primary);
  transform: translateY(-50%) translateX(3px);
}

.login-back {
  background: none;
  border: none;
  color: var(--text-mid);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.login-back:hover {
  color: var(--primary);
}

.login-tabs {
  display: flex;
  margin: 0 1.75rem;
  border-bottom: 2px solid var(--border);
  gap: 0;
}

.login-tab {
  flex: 1;
  background: none;
  border: none;
  padding: .75rem;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-mid);
  font-family: inherit;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.login-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.login-form {
  padding: 1.25rem 1.75rem 1.75rem;
}

.login-field {
  margin-bottom: 1rem;
}

.login-field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .4rem;
}

.login-input {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  background: white;
  color: var(--text-dark);
}

.login-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .12);
}

.pw-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.btn-login-submit {
  width: 100%;
  padding: .8rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(14, 165, 233, .4);
}

.btn-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, .5);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 1.1rem 0;
  color: var(--text-light);
  font-size: .82rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-social {
  width: 100%;
  padding: .7rem;
  border: 1.5px solid var(--border);
  background: white;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  transition: var(--transition);
  margin-bottom: .6rem;
}

.btn-social:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.btn-social.google span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4285F4;
  color: white;
  font-size: .72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-social.facebook span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1877F2;
  color: white;
  font-size: .78rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== GUIDEBOOK DETAIL ===== */
.guide-back-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text-mid);
  border-radius: 30px;
  padding: .45rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  margin-bottom: 1.5rem;
}

.guide-back-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.guide-detail-hero {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 400px;
  margin-bottom: 2rem;
}

.guide-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .78) 35%, transparent 70%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}

.guide-detail-category {
  display: inline-block;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  padding: .28rem .85rem;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .65rem;
}

.guide-detail-title {
  color: white;
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: .5rem;
}

.guide-detail-subtitle {
  color: rgba(255, 255, 255, .8);
  font-size: .95rem;
  margin-bottom: .5rem;
}

.guide-detail-meta {
  color: rgba(255, 255, 255, .65);
  font-size: .82rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Layout: article + sidebar */
.guide-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 900px) {
  .guide-detail-layout {
    grid-template-columns: 1fr;
  }
}

.guide-article {
  background: white;
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.guide-article-intro {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  border-left: 3px solid var(--primary);
  padding-left: 1.1rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.guide-article-section {
  margin-bottom: 2rem;
}

.guide-article-section h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--primary-light);
}

.guide-article-section p {
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* Sidebar */
.guide-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-sidebar-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}

.guide-sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.guide-sidebar-img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.guide-sidebar-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: .25rem;
}

.guide-sidebar-meta {
  font-size: .72rem;
  color: var(--text-light);
}

.guide-sidebar-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
  display: block;
}

.guide-related {
  margin-top: 2rem;
}

/* ===== MOBILE MENU BTN ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--primary);
  cursor: pointer;
  padding: .25rem;
  font-family: inherit;
  line-height: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 1rem 1.5rem;
  }

  .hero-title {
    font-size: 1.4rem;
    line-height: 1.35;
  }

  .hero-sub {
    font-size: .88rem;
  }

  .navbar {
    padding: 0 1rem;
  }

  .nav-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    height: auto;
    padding: .65rem 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
    margin-top: .65rem;
    text-align: center;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: .75rem 0;
    border-bottom: 1px solid transparent;
    width: 100%;
    display: block;
    border-radius: 0;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-bottom: 1px solid var(--primary);
    background: var(--bg);
  }

  .search-bar {
    flex-direction: column;
    border-radius: var(--radius) var(--radius) var(--radius-sm) var(--radius-sm);
    padding: 1rem;
    margin-top: 1.5rem;
  }

  .search-field {
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
    padding: .7rem 0;
  }

  .search-field:last-of-type {
    border-bottom: none;
  }

  .btn-search {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-top: .5rem;
    padding: 1rem;
  }

  .main-content {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }

  .tour-grid,
  .combo-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .destinations-grid {
    grid-template-columns: 1fr 1fr;
  }

  .compare-section {
    padding: 1.25rem;
  }

  .compare-selectors {
    flex-direction: column;
    gap: .75rem;
    width: 100%;
    overflow: hidden;
  }

  .compare-selector-group {
    width: 100%;
    max-width: 100%;
  }

  .compare-selector {
    width: auto;
    max-width: calc(100vw - 6rem);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  /* Make compare table scrollable horizontally */
  #compareTableWrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1rem;
    padding-bottom: .5rem;
  }

  .compare-table {
    display: block;
    white-space: nowrap;
  }

  .compare-table th,
  .compare-table td {
    padding: .7rem;
    font-size: .82rem;
  }

  .compare-table th:first-child,
  .compare-table td:first-child {
    width: 130px;
    position: sticky;
    left: 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, .05);
    z-index: 2;
  }

  .compare-table tbody td:first-child {
    background: #fafbfc;
  }

  .compare-table thead th:first-child {
    background: var(--text-dark);
    color: white;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    max-height: 90vh;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-header {
    height: 160px;
  }

  .modal-title {
    font-size: 1.15rem;
  }

  .modal-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1rem;
  }

  .btn-book {
    width: 100%;
  }

  .guide-detail-hero {
    height: 260px;
  }

  .guide-detail-title {
    font-size: 1.45rem;
  }

  .guide-article {
    padding: 1.5rem;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .login-roles {
    padding: 0 1rem 1.25rem;
  }

  .role-card {
    padding: 1.25rem 1rem;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .role-arrow {
    display: none;
  }

  .login-form {
    padding: 1rem;
  }

  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-bubble {
    display: none;
  }

  .chat-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}