/* Church Locator Plugin Styles */
#church-locator-container {
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.church-locator-sidebar {
    width: 400px;
    background: #ffffff;
    border-right: 1px solid #e1e5e9;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.church-locator-header {
    padding: 24px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.church-locator-header h2 {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#location-search {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

#location-search:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn-primary, .btn-secondary {
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #27ae60;
    color: white;
}

.btn-secondary:hover {
    background: #229954;
    transform: translateY(-1px);
}

.church-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

#church-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.church-item {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.church-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

.church-item.active {
    border-color: #3498db;
    background: #f8f9ff;
}

.church-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    font-size: 16px;
}

.church-address {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 4px;
}

.church-phone {
    color: #34495e;
    font-size: 14px;
    margin-bottom: 8px;
}

.church-distance {
    color: #3498db;
    font-size: 14px;
    font-weight: 500;
}

.church-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.btn-directions {
    background: #3498db;
    color: white;
}

.btn-directions:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
}

.church-locator-map {
    flex: 1;
    position: relative;
    min-height: 400px;
}

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

.loading {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 16px;
}

.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 16px;
    border-radius: 6px;
    margin: 16px;
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

/* Estilos para popups del mapa */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.church-popup {
    font-family: inherit;
    min-width: 200px;
}

.church-popup .popup-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 16px;
}

.church-popup .popup-address {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 4px;
}

.church-popup .popup-phone {
    color: #34495e;
    font-size: 14px;
    margin-bottom: 12px;
}

.church-popup .popup-actions {
    display: flex;
    gap: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #church-locator-container {
        flex-direction: column;
        height: auto !important;
    }
    
    .church-locator-sidebar {
        width: 100%;
        max-height: 300px;
    }
    
    .church-locator-header {
        padding: 16px;
    }
    
    .church-locator-header h2 {
        font-size: 18px;
    }
    
    .church-list-container {
        padding: 12px;
    }
    
    .church-locator-map {
        height: 400px;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .church-locator-header {
        padding: 12px;
    }
    
    .church-locator-header h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    #location-search, .btn-primary, .btn-secondary {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .church-item {
        padding: 12px;
    }
    
    .church-name {
        font-size: 15px;
    }
    
    .church-address, .church-phone, .church-distance {
        font-size: 13px;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.church-item {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar personalizado */
.church-list-container::-webkit-scrollbar {
    width: 6px;
}

.church-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.church-list-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.church-list-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

