/* ==========================================================================
   KLO EVENTS
   ========================================================================== */

/* ==========================================================================
   Event List Layout
   ========================================================================== */

.ek-events-page {
    width: 100%;
}

.ek-events.ek-events--stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.ek-events.ek-events--grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .ek-events.ek-events--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    .ek-events.ek-events--grid {
        grid-template-columns: 1fr;
    }

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

    .ek-event-date-badge {
        width: 3rem;
        height: 3rem;
    }

}

/* ==========================================================================
   Event Card
   ========================================================================== */

.ek-event {

    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;

    padding: 1.25rem 1.5rem;

    background: #fff;

    border: 1px solid rgba(0,0,0,.06);
    border-radius: .75rem;

    box-shadow: 0 6px 20px rgba(0,0,0,.03);

    align-items: flex-start;

    font-family: var(--e-global-typography-text-font-family);

}

.ek-event * {
    font-family: inherit;
}

.ek-event-content {

    display: flex;
    flex-direction: column;

    gap: .35rem;

    height: 100%;

}

.ek-event-footer {
    margin-top: auto;
}

/* ==========================================================================
   Date Badge
   ========================================================================== */

.ek-event-date-badge {

    width: 60px;
    height: 60px;

    background: #f5f5f5;

    border-radius: 14px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    flex-shrink: 0;

}

.ek-event-date-month {

    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;

    color: #6b7280;

}

.ek-event-date-day {

    font-size: 2rem;
    font-weight: 700;
    line-height: 1;

}

/* ==========================================================================
   Event Typography
   ========================================================================== */

.ek-event-header {
    display: flex;
    flex-direction: column;
    gap: .18rem;
}

.ek-event-title {

    margin: 0;

    font-family: "Cormorant Garamond", Sans-serif !important;;
    font-size: 32px!important;
    font-weight: 800!important;
    line-height: 1.2;
	letter-spacing: -0.02em!important

}

.ek-event-datetime,
.ek-event-location {

    margin: 0;

    font-size: .95rem;
    line-height: 1.45;

}

.ek-event-location {
    color: #5f6b7a;
	  margin-top: .15rem;
}

.ek-event-location i {

    margin-right: .35rem;

    color: var(--e-global-color-primary);

    font-size: .9em;

}

.ek-event-description {

    margin-top: .75rem;
    margin-bottom: 1.25rem;

    color: #374151;
    line-height: 1.7;

}

/* ==========================================================================
   Buttons
   ========================================================================== */

.ek-event-link {

    display: inline-flex;
    align-items: center;
    gap: .35rem;

    padding: .65rem 1rem;

    border: 1px solid rgba(31,94,122,.15);
    border-radius: 999px;

    background: rgba(31,94,122,.05);

    color: #1F5E7A;

    font-size: .95rem;
    font-weight: 600;

    text-decoration: none;

    transition: all .2s ease;

}

.ek-event-link:hover {

    background: rgba(31,94,122,.10);
    border-color: rgba(31,94,122,.25);

}

/* ==========================================================================
   Contact
   ========================================================================== */

.ek-event-contact {

    margin-top: .5rem;

    font-size: .9rem;
    font-weight: 500;

    color: #4b5563;

}

/* ==========================================================================
   Filters
   ========================================================================== */

.ek-events-filters {
    margin-bottom: 1.5rem;
}

.ek-events-filters__row {

    display: flex;
    flex-wrap: wrap;

    gap: 1rem 1.5rem;

    align-items: end;

}

.ek-events-filters__tags {

    display: flex;
    flex-wrap: wrap;

    gap: .75rem 1rem;

}

.ek-events-filters__check {

    display: inline-flex;
    align-items: center;

    gap: .5rem;

    cursor: pointer;

}

/* ==========================================================================
   Single Event Page
   ========================================================================== */

.ek-event-single-article {

    max-width: 800px;

    margin: 2rem auto;
    padding: 2rem;

    background: #fff;

    border: 1px solid rgba(0,0,0,.06);
    border-radius: .75rem;

    box-shadow: 0 10px 30px rgba(0,0,0,.06);

}

.ek-event-single-header {

    display: grid;
    grid-template-columns: auto 1fr;

    gap: 1rem;

    align-items: center;

    margin-bottom: 1.5rem;

}

.ek-event-single-header-text {

    display: flex;
    flex-direction: column;

    gap: .25rem;

}

.ek-event-single-title {

    margin: 0;

    font-size: 1.6rem;

}

.ek-event-single-datetime {

    font-size: .95rem;

    color: #4b5563;

}

.ek-event-single-location {

    font-size: .95rem;

    color: #6b7280;

}

.ek-event-single-body {

    margin-top: 1rem;
	margin-bottom: 0;

    font-size: 1rem;
    line-height: 1.8;

    color: #374151;

}

.ek-event-single-footer {

    margin-top: 2rem;

}
/* ==================================================
   EVENTS FILTER BAR
================================================== */

.ek-events-filters{

    margin-bottom:2rem;

}

.ek-events-filters__row{

    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:1rem;

    margin-bottom:1rem;

}

