/* General Service List/Grid Styles */
.sla-services-wrapper {
    margin-top: 20px;
}

/* Grid Layout */
.sla-services-grid {
    display: grid;
    gap: 20px;
}

.sla-services-grid.sla-columns-1 {
    grid-template-columns: repeat(1, 1fr);
}
.sla-services-grid.sla-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}
.sla-services-grid.sla-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}
.sla-services-grid.sla-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* List Layout */
.sla-services-list .sla-service-item {
    display: flex;
    border: 1px solid var(--sla-primary-color);
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
    padding: 15px;
    align-items: flex-start;
}
.sla-services-list .sla-service-thumbnail {
    flex: 0 0 150px; /* Fixed width for thumbnail in list */
    margin-right: 20px;
}
.sla-services-list .sla-service-content {
    flex-grow: 1;
}


/* Individual Service Item Styles */
.sla-service-item {
    border: 1px solid #eee;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.sla-service-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.sla-service-item .sla-service-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
}

.sla-service-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.sla-service-item h3 a {
    text-decoration: none;
    color: var(--sla-primary-color);
    font-size: 1.2em;
}

.sla-service-item .sla-service-excerpt {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 15px;
}

.sla-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--sla-primary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 10px; /* Added spacing */
}

.sla-whatsapp-btn:hover {
    background-color: var(--sla-accent-color);
    color: #fff; /* Ensure text color stays white on hover */
}

.sla-whatsapp-btn .dashicons {
    margin-right: 5px;
    font-size: 18px;
    line-height: 1;
}

/* NEW: Style for textual location */
.sla-service-location-text {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
    margin-bottom: 10px; /* Added spacing */
    display: flex;
    align-items: center;
}

.sla-service-location-text .dashicons {
    margin-right: 5px;
    font-size: 18px;
    line-height: 1;
}

/* NEW: Style for Additional Services Button */
.sla-additional-services-btn {
    display: inline-flex;
    align-items: center;
    background-color: #555; /* A neutral color, you can define a new CSS variable if you want */
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.sla-additional-services-btn:hover {
    background-color: #333;
    color: #fff;
}

.sla-additional-services-btn .dashicons {
    margin-right: 5px;
    font-size: 18px;
    line-height: 1;
}


.sla-service-views {
    font-size: 0.9em;
    color: #777;
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.sla-service-views .dashicons {
    margin-right: 5px;
    font-size: 18px;
    line-height: 1;
}


/* Single Service Page Styles */
.single-service .entry-header {
    margin-bottom: 20px;
}

.single-service .sla-service-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.single-service .sla-service-gallery img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* General button styling for single page */
.single-service .sla-contact-buttons a {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 15px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.single-service .sla-contact-buttons .dashicons {
    margin-right: 8px;
    font-size: 20px;
    line-height: 1;
}

/* WhatsApp Link */
.single-service .sla-whatsapp-link {
    background-color: var(--sla-primary-color);
    color: #fff;
}
.single-service .sla-whatsapp-link:hover {
    background-color: var(--sla-accent-color);
    color: #fff;
}

/* NEW: Additional Services Link on single page */
.single-service .sla-additional-services-link {
    background-color: #555; /* Neutral color, consistent with shortcode */
    color: #fff;
}
.single-service .sla-additional-services-link:hover {
    background-color: #333;
    color: #fff;
}

/* NEW: Textual Location on single page */
.single-service .sla-service-location-info {
    font-size: 1em;
    color: #555;
    margin-top: 20px;
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 20px;
}

.single-service .sla-service-location-info .dashicons {
    margin-right: 10px;
    font-size: 24px;
    color: var(--sla-primary-color);
}


.single-service .sla-service-views-info {
    font-size: 1em;
    color: #555;
    margin-top: 20px;
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.single-service .sla-service-views-info .dashicons {
    margin-right: 10px;
    font-size: 24px;
    color: var(--sla-primary-color);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .sla-services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .sla-services-list .sla-service-item {
        flex-direction: column;
        text-align: center;
    }
    .sla-services-list .sla-service-thumbnail {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
@media (max-width: 480px) {
    .sla-services-grid {
        grid-template-columns: 1fr;
    }
    .single-service .sla-contact-buttons a {
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
    }
}