.flats-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;       
    justify-content: space-between;
    padding: 20px 0;
}

.flat-box {
    flex: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    max-width: calc(33.33% - 20px); 
    min-width: 300px; 
    background-color: #fff;
    transition: transform 0.3s;
}

.flat-box:hover {
    /* transform: scale(1.05); */
}

.flat-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
	background-color: #E0E0E0;
}

.flat-box h3 {
    padding: 10px 15px;
    font-size: 1.25em;
    margin: 0;
}

.flat_desc {
    padding: 0 15px 10px;
    font-size: 1em;
    color: #666;
	min-height: 130px;
}

.flat-link {
	position: relative;
    display: block;
    padding: 10px 15px;
    background-color: var(--e-global-color-accent);
    color: #fff;
    text-align: center;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.flat-link:before{
	content: '';
	background-image: url('minilogo.svg');
	width: 17px;
	height: 28px;
	position: absolute;
	background-repeat: no-repeat;
	left: 20px;
}

.flat-link:hover {
	color:#FFF;
    background-color: var(--e-global-color-text);
}


.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Adjust width/height based on your loader graphic */
    width: 150px;
    height: 150px;
    /* background: url('loader.gif') no-repeat center center; */
}

#flats-gallery-box{
	display: flex;
	align-content: center;
	justify-content: center;
	align-items: center;
}


.nav-arrow {
    background-color: rgba(198, 171, 141, 0.18);
    padding: 10px;
	padding-top:15px;
	padding-bottom:15px;
    border-radius: 15px;
    transition: background-color 0.3s;
	cursor:pointer;
}

.nav-arrow:hover {
    background-color: rgba(198, 171, 141, 0.56);
}
.nav-arrow>svg{
	color: #958069b8;
	scale: 2;
	margin-top: 4px;
}

#flats-gallery-box {
    position: relative;
}

#goBack, #goForward {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

#goBack {
    left: -55px;
}

#goForward {
    right: -55px;
}

/* Mobile breakpoint */
@media screen and (max-width: 768px) {
    .flats-container {
        gap: 10px;
		  width: 80%;
    }

    .flat-box {
        max-width: 100%;
        flex-basis: 100%;
		min-width:auto;
    }
	
	#goForward {
    right: -8px;
}
#goBack {
    left: -8px;
}

}
