/* Hệ thống showroom – tìm theo miền / tỉnh / vị trí (bố cục tham khảo Kingsport) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sl-hero-in { text-align: center; padding-top: 42px; padding-bottom: 40px; position: relative; z-index: 1; }
.sl-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 46px); margin: 12px 0 10px; line-height: 1.15; }
.sl-hero .lead { max-width: 640px; margin: 0 auto 20px; }
.sl-near { background: #fff; color: var(--red); border: 0; gap: 8px; box-shadow: 0 10px 26px rgba(120,10,10,.25); }
.sl-near:hover { background: #FFF1EE; }
.sl-near:disabled { opacity: .7; cursor: progress; }
.sl-status { margin: 14px auto 0; max-width: 620px; min-height: 0; font-weight: 600; font-size: 14.5px; }
.sl-status:empty { display: none; }
.sl-status { display: block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); border-radius: 14px; padding: 10px 16px; }
.sl-status.err { background: #fff; color: var(--red-d); border-color: #fff; }
.sl-status.ok { background: #fff; color: #17803D; border-color: #fff; }

.sl-tools { padding-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sl-search { position: relative; width: min(560px, 100%); }
.sl-search input { width: 100%; min-height: 50px; border-radius: 999px; border: 1px solid #EBCFC8; background: #fff; padding: 0 54px 0 22px; font: inherit; font-size: 16px; box-shadow: var(--sh); }
.sl-search input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,27,34,.12); }
.sl-search svg { position: absolute; right: 8px; top: 7px; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--grad); color: #fff; pointer-events: none; }
.sl-regions, .sl-cities { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sl-regions button, .sl-cities button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #F2D9D2; background: #fff; font: inherit; font-weight: 800; font-size: 14px; color: var(--ink2); cursor: pointer; text-transform: uppercase; letter-spacing: .3px; }
.sl-cities button { min-height: 38px; padding: 0 14px; font-weight: 700; font-size: 13.5px; text-transform: none; letter-spacing: 0; border-width: 1px; }
.sl-regions button em, .sl-cities button em { font-style: normal; font-size: 12px; font-weight: 700; opacity: .65; }
.sl-regions button.on, .sl-cities button.on { background: var(--grad); border-color: transparent; color: #fff; }
.sl-regions button.on em, .sl-cities button.on em { opacity: .9; }
.sl-regions button:hover:not(.on), .sl-cities button:hover:not(.on) { border-color: var(--red); color: var(--red); }
.sl-count { margin: 0; color: var(--muted); font-size: 14px; }

.sl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-top: 18px; padding-bottom: 56px; scroll-margin-top: 90px; }
.sl-card { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 14px; box-shadow: var(--sh); }
.sl-card[hidden] { display: none; }
.sl-card.sl-nearest { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,27,34,.12), var(--sh); }
.sl-pic { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; border: 0; padding: 0; background: var(--red-xl); cursor: zoom-in; align-self: start; }
.sl-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sl-pic:hover img { transform: scale(1.04); }
.sl-pic-n { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.sl-pic-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: default; background: radial-gradient(circle at 50% 35%, #fff 0%, #FFEDE8 70%); color: var(--red); text-align: center; padding: 10px; }
.sl-pic-empty span svg { width: 34px; height: 34px; }
.sl-pic-empty b { color: var(--ink); font-size: 15px; }
.sl-pic-empty small { color: var(--muted); font-size: 12px; }
.sl-info { min-width: 0; display: flex; flex-direction: column; }
.sl-dist { align-self: flex-start; background: #E9F7EE; color: #17803D; font-weight: 700; font-size: 12.5px; border-radius: 999px; padding: 3px 10px; margin-bottom: 6px; }
.sl-nearest .sl-dist::before { content: 'Gần bạn nhất · '; }
.sl-info h2 { font-size: 17px; line-height: 1.35; margin: 0 0 8px; font-weight: 800; }
.sl-info h2 a:hover { color: var(--red); }
.sl-line { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; color: var(--ink2); font-size: 14px; line-height: 1.45; }
.sl-line svg { flex: none; margin-top: 2px; color: var(--red); }
.sl-line a { color: var(--ink); }
.sl-thumbs { margin: 4px 0 8px; }
.sl-thumbs > span { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.sl-thumbs > div { display: flex; gap: 6px; flex-wrap: wrap; }
.sl-thumbs button { position: relative; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; background: var(--red-xl); }
.sl-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sl-thumbs i { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); color: #fff; font-style: normal; font-weight: 800; font-size: 14px; }
.sl-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.sl-act .btn { min-height: 40px; }
.sl-act .btn-link { color: var(--red); font-weight: 700; font-size: 14px; min-height: 40px; display: inline-flex; align-items: center; }
.sl-empty { text-align: center; padding: 10px 16px 60px; }
.sl-empty a { color: var(--red); }

/* xem ảnh lớn */
.sl-lb { background: rgba(10,6,6,.86); }
.sl-lb-box { position: relative; width: min(1000px, 100%); max-height: calc(100dvh - 24px); display: flex; flex-direction: column; align-items: center; }
.sl-lb-box img { max-width: 100%; max-height: calc(100dvh - 90px); border-radius: 14px; object-fit: contain; background: #111; }
.sl-lb-box .modal-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; z-index: 2; background: #fff; border-radius: 50%; margin: 0; }
.sl-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); }
.sl-lb-nav.prev { left: 8px; } .sl-lb-nav.next { right: 8px; }
.sl-lb-cap { color: #fff; margin: 10px 0 0; font-size: 14px; text-align: center; }

@media (max-width: 960px) { .sl-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .sl-hero-in { padding-top: 30px; padding-bottom: 28px; }
  .sl-near { width: 100%; justify-content: center; }
  /* 4 tab miền chia đều một hàng, số lượng xuống dòng – không phải vuốt mới thấy "Miền Nam" */
  .sl-regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; }
  .sl-regions button { flex-direction: column; justify-content: center; gap: 0; padding: 6px 4px; min-height: 52px; border-radius: 14px; font-size: 13px; text-transform: none; letter-spacing: 0; line-height: 1.2; }
  .sl-regions button em { font-size: 11.5px; }
  .sl-cities { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; width: calc(100% + 32px); margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
  .sl-cities::-webkit-scrollbar { display: none; }
  .sl-cities button { flex: none; }
  .sl-card { grid-template-columns: 1fr; padding: 12px; }
  .sl-pic { aspect-ratio: 16 / 10; }
  /* chưa có ảnh: dải nhỏ thay vì khối lớn trống */
  .sl-pic-empty { aspect-ratio: auto; flex-direction: row; justify-content: flex-start; gap: 8px; padding: 8px 12px; border-radius: 12px; }
  .sl-pic-empty span svg { width: 20px; height: 20px; }
  .sl-pic-empty b { font-size: 13.5px; }
  .sl-pic-empty small::before { content: '· '; }
}
/* .wrap chỉ chừa 14px ở ≤560px: dải tỉnh kéo sát mép đúng 14px để không tràn ngang */
@media (max-width: 560px) { .sl-cities { width: calc(100% + 28px); margin: 0 -14px; padding-left: 14px; padding-right: 14px; } }
