/* Header section */
header {
    width: 100%;
    height: 70vh;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}
header picture {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
header img {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
}
header div {
    z-index: 1;
    width: 100%;
    height: 70vh;
    position: absolute;
    top: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Main Section */
#properties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin: 10px auto 10px auto;
}
#properties-header h2 {
    display: inline-flex;
    font-family: 'Times New Roman', Times, serif; 
    margin: 10px 10px 10px 0px;
    font-size: 30px;
}
/* Filter Section */
#filter-button {
    text-transform: none;
    width: fit-content;
    margin: 10px 10px 10px 0px;
}
.filter-div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    margin: 0;
    padding: 0;
}

/* Empty State Section */
#empty-state {
    width: 50%;
    display: flex;
    flex-direction: column;
    color: #A3907C;
    align-items: center;
    margin: 50px auto;
}
#empty-state-icon {
    font-size: 200px;
}
#empty-state p {
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}

/* Properties Section */
.property-gallery {
    height: 250px; 
    width: 100%; 
    margin: 0; 
    padding: 0;
    display: flex;
    scroll-snap-type: x mandatory; 
    overflow-x: scroll;
    scrollbar-width: thin;
}
.property-card-image {
    flex: 0 0 100%; 
    scroll-snap-align: start;
    scroll-snap-stop: always;
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
    border-radius: 20px;
}
.featured {
    background-color: limegreen;
    color: white;
    padding: 5px 10px 5px 10px;
    position: absolute;
    top: 0;
    left: 5%;
    margin: 10px;
    border-radius: 20px;
    font-size: 14px;
}
.status {
    background-color: #A3907C;
    color: white;
    padding: 5px 10px 5px 10px;
    position: absolute;
    top: 0;
    right: 5%;
    margin: 10px;
    border-radius: 20px;
    font-size: 14px;
}
.location {
    color: white;
    position: absolute;
    bottom: 8%;
    left: 5%;
    display: flex;
    align-items: center;
    font-size: 12px;
    background-color: #A3907C;
    padding: 5px 10px 5px 10px;
    border-radius: 20px;
}
.location-icon {
    color: white;
    margin: 0px 5px 0px 0px;
}
.name {
    margin: 5px 0px 0px 0px;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
}
.price {
    margin: 5px 0px 0px 0px;
    padding: 0;
    font-size: 15px;
}
.bedrooms {
    margin: 5px 0px 0px 0px;
    padding: 0;
    font-size: 13px;
    display: flex;
    align-items: center;
}
.completion {
    margin: 5px 0px 0px 0px;
    padding: 0;
    font-size: 14px;
    color: limegreen;
    font-weight: bold;
}
.property-card-button-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    margin: 5px;
}

/* Page Button Section */
#admin-page-buttons {
    display: flex;
    flex-direction: row;
    margin: 10px 0px 10px 0px;
    padding: 0;
    justify-content: center;
}


/* Small screens (Mobile) */
@media only screen and (max-width: 600px) {
    /* Header Section */
    header h2 {
        font-size: 40px;
        font-family: 'Times New Roman', Times, serif;
        position: absolute;
        top: 40%;
        left: 25%;
        color: white;
        z-index: 2;
    }

    /* Properties Section */
    #properties-section {
        margin: 0px auto 0px auto;
        padding: 10px 0px 10px 0px;
        width: 100%;
        display: flex;
        flex-flow: column wrap;
    }
    .skeleton-container {
        display: flex;
        flex-direction: column;
        width: 90%;
        margin: 10px auto 10px auto;
    }
    .property-card {
        display: flex;
        flex-direction: column;
        width: 90%;
        margin: 10px auto 10px auto;
    }
}

/* Medium screens (Tablets) */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
    /* Header Section */
    header h2 {
        font-size: 50px;
        font-family: 'Times New Roman', Times, serif;
        position: absolute;
        top: 40%;
        left: 35%;
        color: white;
        z-index: 2;
    }

    /* Properties Section */
    #properties-section {
        margin: 0px auto 0px auto;
        padding: 10px 0px 10px 0px;
        width: 95%;
        display: flex;
        flex-flow: row wrap;
    }
    .skeleton-container {
        display: flex;
        flex-direction: column;
        width: calc(33% - 20px);
        margin: 10px;
    }
    .property-card {
        display: flex;
        flex-direction: column;
        width: calc(33% - 20px);
        margin: 10px;
    }
}

/* Large screens (Desktops) */
@media only screen and (min-width: 1025px) {
    /* Header Section */
    header h2 {
        font-size: 50px;
        font-family: 'Times New Roman', Times, serif;
        position: absolute;
        top: 40%;
        left: 40%;
        color: white;
        z-index: 2;
    }

    /* Properties Section */
    #properties-section {
        margin: 0px auto 0px auto;
        padding: 10px 0px 10px 0px;
        width: 80%;
        display: flex;
        flex-flow: row wrap;
    }
    .skeleton-container {
        display: flex;
        flex-direction: column;
        width: calc(33% - 20px);
        margin: 10px;
    }
    .property-card {
        display: flex;
        flex-direction: column;
        width: calc(33% - 20px);
        margin: 10px;
    }
}