.properties-section {
    margin-top: 5rem;
    margin-bottom: 2rem;
}

.properties-section__info {
    position: relative;
    text-align: center;
}

.properties-section__info h1 {
    position: relative;
    color: var(--color-primary-text);
    font-size: 2.5rem;
}

.properties-section__info h1::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    width: 8rem;
    height: 2px;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    opacity: 0.8;
}

.properties-section__info > p {
    color: var(--color-muted-text);
    padding: 0 8rem;
}

.properties-section__filters {
    text-align: center;
    margin-top: 2rem;
}

.properties-section__filters > h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-primary-text);
}

#property-types-filter:focus, 
#listing-types-filter:focus {
    box-shadow: 0 0 0 0.2rem var(--color-secondary-background-25);
}

.properties-section__filters > h3 {
    font-size: 1.5rem;
    margin-top: 3rem;
    color: var(--color-red);
}

.property {
    position: relative;
    background-color: var(--color-primary-background);
    border-radius: 0.5rem;
    transition: border 0.25s ease-in;
    border: solid 1px transparent;
    height: 100%;
    height: -moz-available;
    height: -webkit-fill-available;
    height: stretch;
    display: flex;
    flex-direction: column;
}

.property:hover {
    border: solid 1px var(--color-accent-75);
}

.property:hover .property__img-wrapper img{
    transform: scale(1.1);
}

.property__img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.25 / 1;
    border-radius: 0.5rem 0.5rem 0 0;
}

.property__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem 0.5rem 0 0;
    transition: transform 0.25s ease-in;
}

.property__type,
.listing__type {
    position: absolute;
    top: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
}

.property__type {
    inset-inline-start: 1rem;
    background-color: var(--color-muted-background);
    color: var(--color-accent);
}

.listing__type {
    inset-inline-end: 1rem;
    background-color: var(--color-accent);
    color: var(--color-secondary-text);
}

.property__details {
    text-align: start;
    padding:  2rem 1rem;
    background-color: var(--color-muted-background);
    border-radius: 0 0 0.5rem 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property__title {
    color: var(--color-primary-text);
}

.property__location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-muted-text);
}

.property__location span {
    font-size: 1.25rem;
    color: var(--color-accent-75);
}

.property__specifications {
    display: flex;
    flex-wrap: wrap;
    border-top: solid 1px var(--color-muted-border);
    padding-top: 1rem;
    color: var(--color-muted-text);
    color: var(--color-primary-text);
    margin-bottom: auto;
}

.property__specification-wrapper {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0.25rem;
}

.property__specification {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0.5rem;
    background-color: var(--color-primary-background);
    border-radius: 0.25rem;
}

.property__specification-icon {
    color: var(--color-muted-text);
}

.property__btn-details {
    position: relative;
    border: solid 1px var(--color-accent);
    color: var(--color-accent);
    width: 100%;
    z-index: 1;
    padding: 0.5rem 0;
    margin-top: 1.5rem;
    transition: color 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.property__btn-details::before {
    content: "";
    position: absolute;
    z-index: -1;
    background: var(--color-accent);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.3, 1, 0.8, 1);
}

.property__btn-details:hover {
    color: var(--color-secondary-text);
}

.property__btn-details:focus,
.property__btn-details:active {
    box-shadow: 0 0 0 0.2rem var(--color-accent-25);
}

.property__btn-details:hover::before {
    opacity: 1;
}

@media screen and (max-width: 991px){

    .properties-section__info > p {
        padding: 0 4rem;
    }

    .property__details {
        padding: 1rem;
    }

}

@media screen and (max-width: 767px){
    .property-wrapper {
        margin: 0 auto;
    }
}

@media screen and (max-width: 425px){

    .properties-section__info > p {
        padding: 0 2rem;
    }

    .property__details {
        padding: 0.75rem;
    }

}