.ek-events-filter-search,
.ek-events-filter-date,
.ek-events-filter-tag{

    width:100%;
    height:52px;

    padding:0 1rem;

    border:1px solid #d9dee5;
    border-radius:12px;

    background:#fff;

    font-size:1rem;

    transition:.2s;

}

.ek-events-filter-search:focus,
.ek-events-filter-date:focus,
.ek-events-filter-tag:focus{

    outline:none;

    border-color:var(--e-global-color-primary);

    box-shadow:0 0 0 3px rgba(31,94,122,.08);

}

.ek-events-filters-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding-top:.5rem;

    border-top:1px solid rgba(0,0,0,.06);

}

.ek-events-results-count{

    font-size:.95rem;

    color:#5f6b7a;

}

.ek-events-count{

    font-weight:700;

    color:#111827;

}
.ek-events-reset {

    background: none;
    border: none;

    color: var(--e-global-color-primary);

    font-weight: 600;

    cursor: pointer;

    padding: 0;

    transition: opacity .2s;

}

.ek-events-reset:hover {

    opacity: .7;
    text-decoration: underline;

}
.ek-events-filters-footer {

    display:flex;
    justify-content:space-between;
    align-items:center;

}
.ek-events-filter-date,
.ek-events-filter-tag {

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");

    background-repeat: no-repeat;
    background-position: right 1rem center;

    padding-right: 3rem;

}
.klo-trip-planner-link{

    display:inline-flex;
    align-items:center;
    gap:.45rem;

    color:var(--e-global-color-primary);

    text-decoration:none;

    font-weight:600;

    transition:opacity .2s ease;

}

.klo-trip-planner-link:hover{

    opacity:.75;
    text-decoration:none;

}

.klo-trip-planner-link i{

    font-size:1rem;

}

.klo-trip-planner-link.is-saved{

    color:var(--e-global-color-primary);

}

.klo-trip-planner-link.is-saved i{

    color:#dc2626;

}

/* Mobile */

@media (max-width:768px){

    .ek-events-filters__row{

        grid-template-columns:1fr;

    }

    .ek-events-filters-footer{

        flex-direction:column;

        align-items:flex-start;

        gap:.75rem;

    }

}
/* ==========================================================================
   Event Detail Page
   ========================================================================== */

.ek-event-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ek-event-detail-title {
    margin: 0;
    color: #3E6E9F !important;
    font-family: var(--e-global-typography-primary-font-family);
    font-size: 3rem;
    line-height: 1.1;
}

.ek-event-detail-date {
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 700;
    color: #111827;
}

.ek-event-detail-location {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-weight: 600;
    color: #374151;
}

.ek-event-detail-location i {
    color: var(--e-global-color-primary);
    font-size: .95rem;
}

.ek-event-detail-description {
    margin-top: .75rem;
    color: #1f2937;
    line-height: 1.75;
}

.ek-event-detail-description p:last-child {
    margin-bottom: 0;
}

.ek-event-detail-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin-top: .75rem;
    margin-bottom: 2rem;
}

.ek-event-detail-actions a {
    display: inline-flex !important;
    align-items: center;
    gap: .45rem;
    color: var(--e-global-color-primary);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
}

.ek-event-detail-actions a:hover {
    text-decoration: underline;
}

.klo-trip-planner-link i,
.klo-event-website-link i {
    font-size: .95rem;
}

.klo-trip-planner-link.is-saved i {
    color: #dc2626;
}
.klo-event-website-link{
    display:inline-flex;
    align-items:center;
    gap:.45rem;
}

.klo-event-website-link i{
    font-size:.9rem;
}
/* Event Map */

.ek-event-map {

    margin-top: 2rem;

    border-radius: 18px;

    overflow: hidden;

    border: 1px solid rgba(0,0,0,.06);

    box-shadow: 0 10px 30px rgba(0,0,0,.05);

}

.ek-event-map iframe{

    display:block;
    width:100%;
    border:0;

}
/* Compact related events */
.klo-related-events {
    display: grid;
    gap: 12px;
}

.klo-related-event {
    padding: 16px 18px;
    border: 1px solid rgba(13, 92, 99, 0.16);
    border-radius: 10px;
    background: #fff;
}

.klo-related-event__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 4px;
    font-size: 0.88rem;
    font-weight: 600;
}

.klo-related-event__title {
    margin: 0 0 3px;
    font-size: 1.08rem;
    line-height: 1.3;
}

.klo-related-event__venue {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.klo-related-event__link {
    font-weight: 700;
    text-decoration: none;
}

.klo-related-events__empty {
    margin: 0;
}
@media (max-width: 767px) {

    /* Date badge */
    .ek-event-date-badge {
        width: 46px;
        min-width: 46px;
        height: 52px;
        padding: 6px 4px;
    }

    .ek-event-date-month {
        font-size: 11px;
    }

    .ek-event-date-day {
        font-size: 24px;
        line-height: 1;
    }

    /* Event title */
    .ek-event-title {
        font-size: 24px !important;
        line-height: 1.15;
    }

    /* Date + time */
    .ek-event-datetime {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Location */
    .ek-event-location {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Description */
    .ek-event-description {
        font-size: 15px;
        line-height: 1.55;
    }

    /* Details button */
    .ek-event-link {
        font-size: 14px;
        padding: 10px 18px;
    }
}