@media (max-width: 1400px) {
}

@media (max-width: 1200px) {
}

@media (max-width: 992px) {
}

@media (max-width: 768px) {
  html.mobile-side-open,
  body.mobile-side-open {
    scroll-behavior: auto !important;
  }

  #filter-bar-elite-mobile {
    position: fixed;
    z-index: 98;
    top: 125px;
    right: 0;
    left: 0;
    margin: 0;
    padding: 8px 12px;
    background: rgba(245, 248, 255, .96);
    box-shadow: 0 6px 14px rgba(0, 60, 71, .08);
    backdrop-filter: blur(10px);
    transition: top .25s ease;
  }

  body:has(#mobile-menu-container.is-scrolled) #filter-bar-elite-mobile {
    top: 55px;
  }

  body.mobile-side-open #filter-bar-elite-mobile {
    transition: none;
  }

  body.mobile-side-open.mobile-side-open--scrolled #filter-bar-elite-mobile {
    top: 55px;
  }

  body.mobile-side-open:not(.mobile-side-open--scrolled) #filter-bar-elite-mobile {
    top: 125px;
  }

  .box-dashboard-content:not(.map-open) > .box-list-realestate {
    padding-top: 70px;
  }

  .box-dashboard-content.map-open {
    display: block !important;
    padding: 0 !important;
  }

  .box-dashboard-content.map-open .box-list-realestate {
    display: none !important;
  }

  .box-dashboard-content.map-open .box-dashboard-map {
    position: fixed !important;
    top: 55px !important; /* chừa chỗ header mobile cố định phía trên */
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - 55px) !important;
    height: calc(100dvh - 55px) !important;
    margin: 0 !important;
    z-index: 9000 !important;
    border-radius: 0 !important;
  }

  body.dashboard-map-fullscreen .overlay {
    z-index: 10000;
  }

  body.dashboard-map-fullscreen .mobile-menu,
  body.dashboard-map-fullscreen .mobile-user-menu {
    z-index: 10500;
  }

  /* Khoá cuộn trang phía sau khi bản đồ đang mở toàn màn hình */
  body.dashboard-map-fullscreen {
    overflow: hidden;
  }

  /* Nút đóng: đổi thành pill nổi có nhãn "Danh sách" rõ ràng ở giữa dưới
     màn hình thay vì icon X nhỏ góc trên, để người dùng dễ nhận ra
     đường quay lại danh sách — giống mẫu app tham khảo. */
  .box-dashboard-content.map-open .btn-map-close {
    top: auto;
    right: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: unset;
    height: auto;
    min-height: unset;
    padding: 12px 22px !important;
    border-radius: 999px !important;
    gap: 8px;
    background: #003c47 !important;
    border: none !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 60, 71, 0.3);
  }

  .box-dashboard-content.map-open .btn-map-close svg {
    stroke: #ffffff !important;
    width: 18px;
    height: 18px;
    transform: none !important;
  }

  .box-dashboard-content.map-open .btn-map-close::after {
    content: "Danh sách";
  }

  .box-dashboard-content.map-open .btn-map-close:hover {
    background: #FF9900 !important;
    color: #ffffff !important;
  }

  /* Tránh đè lên pill "Danh sách" mới ở dưới */
  .box-dashboard-content.map-open .map-style-switcher {
    bottom: 80px;
    left: 16px;
    right: auto;
  }

  .map-box-elite {
    display: none !important;
  }

  .btn-map-float {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 90;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    background: #003c47;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 60, 71, 0.3);
    cursor: pointer;
    transition: background 0.25s ease;
  }

  .btn-map-float::after {
    content: "Bản đồ";
  }

  .btn-map-float:hover {
    background: #FF9900;
  }

  .box-dashboard-content:not(.map-open) .btn-map-float {
    display: flex;
  }

  /* ============================================================
     FILTER-CHIPS: "Lọc nâng cao" và "Đặt lại" đứng yên,
     phần chip ở giữa kéo trượt ngang được.
     ============================================================ */
  .filter-chips {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    overflow: visible;
  }

  .filter-chips > .chip {
    flex-shrink: 0;
  }

  .filter-chips > .filter-reset-filter-realestate {
    margin-left: auto;
  }

  .filter-chips-scroll {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
    padding: 10px 4px;
    margin: -10px 0;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-chips-scroll::-webkit-scrollbar {
    display: none;
  }

  .filter-chips-scroll .chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    white-space: nowrap;
  }
}

