:root {
  --nbw-red: #df2d1d;
  --nbw-red2: #ef4b3c;
  --nbw-dark: #101828;
  --nbw-muted: #5d6678;
  --nbw-border: #e5e8ef;
  --nbw-bg: #f6f7f9;
  --red: #e30613;
  --red-dark: #b9000b;
  --line: #e9edf3;
}

.nbw-vtqc-page {
  background: #fff;
}

.nbw-vtqc-container {
  width: 1210px;
  max-width: 100%;
  margin: auto;
  box-sizing: border-box;
}

.nbw-vtqc-hero {
  position: relative;
  min-height: 520px;
  background: linear-gradient(90deg, #090b10 0%, rgba(9, 11, 16, .82) 38%, rgba(9, 11, 16, .18) 72%), url("/wp-content/uploads/2026/10/locations-hero-billboard.webp") center/cover no-repeat;
  color: #fff;
}

.nbw-vtqc-hero__inner {
  position: relative;
  z-index: 2;
  padding: 38px 0 120px;
}

.nbw-vtqc-kicker {
  display: inline-block;
  background: #d43f3180;
  border-radius: 30px;
  padding: 9px 15px;
  font-weight: 700;
  font-size: 13px;
}

.nbw-vtqc-hero h1 {
  font-size: 68px;
  line-height: 1.2;
  margin: 22px 0 20px;
  letter-spacing: -0.055em;
  color: white;
}

.nbw-vtqc-benefits span {
  background: #ffffff2e;
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 14px;
}

.nbw-vtqc-hero h1 strong {
  color: #ef463a;
}

.nbw-vtqc-hero p {
  font-size: 19px;
  max-width: 760px;
  line-height: 1.6;
}

.nbw-vtqc-benefits {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
  font-weight: 600;
}

.nbw-vtqc-filter {
  margin-top: -70px;
  position: relative;
  z-index: 4;
  background: white;
  padding: 22px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(16, 24, 40, .16);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) 1.2fr;
  gap: 12px;
}

.nbw-vtqc-filter__item>span {
  display: block;
  font-weight: 700;
  margin: 0 0 9px;
  color: var(--nbw-dark);
}

.nbw-vtqc-filter select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--nbw-border);
  border-radius: 9px;
  background: #fff;
  padding: 0 14px;
  font-size: 15px;
  margin-bottom: 0;
  color: #455066;
  transition: .2s;
  font-weight: normal;
  box-shadow: none;
}

.nbw-vtqc-filter select:focus {
  border-color: #f08e85;
  box-shadow: 0 0 0 4px rgba(223, 45, 29, .08);
  outline: none;
}

.nbw-vtqc-search {
  height: 50px;
  align-self: end;
  margin-bottom: 6px;
  margin-right: 0;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--nbw-red), #ee5848);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 10px 28px rgba(223, 45, 29, .18);
}

.nbw-vtqc-search .dash {
  font-size: 25px;
  margin-right: 5px;
}

.nbw-vtqc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 16px 0px;
  border-bottom: 1px solid var(--nbw-border);
  gap: 20px;
}

.nbw-vtqc-stats>div {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--nbw-border);
  padding-left: 0px;
  align-items: center;
}

.nbw-vtqc-stats>div:last-child {
  border-right: 0;
}

.nbw-vtqc-stats b {
  font-weight: 800;
  font-size: 34px;
  color: var(--nbw-red);
  line-height: 1;
}

.nbw-vtqc-stats span {
  font-weight: 600;
  color: #495264;
  margin-top: 8px;
}


/* ==========================================================================
   RESULTS TOOLBAR & INVENTORY LAYOUT (CHÍNH XÁC THEO NHAT-MINH-MEDIA.VERCEL.APP)
   ========================================================================== */
.results-section {
  padding: 28px 0 36px;
  background: #fff;
}

.results-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
  flex-wrap: wrap !important;
}

