#wpfloor-public {
  color: #fff;
  font-family: sans-serif;
  padding: 16px;
}
.wpfloor-public-focus {
  text-align: center;
  margin-bottom: 16px;
}
.wpfloor-public-countdown {
  font-size: 64px;
  font-weight: bold;
  margin-top: 8px;
}
.wpfloor-public-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  white-space: nowrap;
}
.wpfloor-public-cell {
  padding: 8px;
  text-align: center;
  border-radius: 0px;
}
.status-pending {
  background: #fff;
  color: #000;
}
.status-trading {
  background: #ff0;
  color: #000;
}
.status-sold {
  background: #ccc;
  color: #fff;
}

.wpfloor-public-section {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f905;
    border-radius: 0px;
    border: 1px solid #e0e0e01c;
}

.wpfloor-section-title {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    color: #fbfbfb;
    text-align: left;
}

.wpfloor-public-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wpfloor-public-list-item {
    background: white;
    padding: 8px 14px;
    border-radius: 0px;
    border: 1px solid #dcdcdc;
    font-size: 0.95em;
    color: #34495e;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wpfloor-public-empty {
    color: #7f8c8d;
    font-style: italic;
}

/* Highlight cho căn hộ đang đấu giá, đại lý đang đấu giá */
.wpfloor-public-list-item.current,
.wpfloor-public-cell.current-highlight {
  border: 3px solid #f1c40f;          /* viền vàng nổi bật */
  background: #fff9e6;                /* nền vàng nhạt */
  box-shadow: 0 0 12px rgba(241, 196, 15, 0.6);
  font-weight: bold;
  transform: scale(1.05);             /* phóng to nhẹ */
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}
/* Màn hình chúc mừng */
.wpfloor-public-congrats {
    background: #f0fff0;
    border: 2px solid #2ecc71;
    padding: 20px;
    text-align: center;
    margin: 15px 0;
    border-radius: 0px;
    animation: fadeIn 0.3s ease;
}
.wpfloor-congrats-countdown {
    font-size: 2rem;
    font-weight: bold;
    color: #2ecc71;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wpfloor-public-congrats {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e03636a8;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px); /* Điều chỉnh độ mờ bằng pixel */
    -webkit-backdrop-filter: blur(10px); /* Hỗ trợ cho Safari */
    z-index: 999;
}




/*layout screeen*/
.wpfloor-public-focus {
    position: fixed;
    left: auto;
    right: 50px;
    top: 50px;
}
.wpfloor-public-focus {
    display: flex;
    flex-direction: row;
    min-width: calc(100% - 120px);
    justify-content: flex-end;
    gap: 24px;
    align-items: center;
}

/*main layout */
div#wpfloor-public {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
        align-items: stretch;
}
.wpfloor-public-grid {
    display: flex;
    flex-direction: column;
    flex-basis: 220px;
    width: 220px;
}

.wpfloor-public-section {
    flex-basis: 40%;
    margin-top: 0;
}
div#wpfloor-public-agency-list {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#wpfloor-public-apartment,
#wpfloor-public-agency {
    color: #fff;
}


.wpfloor-no-current {
    opacity: 0.5;
    filter: grayscale(100%);
    pointer-events: none; /* nếu muốn vô hiệu hóa tương tác */
}


/* Sử dụng flexbox cho danh sách tổng để dễ quản lý khoảng cách */
.topten-list .wpfloor-public-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Định dạng chung cho các item bên trong topten-list */
.topten-list .wpfloor-public-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
}

/* --- VỊ TRÍ 1: Cúp vàng --- */
.topten-list .wpfloor-public-list-item:nth-child(1)::before {
    content: "🥇 1.";
    font-weight: bold;
    color: #FFD700; /* Màu vàng */
}

/* --- VỊ TRÍ 2: Cúp bạc --- */
.topten-list .wpfloor-public-list-item:nth-child(2)::before {
    content: "🥈 2.";
    font-weight: bold;
    color: #C0C0C0; /* Màu bạc */
}

/* --- VỊ TRÍ 3: Cúp đồng & Line ngăn cách --- */
.topten-list .wpfloor-public-list-item:nth-child(3) {
    position: relative;
    padding-bottom: 15px; /* Tạo khoảng trống vừa đủ để chứa line ngăn cách */
}

.topten-list .wpfloor-public-list-item:nth-child(3)::before {
    content: "🥉 3.";
    font-weight: bold;
    color: #CD7F32; /* Màu đồng */
}

/* Tạo đường line giống <hr> ngay sau item thứ 3 */
.topten-list .wpfloor-public-list-item:nth-child(3)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ccc; /* Màu của đường line ngăn cách */
}

/* --- CÁC ITEM CÒN LẠI (Từ vị trí số 4 trở đi) --- */
.topten-list .wpfloor-public-list-item:nth-child(n+4) {
    /* Giữ hiển thị bình thường, dịch chuyển nhẹ để không dính vào line ngăn cách */
    margin-top: 5px; 
}