.random-tour-generator {
    margin: 0;
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif);
}

.random-tour-map {
    height: 60vh;
    min-height: 300px;
    max-height: 600px;
    margin: 1rem 0;
    border-radius: 0.25rem;
    touch-action: manipulation;
    z-index: 1;
}

.random-tour-button {
    background-color: var(--button-color, #0073aa);
    color: var(--button-text-color, #ffffff);
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-family: inherit;
    transition: background-color 0.3s;
    margin: 0.625rem 0;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
    touch-action: manipulation;
    -webkit-appearance: none;
    user-select: none;
}

.random-tour-button:hover,
.random-tour-button:focus {
    background-color: var(--button-hover-color, #005a87);
    color: var(--button-text-hover-color, #ffffff);
    text-decoration: none;
}

.random-tour-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.random-tour-message {
    padding: 0.9375rem;
    margin: 0.625rem 0;
    border-radius: 0.25rem;
    background-color: var(--background-color, #f8f9fa);
    color: var(--text-color, #333333);
    display: none;
}

.random-tour-success {
    background-color: #e8f5e9;
    color: var(--text-color, #333333);
    padding: 0.625rem;
    margin: 0.625rem 0;
    border-radius: 0.25rem;
}

.random-tour-info {
    background-color: var(--background-color, #f8f9fa);
    color: var(--text-color, #333333);
    padding: 0.625rem;
    margin: 0.3125rem 0;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.random-tour-fallback-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    border: 1px solid #ffeeba;
    font-size: 0.9rem;
    line-height: 1.4;
}

.random-tour-fallback-notice strong {
    font-weight: 600;
}

.random-tour-fallback-notice p {
    margin: 0.5rem 0;
}

.number-marker {
    background: #3388ff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    font-weight: bold;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.start-marker,
.end-marker {
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.leaflet-touch .leaflet-bar a {
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.5rem;
    font-size: 1.25rem;
}

.leaflet-touch .leaflet-control-zoom {
    border: none;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.leaflet-bar a,
.leaflet-bar a:hover {
    text-decoration: none;
    display: block;
}

.random-tour-reset-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--text-color, #333333);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.random-tour-reset-link:hover {
    color: var(--text-color, #333333);
    text-decoration: underline;
}

@media (max-width: 767px) {
    .random-tour-map {
        height: 50vh;
        min-height: 250px;
    }

    .random-tour-button {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .number-marker {
        width: 1.25rem;
        height: 1.25rem;
        line-height: 1.25rem;
    }
}

@media (max-width: 480px) {
    .random-tour-map {
        height: 40vh;
    }

    .random-tour-info {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}
