.random-tour-loader {
    display: none;
    padding: 1rem 0 1.25rem;
}

.random-tour-loader-copy {
    text-align: center;
    margin: 0.85rem 0 1rem;
}

.random-tour-loader-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color, #333333);
}

.random-tour-loader-subtitle {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: #666666;
}

.random-tour-loader-spinner {
    width: 3.75rem;
    height: 3.75rem;
    border: 0.3125rem solid rgba(0, 0, 0, 0.1);
    border-top: 0.3125rem solid var(--primary-color, #0073aa);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.random-tour-progress {
    margin: 0 auto;
    max-width: 32rem;
}

.random-tour-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.random-tour-progress-bar {
    height: 100%;
    background-color: var(--primary-color, #0073aa);
    border-radius: inherit;
    width: 0;
    transition: width 0.3s ease;
}

.random-tour-progress-text {
    font-size: 0.875rem;
    color: #666;
}

.random-tour-progress-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color, #333333);
    white-space: nowrap;
}

.random-tour-progress-track {
    height: 0.75rem;
    background-color: #f0f2f5;
    border-radius: 999px;
    overflow: hidden;
}

.random-tour-progress-stages {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.random-tour-progress-stage {
    position: relative;
    padding-top: 1rem;
    font-size: 0.75rem;
    color: #8a8f98;
    text-align: center;
}

.random-tour-progress-stage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 0.55rem;
    height: 0.55rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background-color: #d4d8de;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.random-tour-progress-stage.is-active,
.random-tour-progress-stage.is-complete {
    color: var(--text-color, #333333);
}

.random-tour-progress-stage.is-active::before {
    background-color: var(--primary-color, #0073aa);
    transform: translateX(-50%) scale(1.15);
}

.random-tour-progress-stage.is-complete::before {
    background-color: #2f9e44;
}

.location-permission-waiting {
    background-color: #e3f2fd;
    color: #0d47a1;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.25rem;
    border: 1px solid #bbdefb;
    text-align: center;
    display: none;
    animation: pulse 2s infinite;
}

.location-permission-waiting p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.location-permission-waiting strong {
    font-weight: 600;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(187, 222, 251, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(187, 222, 251, 0); }
    100% { box-shadow: 0 0 0 0 rgba(187, 222, 251, 0); }
}

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

@media (max-width: 767px) {
    .random-tour-progress {
        margin: 1rem 0;
    }

    .random-tour-progress-stages {
        gap: 0.35rem;
    }
}

@media (max-width: 480px) {
    .random-tour-loader-spinner {
        width: 3rem;
        height: 3rem;
    }

    .random-tour-progress-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
