/* Enhanced Locations Grid CSS - Add to your theme or create new file */


.service-item.service-style-1 .service-post-thumbnail img{
    filter: none;
}

.location-grid .service-item.service-style-1 .service-post-thumbnail {
    height: 550px;
}

/* Use same base styling as Posts Grid */
.elementor-widget-rebuildo-locations-grid .elementor-post-wrapper {
    width: 100%;
}

.elementor-widget-rebuildo-locations-grid .d-grid {
    display: grid;
    width: 100%;
    grid-gap: 30px;
}

/* Location Items - Match Posts Grid styling */
.elementor-widget-rebuildo-locations-grid .grid-item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.elementor-widget-rebuildo-locations-grid .grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Post Inner Structure */
.elementor-widget-rebuildo-locations-grid .post-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Grid vs List Layout */
.elementor-widget-rebuildo-locations-grid.elementor-post-list .post-inner.blog-list {
    flex-direction: row;
    align-items: flex-start;
}

.elementor-widget-rebuildo-locations-grid.elementor-post-list .post-thumbnail {
    flex: 0 0 40%;
    max-width: 40%;
}

.elementor-widget-rebuildo-locations-grid.elementor-post-list .post-content {
    flex: 1;
    padding-left: 1.5rem;
}

/* Thumbnail Styling */
.elementor-widget-rebuildo-locations-grid .post-thumbnail {
    position: relative;
    overflow: hidden;
}

.elementor-widget-rebuildo-locations-grid .post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.elementor-widget-rebuildo-locations-grid .grid-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Placeholder Image Styling */
.elementor-widget-rebuildo-locations-grid .placeholder-image {
    background: linear-gradient(45deg, #f8f9fa 25%, transparent 25%, transparent 75%, #f8f9fa 75%, #f8f9fa),
                linear-gradient(45deg, #f8f9fa 25%, transparent 25%, transparent 75%, #f8f9fa 75%, #f8f9fa);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-color: #f0f0f0;
    opacity: 0.8;
}

/* Location Badge (like category badge) */
.elementor-widget-rebuildo-locations-grid .categories-link {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.elementor-widget-rebuildo-locations-grid .location-badge {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.elementor-widget-rebuildo-locations-grid .location-badge:hover {
    background: rgba(40, 167, 69, 1);
    transform: scale(1.05);
}

/* Content Area */
.elementor-widget-rebuildo-locations-grid .post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Entry Header */
.elementor-widget-rebuildo-locations-grid .entry-header {
    margin-bottom: 1rem;
}

/* Meta Styling */
.elementor-widget-rebuildo-locations-grid .entry-meta {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #666;
}

.elementor-widget-rebuildo-locations-grid .location-meta {
    color: #007cba;
    font-weight: 500;
}

.elementor-widget-rebuildo-locations-grid .entry-meta a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.elementor-widget-rebuildo-locations-grid .entry-meta a:hover {
    color: #007cba;
}

/* Title Styling */
.elementor-widget-rebuildo-locations-grid .entry-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.elementor-widget-rebuildo-locations-grid .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.elementor-widget-rebuildo-locations-grid .entry-title a:hover {
    color: #007cba;
}

/* Entry Content */
.elementor-widget-rebuildo-locations-grid .entry-content {
    margin-top: auto;
}

.elementor-widget-rebuildo-locations-grid .entry-excerpt {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
    flex: 1;
}

/* More Link Styling */
.elementor-widget-rebuildo-locations-grid .more-link-wrap {
    margin-top: auto;
}

.elementor-widget-rebuildo-locations-grid .more-link {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.elementor-widget-rebuildo-locations-grid .more-link:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* No Locations Found */
.elementor-widget-rebuildo-locations-grid .no-locations-found {
    text-align: center;
    padding: 3rem;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

.elementor-widget-rebuildo-locations-grid .no-locations-found p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.elementor-widget-rebuildo-locations-grid .no-locations-found a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.elementor-widget-rebuildo-locations-grid .no-locations-found a:hover {
    text-decoration: underline;
}

/* Loading Animation */
.elementor-widget-rebuildo-locations-grid .grid-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.elementor-widget-rebuildo-locations-grid .grid-item:nth-child(1) { animation-delay: 0.1s; }
.elementor-widget-rebuildo-locations-grid .grid-item:nth-child(2) { animation-delay: 0.2s; }
.elementor-widget-rebuildo-locations-grid .grid-item:nth-child(3) { animation-delay: 0.3s; }
.elementor-widget-rebuildo-locations-grid .grid-item:nth-child(4) { animation-delay: 0.4s; }
.elementor-widget-rebuildo-locations-grid .grid-item:nth-child(5) { animation-delay: 0.5s; }
.elementor-widget-rebuildo-locations-grid .grid-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .elementor-widget-rebuildo-locations-grid.elementor-post-list .post-inner.blog-list {
        flex-direction: column;
    }
    
    .elementor-widget-rebuildo-locations-grid.elementor-post-list .post-thumbnail {
        flex: none;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .elementor-widget-rebuildo-locations-grid.elementor-post-list .post-content {
        padding-left: 0;
    }
    
    .elementor-widget-rebuildo-locations-grid .post-thumbnail img {
        height: 200px;
    }
    
    .elementor-widget-rebuildo-locations-grid .entry-title {
        font-size: 1.25rem;
    }
    
    .elementor-widget-rebuildo-locations-grid .categories-link {
        top: 10px;
        right: 10px;
    }
    
    .elementor-widget-rebuildo-locations-grid .location-badge {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
    
    .elementor-widget-rebuildo-locations-grid .d-grid {
        grid-template-columns: 1fr !important;
        grid-gap: 20px;
    }
}

/* High DPI/Retina Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .elementor-widget-rebuildo-locations-grid .post-thumbnail img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Theme Support (if your theme supports it) */
@media (prefers-color-scheme: dark) {
    .elementor-widget-rebuildo-locations-grid .grid-item {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .elementor-widget-rebuildo-locations-grid .entry-title a {
        color: #e0e0e0;
    }
    
    .elementor-widget-rebuildo-locations-grid .entry-title a:hover {
        color: #4da6d9;
    }
    
    .elementor-widget-rebuildo-locations-grid .no-locations-found {
        background: #1a1a1a;
        color: #ccc;
    }
}

/* Hover Effects for Interactive Elements */
.elementor-widget-rebuildo-locations-grid .grid-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.elementor-widget-rebuildo-locations-grid .grid-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.elementor-widget-rebuildo-locations-grid .grid-item:hover::before {
    transform: translateX(100%);
}

/* Focus States for Accessibility */
.elementor-widget-rebuildo-locations-grid .entry-title a:focus,
.elementor-widget-rebuildo-locations-grid .more-link:focus,
.elementor-widget-rebuildo-locations-grid .location-badge:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .elementor-widget-rebuildo-locations-grid .grid-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .elementor-widget-rebuildo-locations-grid .more-link {
        display: none;
    }
    
    .elementor-widget-rebuildo-locations-grid .d-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}