/* Header section */
header {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}
header img {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
    object-position: center;
}
header div {
    z-index: 1;
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

/* Featured Section */
#featured-h2 {
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
    font-size: 25px;
    margin: 10px 10px 5px 10px;
}
#featured-p {
    font-family: 'Cagliostro', sans-serif; 
    text-align: center;
    margin: 0;
}
#purchase-section p {
    min-width: max-content;
    display: inline-flex;
}

/* About Section */
#about-section img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    object-position: center;
    visibility: hidden;
}
#about-section h2 {
    font-family: 'Times New Roman', Times, serif;  
    font-size: 35px;
    visibility: hidden;
}
#about-section p {
    font-family: 'Cagliostro', sans-serif; 
    visibility: hidden;
}
#about-button {
    text-transform: none;
    width: fit-content;
    margin: 10px 10px 10px 0px;
    border-radius: 30px;
    visibility: hidden;
}

/* Services Section */
#services-section picture {
    flex: 0 0 100%; 
    scroll-snap-align: start;
    scroll-snap-stop: always;
    width: 100%; 
    height: 100%; 
    margin: 0; 
    padding: 0;
    overflow: hidden;
}
#services-section img {
    object-fit: cover;
    object-position: center;
    height: 100%; 
    width: 100%; 
    margin: 0; 
    padding: 0;
}
#services-section h2 {
    font-family: 'Times New Roman', Times, serif;  
    font-size: 35px;
    margin: 0px 10px 0px 0px;
    visibility: hidden;
}
#services-section h3 {
    font-family: 'Cagliostro', sans-serif;   
    font-size: 20px;
    margin: 5px 10px 5px 0px;
    visibility: hidden;
}
#services-section p {
    font-family: 'Cagliostro', sans-serif; 
    margin: 0;
    visibility: hidden;
}

/* Properties Section */
#properties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#properties-header h2 {
    display: inline-flex;
    font-family: 'Times New Roman', Times, serif; 
    margin: 10px 10px 10px 0px;
    font-size: 30px;
}
#properties-button {
    text-transform: none;
    width: fit-content;
    margin: 10px 10px 10px 0px;
}
/* Types Section */
#types-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: calc(100% - 10px);
    margin: 10px;
}
#types-section p {
    min-width: max-content;
    display: inline-flex;
}
.chips-section {
    display: flex;
    flex-flow: row nowrap;
    overflow-x: auto; 
    scrollbar-width: thin;
}

/* Empty State Section */
.empty-state {
    width: 50%;
    display: flex;
    flex-direction: column;
    color: #A3907C;
    align-items: center;
    margin: 50px auto;
}
.empty-state p {
    font-size: 20px;
    text-align: center;
    font-weight: bold;
}

/* Properties Div 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;
}

/* Contact Section */
#contact-section p {
    margin: 0;
    visibility: hidden;
}
#contact-button {
    text-transform: none;
    width: fit-content;
    margin: 10px;
    border-radius: 20px;
    visibility: hidden;
}

/* Dialog */
dialog h2 {
    color: #A3907C; 
    display: flex; 
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}
#dialog-icon {
    font-size: 30px;
    margin: 5px;
    color: #A3907C;
}
dialog p {
    font-family: 'Cagliostro', sans-serif; 
    margin: 5px;
}
dialog a {
    text-decoration: none;
    font-weight: bold;
    color: black;
}
dialog form {
    display: flex; 
    justify-content: space-evenly;
}
#send-layout {
    display: flex;
    flex-direction: row;
}
#send {
    text-transform: none;
    margin: 10px;
}
#progressbar {
    margin: 10px 0px 10px 0px;
    color: #A3907C;
}

/* Small screens (Mobile) */
@media only screen and (max-width: 600px) {
    /* Header section */
    header h2 {
        font-size: 50px;
        font-family: 'Times New Roman', Times, serif;
        position: absolute;
        bottom: 15%;
        left: 5%;
        color: white;
        z-index: 2;
    }

    /* Featured Section */
    #purchase-section {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    /* About Section */
    #about-section {
        display: flex; 
        flex-direction: column; 
        margin: 0;
        padding: 0;
    }
    #about-section picture {
        width: 100%; 
        height: 400px;
    }
    #about-section article {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    /* Services Section */
    #services-section {
        display: flex;
        flex-flow: column nowrap;
    }
    #services-section div { 
        width: 100%;
        height: 400px;
        margin: 0; 
        padding: 0;
        display: flex;
        scroll-snap-type: x mandatory; 
        overflow-x: scroll;
        scrollbar-width: none;
        order: 2;
        visibility: hidden;
    }
    #services-section article {
        width: 100%;
        padding: 20px;
        order: 1;
    }

    /* Properties Section */
    .properties-section {
        width: 90%;
        margin: 20px auto 20px auto;
    }
    .properties-div {
        margin: 0px auto 0px auto;
        padding: 0px 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;
    }

    /* Contact Section */
    #contact-section {
        font-family: 'Cagliostro', sans-serif; 
        width: 90%;
        font-size: 30px;
        margin: 8% auto 8% auto;
        text-align: center;
    }

    /* Dialog */
    dialog {
        border-radius: 30px; 
        border-color: white;
        width: 90%;
    }
}

