/* Regisztrációs gombok */
a.btn.btn-primary.eb-register-button:is(
    .eb-external-registration-link,
    .eb-individual-registration-button
) {
    background-color: #dc3545 !important;
    border-color: #fff !important;
    color: #fff !important;
}

/* Splide általános kép */
.splide__slide img {
    vertical-align: bottom;
    height: 180px !important;
}

/* Oldalcím */
.eb_title {
    position: relative;
    z-index: 1;
    margin-top: 30px;
    font-size: 79px !important;
    line-height: 1.2;
    text-decoration: none;
}

#adminForm {
    position: relative;
    z-index: 10;
}

#btn-submit {
    position: relative;
    z-index: 20;
}

/* Dropdown */
.dropdown-menu {
    --bs-dropdown-color: #212529 !important;
    --bs-dropdown-bg: #494949 !important;
}

/* Regisztráltak táblázata */
.eb-registrants-list-table {
    --bs-table-color: var(--bs-body-color);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--bs-border-color);
    --bs-table-accent-bg: rgb(0 0 0 / 87%) !important;
    --bs-table-striped-color: var(--bs-body-color);
    --bs-table-striped-bg: rgb(0 0 0 / 66%) !important;
    --bs-table-active-color: var(--bs-body-color);
    --bs-table-active-bg: rgb(0 0 0 / 10%) !important;
    --bs-table-hover-color: var(--bs-body-color);
    --bs-table-hover-bg: rgb(0 0 0 / 7.5%);

    width: 100%;
    margin-bottom: 1rem;
    color: var(--bs-table-color);
    vertical-align: top;
    border-color: var(--bs-table-border-color);
}

/* Normál eseménykártyák */
.eb-event-item-grid-default-layout {
    position: relative;
    height: 95% !important;
    margin-bottom: 30px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgb(6 10 20 / 8%);
}

.eb-event-item-grid-default-layout .eb-event-thumb-container img {
    width: 100%;
    height: 230px !important;
    border: 0;
    box-shadow: none;
}

.eb-event-item-grid-default-layout .eb-event-title-container {
    margin: 10px 0 !important;
    font-size: 16px !important;
    font-weight: 700;
}

/* Térkép */
.leaflet-tile {
    filter: grayscale(100%) contrast(95%) brightness(92%) !important;
}

.leaflet-container a {
    color: #0078a8;
    font-size: 20px !important;
    line-height: 1;
}

/* Eseményoldal */
#eb-event-page h1.eb-page-heading {
    margin: 0;
    color: #fff !important;
    font-size: 60px !important;
}

.eb-calendar ul.eb-weekdays {
    background: #333;
}

.regpro-calendarMonthHeader,
.eb-topmenu-calendar ul li a.active {
    background: #000;
}

.eb-topmenu-calendar ul li a.active {
    color: #fff;
}

.table-striped > tbody > tr:nth-of-type(odd) > *,
.table > :not(caption) > * > * {
    color: #fff !important;
}

.table > :not(caption) > * > * {
    padding: 0.5rem;
    background-color: var(--bs-table-bg);
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}

/* Azonos méretű szekciócímek */
#eb-event-properties-heading,
.eb-horizontal-plugin-header.eb-plugin-speakers,
.eb-tabbed-plugin-header.eb-plugin-registrantlist {
    font-size: 35px !important;
}

.eb-speaker-container .eb-speaker-name {
    margin-top: 0 !important;
    font-size: 20px !important;
}

.eb-box-heading {
    margin: 0;
    padding: 0 !important;
    color: #333;
    font-weight: 700;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
}

#eb-event-page .eb-description {
    margin: 0;
    padding: 10px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
}

#eb-category-grid .eb-page-heading,
.eb-notice-message {
    display: none !important;
}

/* ==================================================
   HERO ESEMÉNYKÁRTYA A SPLIDE-BAN
   ================================================== */

.splide .eb-event-item-grid-default-layout {
    position: relative;
    overflow: hidden;
    background: #2d2d2d;
    border: 0;
    border-radius: 18px;
    box-shadow: none;
}

/* Képterület */
.splide
.eb-event-item-grid-default-layout
.eb-event-thumb-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.splide
.eb-event-item-grid-default-layout
.eb-event-thumb-container img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.splide
.eb-event-item-grid-default-layout:hover
.eb-event-thumb-container img {
    transform: scale(1.05);
}

