/* Properties Grid Layout Fix */
.properties-page .properties-grid,
.page-imoveis .properties-grid,
.property-archive-page .properties-grid,
.archive-property .properties-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 24px !important;
    margin-top: 32px !important;
}

.properties-page .properties-grid.grid-view,
.page-imoveis .properties-grid.grid-view,
.property-archive-page .properties-grid.grid-view,
.archive-property .properties-grid.grid-view {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 24px !important;
}

@media (min-width: 768px) {
    .properties-page .properties-grid:not(.list-view),
    .page-imoveis .properties-grid:not(.list-view),
    .property-archive-page .properties-grid:not(.list-view),
    .archive-property .properties-grid:not(.list-view) {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
}

@media (min-width: 1024px) {
    .properties-page .properties-grid:not(.list-view),
    .page-imoveis .properties-grid:not(.list-view),
    .property-archive-page .properties-grid:not(.list-view),
    .archive-property .properties-grid:not(.list-view) {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.properties-page .properties-grid.list-view,
.page-imoveis .properties-grid.list-view,
.property-archive-page .properties-grid.list-view,
.archive-property .properties-grid.list-view {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* Property Cards */
.properties-page .property-card,
.page-imoveis .property-card,
.property-archive-page .property-card,
.archive-property .property-card {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e5e7eb !important;
    overflow: hidden !important;
}

/* Property Price - Green Color */
.properties-page .property-price,
.page-imoveis .property-price,
.property-archive-page .property-price,
.archive-property .property-price {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #10b981 !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
}

.properties-page .property-price strong,
.page-imoveis .property-price strong,
.property-archive-page .property-price strong,
.archive-property .property-price strong {
    color: #10b981 !important;
}

/* List View Specific Styles */
.properties-page .properties-grid.list-view .property-card,
.page-imoveis .properties-grid.list-view .property-card,
.property-archive-page .properties-grid.list-view .property-card,
.archive-property .properties-grid.list-view .property-card {
    display: flex !important;
    flex-direction: row !important;
    max-width: none !important;
    width: 100% !important;
    padding: 16px !important;
}

.properties-page .properties-grid.list-view .property-image-container,
.page-imoveis .properties-grid.list-view .property-image-container,
.property-archive-page .properties-grid.list-view .property-image-container,
.archive-property .properties-grid.list-view .property-image-container {
    width: 200px !important;
    height: 150px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
}

.properties-page .properties-grid.list-view .property-image,
.page-imoveis .properties-grid.list-view .property-image,
.property-archive-page .properties-grid.list-view .property-image,
.archive-property .properties-grid.list-view .property-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.properties-page .properties-grid.list-view .property-content,
.page-imoveis .properties-grid.list-view .property-content,
.property-archive-page .properties-grid.list-view .property-content,
.archive-property .properties-grid.list-view .property-content {
    flex: 1 !important;
    padding: 0 0 0 20px !important;
}

/* Property Image Container */
.properties-page .property-image-container,
.page-imoveis .property-image-container,
.property-archive-page .property-image-container,
.archive-property .property-image-container {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px 12px 0 0 !important;
}

.properties-page .property-image,
.page-imoveis .property-image,
.property-archive-page .property-image,
.archive-property .property-image {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

/* Property Content */
.properties-page .property-content,
.page-imoveis .property-content,
.property-archive-page .property-content,
.archive-property .property-content {
    padding: 20px !important;
}

/* Property Title */
.properties-page .property-title,
.page-imoveis .property-title,
.property-archive-page .property-title,
.archive-property .property-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.properties-page .property-title a,
.page-imoveis .property-title a,
.property-archive-page .property-title a,
.archive-property .property-title a {
    color: #1f2937 !important;
    text-decoration: none !important;
}

.properties-page .property-title a:hover,
.page-imoveis .property-title a:hover,
.property-archive-page .property-title a:hover,
.archive-property .property-title a:hover {
    color: #3b82f6 !important;
}

/* Property Location */
.properties-page .property-location,
.page-imoveis .property-location,
.property-archive-page .property-location,
.archive-property .property-location {
    color: #6b7280 !important;
    font-size: 0.9rem !important;
    margin-bottom: 16px !important;
}

/* Property Features */
.properties-page .property-features,
.page-imoveis .property-features,
.property-archive-page .property-features,
.archive-property .property-features {
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.properties-page .property-feature,
.page-imoveis .property-feature,
.property-archive-page .property-feature,
.archive-property .property-feature {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.9rem !important;
    color: #6b7280 !important;
}
