/* =====================================================================
   ae-exposants-list — Elementor widget
   ===================================================================== */

/* ── Container ─────────────────────────────────────────────────────── */
.ae-exposants-page {
    width: 100%;
}

.ae-notice {
    padding: 14px 18px;
    background: #fff8e6;
    border: 1px solid #ffe8a0;
    border-radius: 4px;
    color: #856404;
    font-size: 0.9em;
}

/* ── Searchbar ─────────────────────────────────────────────────────── */
.ae-exposants__searchbar {
    padding: 28px 24px;
    margin-bottom: 36px;
    border-radius: 4px;
}

.ae-exposants__search-container {
    max-width: 900px;
    margin: 0 auto;
}

.ae-exposants__search-label {
    display: block;
    font-size: 1.05em;
    font-weight: 700;
    margin-bottom: 14px;
    color: #222;
}

.ae-exposants__search-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ae-exposants__search-field {
    display: flex;
    flex: 1;
    min-width: 240px;
    position: relative;
    gap: 8px;
}

.ae-exposants__search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    color: #696b72;
}

.ae-exposants__search-input {
    flex: 1;
    height: 48px;
    padding: 0 16px 0 48px;
    border: 1px solid #cfd0d3;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: #161a2d;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}

.ae-exposants__search-input::placeholder {
    color: #696b72;
}

.ae-exposants__search-input:focus {
    border-color: #fd1555;
}

.ae-exposants__plan-wrap {
    flex-shrink: 0;
    border-left: 1px dashed rgba(0, 0, 0, 0.2);
    padding-left: 16px;
}

.ae-exposants__plan-link {
    font-size: 0.88em;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    color: #E83759 !important;
    transition: opacity 0.2s;
}

.ae-exposants__plan-link:hover {
    opacity: 0.7;
}

.ae-exposants__plan-soon {
    font-size: 0.88em;
    color: #999;
    font-style: italic;
}

/* ── Body : filters + main ─────────────────────────────────────────── */
.ae-exposants__body {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.ae-exposants__body.has-filters .ae-exposants__main {
    flex: 1;
    min-width: 0;
}

.ae-exposants__filters {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
}

.ae-exposants__main {
    flex: 1;
    min-width: 0;
}

/* ── Filters sidebar ───────────────────────────────────────────────── */
.filters-container {
    padding-left: 0;
}

.reset-filters {
    padding-bottom: 18px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.reset-filters.hidden {
    display: none;
}

.reset-filters a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.reset-filters a:hover {
    color: #111;
}

h6.exhibitors-filters-main-title {
    margin: 27px 0 0;
    padding-left: 20px;
    font-size: 1.3em;
    font-weight: 700;
    color: #444;
    text-transform: none;
    letter-spacing: 0;
}

/* ── Local toggle ──────────────────────────────────────────────────── */
.ae-local-filter {
    margin-top: 14px;
    margin-left: 20px;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

.ae-local-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.ae-local-toggle__input {
    display: none;
}

.ae-local-toggle__slider {
    position: relative;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
    background: #ccc;
    border-radius: 20px;
    transition: background 0.25s;
}

.ae-local-toggle__slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.ae-local-toggle__input:checked ~ .ae-local-toggle__slider {
    background: #E83759;
}

.ae-local-toggle__input:checked ~ .ae-local-toggle__slider::before {
    transform: translateX(16px);
}

.ae-local-toggle__label {
    font-size: 0.82em;
    font-weight: 600;
    color: #444;
    line-height: 1.3;
    transition: color 0.2s;
}

.ae-local-toggle:has(.ae-local-toggle__input:checked) .ae-local-toggle__label {
    color: #444;
}

.exhibitors-filters-list {
    list-style: none;
    padding: 0;
    margin-left: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.exhibitors-filter {
    padding-top: 25px;
}

.exhibitors-filter:not(:last-child) {
    padding-bottom: 25px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
}

.exhibitors-filter.is-hidden {
    display: none;
}

.exhibitors-filter--title {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-start;
    padding: 0;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--e-global-color-accent, #333);
    background: transparent;
    user-select: none;
    width: fit-content;
}

.filter-chevron {
    flex-shrink: 0;
    width: 8px;
    height: 5px;
    transition: transform 0.2s;
}

.exhibitors-filter[aria-expanded="false"] .exhibitors-filter--terms {
    display: none;
}

.exhibitors-filter[aria-expanded="false"] .filter-chevron {
    transform: rotate(-90deg);
}

.exhibitors-filter--terms {
    margin-top: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    overflow: hidden;
}

.filter-value {
    display: flex;
    align-items: center;
    cursor: pointer;
    min-width: 0;
    flex-shrink: 1;
    flex-basis: auto;
}

.filter-value input[type="checkbox"] {
    display: none;
}

.filter-value span {
    display: flex;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.73em;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    padding: 8px 15px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    line-height: 1.2;
    transition: color 0.2s, border-color 0.2s;
    width: fit-content;
    word-break: break-word;
    max-width: 200px;
    flex-shrink: 0;
}

.filter-value:hover span {
    color: #E83759;
    border-color: #E83759;
}

.filter-value input[type="checkbox"]:checked + span {
    color: #E83759;
    border-color: #E83759;
}

/* ── Exhibitors list ───────────────────────────────────────────────── */
.exhibitors-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    transition: opacity 0.2s;
}

.exibitor-item {
    display: flex;
}

/* ── Exhibitor card ────────────────────────────────────────────────── */
.exhibitor-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #e2e2e2;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.exhibitor-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

/* Heading */
.exhibitor-card--heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    flex: 1;
}

.logo-container {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border: 1px solid #efefef;
    border-radius: 3px;
    overflow: hidden;
}

.logo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.exhibitor-logo-placeholder {
    font-size: 1.3em;
    font-weight: 800;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 0;
}

.content-container {
    flex: 1;
    min-width: 0;
}

.exhibitor-title {
    margin: 0 0 4px;
    font-size: 25px !important;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1 !important;
    word-break: break-word;
}

.exhibitor-signs {
    display: block;
    font-size: 0.78em;
    color: #777;
    margin-bottom: 0;
}

.exhibitor-links {
    margin-top: 0;
}

.website-link a {
    font-size: 0.79em;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #E83759 !important;
    transition: opacity 0.2s;
}

.website-link a:hover {
    opacity: 0.7;
}

/* Location */
.exhibitor-card--location {
    padding: 8px 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.5);
    border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
    background: #E83759;
    min-height: 36px;
    display: flex;
    align-items: center;
}

.exhibitor-location span {
    font-size: 0.8em;
    color: #fff;
}

/* Bottom */
.exhibitor-card--bottom {
    padding: 10px 16px;
    height: 76px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.exhibitor-terms {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.exhibitor-categories {
    flex: 1;
}

.exhibitor-categories-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.exhibitor-categories-group span {
    display: inline-block;
    padding: 2px 7px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 0.73em;
    color: #555;
    line-height: 1.5;
}

.exhibitor-labels {
    flex-shrink: 0;
}

.exhibitor-local-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    flex-shrink: 0;
}

.ae-local-badge-icon {
    font-size: 30px;
    line-height: 1;
}

.ae-local-badge-image {
    width: 30px;
    height: 30px;
    object-fit: contain;
    display: block;
    aspect-ratio: 1 / 1;
}

/* ── No results ────────────────────────────────────────────────────── */
.ae-no-results {
    padding: 32px 20px;
    text-align: center;
    color: #999;
    font-size: 0.9em;
    font-style: italic;
}

/* ── Pagination ────────────────────────────────────────────────────── */
.ae-pagination-wrap {
    margin-top: 20px;
}

.exhibitors-pagination--links {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.exhibitors-page-link .page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.87em;
    color: #555;
    background: #fff;
    user-select: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.exhibitors-page-link .page-number:hover {
    border-color: #999;
    color: #111;
}

.exhibitors-page-link.current .page-number {
    background: #333;
    color: #fff;
    border-color: #333;
}

.exhibitors-page-link.previous-page .page-number,
.exhibitors-page-link.next-page .page-number {
    font-size: 0.65em;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .exhibitors-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .ae-exposants__body {
        flex-direction: column;
    }

    .ae-exposants__filters {
        width: 100%;
        position: static;
    }

    .ae-exposants__search-content {
        flex-direction: column;
        align-items: stretch;
    }

    .ae-exposants__plan-wrap {
        border-left: none;
        border-top: 1px dashed rgba(0, 0, 0, 0.2);
        padding-left: 0;
        padding-top: 16px;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .exhibitors-list {
        grid-template-columns: 1fr;
    }
}
