/*
  Bảng lọc nhanh "Thuê xe tự lái tại Asia Auto" (ProductFilterPanelViewComponent - Catalog/Views/Shared/Components/ProductFilterPanel).
  - Desktop (>= 1024px): khung trắng: tiêu đề + huy hiệu; dải nền nhạt chia cột theo nhóm, lựa chọn là chip nhỏ tự xuống dòng.
  - < 1024px: ẩn dải nhóm, hiện thanh "Bộ lọc (n)" mở ngăn kéo .fp-drawer (portal-component của template).
  Tiền tố .fp- để không phụ thuộc lớp tiện ích của theme. 1rem = 10px (html { font-size: 62.5% }).
*/
.fp, .fp-drawer {
  --fp-orange: #F26522;
  --fp-orange-dark: #D9501A;
  --fp-orange-soft: #EEF3FB;
  --fp-orange-line: #CFDCF0;
  --fp-teal: #0B2D66;
  --fp-teal-soft: #EEF3FB;
  --fp-navy: #0B2D66;
  --fp-text: #1b2433;
  --fp-muted: #5f6b7a;
  --fp-line: #e6eaf0;
  --fp-light: #f7f8fa;
}
.fp { margin: 0 0 2rem; color: var(--fp-text); }
.fp a { text-decoration: none; color: inherit; }
.fp .menu-icon, .fp-drawer .menu-icon { display: block; width: 100%; height: 100%; }
.fp img.menu-icon { object-fit: contain; }

.fp__card {
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: 1.6rem;
  padding: 2rem 2.4rem;
  box-shadow: 0 .8rem 2.4rem rgba(11, 45, 102, .05);
}

/* ===== Tiêu đề + huy hiệu ===== */
.fp__head { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.fp__heading { min-width: 0; }
.fp__title {
  margin: 0;
  font-size: clamp(2rem, 2.2vw, 2.8rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--fp-navy);
  letter-spacing: -.01em;
}
.fp__accent { color: var(--fp-orange); }
.fp__subtitle { margin: .6rem 0 0; color: var(--fp-muted); font-size: 1.4rem; line-height: 1.5; }

.fp__badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 34rem;
  padding: .9rem 1.4rem;
  border-radius: 1.2rem;
  background: var(--fp-orange-soft);
  border: 1px solid var(--fp-orange-line);
  transition: box-shadow .2s, transform .2s;
}
a.fp__badge:hover { box-shadow: 0 .6rem 1.6rem rgba(242, 101, 34, .18); transform: translateY(-1px); }
.fp__badge-icon {
  flex: 0 0 3.6rem; width: 3.6rem; height: 3.6rem; padding: .8rem;
  border-radius: 50%; background: #fff; color: var(--fp-orange);
}
.fp__badge-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.fp__badge-text b { color: var(--fp-orange-dark); font-size: 1.4rem; font-weight: 800; }
.fp__badge-text small { color: var(--fp-muted); font-size: 1.2rem; }
.fp__badge-arrow { flex: 0 0 1.6rem; width: 1.6rem; height: 1.6rem; color: var(--fp-orange); }

/* ===== Nhóm + chip lựa chọn ===== */
.fp__groups {
  display: grid;
  grid-template-columns: repeat(var(--fp-cols, 4), minmax(0, 1fr));
  margin-top: 1.8rem;
  background: var(--fp-light);
  border-radius: 1.2rem;
  padding: 1.6rem 0;
}
.fp__group { padding: 0 1.6rem; min-width: 0; }
.fp__groups .fp__group + .fp__group { border-left: 1px solid var(--fp-line); }

.fp__group-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.fp__group-icon { flex: 0 0 2.2rem; width: 2.2rem; height: 2.2rem; color: var(--fp-orange); }
.fp__group-name { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--fp-navy); line-height: 1.3; }

