/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Grid de propiedades */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.property-card {
    background-color: rgb(255, 255, 255);
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.no-image {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.property-info {
    padding: 15px;
}

.property-info h3 a {
    font-size: 0.7em;
    color: #323B3B;
    text-decoration: none;
    line-height: 20px !important;
}

.price {
    font-size: 1.5em;
    font-weight: bold;
    color: #0042FF;
    margin: 10px 0;
}

.property-features {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    font-size: 0.9em;
    color: #666;
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.pagination a {
    padding: 8px 16px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
}

.pagination a:hover {
    background: #f0f0f0;
}

/* Ficha de propiedad */
.property-gallery {
    margin-bottom: 30px;
}

.main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.agent-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.agent-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* Perfil de agente */
.agent-profile {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.agent-profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .agent-profile {
        flex-direction: column;
        text-align: center;
    }
    
}


/* Responsive */
@media (max-width: 768px) {
    .agent-contact-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .agent-contact-photo {
        margin: 0 auto;
    }
    
    .agent-contact-photo img {
        width: 100px;
        height: 100px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .whatsapp-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .agent-contact-section h2 {
        font-size: 1.5em;
    }
}