.wriwoods-tour-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: initial; /* change from center to default */
}

.wriwoods-tour-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wriwoods-tour-step.active {
    display: block;
    opacity: 1;
}

.wriwoods-tour-step-inner {
    display: flex;
    flex-direction: row; /* image left, text right */
    gap: 20px;
    align-items: flex-start; /* vertically align top */
    padding: 50px 20px 20px;
}

.wriwoods-tour-step-inner img {
    max-width: 200px;
    width: 100%;
    border-radius: 8px;
    flex-shrink: 0;
}

.wriwoods-tour-step-inner .wriwoods-tour-step-content {
    flex: 1; /* text takes remaining space */
}


.wriwoods-tour-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: left; /* vertically center image and text */
    gap: 20px; /* space between image and text */
}

.wriwoods-tour-step p {
    margin-bottom: 8px;
    text-align: left;
    flex: 1; /* take remaining space */
}

/* Bottom nav bar */
.wriwoods-tour-controls-bar {
    background-color: var(--wriwoods-primary-color); /* dark bar */
    padding: 12px 20px;
    border-radius: 0 0 12px 12px; /* round bottom corners */
    margin-top: 20px;
    display: flex;
    justify-content: space-between; /* buttons to edges */
    align-items: center;
}

.wriwoods-tour-controls-bar button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.wriwoods-tour-controls-bar button:hover {
    background: #0e5929;
}

.wriwoods-tour-step-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.wriwoods-tour-step-content p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    color: #555;
}

/* Step link */
.wriwoods-tour-step-link {
    margin-top: 15px;
    text-align: center;
}

.wriwoods-tour-step-link a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #FAFBFD;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    border: var(--wriwoods-default-border);
    color: #000;
}

.wriwoods-tour-step-link a:hover {
    background-color: #fff;
    border: var(--wriwoods-default-border);
}

/* Init prev step to hidden */
.wriwoods-tour-container #prev-step {
    opacity: 0;
}

/* --- Mobile Styling --- */
@media (max-width: 768px) {

    /* Step inner stack vertically */
    .wriwoods-tour-step-inner {
        flex-direction: column; /* image on top, text below */
        align-items: center;
        padding: 30px 15px 15px;
        gap: 15px;
    }

    /* Step image smaller on mobile */
    .wriwoods-tour-step-inner img {
        max-width: 100%;
        width: 60%; /* scale down for smaller screens */
        margin-bottom: 15px;
    }

    /* Step content full width */
    .wriwoods-tour-step-inner .wriwoods-tour-step-content {
        flex: unset;
        width: 100%;
        text-align: center;
    }

    /* Text size slightly smaller */
    .wriwoods-tour-step-content h2 {
        font-size: 1.3rem;
    }

    .wriwoods-tour-step-content p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    /* Step link button full width and easier to tap */
    .wriwoods-tour-step-link a {
        width: 100%;
        padding: 12px 0;
        font-size: 1rem;
        text-align: center;
    }

    /* Bottom controls bar adjustments */
    .wriwoods-tour-controls-bar {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }

    .wriwoods-tour-controls-bar button {
        width: 100%;
        font-size: 1rem;
        padding: 10px 0;
    }

    /* Container padding and max width */
    .wriwoods-tour-container {
        padding: 0 10px 20px;
        margin: 20px auto;
        max-width: 95%;
    }
}