/**
 * okbox-grid-sort.css — styles pour la page /nos-centres/?lat=&lng=&cp=
 */

.okbox-grid-hero {
    text-align: center;
    margin: 32px auto 24px;
    max-width: 800px;
    padding: 0 16px;
}

.okbox-grid-hero__title {
    font-size: clamp(22px, 3.5vw, 32px);
    line-height: 1.25;
    margin: 0 0 6px;
    color: #3D1F1A;
}

.okbox-grid-hero__sub {
    font-size: 16px;
    color: #757575;
    margin: 0;
}

.okbox-grid-banner {
    margin: 16px auto;
    max-width: 800px;
    padding: 20px 24px;
    border-radius: 8px;
    background: #fff5f5;
    border-left: 4px solid #EF4A4A;
    text-align: center;
}

.okbox-grid-banner__title {
    font-size: 17px;
    font-weight: 600;
    color: #3D1F1A;
    margin: 0 0 6px;
}

.okbox-grid-banner__text {
    font-size: 15px;
    color: #4a4a4a;
    margin: 0 0 12px;
}

.okbox-grid-banner__cta {
    display: inline-block;
    padding: 10px 18px;
    background: #EF4A4A;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.okbox-grid-banner__cta:hover {
    background: #d63b3b;
    color: #fff;
}

.okbox-distance-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #EF4A4A;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(239, 74, 74, 0.3);
}

/* Le wrapper Elementor de chaque card a souvent position: relative implicite,
   sinon on force pour positionner le badge */
[data-okbox-slug] {
    position: relative;
}

.okbox-grid-hidden {
    display: none !important;
}

.okbox-grid-hidden--revealed {
    display: revert !important;
    animation: okbox-fade-in 0.2s ease;
}

@keyframes okbox-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.okbox-grid-showmore {
    display: block;
    margin: 24px auto;
    padding: 14px 28px;
    background: #fff;
    color: #3D1F1A;
    border: 2px solid #3D1F1A;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.okbox-grid-showmore:hover {
    background: #3D1F1A;
    color: #fff;
}

.okbox-grid-showmore:focus-visible {
    outline: 3px solid #EF4A4A;
    outline-offset: 2px;
}