.results-title {
  display: flex !important;
  align-items: baseline !important;
  gap: 14px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.results-title h2 {
  margin: 0 !important;
  font-size: 24px !important;
  letter-spacing: -0.035em !important;
  color: #101828 !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.results-title span,
.results-title #resultCount {
  color: var(--red, #e30613) !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

.view-tools {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

/* Tool Buttons: Cố định chuẩn xác không bị ảnh hưởng bởi theme Flatsome */
body .view-tools button.tool-btn,
body .results-toolbar button.tool-btn,
button.tool-btn,
.tool-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  line-height: 34px !important;
  padding: 0 16px !important;
  margin: 0 !important;
  border: 1px solid #dfe3ea !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #475467 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  box-shadow: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
  transition: all 0.2s ease !important;
}

body .view-tools button.tool-btn.is-active,
body .results-toolbar button.tool-btn.is-active {
  color: var(--red, #e30613) !important;
  border-color: rgba(227, 6, 19, 0.24) !important;
  background: #fff7f7 !important;
}

body .view-tools button.tool-btn:hover,
body .results-toolbar button.tool-btn:hover {
  color: var(--red, #e30613) !important;
  border-color: rgba(227, 6, 19, 0.35) !important;
}

body .view-tools select.sort-select,
body .results-toolbar select.sort-select,
.sort-select {
  display: inline-flex !important;
  align-items: center !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  line-height: 34px !important;
  padding: 0 14px !important;
  margin: 0 !important;
  border: 1px solid #dfe3ea !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #475467 !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  cursor: pointer !important;
  outline: none !important;
  width: auto !important;
  box-sizing: border-box !important;
}

body .view-tools select.sort-select:focus,
body .results-toolbar select.sort-select:focus {
  border-color: var(--red, #e30613) !important;
}

/* ==========================================================================
   INVENTORY LAYOUT (2 CỘT: CARDS GRID BÊN TRÁI + STICKY MAP BÊN PHẢI)
   ========================================================================== */
.inventory-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: 24px;
  align-items: start;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.location-card {
  overflow: hidden;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.location-card:hover,
.location-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(227, 6, 19, 0.35);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.card-media {
  position: relative;
  height: 138px;
  overflow: hidden;
  background: #eef2f6;
}

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

.location-card:hover .card-media img {
  transform: scale(1.03);
}

.status-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  min-height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  color: #fff;
  background: var(--red, #e30613);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.favorite {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #475467;
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1;
  z-index: 2;
}

.card-body {
  padding: 13px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin: 0;
  color: #1d2939;
  font-size: 14px;
  line-height: 1.36;
  font-weight: 750;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.card-list {
  display: grid;
  gap: 4px;
  margin: 9px 0 12px;
  color: #475467;
  font-size: 12px;
  line-height: 1.35;
}

.card-list span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-list svg {
  width: 13px;
  height: 13px;
  color: var(--red, #e30613);
  flex: 0 0 auto;
}

body .location-card .detail-btn,
.detail-btn {
  width: 100% !important;
  min-height: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  background: var(--red, #e30613) !important;
  color: #fff !important;
  border: 0 !important;
  cursor: pointer !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  margin-top: auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
  box-shadow: none !important;
}

body .location-card .detail-btn:hover {
  background: var(--red-dark, #b9000b) !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   MAP PANEL & LEAFLET
   ========================================================================== */
.map-panel {
  position: sticky;
  top: 25px;
  height: 600px;
  min-height: 480px;
  overflow: hidden;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  background: #eef2f7;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

#map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.map-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  place-items: center;
  padding: 24px;
  color: #475467;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}

.leaflet-container {
  font-family: inherit;
}

/* Leaflet Custom Pin Marker */
.nm-marker {
  width: 34px !important;
  height: 42px !important;
  margin-left: -17px !important;
  margin-top: -42px !important;
  position: relative;
  background: transparent !important;
  border: 0 !important;
}

.nm-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 30px;
  height: 30px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--red, #e30613);
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.32);
  transform: translateX(-50%) rotate(-45deg);
}

.nm-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

/* Leaflet Popup Card */
.popup-card {
  width: 230px;
  padding: 2px;
  font-family: inherit;
}

.popup-card img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border-radius: 6px;
  float: left;
  margin: 0 10px 8px 0;
}

.popup-card strong {
  display: block;
  color: #1d2939;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 750;
}

.popup-card span {
  display: block;
  margin-top: 4px;
  color: #475467;
  font-size: 12px;
}

.popup-card button {
  display: block !important;
  clear: both;
  width: 100% !important;
  min-height: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  margin-top: 10px !important;
  border: 0 !important;
  border-radius: 5px !important;
  color: #fff !important;
  background: var(--red, #e30613) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  padding: 0 !important;
}

.popup-card button:hover {
  background: var(--red-dark, #b9000b) !important;
}

/* ==========================================================================
   DETAIL MODAL (CHUẨN VERCEL)
   ========================================================================== */
.detail-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  display: none;
  padding: 22px;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}

.detail-modal.is-open {
  display: grid !important;
  place-items: center;
}

.detail-dialog {
  width: min(1480px, 100%);
  max-height: min(96vh, 960px);
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.28);
  animation: modalIn 0.22s ease both;
  margin: auto;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.detail-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line, #e9edf3);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.detail-title h2 {
  margin: 0;
  color: #161b28;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}

.detail-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #107a37;
  background: #e9f8ef;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.detail-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.modal-close {
  width: 40px;
  height: 40px;
  border: 1px solid #dfe3ea;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #475467;
  background: #fff;
  cursor: pointer;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.modal-close:hover {
  background: #f7f8fb;
  color: var(--red, #e30613);
}

.detail-body {
  display: grid;
  grid-template-columns: 1.08fr 0.66fr 1.28fr;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
}

.detail-panel {
  border: 1px solid var(--line, #e9edf3);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.detail-photo-main {
  position: relative;
  height: 380px;
  overflow: hidden;
  border-radius: 12px;
  background: #090b10;
}

.detail-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.detail-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.78);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.detail-thumb,
.detail-thumb-btn {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  min-height: 70px;
  max-height: 85px;
  overflow: hidden;
  border: 2px solid transparent !important;
  border-radius: 10px !important;
  padding: 0 !important;
  background: #f1f4f8 !important;
  cursor: pointer;
  margin: 0 !important;
  box-shadow: none !important;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.detail-thumb:hover,
.detail-thumb-btn:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1 !important;
}

.detail-thumb img,
.detail-thumb-btn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 8px !important;
}

.detail-thumb.is-active,
.detail-thumb-btn.is-active {
  border-color: var(--red, #e30613) !important;
  box-shadow: 0 4px 14px rgba(227, 6, 19, 0.25) !important;
}

.detail-map-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#detailMap {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: #eef2f7;
}

.detail-map-copy {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border-top: 1px solid var(--line, #e9edf3);
  margin-top: 0;
  flex-shrink: 0;
}

.detail-map-copy strong {
  font-size: 13.5px;
  color: #161b28;
  line-height: 1.35;
}

.detail-map-copy span {
  font-size: 12px;
  color: #667085;
}

.detail-map-copy a {
  display: inline-block;
  margin-top: 6px;
  color: var(--red, #e30613);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin-bottom: 12px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line, #e9edf3);
  font-size: 12.5px;
}

.spec-row span {
  color: #667085;
}

.spec-row strong {
  color: #161b28;
  text-align: right;
}

.detail-summary {
  margin: 0 0 10px;
  color: #475467;
  font-size: 12.5px;
  line-height: 1.5;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.detail-tags span {
  padding: 3px 8px;
  border-radius: 4px;
  color: #475467;
  background: #f2f4f7;
  font-size: 11px;
  font-weight: 700;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}

.detail-actions a.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  background: var(--red, #e30613) !important;
  color: #fff !important;
  border: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
}

.detail-actions a.button:hover {
  background: var(--red-dark, #b9000b) !important;
}

body .detail-outline,
.detail-outline {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid #dfe3ea !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #475467 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  cursor: pointer !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.detail-outline:hover {
  border-color: rgba(227, 6, 19, 0.35) !important;
  color: var(--red, #e30613) !important;
  background: #fff7f7 !important;
}

.detail-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 18px 18px;
}

.detail-text-card {
  border: 1px solid var(--line, #e9edf3);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.detail-text-card h3 {
  margin: 0 0 10px;
  color: #161b28;
  font-size: 15px;
  font-weight: 800;
}

.detail-text-card p {
  margin: 0 0 12px;
  color: #475467;
  font-size: 13px;
  line-height: 1.55;
}

.detail-bullets {
  display: grid;
  gap: 6px;
}

.detail-bullets span {
  position: relative;
  padding-left: 14px;
  color: #475467;
  font-size: 12.5px;
  line-height: 1.45;
}

.detail-bullets span::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--red, #e30613);
  font-weight: 900;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.fit-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line, #e9edf3);
  border-radius: 8px;
  background: #fbfcfe;
}

.fit-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(227, 6, 19, 0.08);
  color: var(--red, #e30613);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.fit-icon svg {
  width: 15px;
  height: 15px;
}

.fit-item strong {
  display: block;
  color: #161b28;
  font-size: 12.5px;
  margin-bottom: 2px;
}

.fit-item span {
  display: block;
  color: #667085;
  font-size: 11.5px;
  line-height: 1.35;
}

.fit-plan {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border: 1px dashed rgba(227, 6, 19, 0.35);
  border-radius: 8px;
  background: #fff8f8;
}

.fit-plan-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #161b28;
  font-size: 12.5px;
  font-weight: 700;
}

.fit-plan-item svg {
  width: 16px;
  height: 16px;
  color: var(--red, #e30613);
  flex: 0 0 auto;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (CHUẨN VERCEL)
   ========================================================================== */
@media (max-width: 1180px) {
  .inventory-layout {
    grid-template-columns: 1fr;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .map-panel {
    min-height: 460px;
    height: 460px;
    order: 2;
  }
  .detail-body,
  .detail-lower {
    grid-template-columns: 1fr;
  }
  .fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fit-plan {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .results-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .view-tools {
    width: 100%;
    flex-wrap: wrap;
  }
  .map-panel {
    min-height: 380px;
    height: 380px;
  }
  .detail-modal {
    padding: 10px;
  }
  .detail-head {
    align-items: flex-start;
    padding: 14px;
  }
  .detail-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-title h2 {
    font-size: 18px;
  }
  .detail-body,
  .detail-lower {
    padding: 10px;
    gap: 10px;
  }
  .detail-photo-main {
    height: 220px;
  }
  .detail-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .spec-row,
  .detail-actions,
  .fit-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== v0.2.4 - Slider vị trí quảng cáo cho Flatsome / UX Builder ===== */
.nbw-vtqc-home-slider {
  margin-left: -12px;
  margin-right: -12px;
}

.nbw-vtqc-home-slider .flickity-viewport {
  overflow: hidden;
}

.nbw-vtqc-home-slide {
  width: 33.333333%;
  padding: 12px;
  box-sizing: border-box;
}

.nbw-vtqc-home-card {
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(23, 39, 67, .09);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.nbw-vtqc-home-card__thumb {
  position: relative;
  aspect-ratio: 1.42/1;
  overflow: hidden;
  background: #eef1f5;
}

.nbw-vtqc-home-card__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}

.nbw-vtqc-home-card:hover .nbw-vtqc-home-card__thumb img {
  transform: scale(1.035);
}

.nbw-vtqc-home-card__badges {
  position: absolute;
  left: 20px;
  top: 20px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  z-index: 2;
}

.nbw-vtqc-home-card__badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.nbw-vtqc-home-card__badges .is-status {
  background: #d7432f;
  color: #fff;
}

.nbw-vtqc-home-card__badges .is-type {
  background: rgba(255, 255, 255, .95);
  color: #213557;
}

.nbw-vtqc-home-card__body {
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nbw-vtqc-home-card__location {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  color: #7d8595;
  margin-bottom: 14px;
  line-height: 1.4;
}

.nbw-vtqc-home-card__body h3 {
  margin: 0 0 18px;
  color: #1f2b42;
  font-size: 24px;
  line-height: 1.27;
  font-weight: 800;
  min-height: 61px;
}

.nbw-vtqc-home-card__desc {
  color: #747d8f;
  font-size: 15px;
  line-height: 1.6;
  min-height: 72px;
  margin-bottom: 22px;
}

.nbw-vtqc-home-card__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: auto;
  margin-bottom: 22px;
}

.nbw-vtqc-home-card__metrics>div:last-child {
  text-align: right;
}

.nbw-vtqc-home-card__metrics strong {
  display: block;
  color: #202b42;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
}

.nbw-vtqc-home-card__metrics span {
  display: block;
  color: #81899a;
  font-size: 14px;
  margin-top: 4px;
}

.nbw-vtqc-home-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.nbw-vtqc-home-btn {
  appearance: none;
  border-radius: 17px;
  min-height: 52px;
  padding: 11px 13px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: .22s ease;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}

.nbw-vtqc-home-btn.is-outline {
  background: #fff;
  border: 1px solid #e2e6ed;
  color: #1f2b42;
}

.nbw-vtqc-home-btn.is-primary {
  background: #19385f;
  border: 1px solid #19385f;
  color: #fff;
}

.nbw-vtqc-home-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 55, 95, .12);
}

.nbw-vtqc-home-slider .flickity-prev-next-button {
  width: 42px;
  height: 42px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(17, 31, 51, .12);
  opacity: 1;
}

.nbw-vtqc-home-slider .flickity-prev-next-button.previous {
  left: 0;
}

.nbw-vtqc-home-slider .flickity-prev-next-button.next {
  right: 0;
}

@media(max-width:849px) {
  .nbw-vtqc-home-slide {
    width: 50%;
  }

  .nbw-vtqc-home-card__body h3 {
    font-size: 21px;
    min-height: 54px;
  }

  .nbw-vtqc-home-card__body {
    padding: 22px;
  }

  .nbw-vtqc-home-card__desc {
    min-height: 68px;
  }
}

@media(max-width:549px) {
  .nbw-vtqc-home-slider {
    margin-left: -6px;
    margin-right: -6px;
  }

  .nbw-vtqc-home-slide {
    width: 88%;
    padding: 8px;
  }

  .nbw-vtqc-home-card {
    border-radius: 22px;
  }

  .nbw-vtqc-home-card__body {
    padding: 20px;
  }

  .nbw-vtqc-home-card__body h3 {
    font-size: 20px;
    min-height: 0;
  }

  .nbw-vtqc-home-card__desc {
    min-height: 0;
  }

  .nbw-vtqc-home-card__actions {
    grid-template-columns: 1fr;
  }

  .nbw-vtqc-home-card__badges {
    left: 15px;
    top: 15px;
  }
}

/* ===== v0.2.5 - Fix Flatsome forcing custom slider cells to 100% width ===== */
.nbw-vtqc-home-slider .slider>.nbw-vtqc-home-slide,
.nbw-vtqc-home-slider .flickity-slider>.nbw-vtqc-home-slide {
  width: 33.333333% !important;
  max-width: 33.333333% !important;
  flex: 0 0 33.333333% !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}

.nbw-vtqc-home-slider .flickity-slider {
  display: block !important;
}

@media(max-width:849px) {
  .nbw-vtqc-home-slider .slider>.nbw-vtqc-home-slide,
  .nbw-vtqc-home-slider .flickity-slider>.nbw-vtqc-home-slide {
    width: 50% !important;
    max-width: 50% !important;
    flex-basis: 50% !important;
  }
}

@media(max-width:549px) {
  .nbw-vtqc-home-slider .slider>.nbw-vtqc-home-slide,
  .nbw-vtqc-home-slider .flickity-slider>.nbw-vtqc-home-slide {
    width: 88% !important;
    max-width: 88% !important;
    flex-basis: 88% !important;
    padding: 8px !important;
  }
}