.fp__opts { display: flex; flex-wrap: wrap; gap: .6rem; }
.fp__opt {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  max-width: 100%;
  padding: .6rem 1.1rem .6rem .8rem;
  background: #fff;
  border: 1px solid var(--fp-line);
  border-radius: 99rem;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--fp-text);
  transition: border-color .2s, color .2s, background-color .2s;
}
.fp__opt:hover { border-color: var(--fp-orange); color: var(--fp-orange-dark); }
.fp__opt.is-active { border-color: var(--fp-orange); background: var(--fp-orange-soft); color: var(--fp-orange-dark); font-weight: 600; }
.fp__opt-icon { flex: 0 0 1.6rem; width: 1.6rem; height: 1.6rem; color: var(--fp-orange); }
.fp__opt--teal .fp__opt-icon { color: var(--fp-teal); }
.fp__opt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Thanh "Bộ lọc" (mobile / tablet) ===== */
.fp__toolbar { display: none; }
.fp__open {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .9rem 1.6rem;
  border: 1px solid var(--fp-navy); border-radius: 99rem;
  background: #fff; color: var(--fp-navy);
  font-size: 1.4rem; font-weight: 600; line-height: 1.3; cursor: pointer;
}
.fp__open-icon { width: 1.8rem; height: 1.8rem; }
.fp__count {
  min-width: 2rem; height: 2rem; padding: 0 .5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 99rem; background: var(--fp-orange); color: #fff; font-size: 1.2rem;
}
.fp__clear { font-size: 1.4rem; color: var(--fp-muted); text-decoration: underline !important; }

/* ===== Ngăn kéo lọc ===== */
.fp-drawer__inner { display: flex; flex-direction: column; width: 100%; max-width: var(--dialog-max-width, 42rem); margin-right: auto; }
.fp-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 1.6rem 1.4rem; border-bottom: 1px solid var(--fp-line);
  font-size: 1.8rem; color: var(--fp-navy);
}
.fp-drawer__close { width: 3.6rem; height: 3.6rem; padding: .8rem; border: 0; border-radius: 50%; background: var(--fp-light); color: var(--fp-navy); cursor: pointer; }
.fp-drawer__body { flex: 1 1 auto; overflow-y: auto; margin: 0; padding: .4rem 1.6rem 1.6rem; }
.fp-drawer__body .fp__group { padding: 1.6rem 0; }
.fp-drawer__body .fp__group + .fp__group { border-top: 1px solid var(--fp-line); }
.fp-drawer__body .fp__opt { font-size: 1.4rem; padding: .8rem 1.3rem .8rem 1rem; }
.fp-drawer__foot {
  display: flex; gap: 1rem; padding: 1.2rem 1.6rem calc(1.2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--fp-line); background: #fff;
}
.fp-drawer__foot .btn { flex: 1 1 0; justify-content: center; text-align: center; }
.fp-drawer__reset { border: 1px solid var(--fp-line); background: #fff; color: var(--fp-text); }

/* ===== Laptop nhỏ: lựa chọn nhỏ hơn ===== */
@media (max-width: 1279px) {
  .fp__card { padding: 1.8rem 2rem; }
  .fp__group { padding: 0 1.2rem; }
  .fp__opt { font-size: 1.25rem; padding: .5rem 1rem .5rem .7rem; }
}

/* ===== < 1024px: nhóm chuyển vào ngăn kéo ===== */
@media (max-width: 1023px) {
  .fp__groups { display: none; }
  .fp__toolbar { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.4rem; }
  .fp__head { flex-direction: column; align-items: stretch; gap: 1.2rem; }
  .fp__badge { max-width: none; }
}

@media (max-width: 575px) {
  .fp { margin-bottom: 1.4rem; }
  .fp__card { padding: 1.6rem 1.4rem; border-radius: 1.4rem; }
  .fp__subtitle { font-size: 1.3rem; }
  .fp__badge { display: none; }
  .fp__toolbar { margin-top: 1.2rem; }
  .fp__open { flex: 1 1 auto; justify-content: center; }
}
