/**
 * Warren Cat Location Finder - Enhanced Styles
 * 
 * @package Warren_Cat_Company_Plugin
 */

/* Enhanced Location Finder Search Interface */
.warren-cat-location-finder-enhanced {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.wcat-enhanced-search .search-section-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.wcat-location-finder-form .search-input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.search-input-group {
    flex: 2;
    min-width: 300px;
    position: relative;
}

.search-input-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.wcat-location-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #ced4da;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #fff;
}

.wcat-location-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Validation styles */
.wcat-location-search-input.wcat-input-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.wcat-validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: block;
}

.wcat-location-search-input:focus,
.search-radius-group select:focus,
.filter-select:focus,
.warren-cat-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.search-radius-group {
    flex: 1;
    min-width: 140px;
}

.search-radius-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.search-radius-group select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.search-radius-group select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-color: #007bff;
}

.search-actions-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.warren-cat-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.warren-cat-btn-primary {
    background: #007bff;
    color: #fff;
}

.warren-cat-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.warren-cat-btn-secondary {
    background: #6c757d;
    color: #fff;
}

.warren-cat-btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.warren-cat-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Places Autocomplete Dropdown */
.places-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.places-dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.places-dropdown-item:hover,
.places-dropdown-item.active {
    background: #f8f9fa;
}

.places-dropdown-item:last-child {
    border-bottom: none;
}

.place-main-text {
    font-weight: 500;
    color: #212529;
}

