/* Custom Property Grid Styles */
.custom-property-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 20px;
    margin: 20px 0;
}

/* Tablets */
@media (max-width: 1024px) {
    .custom-property-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 30px;
        margin: 0 20px; /* Added margin to give space on left and right */
    }
}

/* Mobile */
@media (max-width: 768px) {
    .custom-property-grid-container {
        grid-template-columns: 1fr;
        gap: 20px 20px;
        margin: 0 20px; /* Added margin to give space on left and right */
    }
}

/* Wrapper for each property: title outside the card */
.custom-property-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Title Styling - now ABOVE the card */
.custom-property-title {
    margin: 0 0 25px 0;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 500;
    line-height: 15px;
}

/* Property Card */
.custom-property-grid-item {
    background-color: #fff;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  height:100%;
    position: relative;
    transition: transform 0.3s ease;
    width: 100%;
}

/* Image Container */
.custom-property-grid-item .custom-property-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

/* Image */
.custom-property-grid-item .custom-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

/* Overlay */
.custom-property-grid-item .custom-property-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(70, 111, 140, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.custom-property-grid-item:hover .custom-property-overlay {
    opacity: 1;
}

/* "Les mer" Button */
.custom-les-mer-button {
    display: inline-block;
    color: #fff;
    font-weight: 500;
    background-color: #EB0A8C !important;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 3px;
    text-decoration: none;
    border: none !important;
}

.custom-les-mer-button:hover {
    color: white !important;
}

/* Property Details */
.custom-property-details {
    padding: 25px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Property Info (Icons) */
.custom-property-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
  
}

/* Icons Container */
.custom-property-icons {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Icon Labels */
.custom-property-icons .custom-icon-label {
    font-size: 16px;
    color: #1a1a1a;
    text-align:left;
    margin-bottom: 5px;
}

/* Icon Styling */
.custom-property-icons .custom-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* Excerpt */
.custom-property-excerpt {
    font-size: 16px;
    color: #555;
    margin-top: 10px;
}

/* Price - Placed at Bottom */
.custom-property-price {
    font-size: 16px;
    font-weight: bold;
    color: #1a1a1a;
    margin-top:20px!important; 
    margin-left:20px;
}


@media (max-width: 768px) {
    .custom-property-grid-container {
        grid-template-columns: 1fr;
        gap: 20px 20px;
        margin: 0 15px;
    }

    .custom-property-wrapper {
        margin-bottom: 30px; /* Adjust value as needed */
    }
}