/* Murillo DOMUS API Plugin Styles */

/* Properties Grid */
.domus-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

/* Property Card */
.domus-property-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.domus-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.15);
}

.domus-card-image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.domus-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.domus-property-card:hover .domus-card-image img {
    transform: scale(1.05);
}

.domus-card-content {
    padding: 16px;
}

.domus-card-title {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
}

.domus-card-title a {
    color: #1E3A8A;
    text-decoration: none;
}

.domus-card-title a:hover {
    color: #10B981;
}

.domus-card-location {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 0.95em;
}

.domus-card-price {
    margin: 0 0 12px 0;
    font-size: 1.4em;
    font-weight: bold;
    color: #10B981;
}

.domus-card-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #555;
    font-size: 0.9em;
}

.domus-feature {
    display: flex;
    align-items: center;
    gap: 4px;
}

.domus-btn-details {
    display: block;
    width: 100%;
    text-align: center;
    background: #1E3A8A;
    color: white;
    padding: 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
}

.domus-btn-details:hover {
    background: #10B981;
}

/* Property Detail */
.domus-property-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.domus-detail-header {
    margin-bottom: 30px;
}

.domus-property-detail h1 {
    color: #1E3A8A;
    margin-bottom: 10px;
    font-size: 2em;
}

.domus-detail-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #10B981;
    margin: 0;
}

.domus-detail-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.domus-detail-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.domus-detail-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.domus-feature-item {
    padding: 10px 0;
}

.domus-feature-item strong {
    color: #1E3A8A;
}

.domus-detail-section {
    margin-bottom: 30px;
}

.domus-detail-section h3 {
    color: #1E3A8A;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.domus-detail-description {
    line-height: 1.6;
    color: #333;
}

/* Gallery */
.domus-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.domus-gallery-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.domus-gallery-img:hover {
    transform: scale(1.05);
}

/* Error Messages */
.domus-no-properties,
.domus-detail-error {
    padding: 20px;
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    color: #1e40af;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .domus-properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
    }

    .domus-property-detail h1 {
        font-size: 1.5em;
    }

    .domus-detail-features {
        grid-template-columns: 1fr;
    }

    .domus-card-features {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .domus-properties-grid {
        grid-template-columns: 1fr;
    }

    .domus-property-detail h1 {
        font-size: 1.2em;
    }

    .domus-detail-price {
        font-size: 1.5em;
    }
}
