body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
}

/* Redirect page styles */
.redirect-container {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.redirect-content {
    text-align: center;
    color: #333;
    max-width: 500px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #0065a4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px auto;
}

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

.redirect-content h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 600;
}

.redirect-content p {
    margin: 0 0 25px 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

.redirect-link {
    margin-top: 20px;
}

.manual-link {
    color: #0065a4;
    text-decoration: none;
    padding: 12px 24px;
    border: 2px solid #0065a4;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 500;
}

.manual-link:hover {
    background-color: #0065a4;
    color: white;
    transform: translateY(-2px);
}

#map {
    height: 100vh;
    width: 100%;
}

.info-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 300px;
    font-size: 14px;
}

.info-panel h3 {
    margin: 0 0 10px 0;
    color: #0065a4;
    font-size: 16px;
}

.legend {
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid #333;
}

.legend-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    background: rgba(255, 5, 0, 0.1);
    border: 2px solid rgba(255, 5, 0, 0.3);
}

.location-controls {
    margin-top: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

#get-location-btn {
    width: 100%;
    padding: 10px;
    background-color: #0065a4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

#get-location-btn:hover {
    background-color: #004d7a;
}

#get-location-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.postal-search {
    margin-top: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.postal-search h4 {
    margin: 0 0 10px 0;
    color: #0065a4;
    font-size: 14px;
}

.search-input-group {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.input-with-clear {
    position: relative;
    flex: 1;
}

.input-with-clear input {
    width: 100%;
    padding-right: 30px;
}

.clear-input {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.clear-input:hover {
    background-color: #f0f0f0;
    color: #666;
}

#postal-code-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

#postal-code-input:focus {
    outline: none;
    border-color: #0065a4;
    box-shadow: 0 0 0 2px rgba(0, 101, 164, 0.25);
}

#search-postal-btn {
    padding: 8px 12px;
    background-color: #b8a967;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

#search-postal-btn:hover {
    background-color: #a0955a;
}

#search-postal-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}


.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    padding: 5px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.stats {
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #666;
}

.popup-content {
    max-width: 250px;
}

.popup-address {
    font-weight: bold;
    color: #0065a4;
    margin-bottom: 5px;
}

.popup-notes {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.postal-popup {
    min-width: 200px;
}

.popup-location {
    margin: 8px 0;
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.popup-coordinates {
    margin: 8px 0;
    padding: 8px 0;
    border-top: 1px solid #eee;
    font-size: 12px;
}

.coord-detail {
    font-family: monospace;
    color: #666;
    margin-left: 10px;
}

.popup-confidence {
    margin-top: 8px;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
    text-align: center;
}