/*
Theme Name: Dịch vụ du lịch Thịnh
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

.header,
.header-wrapper {
  position: fixed;
  background-color: #f7f4eb59 !important;
  width: 100%;
}

.header-wrapper.stuck {
  background-color: #f3efe3 !important;
}

.content-area {
  background-color: #f8f5ee !important;
}
.header-wrapper.stuck .button.primary {
  background-color: var(--fs-color-primary) !important;
}

.top-item i {
  color: var(--fs-color-primary);
}
.top-item {
  color: var(--fs-color-primary);
}

/* --- Style Blog Card --- */

/* chỉnh vị tri chấm phân trang */
.flickity-page-dots {
  bottom: 0px !important;
}
.custom-blog-card {
  box-shadow: 0 5px 15px #f7f4eb59;
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 3px; /* Bo góc cực nhẹ */
  overflow: hidden;
  border: 2px solid #e5e5e5;
  background-color: #fff;
}

/* Hiệu ứng khi rê chuột: Nổi lên và bóng đậm hơn */
.custom-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  border-color: #d1d1d1;
}

/* Phần ảnh */
.card-img img {
  width: 100%;
  height: 220px; /* Cố định chiều cao ảnh */
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.custom-blog-card:hover .card-img img {
  transform: scale(1.05); /* Zoom ảnh nhẹ khi hover */
}

/* Phần nội dung */
.card-body {
  padding: 25px 30px;
  text-align: left;
}

/* Ngày tháng */
.card-date {
  font-size: 0.75rem;
  font-weight: 800px; /* Chữ đậm */
  color: #5a5a5acf;
  text-transform: uppercase;
  letter-spacing: 1.5px; /* Giãn chữ ra giống mẫu */
  margin-bottom: 10px;
  display: block;
}

/* Tiêu đề */
.card-title {
  margin: 10px 0;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 800; /* Font dày giống mẫu */
}

.card-title a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.card-title a:hover {
  color: #446084; /* Đổi màu khi hover link */
}

/* Đoạn trích */
.card-excerpt {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Nút Read More */
.card-readmore {
  font-size: 0.85rem;
  color: #999; /* Màu xám nhạt */
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.card-readmore:hover {
  color: #000;
}

.card-readmore i {
  margin-left: 5px;
  font-size: 0.8em;
}
.newsletter-box input[type="email"] {
  text-align: center;
}
.newsletter-box input[type="submit"] {
  width: 100%; /* Full chiều rộng cho bằng ô email */
}

/* --- Style Brand Card  --- */

.brand-card {
  position: relative;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px; /* Bo góc nhẹ */
  overflow: hidden;
  height: 200px; /* Chiều cao cố định */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

/* Hiệu ứng khi rê chuột: Nổi lên và viền đậm hơn */
.brand-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: #aaa;
  transform: translateY(-3px);
}

/* Phần ảnh Logo */
.brand-img-wrap {
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-img-wrap img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  width: auto;
}

/* --- Style Custom Pagination (Phân trang) --- */
.custom-pagination {
  margin-top: 40px;
  text-align: center; /* Canh giữa màn hình */
}

.custom-pagination ul {
  display: inline-flex;
  gap: 10px; /* Khoảng cách giữa các nút */
}

.custom-pagination li a,
.custom-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #e1e1e1;
  border-radius: 4px;
  color: #333;
  transition: 0.3s;
}
/* Nút Hover hoặc Trang hiện tại */
.custom-pagination li a:hover,
.custom-pagination li span.current {
  background-color: #003d4b; /* Màu xanh ngọc (Primary Color) */
  color: #fff;
  border-color: #003d4b;
}
.custom-pagination li {
  list-style: none !important;
  margin: 0 !important;
}

/* --- HỘP FORM BOOKING (Đổ bóng & Viền) --- */
.car-booking-box {
  padding: 30px; /* Khoảng cách từ nội dung ra viền */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  background-color: #fff;
}

/* Tiêu đề Request for Booking */
.booking-header {
  font-size: 1.1rem;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
}

/* --- Style các ô nhập liệu --- */
.booking-field {
  margin-bottom: 15px;
}

.booking-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #444;
  display: block;
  margin-bottom: 5px;
}

/* --- CHIA CỘT (Ngày & Giờ nằm ngang) --- */
.booking-group {
  display: flex; /* Kích hoạt chế độ dàn hàng ngang */
  gap: 15px; /* Khoảng cách giữa 2 ô */
}

.booking-field.half {
  width: 50%; /* Mỗi ô chiếm một nửa */
  flex: 1;
}

.booking-submit input[type="submit"] {
  width: 100%;
  cursor: pointer;
  transition: all 0.3s;
}

/* --- Style Car Card (Landing Page) --- */
.clean-car-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  transition: 0.3s;
}

.clean-car-card:hover {
  border-color: #003d4b; /* Chỉ đổi màu viền khi hover cho nhẹ */
  transform: translateY(-3px);
}

/* Ảnh & Giá */
.car-img {
  position: relative;
  height: 200px; /* Chiều cao cố định cho ảnh đều */
  overflow: hidden;
}

.car-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-price {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 4px 10px;
  font-weight: bold;
  border-radius: 3px;
  font-size: 0.95rem;
}

/* Nội dung */
.car-body {
  padding: 15px;
}

.car-title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #333;
  font-weight: 700;
}

.car-meta {
  display: flex;
  gap: 15px;
  color: #777;
  font-size: 0.85rem;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f1f1;
}

.car-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.car-more {
  font-size: 0.8rem;
  font-weight: bold;
  color: #003d4b;
  text-transform: uppercase;
}

