/* 
 * Route Explorer Styles (Admin Only)
 */

.via-route-explorer {
    margin-top: 15px;
    padding: 15px;
    border: 1px dashed #ccc;
    background: #f9f9f9;
    border-radius: 8px;
}

.via-route-explorer h4 {
    margin-top: 0;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.via-route-explorer .admin-badge {
    background: #d63638;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.via-route-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.via-route-input-group input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.via-route-input-group button {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.via-route-input-group button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#via-route-results {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 10px;
    font-size: 13px;
}

.via-route-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

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

.via-route-item a {
    text-decoration: none;
    color: #007cba;
}

.via-route-item a:hover {
    text-decoration: underline;
}

.via-route-status {
    font-style: italic;
    color: #666;
    margin-top: 5px;
}

.via-route-error {
    color: #d63638;
    font-weight: bold;
}
#via-route-map {
    height: 350px;
    width: 100%;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    display: none; /* Hidden until results are found */
}

/* Ensure Google Maps info window looks clean */
.gm-style-iw-d {
    overflow: hidden !important;
}

/* Global Mode (2 inputs) */
.via-route-explorer.is-global {
    margin: 20px 0;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.via-route-explorer.is-global .via-route-input-group {
    flex-direction: column;
    gap: 8px;
}

.via-route-explorer.is-global input {
    width: 100%;
}

.via-route-explorer.is-global button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}