@media (max-width: 680px) {
  .box-list-realestate {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px 90px;
    overflow: hidden;
  }

  .layout-container,
  .left-content,
  #box-list-realestate-action {
    width: 100%;
    min-width: 0;
  }

  #box-list-realestate-action .property-card {
    width: 100%;
    min-width: 0;
    margin-bottom: 18px;
    border-radius: 16px;
    overflow: visible;
  }

  #box-list-realestate-action .property-card .container-gallery,
  #box-list-realestate-action .property-card .property-gallery,
  #box-list-realestate-action .property-card .gallery-grid {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  #box-list-realestate-action .property-card .container-gallery {
    display: flex;
    flex-direction: column;
  }

  #box-list-realestate-action .property-card .property-gallery {
    margin: 0;
  }

  #box-list-realestate-action .property-card .property-gallery::after {
    border-radius: 0;
  }

  #box-list-realestate-action .property-card .gallery-grid img {
    display: block;
    max-width: 100%;
  }

  #box-list-realestate-action .property-card.diamond .gallery-grid.diamond {
    display: flex;
    gap: 4px;
  }

  #box-list-realestate-action .property-card.diamond .gallery-grid.diamond .gallery-left img {
    width: 100%;
    height: clamp(230px, 68vw, 320px);
    border-radius: 0;
  }

  #box-list-realestate-action .property-card.diamond .gallery-grid.diamond .gallery-right {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    height: 92px;
  }

  #box-list-realestate-action .property-card.diamond .gallery-grid.diamond .gallery-right-sub1 {
    width: auto;
    min-width: 0;
  }

  #box-list-realestate-action .property-card.diamond .gallery-grid.diamond .gallery-right-sub2 {
    display: contents;
  }

  #box-list-realestate-action .property-card.diamond .gallery-grid.diamond .gallery-right img,
  #box-list-realestate-action .property-card.diamond .gallery-grid.diamond .gallery-right-sub2 img {
    width: 100%;
    height: 92px;
    border: 0;
    border-radius: 0;
  }

  #box-list-realestate-action .property-card.gold .gallery-grid.gold {
    display: grid;
    grid-template-rows: none;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 4px;
  }

  #box-list-realestate-action .property-card.gold .gallery-grid.gold .gallery-top,
  #box-list-realestate-action .property-card.gold .gallery-grid.gold > a {
    display: block;
    min-width: 0;
  }

  #box-list-realestate-action .property-card.gold .gallery-grid.gold .gallery-top img {
    width: 100%;
    height: clamp(220px, 66vw, 320px);
    border-radius: 0;
  }

  #box-list-realestate-action .property-card.gold .gallery-grid.gold .gallery-bot {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 4px;
    height: clamp(220px, 66vw, 320px);
  }

  #box-list-realestate-action .property-card.gold .gallery-grid.gold .gallery-bot img {
    width: 100%;
    min-width: 0;
    height: 100%;
    border-radius: 0;
  }

  #box-list-realestate-action .property-card.silver .gallery-grid.silver {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 4px;
  }

  #box-list-realestate-action .property-card.silver .gallery-grid.silver .gallery-top,
  #box-list-realestate-action .property-card.silver .gallery-grid.silver .gallery-bot {
    width: auto;
    min-width: 0;
  }

  #box-list-realestate-action .property-card.silver .gallery-grid.silver .gallery-top img {
    width: 100%;
    height: clamp(210px, 62vw, 300px);
    border-radius: 0;
  }

  #box-list-realestate-action .property-card.silver .gallery-grid.silver .gallery-bot {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  #box-list-realestate-action .property-card.silver .gallery-grid.silver .gallery-bot img {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  #box-list-realestate-action .property-card.normal .gallery-grid.normal .gallery-top img {
    width: 100%;
    height: clamp(220px, 65vw, 310px);
    border-radius: 0;
  }

  #box-list-realestate-action .property-card .property-body {
    width: 100%;
    min-width: 0;
    padding: 16px;
  }

  #box-list-realestate-action .property-card .property-title {
    margin-bottom: 12px;
    line-height: 1.45;
  }

  #box-list-realestate-action .property-card .property-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #box-list-realestate-action .property-card .property-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-bottom: 14px;
  }

  #box-list-realestate-action .property-card .property-meta > div {
    min-width: 0;
  }

  #box-list-realestate-action .property-card .property-footer {
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #edf0ef;
  }

  #box-list-realestate-action .property-card .agent-box {
    min-width: 0;
  }

  #box-list-realestate-action .property-card .agent-box > div {
    min-width: 0;
  }

  #box-list-realestate-action .property-card .agent-name,
  #box-list-realestate-action .property-card .agent-status {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #box-list-realestate-action .property-card .tag-vip,
  .property-card .tag-vip {
    top: 10px !important;
    left: 10px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
  }

  .tag-vip::before {
    display: none !important;
    content: none !important;
  }

  #box-list-realestate-action .property-card .property-gallery {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
  }

  .gallery-grid.diamond {
    flex-direction: column;
  }
  .gallery-grid.diamond .gallery-left {
    width: 100%;
  }
  .gallery-grid.diamond .gallery-right {
    width: 100%;
    flex-direction: row;
  }
  .gallery-grid.diamond .gallery-right .gallery-right-sub1 {
    width: 50%;
  }
  .gallery-grid.diamond .gallery-right .gallery-right-sub2 {
    flex-direction: column;
  }
  .gallery-grid.diamond .gallery-right .gallery-right-sub2 img {
    height: 50%;
  }
  .property-card.diamond .property-body.diamond .property-infomation .property-title a,
  .property-card.gold .property-body.gold .property-infomation .property-title a,
  .property-card.silver .property-body.silver .property-infomation .property-title a,
  .property-card.normal .property-body.normal .property-infomation .property-title a {
    font-size: 14px;
  }
  .property-card.diamond .property-body.diamond .property-infomation .property-meta .property-meta-address,
  .property-card.gold .property-body.gold .property-infomation .property-meta .property-meta-address,
  .property-card.silver .property-body.silver .property-infomation .property-meta .property-meta-address,
  .property-card.normal .property-body.normal .property-infomation .property-meta .property-meta-address {
    font-size: 14px;
    font-weight: 600;
  }
  .property-card.diamond .property-body.diamond .property-desc,
  .property-card.gold .property-body.gold .property-desc,
  .property-card.silver .property-body.silver .property-desc {
    display: none;
  }

  .property-card.gold .container-gallery {
    /* max-height: 250px; */
    flex-direction: column;
  }
  .property-card.gold .container-gallery .property-body.gold .property-desc {
    display: none;
  }
  .property-card.silver .container-gallery .property-body.silver .property-desc {
    display: none;
  }

  .property-body .property-footer .agent-box .agent-name,
  .property-body .property-footer .agent-box .agent-status {
    font-size: 12px;
  }

  .property-body .property-footer .action-group button {
    padding: 5px 10px;
    font-size: 12px;
  }
  .property-body .property-footer .action-group .btn-calldt svg {
    display: none;
  }
  .property-body .property-footer .action-group .btn-calldt.phone-unavailable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    min-width: 45px;
    height: 36px;
    padding: 0;
    opacity: 1;
    cursor: default;
  }
  .property-body .property-footer .action-group .btn-calldt.phone-unavailable svg {
    display: block;
    width: 20px;
    height: 20px;
  }
  .property-body .property-footer .action-group .btn-calldt.phone-unavailable .displayPhoneNumber {
    display: none;
  }
  .property-body .property-footer .action-group .btn-like {
    width: 45px;
    height: 36px;
  }
  .property-gallery.gold {
    max-width: unset !important;
  }
  .property-card.silver .container-gallery {
    flex-direction: column;
  }
  .property-card.silver .container-gallery .property-gallery.silver {
    min-width: 100%;
  }
  .property-card.silver .container-gallery .property-gallery.silver .gallery-grid.silver {
    flex-direction: row;
    width: 100% !important;
  }
  .property-card.silver .container-gallery .property-gallery.silver .gallery-grid.silver .gallery-top {
    width: 60%;
  }
  .property-card.silver .container-gallery .property-gallery.silver .gallery-grid.silver .gallery-bot {
    width: 40%;
    flex-direction: column;
  }
  .property-card.silver .container-gallery .property-gallery.silver .gallery-grid.silver .gallery-bot img {
    width: 100%;
    height: 7.75rem;
  }
  .property-card.normal .container-gallery {
    flex-direction: column;
  }
  .property-card.normal .container-gallery .property-gallery.normal {
    max-width: 100%;
  }
  .property-card.normal .container-gallery .property-gallery.normal .gallery-grid.normal {
    width: 100%;
  }
  .property-card.normal .container-gallery .property-gallery.normal .gallery-grid.normal .gallery-top img {
    height: 14rem;
  }

  #filter-bar-elite-mobile {
    display: flex !important;
  }
  #filter-bar-elite-desktop {
    display: none !important;
  }
}

@media (max-width: 576px) {
}

@media (max-width: 480px) {
}
