/* Style Home */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

.page-home-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 10px 0;
    padding: 0;
    gap: 25px;
    overflow-x: hidden;
}

.slider-content{
    display:flex;
    flex-direction: column;
    width: 100%;
}

.properties-content, .offers-content, .complexes-content{
    display: flex;
    flex-direction: column;
    width: 100%;
    position:relative;
    min-height: 500px;
}

.properties-items, .offers-items, .complexes-items{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    align-items: center;
    justify-content: space-between;
    overflow-x: hidden;
    padding: 5px;
    gap: 10px;
}

.properties-header, .offers-header, .complexes-header{
    display:flex;
    flex-direction: column;
    width: 100%;
    padding:15px;
}

.property-content, .complexe-content{
    display:flex;
    flex-direction: column;
    width: 100%;
    min-height: 150px;
    background-color: #fafafa;
    border-radius: 5px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.property-content-header, .complexe-content-header{
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding:15px;
}

.property-content-header, .complexe-content-header h5{
    font-family: "Roboto Light", sans-serif;
    text-transform: capitalize;
}

.complexe-image{
    display:flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.complexe-image img{
    display: flex;
    max-width: 100%;
    max-height: 100%;
}

.property-count, .complexe-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #60c695;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin:0;
}

.property-details, .complexe-details{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    text-align: center;
    margin: 0;
    padding: 0;
}


.property-button, .complexe-button{
    display: inline-block;
    padding: 5px;
    margin-top: 10px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.property-button:hover, .complexe-button:hover {
    background-color: #4d9f76;
    transform: scale(1.05);
    color: #fff;
}

.property-button:focus,  .complexe-button:focus{
    background-color: #4d9f76;
    outline: none;
    box-shadow: 0 0 5px rgba(96, 198, 149, 0.6);
}

.swiper-container {
    width: 100%;
    height: 100%;
}

swiper-slide {
    text-align: left;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}


.complexe-content {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.complexe-content-header {
    margin-bottom: 15px;
}

.complexe-items img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.swiper-button-next, .swiper-button-prev {
    color: #60c695;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    color: #4a9e7d;
}

.swiper-button-next, .swiper-button-prev {
    display: none !important;
}

.loading-spinner {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



@media (max-width: 768px) {
    .properties-content, .offers-content {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
    }
    .properties-content > *, .offers-content > * {
        flex: 0 0 auto;
        width: 100%;
        max-width: 360px;
    }

    /* Ascundem scroll bar-ul */
    .properties-content::-webkit-scrollbar,
    .offers-content::-webkit-scrollbar {
        display: none;
    }
}