/*!**************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./src/app/(frontend)/style.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************/
/* TRIỆT TIÊU DARK MODE VÀ ÉP NỀN TRẮNG TOÀN TRANG */
html,
body {
  background-color: #ffffff !important;
  color: #333333 !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  /* Chống tràn ngang trên mobile */
  overflow-x: hidden;
}

/* ĐẢM BẢO WRAPPER PHỦ KÍN MÀN HÌNH */
.page-wrapper {
  background-color: #ffffff !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* HEADER: THÊM KHOẢNG CÁCH CHO TAI THỎ (NOTCH) */
.main-header {
  background-color: #d32f2f;
  color: #ffffff;
  width: 100%;
  /* env(safe-area-inset-top) sẽ tự đẩy Header xuống dưới Tai thỏ */
  padding-top: calc(15px + env(safe-area-inset-top));
  padding-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 15px;
}

.header-title {
  padding-right: 80px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 0;
}

.header-title span {
  font-size: 0.75rem;
  font-weight: 400;
  display: block;
  margin-top: 4px;
  opacity: 0.9;
}

/* NỘI DUNG CONTENT CHÍNH */
.content-container {
  flex: 1 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px calc(15px + env(safe-area-inset-right)) 60px
    calc(15px + env(safe-area-inset-left));
  background-color: #ffffff !important;
  width: 100%;
  box-sizing: border-box;
}

/* FOOTER: THÊM KHOẢNG CÁCH CHO VẠCH HOME (HOME INDICATOR) */
.main-footer {
  position: relative;
  width: 100%;
  background-color: #1a1a1a;
  color: #e0e0e0;
  padding-top: 15px;
  /* env(safe-area-inset-bottom) đẩy footer lên trên vạch ngang dưới cùng */
  padding-bottom: calc(15px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.6;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

/* ===== TOPBAR ===== */
.topbar {
  background-color: #f5f5f5;
  color: #555;
  font-size: 0.8rem;
  padding: 8px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}
.topbar-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== MAIN MENU ===== */
.main-menu {
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}
.main-menu-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  padding: 0 15px;
  overflow-x: auto;
  white-space: nowrap;
}
.main-menu a {
  display: block;
  padding: 14px 20px;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}
.main-menu a:hover {
  color: #d32f2f;
  border-bottom: 2px solid #d32f2f;
}

/* ===== FOOTER GRID ===== */
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr; /* Tỉ lệ 50-25-25 */
  grid-gap: 30px;
  gap: 30px;
  padding: 20px 15px;
  text-align: left;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-col {
    grid-column: span 1 !important;
  }
}
.footer-col h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-col p, .footer-col a, .footer-col div {
  color: #bbb;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Đảm bảo mọi nội dung (hình ảnh, bảng, iframe...) trong footer không bị tràn cột */
.footer-col * {
  max-width: 100%;
}

.footer-col img,
.footer-col iframe {
  height: auto;
}

.footer-col table {
  display: block; /* Giúp bảng quá lớn có thể cuộn ngang */
  overflow-x: auto;
}

/* CARD TÀI SẢN (Giữ nguyên style của bạn) */
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}
.card-image {
  width: 100%;
  height: 210px;
  background: #fafafa;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-content {
  padding: 18px;
}
.card-price {
  color: #d32f2f;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: right;
  padding-top: 10px;
  border-top: 1px dashed #eee;
}
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  background: #fff5f5;
  color: #d32f2f;
  font-weight: 700;
  border: 1px solid #ffcdd2;
}

/* ===== CAROUSEL STYLES ===== */
.carousel-container,
.carousel-wrapper {
  width: 100%;
  padding: 20px 0;
  position: relative;
}

.carousel {
  display: flex;
  /* gap: 16px; */
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 20px;
  -webkit-overflow-scrolling: touch;
  /* Ẩn scrollbar */
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-slide-wrapper {
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: calc((100% - 32px) / 3);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  text-decoration: none;
  color: inherit;
  margin-left: 16px;
  margin-right: 16px;
}

.carousel-slide {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.slide-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  overflow: hidden;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-info {
  padding: 12px;
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slide-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.2;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 8px;
  gap: 8px;
  font-size: 0.8rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 0.7rem;
  color: #999;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: #333;
  font-weight: 500;
  word-wrap: break-word;
  line-height: 1.2;
}

.info-value.price {
  color: #d32f2f;
  font-weight: 700;
  font-size: 0.9rem;
}

@media (max-width: 1200px) {
  .carousel-slide-wrapper {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc((100% - 32px) / 3);
  }
}

@media (max-width: 1024px) {
  .carousel-slide-wrapper {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 768px) {
  .carousel-slide-wrapper {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(100% - 20px);
  }
}

@media (max-width: 600px) {
  .carousel-slide-wrapper {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: calc(100% - 20px);
  }
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  z-index: 10;
}

.carousel-nav:hover {
  transform: translateY(-50%) scale(1.03);
  background: #ffffff;
}

.carousel-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-nav-prev {
  left: 8px;
}

.carousel-nav-next {
  right: 8px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: transparent;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.carousel-dot.active {
  background: #d32f2f;
  border-color: #d32f2f;
}

