* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 62.5%;
    font-family: Roboto;
}
body {
    background-color: #f8f9fa;
}
/* Custom global-usage class */
.top--0 {
    top: 0;
}
.bottom--0 {
    bottom: 0;
}
.text--white {
    color: #ffffff;
}
.bg-forsale {
    background-color: #e74c3c;
}
.bg-forrent {
    background-color: #e67e22;
}
.corner--round {
    border-radius: 50%;
}
.corner--20 {
    border-radius: 20px;
}
.text-s {
    font-size: 1.2rem;
}
.text-m {
    font-size: 1.4rem;
}
.text-l {
    font-size: 1.6rem;
}

/* Style title block */
.title-container {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    padding: 12px;
}
h1 {
    font-size: 3.6rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
}
.title-container > p {
    font-size: 1.5rem;
    color: #7f8c8d;
    text-align: center;
}

/* Style cards block */
.property-container {
    max-width: 1200px;
    padding: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: auto;
}
.property {
    width: 350px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.15s ease-in;
}
.property:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.property-head {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.property-head > img {
    width: 100%;
    height: 100%;
    /* 2 thuộc tính dưới mình nhờ AI trợ giúp,
     vì muốn dùng image để có thẻ alt tối ưu SEO
     nên mình không chọn dùng background-image*/
    object-fit: cover;
    object-position: center;
}

/* Badges trên ảnh */
.badge-top,
.badge-bottom {
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px;
    gap: 4px;
}
.badge-top-wrap,
.badge-bottom-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}
.badge-top--left,
.badge-top--right {
    padding: 6px 16px;
    font-size: 1.2rem;
    line-height: 2rem; /* Thêm lineheight 20px + padding 12px để bằng icon 32px */
    font-weight: 600;
}
.badge-top--middle {
    width: 32px;
    height: 32px;
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
}
.badge-top--right {
    background-color: #34495e;
}

/* Badge giá */
.badge-bottom--left {
    padding: 8px 20px;
    background-color: #16a085;
    font-size: 1.4rem;
    font-weight: 700;
    transition: box-shadow .1s ease-in;
}
.badge-bottom--left:hover {
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.4);
}

.badge-bottom--middle,
.badge-bottom--right {
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Share button */
.badge-bottom--middle {
    color: #7f8c8d;
    transition: background-color .1s ease-in-out, color .1s ease-in-out;
    cursor: pointer;
}
.badge-bottom--middle:hover {
    background-color: #3498db;
    color: #ffffff;
}


/* Heart button */
.badge-bottom--right {
    color: #e74c3c;
    cursor: pointer;
    position: relative;
    transition: background-color .1s ease-in-out;
}
.badge-bottom--right > span {
    position: absolute;
    margin: auto;
}
.badge-bottom--right > .hover-status {
    opacity: 0;
    color: #ffffff;
    transition: opacity .1s ease-in-out;
}
.badge-bottom--right:hover {
    background-color: #e74c3c;
}
.badge-bottom--right:hover > .hover-status {
    opacity: 1;
}

    /* Thông tin chi tiết (dưới ảnh) */
.property-details {
    padding: 18px;
}
.property-address {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 4px 0 12px 0;
}
.property-address > p,
.property-address > span {
    font-size: 1.2rem;
    color: #95a5a6;
}
.property-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
}
.property-info--top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.property-info--top__owner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}
.property-info--top__owner-avatar {
    width: 24px;
    height: 24px;
    background-color: #bdc3c7;
    display: flex;
    justify-content: center;
    align-items: center;
}
.property-info--top__owner > p {
    color: #7f8c8d;
}
.property-info--top__posted-time {
    display: flex;
    gap: 8px;
    color: #95a5a6;
}
.property-info--top__posted-time > span {
    color: #95a5a6;
}

.property-info--bottom {
    border-top: 1px solid #ecf0f1;
    padding-top: 12px;
    display: flex;
    justify-content: flex-start;
    gap: 24px;
}
.property-info--bottom span {
    color: #95a5a6;
}
.property-info--bottom p {
    color: #7f8c8d;
}
.property-info--bottom > div {
    display: flex;
    gap: 8px;
}
