/* Property Grid Styles */
.resale-properties-grid {
    margin: 40px 0;
}

/* Property Card */
.property-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Property Image */
.property-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image {
    transform: scale(1.05);
}

/* Property Tags */
.property-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.tag {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: #000;
    color: #fff;
}

.tag-featured {
    background-color: #FFD700;
    color: #000;
}

/* Property Header (Type and Price) */
.property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.property-type, .property-price-inline {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    background-color: #f8f9fa;
    padding: 5px 12px;
    border-radius: 8px;
}

/* Property Title */
.property-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

/* Property Title */
.property-title a {
    color: #000;
    text-decoration: none !important;
}

.property-title a:hover {
    color: #333;
    text-decoration: none !important;
}

/* Map feature styling */
.map-feature a {
    color: #000;
    text-decoration: none !important;
    font-weight: 400;
    font-size: 17px;
    transition: color 0.3s ease;
}

.map-feature a:hover {
    color: #666;
    text-decoration: none !important;
}

/* Contact Buttons */
.contact-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-button:hover,
.contact-button:focus,
.contact-button:active,
.contact-button:visited {
    color: #fff;
    text-decoration: none !important;
}

/* Property Location */
.property-location {
    color: #666;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.property-location i {
    color: #000 !important;
    margin-right: 5px;
    font-size: 16px;
}

/* Property Content */
.property-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Property Features */
.property-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.feature, .map-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    color: #555;
}

.feature i, .map-feature i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000 !important;
    font-size: 16px;
    background-color: #f8f9fa;
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.map-feature a {
    color: #000;
    text-decoration: none !important;
    font-weight: 400;
    font-size: 17px;
    transition: color 0.3s ease;
}

.map-feature a:hover {
    color: #666;
}

/* Agent Info and Contact Buttons */
.property-agent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 5px;
}

.agent-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0;
}

.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.email-button {
    background-color: #000;
    color: #fff;
}

.whatsapp-button {
    background-color: #25D366;
    color: #fff;
}

.contact-button:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.contact-button i {
    margin-right: 0;
    font-size: 16px;
    color: #fff;
}

/* Google Maps Button */
.property-map-link {
    margin-bottom: 15px;
}

.map-button {
    display: inline-flex;
    align-items: center;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.map-button i {
    color: #000 !important;
    margin-right: 5px;
    font-size: 16px;
}

.map-button:hover {
    color: #666;
}

.map-button:hover i {
    color: #666 !important;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .property-features {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 767px) {
    .property-image-container {
        height: 180px;
    }
}

.property-features .feature {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
}

.map-feature a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}

.map-feature i {
    margin-right: 2px;
}