/* Kép overlay */
.splide
.eb-event-item-grid-default-layout
.eb-event-thumb-container::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgb(0 0 0 / 10%) 0%,
        rgb(0 0 0 / 30%) 45%,
        rgb(0 0 0 / 75%) 100%
    );
}

/* Kategória */
.splide .eb-event-item-grid-default-layout .eb-category {
    position: absolute;
    z-index: 7;
    top: 14px;
    left: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.6px;
}

/* Dátum és idő */
.splide .eb-event-item-grid-default-layout .eb-event-date-time {
    position: absolute;
    z-index: 6;
    top: 14px;
    right: 14px;
    left: auto;

    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;

    padding: 6px 10px;
    color: rgb(255 255 255 / 92%);
    background: rgb(0 0 0 / 25%);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    text-shadow: 0 2px 10px rgb(0 0 0 / 35%);

    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.splide
.eb-event-item-grid-default-layout
.eb-event-date-time
:is(i, svg) {
    color: rgb(255 255 255 / 92%) !important;
}

/* Helyszín */
.splide .eb-event-item-grid-default-layout .eb-event-location {
    position: absolute;
    z-index: 6;
    bottom: 98px;
    left: 16px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: rgb(255 255 255 / 90%) !important;
    font-size: 12px !important;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgb(0 0 0 / 40%);
}

.splide
.eb-event-item-grid-default-layout
.eb-event-location * {
    display: inline !important;
    color: rgb(255 255 255 / 90%) !important;
    font-size: 12px !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
}

.splide
.eb-event-item-grid-default-layout
.eb-event-location
:is(i, svg) {
    color: rgb(255 255 255 / 90%) !important;
}

/* Cím */
.splide .eb-event-item-grid-default-layout .eb-event-title-container {
    position: absolute;
    z-index: 6;
    right: 30%;
    bottom: 18px;
    left: 16px;
    text-shadow: 0 2px 14px rgb(0 0 0 / 45%);
}

.splide
.eb-event-item-grid-default-layout
.eb-event-title-container
:is(a, h3, h4) {
    margin: 0 !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 900;
    line-height: 0.9;
}

/* CTA gomb */
.splide .eb-event-item-grid-default-layout .btn {
    position: absolute;
    z-index: 7;
    right: 16px;
    bottom: 18px;

    padding: 8px 12px !important;
    color: #111 !important;
    background: rgb(255 255 255 / 92%) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 40px rgb(0 0 0 / 22%);
    font-weight: 900 !important;

    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.splide .eb-event-item-grid-default-layout .btn::after {
    content: " →";
    margin-left: 8px;
}

.splide .eb-event-item-grid-default-layout:hover .btn {
    background: #fff !important;
    transform: translateY(-2px);
}

/* Nem használt elemek */
.splide
.eb-event-item-grid-default-layout
:is(.eb-event-short-description, .eb-event-price) {
    display: none !important;
}

/* ==================================================
   MOBIL
   ================================================== */

@media (max-width: 575px) {
    .splide
    .eb-event-item-grid-default-layout
    .eb-event-thumb-container {
        height: 260px;
    }

    .splide .eb-event-item-grid-default-layout .eb-category {
        top: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
        padding: 6px 10px;
        overflow: hidden;
        font-size: 10px;
        line-height: 1.1;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .splide .eb-event-item-grid-default-layout .eb-event-date-time {
        top: 42px;
        right: 10px;
        left: 10px;
        justify-content: flex-start;
        gap: 8px;
        padding: 6px 10px;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .splide .eb-event-item-grid-default-layout .eb-event-location {
        right: 12px;
        bottom: 88px;
        left: 12px;
        gap: 6px;
        overflow: hidden;
        font-size: 11px !important;
        line-height: 1.2;
        letter-spacing: 0.4px;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .splide
    .eb-event-item-grid-default-layout
    .eb-event-location * {
        overflow: hidden !important;
        font-size: 11px !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
    }

    .splide
    .eb-event-item-grid-default-layout
    .eb-event-title-container {
        right: 12px;
        bottom: 42px;
        left: 12px;
    }

    .splide
    .eb-event-item-grid-default-layout
    .eb-event-title-container
    :is(a, h3, h4) {
        display: -webkit-box;
        margin: 0 !important;
        overflow: hidden;
        font-size: 15px;
        line-height: 1.15;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .splide .eb-event-item-grid-default-layout .btn {
        right: 12px;
        bottom: 12px;
        padding: 8px 12px !important;
        font-size: 14px;
        line-height: 1;
    }
}