.filtreList {
    width: 100%;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(139, 92, 246, 0.08);
    box-shadow: var(--shadow-sm);
}

.filtreList > * {
    width: 100%;
}

.filtreList form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    align-items: end;
}

.filtreList form .form-group {
    margin: 0;
}

.filtreList form button,
#city_search_search {
    justify-self: end;
    margin-left: 0;
}

.checkFiltre {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    align-items: center;
    grid-column: 1 / -1;
}

.eventList {
    padding: clamp(1rem, 3vw, 2.5rem) 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.eventCard {
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-areas:
    "date header"
    "date content"
    "date info"
    "footer footer";
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    color: inherit;
    overflow: hidden;
    min-width: 0;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.eventCard:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-strong);
}

.eventCard:active {
    transform: scale(0.99);
}

.eventCard::before,
.event-card::before {
    content: attr(data-day) "\A" attr(data-month);
    white-space: pre;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.1;
    color: #fff;
    background: var(--gradient-brand);
    flex-shrink: 0;
}

.eventCard::before {
    grid-area: date;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 0.9rem;
    font-weight: 800;
}

.eventCard-header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.eventCard-header > div,
.eventCard-content,
.event-main {
    min-width: 0;
}

.eventCard-title,
.event-title {
    margin: 0;
    font-weight: 800;
    color: var(--color-heading);
}

.eventCard-title {
    font-size: clamp(1rem, 2vw, 1.1rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eventCard-status,
.event-status,
.eventCard-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.eventCard-status,
.event-status {
    background: #f3f1ef;
    border: 1px solid #ece6df;
    color: #1e2432;
}

.eventCard-content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.eventCard-subtitle,
.eventCard-meta,
.eventCard-info,
.value,
.coords,
.event-description-block p,
.event-cancel-block p {
    color: var(--color-text-soft);
}

.eventCard-subtitle {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eventCard-meta {
    margin: 0;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eventCard-info {
    grid-area: info;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.eventCard-footer {
    grid-area: footer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.eventCard-footer span:last-child {
    color: var(--color-primary);
    font-weight: 700;
}

.eventCard-places {
    font-weight: 700;
}

.eventCard-badge {
    background: #f1f5f9;
}

.eventCard-badge.success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.eventCard-badge.creation {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
}

.eventCard img {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

.event-page {
    min-height: 100vh;
    padding: 2.5rem 1.25rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.event-card {
    position: relative;
    width: 100%;
    max-width: 1100px;
    padding: 2rem 2rem 7.5rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.event-card::before {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 74px;
    height: 74px;
    padding: 10px;
    border-radius: 24px;
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-left: 110px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.event-heading {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 72%;
}

.event-title {
    font-size: clamp(1.8rem, 2vw, 2.3rem);
    line-height: 1.2;
}

.event-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 320px;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1.125rem;
    margin-bottom: 1.75rem;
}

.event-item,
.event-description-block,
.event-cancel-block,
.participants-block {
    background: var(--color-surface-soft);
    border: 1px solid #f0ebe6;
    border-radius: var(--radius-lg);
}

.event-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.125rem 1.25rem;
}

.event-item-full {
    grid-column: 1 / -1;
}

.label {
    color: #8b93a1;
    font-size: 0.9rem;
    font-weight: 700;
}

.value {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

.coords {
    font-size: 0.92rem;
}

.event-description-block,
.event-cancel-block,
.participants-block {
    padding: 1.5rem;
    margin-bottom: 1.375rem;
}

.event-description-block h2,
.event-cancel-block h2,
.participants-block h2 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-heading);
}

.participants-side {
    position: sticky;
    top: 24px;
    margin-bottom: 0;
}

.participants-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.625rem;
}

.participants-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
}

.participants-scroll::-webkit-scrollbar {
    width: 8px;
}

.participants-scroll::-webkit-scrollbar-track {
    background: #f3eee9;
    border-radius: var(--radius-pill);
}

.participants-scroll::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: var(--radius-pill);
}

.participants-list li {
    padding: 0.75rem 0.875rem;
    border-radius: 0.875rem;
    background: #fff;
    border: 1px solid var(--color-border);
}

.participants-list a {
    color: var(--color-primary);
    font-weight: 700;
}

.participants-list a:hover {
    text-decoration: underline;
}

.event-actions {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.title-location {
    text-align: center;
}

section.filtreList.location {
    width: min(100%, 64rem);
    margin: 0 auto;
}

#city_search_name {
    margin-left: 0;
}

.tableLocation {
    width: min(100%, 72rem);
    margin: 1rem auto 0;
    border-radius: 1.875rem;
    overflow: hidden;
}

.tableLocation th,
.tableLocation td {
    padding: 0.75rem;
    text-align: center;
}

.create-location {
    width: min(100%, 32rem);
    margin: 1rem auto 0;
    padding: 1rem;
    border-radius: 1.25rem;
    text-align: center;
}

@media (max-width: 900px) {
    .filtreList form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .event-layout {
        grid-template-columns: 1fr;
    }

    .participants-side {
        position: static;
    }

    .participants-scroll {
        max-height: 260px;
    }
}

@media (max-width: 768px) {
    .event-page {
        padding: 1.5rem 1rem;
    }

    .event-card {
        padding: 1.5rem 1.25rem 6.5rem;
        border-radius: var(--radius-lg);
    }

    .event-card::before {
        top: 20px;
        left: 20px;
        width: 64px;
        height: 64px;
        border-radius: 20px;
        font-size: 1.05rem;
    }

    .event-header {
        margin-left: 86px;
        flex-direction: column;
        align-items: flex-start;
    }

    .event-heading {
        max-width: 100%;
    }

    .event-grid,
    .filtreList form {
        grid-template-columns: 1fr;
    }

    .event-item-full {
        grid-column: auto;
    }

    .event-actions {
        position: static;
        margin-top: 1rem;
        justify-content: stretch;
    }
    .search-campus{
        display: none;
    }

    .hide-mobile {
        display: none;
    }
}

@media (max-width: 640px) {
    .eventList {
        grid-template-columns: 1fr;
    }

    .eventCard {
        grid-template-columns: 1fr;
        grid-template-areas:
      "date"
      "header"
      "content"
      "info"
      "footer";
        padding: 1.125rem;
        border-radius: 1.25rem;
    }

    .eventCard::before {
        width: 48px;
        height: 48px;
        margin-bottom: 4px;
        border-radius: 14px;
        font-size: 0.8rem;
    }

    .eventCard-header,
    .eventCard-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-create-event {
        display: none;
    }
}

@media (max-width: 400px) {
    .eventList {
        gap: 0.75rem;
    }

    .eventCard {
        padding: 1rem;
        border-radius: 1.125rem;
    }

    .eventCard:hover {
        transform: none;
    }

    .eventCard::before {
        width: 44px;
        height: 44px;
        margin-bottom: 6px;
        border-radius: 12px;
        font-size: 0.75rem;
    }

    .eventCard-title {
        font-size: 0.95rem;
        white-space: normal;
    }

    .eventCard-subtitle {
        -webkit-line-clamp: 2;
    }
}
