/* Gallery / List / Map segmented pill (frontend/listingspages/partials/view_toggle.html).
   Warm grey track; the selected segment is a raised white pill. */

.view-toggle {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 0;
    padding: 1px;
    background-color: #f0eeeb;
    border-radius: 999px;
    margin-right: 5px;
}

.view-toggle .view-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 4px 10px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #222;
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.view-toggle .view-toggle-button:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.05);
}

.view-toggle .view-toggle-button:not(.active) .view-toggle-label {
    display: none;
}

.view-toggle .view-toggle-button.active {
    border-color: transparent;
    background-color: #fff;
    color: #1f1f1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.view-toggle .view-toggle-button:focus-visible {
    outline: 2px solid #1f1f1f;
    outline-offset: 1px;
}

@media (max-width: 710px) {
    .view-toggle {
        padding: 2px;
    }

    .view-toggle .view-toggle-button {
        gap: 3px;
        padding: 4px clamp(6px, 2vw, 9px);
        font-size: clamp(11.5px, 3.2vw, 13px);
    }
}
