* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.childcare-locator {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f8f8;
    color: #333;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.childcare-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
   /* padding: 2rem 0; */
   padding: 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.childcare-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.childcare-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.childcare-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.childcare-search-controls {
    background: white;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.childcare-search-input {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.childcare-search-input input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.childcare-search-input input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.childcare-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: none;
}

.childcare-autocomplete-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.childcare-autocomplete-item:hover {
    background: #f8fafc;
}

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

.childcare-distance-selector select {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.childcare-distance-selector select:focus {
    outline: none;
    border-color: #667eea;
}

.childcare-main-content {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.childcare-sidebar {
    flex: 1;
    max-width: 400px;
}

.childcare-results-header {
    background: white;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid #f1f5f9;
    font-weight: 600;
    font-size: 1.1rem;
    color: #334155;
}

.childcare-location-list {
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-height: 600px;
    overflow-y: auto;
}

.childcare-location-item {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.childcare-location-item:hover {
    background: #f8fafc;
    transform: translateX(5px);
}

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

.childcare-location-item h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.childcare-location-item p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.childcare-location-email {
    color: #666;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.childcare-services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.childcare-service-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}


.childcare-distance-badge {
    display: inline-block;
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.childcare-distance-badge.exact-match {
    background: #d1fae5;
    color: #065f46;
}

.childcare-map-container {
    flex: 2;
    height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#childcare-map {
    height: 100%;
    width: 100%;
}

.childcare-popup-content {
    padding: 1rem;
    text-align: center;
}

.childcare-popup-content h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.childcare-popup-content p {
    margin-bottom: 1rem;
    color: #64748b;
}

.childcare-directions-btn {
   /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
   background-color: #1f9d48;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.childcare-directions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.childcare-loading {
    text-align: center;
    padding: 2rem;
    color: #64748b;
}

.childcare-no-results {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.childcare-no-results h3 {
    margin-bottom: 1rem;
    color: #334155;
}

@media (max-width: 768px) {
    .childcare-main-content {
        flex-direction: column;
    }
    
    .childcare-search-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .childcare-search-input {
        min-width: auto;
    }
}

/* Enhanced styles for better search experience */

/* Improved autocomplete styling */
.childcare-autocomplete-item.eyes-location {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
    border-left: 4px solid #667eea;
    font-weight: 600;
}

.childcare-autocomplete-item.eyes-location:hover {
    background: linear-gradient(135deg, #e6f0ff 0%, #dae8ff 100%);
}

.childcare-phone {
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Enhanced service tags */
.service-tag {
  /*  background: linear-gradient(135deg, #667eea, #764ba2); 
  background: linear-gradient(135deg, #abd799, #9dd686); */
  background: none;
    color: #009f50;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 6px;
    margin-bottom: 4px;
   display: inline-block;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
    transition: all 0.2s ease;
}

.service-tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* Search input enhancements */
.childcare-search-input input.searching {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.childcare-search-input input.no-results {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Loading state for search */
.childcare-search-loading {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Enhanced distance badges */
.childcare-distance-badge.very-close {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.childcare-distance-badge.close {
    background: #fef3c7;
    color: #92400e;
}

.childcare-distance-badge.moderate {
    background: #e0e7ff;
    color: #3730a3;
}

.childcare-distance-badge.far {
    background: #f3f4f6;
    color: #6b7280;
}

/* Improved location item hover effects */
.childcare-location-item {
    position: relative;
    overflow: hidden;
}

.childcare-location-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.childcare-location-item:hover::before {
    left: 100%;
}

/* Search suggestions styling */
.childcare-search-suggestions {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    display: none;
}

.childcare-search-suggestions.show {
    display: block;
}

.childcare-search-suggestions h4 {
    color: #334155;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.childcare-search-suggestions .suggestion-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.childcare-search-suggestions .suggestion-item:hover {
    border-color: #667eea;
    background: #f8fafc;
}

/* Enhanced map markers */
.custom-marker-icon {
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.custom-marker-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Search result highlighting */
.childcare-location-item.highlighted {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    border-left: 4px solid #667eea;
    transform: translateX(8px);
}

/* Better mobile responsiveness for search */
@media (max-width: 768px) {
    .childcare-search-controls {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .childcare-search-input {
        min-width: 100%;
    }
    
    .service-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
        margin-right: 4px;
        margin-bottom: 3px;
    }
    
    .childcare-distance-badge {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Search quality indicators */
.search-quality-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 8px;
    vertical-align: middle;
}

.search-quality-indicator.excellent {
    background: #10b981;
}

.search-quality-indicator.good {
    background: #f59e0b;
}

.search-quality-indicator.fair {
    background: #ef4444;
}

/* Improved no results state */
.childcare-no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
}

.childcare-no-results .icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.childcare-no-results h3 {
    color: #334155;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.childcare-no-results .suggestions {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
}

.childcare-no-results .suggestions h4 {
    color: #475569;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.childcare-no-results .suggestions ul {
    list-style: none;
    padding: 0;
}

.childcare-no-results .suggestions li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
}

.childcare-no-results .suggestions li:last-child {
    border-bottom: none;
}