/* Medium screens (Tablets) */
@media only screen and (min-width: 601px) and (max-width: 1024px) {
    /* Header section */
    header h2 {
        font-size: 80px;
        font-family: 'Times New Roman', Times, serif;
        position: absolute;
        bottom: 10%;
        left: 5%;
        color: white;
        z-index: 2;
    }

    /* Featured Section */
    #purchase-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-self: center;
    }

    /* About Section */
    #about-section {
        display: flex; 
        flex-direction: column; 
        margin: 0;
        padding: 0;
    }
    #about-section picture {
        width: 100%; 
        height: 400px;
    }
    #about-section article {
        width: 60%;
        display: flex;
        flex-direction: column;
        padding: 20px;
        margin: 0px auto 0px auto;
    }

    /* Services Section */
    #services-section {
        display: flex;
        flex-direction: column;
    }
    #services-section div { 
        width: 100%;
        height: 400px;
        margin: 0; 
        padding: 0;
        display: flex;
        scroll-snap-type: x mandatory; 
        overflow-x: scroll;
        scrollbar-width: none;
        order: 2;
        visibility: hidden;
    }
    #services-section article {
        width: 60%;
        padding: 20px;
        order: 1;
        margin: 0px auto 0px auto;
    }

    /* Properties Section */
    .properties-section {
        width: 90%;
        margin: 20px auto 20px auto;
    }
    .properties-div {
        margin: 0px auto 0px auto;
        padding: 0px 0px 10px 0px;
        width: 95%;
        display: flex;
        flex-flow: row wrap;
        justify-content: center;
    }
    .skeleton-container {
        display: flex;
        flex-direction: column;
        width: calc(300px - 20px);
        margin: 10px;
    }
    .property-card {
        display: flex;
        flex-direction: column;
        width: calc(300px - 20px);
        margin: 10px;
    }

    /* Contact Section */
    #contact-section {
        font-family: 'Cagliostro', sans-serif; 
        width: 60%;
        font-size: 30px;
        margin: 5% auto 5% auto;
        text-align: center;
    }

    /* Dialog */
    dialog {
        border-radius: 30px; 
        border-color: white;
        width: 50%;
    }
}

/* Large screens (Desktops) */
@media only screen and (min-width: 1025px) {
    /* Header section */
    header h2 {
        font-size: 80px;
        font-family: 'Times New Roman', Times, serif;
        position: absolute;
        bottom: 10%;
        left: 5%;
        color: white;
        z-index: 2;
    }

    /* Featured Section */
    #purchase-section {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-self: center;
    }

    /* About Section */
    #about-section {
        display: flex; 
        flex-direction: row; 
        margin: 0;
        padding: 0;
        height: 500px;
    }
    #about-section picture {
        width: 50%; 
        height: 100%;
    }
    #about-section article {
        width: 50%;
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    /* Services Section */
    #services-section {
        display: flex;
        flex-flow: row nowrap;
    }
    #services-section div { 
        width: 50%;
        margin: 0; 
        padding: 0;
        display: flex;
        scroll-snap-type: x mandatory; 
        overflow-x: scroll;
        scrollbar-width: none;
        order: 1;
        visibility: hidden;
    }
    #services-section article {
        width: 50%;
        padding: 20px;
        order: 2;
    }

    /* Properties Section */
    .properties-section {
        width: 80%;
        margin: 20px auto 20px auto;
    }
    .properties-div {
        margin: 0px auto 0px auto;
        padding: 0px 0px 10px 0px;
        width: 90%;
        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;
    }

    /* Contact Section */
    #contact-section {
        font-family: 'Cagliostro', sans-serif; 
        width: 60%;
        font-size: 30px;
        margin: 5% auto 5% auto;
        text-align: center;
    }

    /* Dialog */
    dialog {
        border-radius: 30px; 
        border-color: white;
        width: 50%;
    }
}