.search-bar-container {
  background: #fff;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08); /* Bóng mờ nhẹ */
  border: 1px solid #f0f0f0;
}

/* --- Style Thanh Tìm Kiếm (Car Search Bar) --- */

.car-search-wrapper {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  /* Đổ bóng nhẹ cho nổi lên */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  margin-bottom: 30px;
}

.car-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

/* Các ô chứa Select */
.cs-item {
  flex: 1; /* Chia đều chiều rộng */
  min-width: 200px; /* Chiều rộng tối thiểu để không bị bóp méo */
}

/* Style thẻ Select */
.cs-select {
  width: 100%;
  height: 45px;
  border: 1px solid #e1e1e1;
  padding: 0 15px;
  font-size: 0.95rem;
}

.cs-submit button {
  height: 45px;
  padding: 0 35px;
  width: 100%;
  background-color: #003d4b;
  transition: all 0.3s;
  color: #fff;
}

.cs-submit button:hover {
  background-color: #003d4b;
  transform: translateY(-2px);
  box-shadow: 0 0px 0 0 rgba(4, 219, 192, 0.3);
}

/* Bỏ padding của lightbox*/
.mfp-content .lightbox-by-id {
  padding: 0px !important;
}

/* --- Style Bảng Giá Xe  --- */
/* Bao ngoài */
.matrix-table-wrapper {
  background: #fff;
  padding: 15px;
  border: 1px solid #e1e1e1;
  border-radius: 5px;
}

/* Ô tìm kiếm */
.matrix-search-box {
  position: relative;
  margin-bottom: 15px;
  height: 45px;
}
.matrix-search-box input {
  position: absolute;
  width: 100%;
  height: 45px;
  line-height: 45px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding-left: 40px;
  border: 1px solid #446084; /* Viền màu xanh chủ đạo */
  border-radius: 3px;
  outline: none;
}
.matrix-search-box .icon-search {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #446084;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.table-scroll-container {
  overflow-x: auto; /* Cho phép cuộn ngang */
  overflow-y: auto;
  max-height: 70vh; /* Chiều cao tối đa trước khi cuộn dọc */
  border: 1px solid #446084;
}

/* BẢNG CHÍNH */
.matrix-table {
  width: 100%;
  border-collapse: collapse; /* Kẻ viền liền mạch */
  white-space: nowrap; /* Giữ nội dung trên 1 dòng */
  font-size: 0.95rem;
}

/* -- PHẦN HEADER (THEAD) -- */
.matrix-table thead th {
  background-color: #446084; /* MÀU NỀN CHỦ ĐẠO THEO YÊU CẦU */
  color: #fff;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid #446084; /* Viền header tối hơn nền chút */
  position: sticky;
  top: 0; /* Dính lên trên cùng khi cuộn */
  z-index: 10;
}

/* Cột giá làm nổi bật hơn chút */
.matrix-table thead th.highlight-th {
  font-size: 1.1em;
  background-color: #446084;
}
.matrix-table thead th small {
  display: block;
  font-weight: normal;
  font-size: 0.7em;
  opacity: 0.8;
}
.text-left {
  text-align: left !important;
}

/* -- PHẦN THÂN BẢNG (TBODY) -- */
.matrix-table tbody td {
  padding: 10px;
  border: 1px solid #ddd; /* Viền xám nhạt giữa các ô */
  text-align: center;
  color: #333;
}

/* Cột đầu tiên dính lại bên trái (Sticky Column) */
.matrix-table .sticky-col-header {
  left: 0;
  z-index: 12; /* Nằm trên các ô khác */
}

.matrix-table tbody .sticky-col-name {
  position: sticky;
  left: 0;
  background-color: #fff; /* Phải có nền trắng để che nội dung trượt qua */
  z-index: 5;
  text-align: left;
  font-weight: 700;
  color: #446084; /* Tên xe màu xanh chủ đạo */
  border-right: 2px solid #d1d1d1; /* Viền phải đậm hơn để ngăn cách */
}

/* Ô chứa giá tiền */
.price-cell {
  font-weight: 800;
  color: #d26e4b; /* Màu cam đất cho giá nổi bật, hoặc đổi thành #446084 nếu thích */
  background-color: #f9fcfd; /* Nền hơi xanh nhẹ */
  font-size: 1.05em;
}
/* --- Style Bảng Thông Số (Car Specs) [Optimized] --- */
.car-specs-box {
  background: #fff;
  padding: 25px;
  margin-top: 30px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.car-specs-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #446084;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f1f1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.car-specs-box table {
  width: 100%;
  margin-bottom: 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 4px;
}
.car-specs-box table td {
  padding: 12px 15px;
  vertical-align: middle;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  color: #555;
}
/* Cột tiêu đề (Label) & Giá trị (Value) */
.car-specs-box table td:first-child {
  width: 35% !important;
  font-weight: 600;
  color: #333;
  background-color: #fafafa;
  border-right: 1px solid #eee;
}
.car-specs-box table td:last-child {
  font-weight: 500;
  color: #111;
}
/* Hiệu ứng Zebra */
.car-specs-box table tr:nth-child(even) td {
  background-color: #fff;
}
.car-specs-box table tr:nth-child(odd) td {
  background-color: #fdfdfd;
}
.car-specs-box table tr:last-child td {
  border-bottom: none;
}

/* Custom CSS Tablet */
@media (max-width: 849px) {
  .is-full-height {
    height: 0px !important;
  }

  .banner h3 {
    font-size: 2.5rem;
  }
}

/* Custom CSS Mobile */
@media (max-width: 549px) {
  .cs-submit {
    width: 100%;
  }

  .is-full-height {
    height: 0vh !important;
  }

  .banner h3 {
    font-size: 1.3rem;
  }
}
