/* 04/12/2026 — chủ "tối ưu lại web, đừng thay đổi cấu trúc code chức năng".
   Chỉ chỉnh hiển thị cho trang khách xem; nạp SAU app.css. Bản ATA: không có phần nút liên hệ/màu xanh lá của Go Home (ATA dùng xanh dương #1262b5, cụm liên hệ đã chỉ Gọi+Zalo).
   Gỡ: bỏ 1 dòng <link ... ui-toi-uu.css> trong layouts/default.blade.php. */

/* Chữ gợi ý trong ô tìm kiếm (Khu vực, Loại nhà đất, Giá…): #7d93b2 trên nền trắng chỉ đạt độ tương phản 3,0 → đậm hơn, đạt ~5 */
.multiple-select-toggle > span,
.multiple-select-toggle.form-control > span { color: #566d8c; }
.form-control::placeholder { color: #66788f; opacity: 1; }

/* Địa chỉ ở khung "Bất động sản mới" (trang chi tiết): 10px xám nhạt → 12px xám đậm hơn */
.post-content .post-address span { font-size: 12px !important; color: #6b7280 !important; }

/* Nhãn loại căn trên ảnh thẻ bài + chữ nhỏ ở trang chủ: 11px → 12px (luật cũ viết rất cụ thể nên phải dùng !important) */
.post-category-label, .hero-section .labels .label { font-size: 12px !important; }
.section-title .subtitle { font-size: 12px !important; }
.scroll-down-wrap span { font-size: 12px !important; }

/* Chấm chuyển ảnh 6×6px: giữ nguyên hình, chỉ nới vùng bấm ra ~24×24px (lớp vô hình) */
.slick-dots li button { position: relative; }
.slick-dots li button::after { content: ""; position: absolute; inset: -9px; }

/* Nút kính lúp trên đầu trang điện thoại (20×33px): nới vùng bấm, không đổi hình */
a.header-search::after { content: ""; position: absolute; inset: -6px -10px; }

/* Bàn phím: hiện viền khi di chuyển bằng phím Tab (chuột bấm thì không hiện) */
a:focus-visible, button:focus-visible, .btn:focus-visible, [role="button"]:focus-visible { outline: 2px solid #1262b5; outline-offset: 2px; }

/* Máy đặt chế độ giảm chuyển động: tắt trượt/mờ dần */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* 04/12/2026 thanh tìm kiếm trang danh sách /bai-dang trên máy tính (chủ: "sửa đi", rồi "làm lại khổ hẹp, đẹp hơn").
   Tệp đầu trang ATA (components/layouts/default/header.blade.php, 01/12 "Giữ đủ nút khi zoom") cho màn <1600px đầu trang 2 tầng cao 116px
   (174px khi nhân sự có dải xếp hạng; ≥1600px: 72px / 130px) → thanh tìm phải ghim ngay dưới số đó.
   !important ở "top" vì khuôn search-form.blade.php gắn style="top:120px" khi đã đăng nhập.
   Khoảng lùi danh sách = đầu trang + cao thanh tìm + 40 (như bản gốc 70+80+40=190).
   Khổ 1280–1599: một hàng gọn. Khổ 992–1279: hai hàng thẳng cột. Chỉ đổi cách bày, không đổi ô/nút/lệnh. */
@media (min-width: 992px) {
  body.ata-brand .search-form-posts { top: 70px !important; }
  body.ata-brand.has-rank-strip .search-form-posts { top: 130px !important; }
  body#post-list.ata-brand.public-saas.has-rank-strip { padding-top: 250px !important; }
  /* chữ trong ô không đè mũi tên, giá và tab không xuống dòng */
  body.ata-brand .search-form-posts .multiple-select-toggle { padding-right: 32px; }
  body.ata-brand .search-form-posts .price-zone { white-space: nowrap; }
  body.ata-brand .search-form-posts .price-zone > span { flex: 0 0 auto; }
  body.ata-brand .search-form-posts .price-zone .price-display { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  body.ata-brand .search-form-posts .pc-post-type li { white-space: nowrap; }
  /* nút Tìm kiếm chữ trắng; ô giá: thanh kéo đã bỏ (layouts/default "Bỏ thanh kéo giá") nên thu khoảng trống thừa */
  body.ata-brand .search-form-posts .pc-search-form .submit-form button { color: #fff; font-weight: 700; }
  body.ata-brand .search-form-posts .price-zone .dropdown-menu.price-dropdown { padding: 16px; }
  body.ata-brand .search-form-posts .price-zone .dropdown-menu.price-dropdown .price-inputs { margin-bottom: 0; }
  /* bảng nâng cao: chữ dài xuống dòng ngay cạnh ô tích, không rớt xuống dưới ô */
  body.ata-brand .search-form-posts .post-list-advanced-search .checkbox-wrapper .cbx { display: inline-flex; align-items: flex-start; max-width: 100%; }
  body.ata-brand .search-form-posts .post-list-advanced-search .checkbox-wrapper .cbx > span:last-child { flex: 1 1 auto; min-width: 0; }
}
@media (min-width: 992px) and (max-width: 1599.98px) {
  body.ata-brand .search-form-posts { top: 116px !important; height: 76px; }
  body.ata-brand.has-rank-strip .search-form-posts { top: 174px !important; }
  body#post-list.ata-brand.public-saas { padding-top: 232px !important; }
  body#post-list.ata-brand.public-saas.has-rank-strip { padding-top: 290px !important; }

  body.ata-brand .search-form-posts .pc-search-form { height: 100%; }
  body.ata-brand .search-form-posts .pc-search-form .deco { width: 52px; height: 100%; flex: 0 0 52px; }
  body.ata-brand .search-form-posts .pc-search-form .search-content { min-width: 0; gap: 10px; padding: 0 6px 0 14px; }
  body.ata-brand .search-form-posts .pc-search-form .search-content .form-group { padding: 0; min-width: 0; flex: 1 1 0; }
  body.ata-brand .search-form-posts .pc-search-form .search-content .province-picker,
  body.ata-brand .search-form-posts .pc-search-form .search-content .price-wrap { flex-grow: 1.2; }
  body.ata-brand .search-form-posts .pc-search-form .search-content .legacy-district-picker { flex-grow: 1.05; }
  body.ata-brand .search-form-posts .pc-search-form .form-control { height: 44px; padding-left: 12px; font-size: 14px; color: #566985; }
  body.ata-brand .search-form-posts .pc-search-form .search-content .pc-post-type { flex: 0 0 auto; height: 44px; margin: 0; padding: 4px; gap: 4px; font-size: 14px; align-items: stretch; }
  body.ata-brand .search-form-posts .pc-search-form .search-content .pc-post-type li { display: flex; align-items: center; margin: 0; padding: 0 12px; }
  body.ata-brand .search-form-posts .pc-search-form .search-content .submit-form { flex: 0 0 auto; min-width: 0; }
  body.ata-brand .search-form-posts .pc-search-form .submit-form button { padding: 0 24px; font-weight: 700; color: #fff; }
  body.ata-brand .search-form-posts .pc-search-form .advanced-search-wrap { flex: 0 0 auto; width: 86px; padding: 0 10px 0 4px; line-height: 1.4; font-size: 10.5px; font-weight: 600; }
  body.ata-brand .search-form-posts .pc-search-form .post-list-advanced-search { padding-left: 66px; }
}
/* 992–1279: hai hàng. Hàng trên: Thuê/Bán · Tỉnh · Quận · Phường. Hàng dưới: Loại · Giá · Tìm kiếm · Nâng cao. */
@media (min-width: 992px) and (max-width: 1279.98px) {
  body.ata-brand .search-form-posts { height: 128px; }
  body#post-list.ata-brand.public-saas { padding-top: 284px !important; }
  body#post-list.ata-brand.public-saas.has-rank-strip { padding-top: 342px !important; }
  body.ata-brand .search-form-posts .pc-search-form {
    display: grid; grid-template-columns: 52px auto repeat(3, minmax(0, 1fr)); grid-template-rows: 44px 44px;
    gap: 10px 12px; align-content: center; padding-right: 16px; box-sizing: border-box;
  }
  body.ata-brand .search-form-posts .pc-search-form .deco { grid-column: 1; grid-row: 1 / 3; align-self: stretch; height: auto; margin: -15px 0; }
  body.ata-brand .search-form-posts .pc-search-form .search-content { display: contents; }
  body.ata-brand .search-form-posts .pc-search-form .search-content .pc-post-type { grid-column: 2; grid-row: 1; }
  body.ata-brand .search-form-posts .pc-search-form .search-content .province-picker { grid-column: 3; grid-row: 1; }
  body.ata-brand .search-form-posts .pc-search-form .search-content .legacy-district-picker { grid-column: 4; grid-row: 1; }
  body.ata-brand .search-form-posts .pc-search-form .search-content .multiselect-location { grid-column: 5; grid-row: 1; }
  body.ata-brand .search-form-posts .pc-search-form .search-content .category { grid-column: 2; grid-row: 2; }
  body.ata-brand .search-form-posts .pc-search-form .search-content .price-wrap { grid-column: 3; grid-row: 2; }
  body.ata-brand .search-form-posts .pc-search-form .search-content .submit-form { grid-column: 4; grid-row: 2; }
  body.ata-brand .search-form-posts .pc-search-form .submit-form button { width: 100%; }
  body.ata-brand .search-form-posts .pc-search-form .advanced-search-wrap { grid-column: 5; grid-row: 2; width: auto; justify-self: start; padding: 10px 4px; font-size: 11px; }
}
