/*# sourceMappingURL=view.css.map */

/* Map container */
#map {
    height: 500px;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Loading overlay */
.map-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    color: white;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error overlay */
.map-error {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10001;
    text-align: center;
    max-width: 400px;
    min-width: 300px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.map-error p {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 16px;
}

.map-error button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.map-error button:hover {
    background: #c82333;
}

/* Search results */
#map-results {
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.nearest-organizations h3 {
    background: #28a745;
    color: white;
    margin: 0;
    padding: 16px 20px;
    font-size: 18px;
}

.org-list {
    padding: 0;
}

.org-item {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

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

.org-item h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.org-item .distance {
    margin: 0 0 8px 0;
    color: #28a745;
    font-weight: 500;
    font-size: 14px;
}

.org-item .org-details {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Info window styling */
.marker-info h3,
.user-marker-info h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
}

.marker-details {
    color: #666;
    line-height: 1.4;
    font-size: 14px;
}

.user-marker-info p {
    margin: 4px 0;
    color: #666;
    font-size: 13px;
}

/* Search form improvements */
.map-form {
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-form .input-search-address {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.map-form .input-search-address:focus {
    outline: none;
    border-color: #28a745;
}

.map-form button {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 12px;
    transition: background-color 0.2s;
}

.map-form button:hover {
    background: #218838;
}

.map-form .btnGreen {
    background: #17a2b8;
}

.map-form .btnGreen:hover {
    background: #138496;
}

/* Responsive design */
@media (max-width: 768px) {
    .map-form {
        padding: 16px;
    }

    .map-form button {
        width: 100%;
        margin: 8px 0;
    }

    .org-item {
        padding: 12px 16px;
    }

    .map-error {
        margin: 20px;
        min-width: auto;
        max-width: calc(100% - 40px);
    }
}