.place-secondary-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Enhanced Filter Section */
.warren-cat-filters {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warren-cat-filters .filters-title {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.filter-select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-color: #007bff;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: auto;
}

/* Search Status and Results */
.search-status {
    text-align: center;
    padding: 2rem;
}

.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-error .error-message {
    color: #dc3545;
    font-weight: 500;
    line-height: 1.5;
}

.search-error.configuration-error {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
}

.search-error .admin-notice {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #1565c0;
}

.search-error .error-actions {
    margin-top: 1rem;
}

.retry-search-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.retry-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-no-results h3 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.search-no-results .no-results-message {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.search-suggestions {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.search-suggestions li {
    padding: 0.5rem 0;
    color: #495057;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
}

.search-suggestions li::before {
    content: "•";
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.suggestions-container {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.suggestions-container h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: #495057;
    font-weight: 600;
}

/* Loading State Enhancements */
.warren-cat-location-finder-form.loading-state {
    pointer-events: none;
    opacity: 0.7;
}

.search-loading .loading-text {
    margin-top: 0.5rem;
    font-style: italic;
    color: #6c757d;
}



/* Enhanced Location Cards */
.warren-cat-location-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.warren-cat-location-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.location-header {
    padding: 1.5rem 1.5rem 1rem;
}

.location-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.location-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.location-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-title a:hover {
    color: #007bff;
}

.location-distance {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.location-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-type-badge {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Service Offerings */
.location-services {
    padding: 0 1.5rem 1rem;
}

.services-label {
    font-weight: 500;
    color: #495057;
    display: block;
    margin-bottom: 0.5rem;
}

.services-container {
    position: relative;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-item {
    background: #f8f9fa;
    color: #495057;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.service-toggle-container {
    background: transparent;
    border: none;
    padding: 0;
}

.service-toggle-btn,
.service-collapse-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.service-toggle-btn:hover,
.service-collapse-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.toggle-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.services-expanded {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .warren-cat-location-finder-enhanced {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .wcat-location-finder-form .search-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-group,
    .search-radius-group {
        min-width: auto;
    }
    
    .search-actions-group {
        justify-content: center;
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    

    
    .location-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .services-list {
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .warren-cat-location-finder-enhanced {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .search-actions-group {
        flex-direction: column;
    }
    
    .warren-cat-btn {
        width: 100%;
        justify-content: center;
    }
}


/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .warren-cat-location-finder-enhanced {
        border: 2px solid;
    }
    
    .warren-cat-btn {
        border: 2px solid;
    }
    
    .warren-cat-location-card {
        border: 2px solid;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .warren-cat-btn,
    .warren-cat-location-card,
    .loading-spinner,
    .toggle-icon {
        transition: none;
        animation: none;
    }
    
    .warren-cat-btn:hover,
    .warren-cat-location-card:hover {
        transform: none;
    }
}

/* ================================================================ */
/* LOCATIONS LISTING SECTION - NEW PHASE 7 IMPLEMENTATION         */
/* ================================================================ */

/* Main Locations Listing Container */
.locations-listing-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.locations-listing-title {
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* City Section Styling */
.city-section {
    margin-bottom: 2.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.city-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #dee2e6;
}

.city-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Service Section Styling */
.service-section {
    border-bottom: 1px solid #e9ecef;
}

.service-section:last-child {
    border-bottom: none;
}

.service-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    position: relative;
}

.service-header:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.service-header:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
    background: #e9ecef;
}

.service-header[aria-expanded="true"] {
    background: #007bff;
    color: #ffffff;
}

.service-header[aria-expanded="true"]:hover {
    background: #0056b3;
}

.service-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
}

.service-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.service-header[aria-expanded="true"] .service-toggle {
    transform: rotate(180deg);
}

.service-toggle svg {
    width: 100%;
    height: 100%;
}

/* Service Locations Container */
.service-locations {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: #ffffff;
}

.service-locations[aria-hidden="false"] {
    max-height: 2000px; /* Large enough for content to expand */
}

/* Individual Location Item */
.location-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.2s ease;
}

.location-item:last-child {
    border-bottom: none;
}

.location-item:hover {
    background: #f8f9fa;
}

/* Location Header */
.location-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.location-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

/* Location Type Badges */
.location-type-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-type-badge.rental {
    background: #f44336;
    color: #ffffff;
}

.location-type-badge.equipment {
    background: #ffeb3b;
    color: #333333;
}

.location-type-badge.power_systems {
    background: #4caf50;
    color: #ffffff;
}

/* Location Information Sections */
.location-address,
.location-hours,
.location-contact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #495057;
}

.location-address svg,
.location-hours svg,
.location-contact svg {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #6c757d;
}

.location-address span,
.hours-display,
.contact-info {
    flex: 1;
    line-height: 1.5;
}

/* Business Hours Display */
.hours-today {
    color: #2c3e50;
}

.hours-today strong {
    color: #007bff;
}

.hours-default {
    color: #6c757d;
    font-style: italic;
}

/* Contact Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phone-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.phone-label {
    font-weight: 500;
    color: #495057;
    min-width: 60px;
}

.phone-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.phone-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Location Actions */
.location-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.warren-cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.warren-cat-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.warren-cat-btn:focus {
    outline: 2px solid #80bdff;
    outline-offset: 2px;
}

.warren-cat-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.warren-cat-btn:hover svg {
    transform: translateX(2px);
}

/* No Locations Message */
.no-locations-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
    font-size: 1.1rem;
}

/* Responsive Design for Location Listing */
@media (max-width: 768px) {
    .locations-listing-section {
        margin: 2rem auto;
        padding: 0 0.5rem;
    }
    
    .locations-listing-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .city-header {
        padding: 1rem 1.5rem;
    }
    
    .city-title {
        font-size: 1.3rem;
    }
    
    .service-header {
        padding: 1rem 1.5rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .location-item {
        padding: 1.25rem 1.5rem;
    }
    
    .location-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .location-name {
        font-size: 1rem;
    }
    
    .contact-info {
        gap: 0.25rem;
    }
    
    .phone-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .locations-listing-title {
        font-size: 1.5rem;
    }
    
    .city-header,
    .service-header,
    .location-item {
        padding: 1rem;
    }
    
    .city-title {
        font-size: 1.2rem;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .location-name {
        font-size: 0.95rem;
    }
    
    .warren-cat-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
}

/* ===================================================================
 * Warren Cat Location Finder Component Theme Styles
 * ================================================================== */

/* Base theme styles for location finder components */
.wcat-location-finder {
    position: relative;
    margin: 1rem 0;
    border-radius: 8px;
    overflow: hidden;
}

/* Theme-specific component styling */
.wcat-finder-theme-rental {
    border: 2px solid #f44336;
}

.wcat-finder-theme-rental .wcat-location-finder-title {
    color: #f44336;
}

.wcat-finder-theme-rental .wcat-search-btn.wcat-btn-primary {
    background-color: #f44336;
    border-color: #f44336;
}

.wcat-finder-theme-rental .wcat-search-btn.wcat-btn-primary:hover {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.wcat-finder-theme-equipment {
    border: 2px solid #fbc02d;
}

.wcat-finder-theme-equipment .wcat-location-finder-title {
    color: #f57f17;
}

.wcat-finder-theme-equipment .wcat-search-btn.wcat-btn-primary {
    background-color: #fbc02d;
    border-color: #fbc02d;
    color: #333333;
}

.wcat-finder-theme-equipment .wcat-search-btn.wcat-btn-primary:hover {
    background-color: #f9a825;
    border-color: #f9a825;
}

.wcat-finder-theme-power-systems,
.wcat-finder-theme-all {
    border: 2px solid #6c757d;
}

.wcat-finder-theme-power-systems .wcat-location-finder-title,
.wcat-finder-theme-all .wcat-location-finder-title {
    color: #495057;
}

.wcat-finder-theme-power-systems .wcat-search-btn.wcat-btn-primary,
.wcat-finder-theme-all .wcat-search-btn.wcat-btn-primary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.wcat-finder-theme-power-systems .wcat-search-btn.wcat-btn-primary:hover,
.wcat-finder-theme-all .wcat-search-btn.wcat-btn-primary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

.wcat-finder-theme-default {
    border: 2px solid #007bff;
}

.wcat-finder-theme-default .wcat-location-finder-title {
    color: #007bff;
}

/* Update existing power_systems badge to grey */
.location-type-badge.power_systems {
    background: #6c757d;
    color: #ffffff;
}

/* Component isolation - Ensure styles don't leak to parent page */
.wcat-location-finder * {
    box-sizing: border-box;
}

.wcat-location-finder input,
.wcat-location-finder select,
.wcat-location-finder button {
    font-family: inherit;
}

/* Compact layout for component version */
.wcat-location-finder.wcat-component-layout {
    padding: 1rem;
    max-width: none;
}

.wcat-location-finder.wcat-component-layout .wcat-location-finder-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.wcat-location-finder.wcat-component-layout .wcat-location-finder-map {
    margin-top: 1rem;
}

/* ===================================================================
 * Map Container Styling
 * ================================================================== */

/* Map container styling */
.wcat-location-finder-map {
    width: 100%;
    min-height: 400px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e1e5e9;
    background: #f8f9fa;
}

/* Inner map element that Google Maps attaches to */
.wcat-finder-map {
    width: 100% !important;
    height: 100% !important;
    min-height: 400px;
    position: relative;
}

/* Ensure map displays properly in component layout */
.wcat-location-finder.wcat-component-layout .wcat-location-finder-map {
    margin-top: 1rem;
}

/* Loading state for maps */
.wcat-location-finder-map.loading {
    background: #f8f9fa url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgPGNpcmNsZSBjeD0iMjAiIGN5PSIyMCIgcj0iMjAiIGZpbGw9IiNmOGY5ZmEiLz4KICA8L2c+Cjwvc3ZnPgo=') center center no-repeat;
}

/* Responsive design for component */
@media (max-width: 768px) {
    .wcat-location-finder {
        margin: 0.5rem 0;
        border-radius: 4px;
    }
    
    .wcat-location-finder.wcat-component-layout {
        padding: 0.75rem;
    }
    
    .wcat-location-finder.wcat-component-layout .wcat-location-finder-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .wcat-location-finder-map {
        min-height: 300px;
        border-radius: 4px;
    }
    
    .wcat-finder-map {
        min-height: 300px;
    }
}

/* ==========================================================================
   Service Offering Button Filters (Phase 10)
   ========================================================================== */

/* Service buttons container */
.wcat-service-buttons-container {
    margin: 1rem 0;
    padding: 0;
}

/* Service buttons wrapper with flexbox layout */
.wcat-service-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    align-items: center;
}

/* Individual service offering button */
.wcat-service-button {
    background: #ffffff;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    color: #495057;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    padding: 0.5rem 1rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    outline: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

/* Button hover state */
.wcat-service-button:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #212529;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button focus state for accessibility */
.wcat-service-button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-color: #007bff;
}

/* Active/selected button state */
.wcat-service-button.active,
.wcat-service-button.selected,
.wcat-service-button[aria-pressed="true"] {
    background: #007bff;
    border-color: #007bff;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.25);
}

/* Active button hover state */
.wcat-service-button.active:hover,
.wcat-service-button.selected:hover,
.wcat-service-button[aria-pressed="true"]:hover {
    background: #0056b3;
    border-color: #004085;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 123, 255, 0.35);
}

/* Disabled button state */
.wcat-service-button:disabled,
.wcat-service-button.disabled {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

/* Reset filters button */
.wcat-reset-filters-button {
    background: #6c757d;
    border: 2px solid #6c757d;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    padding: 0.5rem 1.25rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    outline: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin-left: auto; /* Position to the right */
}

/* Reset button hover state */
.wcat-reset-filters-button:hover {
    background: #545b62;
    border-color: #4e555b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Reset button focus state */
.wcat-reset-filters-button:focus {
    outline: 2px solid #6c757d;
    outline-offset: 2px;
}

/* Context-specific styling */
.wcat-service-button-finder {
    /* Finder-specific styles can be added here */
}

.wcat-service-button-directory {
    /* Directory-specific styles can be added here */
}

.wcat-service-button-map {
    /* Map-specific styles can be added here */
}

/* Filter group wrapper for buttons */
.wcat-filter-group.wcat-service-buttons-wrapper {
    width: 100%;
    margin: 0.75rem 0;
}

.wcat-filter-group.wcat-service-buttons-wrapper .wcat-service-buttons-container {
    margin: 0;
}

/* Responsive design for service buttons */
@media (max-width: 768px) {
    .wcat-service-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .wcat-service-button {
        width: 100%;
        justify-content: center;
        margin: 0;
        min-height: 44px; /* Larger touch target on mobile */
        font-size: 0.9rem;
    }
    
    .wcat-reset-filters-button {
        width: 100%;
        margin-left: 0;
        margin-top: 0.5rem;
        min-height: 44px;
        font-size: 0.9rem;
    }
    
    .wcat-service-buttons-container {
        margin: 0.75rem 0;
    }
}

@media (max-width: 480px) {
    .wcat-service-buttons {
        gap: 0.375rem;
    }
    
    .wcat-service-button {
        min-height: 48px; /* Even larger touch targets on small mobile */
        padding: 0.625rem 0.875rem;
        font-size: 0.85rem;
    }
    
    .wcat-reset-filters-button {
        min-height: 48px;
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
}

/* Integration with existing filter layouts */
.warren-cat-filter-form .wcat-service-buttons-wrapper {
    order: 2; /* Position after location type filter */
}

.warren-cat-map-filters .wcat-service-buttons-wrapper {
    flex: 1;
    margin: 0 0.5rem;
}

.warren-cat-map-filters .wcat-service-buttons-wrapper:first-child {
    margin-left: 0;
}

.warren-cat-map-filters .wcat-service-buttons-wrapper:last-child {
    margin-right: 0;
}

/* Ensure buttons work well with existing form layouts */
.filter-group.wcat-service-buttons-wrapper {
    display: block;
    width: 100%;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wcat-service-button {
        border-width: 3px;
    }
    
    .wcat-service-button.active,
    .wcat-service-button.selected {
        background: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    
    .wcat-reset-filters-button {
        border-width: 3px;
        background: #000000;
        border-color: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .wcat-service-button,
    .wcat-reset-filters-button {
        transition: none;
        transform: none !important;
    }
    
    .wcat-service-button:hover,
    .wcat-reset-filters-button:hover {
        transform: none;
    }
}

/* ===============================================
   Service Offerings Grouped Display Styles
   =============================================== */

/* Service Offerings Container */
.location-service-offerings {
    margin: 1.5rem 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.location-service-offerings:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Service Offerings Header (Clickable) */
.service-offerings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.service-offerings-header:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.service-offerings-header:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
    background: #e3f2fd;
}

.service-offerings-header:active {
    transform: translateY(0);
}

.service-offerings-header[aria-expanded="true"] {
    background: #007bff;
    color: #ffffff;
    border-bottom-color: #007bff;
}

.service-offerings-header[aria-expanded="true"]:hover {
    background: #0056b3;
}

/* Service Offerings Title */
.service-offerings-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: inherit;
}

.service-offerings-title svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* Service Offerings Toggle Arrow */
.service-offerings-toggle {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.service-offerings-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.service-offerings-header[aria-expanded="true"] .service-offerings-toggle {
    transform: rotate(180deg);
}

/* Service Offerings Content (Collapsible) */
.service-offerings-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #ffffff;
}

.service-offerings-content[aria-hidden="false"] {
    max-height: none;
}

/* Service Offering Individual Sections */
.service-offering-section {
    padding: 1.25rem;
    border-bottom: 1px solid #f8f9fa;
}

.service-offering-section:last-child {
    border-bottom: none;
}

.service-offering-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

/* Service Hours Section */
.service-hours {
    margin-bottom: 1.5rem;
}

.service-hours:last-child {
    margin-bottom: 0;
}

.service-hours-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.service-hours-header svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    color: #6c757d;
}

.service-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #dee2e6;
    transition: all 0.3s ease;
}

.hours-item.primary-hours {
    background: #e3f2fd;
    border-left-color: #007bff;
}

.hours-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.hours-item.primary-hours:hover {
    background: #bbdefb;
}

.hours-label {
    font-weight: 500;
    color: #495057;
    min-width: 120px;
}

.hours-today {
    color: #28a745;
    font-weight: 500;
}

.hours-today strong {
    color: #155724;
}

.hours-default {
    color: #6c757d;
    font-style: italic;
}

/* Service Phones Section */
.service-phones {
    margin-bottom: 1rem;
}

.service-phones:last-child {
    margin-bottom: 0;
}

.service-phones-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

.service-phones-header svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    color: #6c757d;
}

.service-phones-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.phone-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #dee2e6;
    transition: all 0.3s ease;
}

.phone-item.primary-phone {
    background: #e8f5e8;
    border-left-color: #28a745;
}

.phone-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.phone-item.primary-phone:hover {
    background: #d4edda;
}

.phone-label {
    font-weight: 500;
    color: #495057;
    min-width: 100px;
}

.phone-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.phone-link:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Primary Badges */
.primary-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
    margin-left: auto;
    flex-shrink: 0;
}

/* Info Window Styles (for Map Popups) */
.warren-cat-info-window .info-phone-numbers,
.warren-cat-info-window .info-operating-hours {
    margin: 1rem 0;
}

.warren-cat-info-window .phone-numbers-list,
.warren-cat-info-window .operating-hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.warren-cat-info-window .phone-entry,
.warren-cat-info-window .hours-entry {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #dee2e6;
}

.warren-cat-info-window .phone-entry.primary-phone,
.warren-cat-info-window .hours-entry.primary-hours {
    background: #e3f2fd;
    border-left-color: #007bff;
}

.warren-cat-info-window .phone-label,
.warren-cat-info-window .hours-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
}

.warren-cat-info-window .phone-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.warren-cat-info-window .phone-link:hover {
    text-decoration: underline;
}

.warren-cat-info-window .hours-today {
    color: #28a745;
    font-weight: 500;
    font-size: 0.9rem;
}

.warren-cat-info-window .primary-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    align-self: flex-start;
}

/* Location Finder Card Styles */
.location-finder-modal .phone-entry,
.location-finder-modal .hours-entry {
    margin-bottom: 0.5rem;
}

.location-finder-modal .phone-entry:last-child,
.location-finder-modal .hours-entry:last-child {
    margin-bottom: 0;
}

/* ===============================================
   Responsive Design for Service Offerings
   =============================================== */

/* Tablet Styles */
@media (max-width: 768px) {
    .service-offerings-header {
        padding: 0.875rem 1rem;
    }
    
    .service-offerings-title {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .service-offerings-title svg {
        width: 18px;
        height: 18px;
    }
    
    .service-offering-section {
        padding: 1rem;
    }
    
    .service-offering-name {
        font-size: 1rem;
    }
    
    .hours-item,
    .phone-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .hours-label,
    .phone-label {
        min-width: auto;
        font-size: 0.9rem;
    }
    
    .primary-badge {
        margin-left: 0;
        align-self: flex-start;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .location-service-offerings {
        margin: 1rem 0;
        border-radius: 6px;
    }
    
    .service-offerings-header {
        padding: 0.75rem;
    }
    
    .service-offerings-title {
        font-size: 0.95rem;
    }
    
    .service-offering-section {
        padding: 0.75rem;
    }
    
    .service-offering-name {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .service-hours,
    .service-phones {
        margin-bottom: 1rem;
    }
    
    .service-hours-header,
    .service-phones-header {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .hours-item,
    .phone-item {
        padding: 0.5rem;
    }
    
    .hours-label,
    .phone-label {
        font-size: 0.85rem;
    }
    
    .hours-today,
    .hours-default {
        font-size: 0.85rem;
    }
    
    .phone-link {
        font-size: 0.9rem;
    }
    
    .primary-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* Info window adjustments for mobile */
    .warren-cat-info-window .phone-entry,
    .warren-cat-info-window .hours-entry {
        padding: 0.375rem;
    }
    
    .warren-cat-info-window .phone-label,
    .warren-cat-info-window .hours-label {
        font-size: 0.8rem;
    }
    
    .warren-cat-info-window .hours-today {
        font-size: 0.85rem;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-offerings-header {
        border-bottom-width: 0.5px;
    }
    
    .hours-item,
    .phone-item {
        border-left-width: 2px;
    }
    
    .service-offering-name {
        border-bottom-width: 1px;
    }
}

/* Dark Mode Support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .location-service-offerings {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .service-offerings-header {
        background: #4a5568;
        color: #e2e8f0;
        border-bottom-color: #718096;
    }
    
    .service-offerings-header:hover {
        background: #718096;
    }
    
    .service-offerings-header[aria-expanded="true"] {
        background: #3182ce;
        border-bottom-color: #3182ce;
    }
    
    .service-offerings-content {
        background: #2d3748;
    }
    
    .service-offering-section {
        border-bottom-color: #4a5568;
    }
    
    .service-offering-name {
        color: #e2e8f0;
        border-bottom-color: #3182ce;
    }
    
    .service-hours-header,
    .service-phones-header {
        color: #cbd5e0;
    }
    
    .hours-item,
    .phone-item {
        background: #4a5568;
        border-left-color: #718096;
    }
    
    .hours-item.primary-hours {
        background: #2c5282;
        border-left-color: #3182ce;
    }
    
    .phone-item.primary-phone {
        background: #276749;
        border-left-color: #38a169;
    }
    
    .hours-label,
    .phone-label {
        color: #cbd5e0;
    }
    
    .phone-link {
        color: #63b3ed;
    }
    
    .phone-link:hover {
        color: #90cdf4;
    }
    
    .hours-today {
        color: #68d391;
    }
    
    .hours-today strong {
        color: #9ae6b4;
    }
    
    .hours-default {
        color: #a0aec0;
    }
}

/* Print Styles */
@media print {
    .location-service-offerings {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .service-offerings-header {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .service-offerings-content {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .service-offerings-toggle {
        display: none;
    }
    
    .phone-link {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    .primary-badge {
        background: #ddd !important;
        color: #000 !important;
        border: 1px solid #000;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .service-offerings-header,
    .service-offerings-toggle,
    .service-offerings-content,
    .hours-item,
    .phone-item {
        transition: none !important;
    }
    
    .service-offerings-header:hover,
    .hours-item:hover,
    .phone-item:hover {
        transform: none !important;
    }
}

/* Focus visible for better keyboard navigation */
.service-offerings-header:focus-visible {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

.phone-link:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 1px;
}