@font-face {
    font-family: 'Multicolore Pro';
    src: url('../fonts/multicolore_pro-webfont.woff2') format('woff2'),
         url('../fonts/multicolore_pro-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'ColorTube';
    src: url('../fonts/ColorTube.woff2') format('woff2'),
         url('../fonts/ColorTube.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}


/* =============================================================================
   Advanced Events Slider (mod_eb_advslider) — UIkit integration
   Template override: html/mod_eb_advslider/default_item.php
   ============================================================================= */

/* Card height: stretch all cards to equal height within each Splide slide */
.eb-event-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Push the footer to the bottom of each card regardless of content length */
.eb-event-card .uk-card-body {
    flex: 1;
}

/* Event image: fixed aspect ratio so cards align neatly in the slider */
.eb-event-card-media {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.eb-event-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.eb-event-card:hover .eb-event-card-img {
    transform: scale(1.04);
}

/* Featured event: subtle left accent border */
.eb-event-card-featured {
    border-left: 3px solid var(--uk-color-primary, #1e87f0);
}

/* Location text: prevent long venue names from breaking the footer flex row */
.eb-event-card-location {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 65%;
}

/* Price: slightly larger than surrounding footer text */
.eb-event-card-price {
    white-space: nowrap;
    font-size: 1rem;
}

/* Short description: cap at 3 lines with ellipsis overflow */
.eb-event-card-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: var(--uk-color-muted, #999);
    margin-top: 0.5rem;
}

/* Replace overflow:hidden with clip-path so we can control each side independently.
   clip-path: inset(top right bottom left)
   Negative top/bottom = allow shadow to bleed beyond the track edge.
   0px left/right = still clip off-screen slides at the track boundary. */
.eb-events-grid-items .splide__track {
    overflow: visible !important;
    clip-path: inset(-10px 0px);
    padding: 0 6px !important;
}

/* Card shadow */
.eb-events-grid-items .uk-card-default,
.eb-events-grid-items .uk-card-default:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    filter: none !important;
}

/* Equal-height cards: stretch slides and let the card fill the column */
.eb-events-grid-items .splide__list {
    align-items: stretch;
}
.eb-events-grid-items .splide__slide {
    display: flex !important;
    flex-direction: column;
}
.eb-events-grid-items .splide__slide .uk-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.eb-events-grid-items .splide__slide .uk-card-body {
    flex: 1;
}

/* Event card: flex row with thumbnail on the left */
.eb-event-card-inner {
    gap: 16px;
}

/* Thumbnail: 15% wide, square crop */
.eb-event-card-thumb {
    flex: 0 0 15%;
    min-width: 0;
    overflow: hidden;
    border-radius: 4px;
}

.eb-event-card-thumb .eb-event-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Content: fills remaining width */
.eb-event-card-content {
    flex: 1;
    min-width: 0;
}

/* Splide arrow buttons */
.eb-events-grid-items .splide__arrow {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    opacity: 1;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.eb-events-grid-items .splide__arrow svg {
    fill: #444;
    width: 0.9rem;
    height: 0.9rem;
}

.eb-events-grid-items .splide__arrow:hover:not(:disabled) {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.eb-events-grid-items .splide__arrow:disabled {
    opacity: 0.3;
    box-shadow: none;
}


/* Suppress the old EB styles.css card styles so they don't compete */
.eb-events-grid-items .eb-event-wrapper {
    all: unset;
}

/* =============================================================================
   Event Booking Calendar — UIkit integration
   Template override: html/com_eventbooking/calendar/default_calendar.php
   Brand primary: #116E32 (dark green)
   ============================================================================= */

/* Suppress original EB calendar styles so they don't compete */
.eb-calendar-uikit.eb-calendar ul,
.eb-calendar-uikit.eb-calendar li {
    all: unset;
}

/* ---- Header ---- */
.eb-cal-header {
    background: #116E32;
    color: #fff;
    border-radius: 6px 6px 0 0;
    padding: 10px 16px;
}

.eb-cal-nav-btn {
    color: #fff;
    opacity: 0.85;
    display: flex;
    align-items: center;
    transition: opacity 0.15s;
}
.eb-cal-nav-btn:hover { opacity: 1; color: #fff; }

.eb-cal-month-label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    display: flex;
    gap: 8px;
    align-items: center;
}

/* uk-select dropdowns inside the green header — keep text readable */
.eb-cal-month-label .uk-select {
    width: auto;
    font-size: 0.875rem;
    padding-top: 2px;
    padding-bottom: 2px;
}

/* ---- 7-column grid ---- */
.eb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
}

/* ---- Weekday headers ---- */
.eb-cal-weekday {
    background: #f0f7f2;
    color: #116E32;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 8px 4px;
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

/* ---- Day cells ---- */
.eb-cal-day {
    border-right: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
    padding: 6px;
    min-height: 70px;
    vertical-align: top;
    font-size: 0.75rem;
}

/* Empty days get less visual weight and narrower feel */
.eb-cal-day--empty {
    background: #fafafa;
    min-height: 40px;
}

/* Days outside the current month */
.eb-cal-day--filler {
    background: #f5f5f5;
    min-height: 0;
    padding: 0;
}

/* Date number */
.eb-cal-date-num {
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
    margin-bottom: 4px;
    line-height: 1;
}

.eb-cal-date-num--today {
    background: #116E32;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

/* ---- Event entries within a day cell ---- */
.eb-cal-event {
    display: block;
    background: #f0f7f2;
    border-left: 3px solid #116E32;
    border-radius: 3px;
    padding: 5px 6px;
    margin-top: 4px;
    color: #222;
    text-decoration: none;
    transition: background 0.15s;
}
.eb-cal-event:hover { background: #ddeee3; color: #222; text-decoration: none; }

.eb-cal-event--full {
    border-left-color: #DC3545;
    background: #fdf2f3;
}
.eb-cal-event--full:hover { background: #fce4e6; }

/* Inner flex: image left, text right */
.eb-cal-event-inner {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}

.eb-cal-event-thumb {
    flex: 0 0 25%;
    border-radius: 3px;
    overflow: hidden;
}
.eb-cal-event-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.eb-cal-event-body {
    flex: 1;
    min-width: 0;
}

.eb-cal-event-title {
    font-weight: 600;
    font-size: 0.72rem;
    line-height: 1.3;
    color: #116E32;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.eb-cal-event--full .eb-cal-event-title { color: #DC3545; }

.eb-cal-event-meta {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    color: #555;
    margin-top: 2px;
    line-height: 1.2;
}
.eb-cal-event-meta [uk-icon] { flex-shrink: 0; }

/* ---- Responsive: stack to list on small screens ---- */
@media (max-width: 639px) {
    .eb-cal-grid {
        grid-template-columns: 1fr;
    }
    .eb-cal-weekday { display: none; }
    .eb-cal-day--empty,
    .eb-cal-day--filler { display: none; }
    .eb-cal-day--has-events {
        border-left: 3px solid #116E32;
        min-height: 0;
    }
}

/* EB search sidebar: stop the column AND card from stretching to match calendar height.
   1. align-self: flex-start on the column stops it growing to the row height.
   2. flex: none on the card stops it filling the column if the column is still tall. */
.uk-grid-item-match:has(#eb_search_form) {
    align-self: flex-start !important;
}
.uk-grid-item-match:has(#eb_search_form) > .uk-card {
    flex: none !important;
}

/* =============================================================================
   Event Detail Page — UIkit integration
   Template override: html/com_eventbooking/event/default.php
   ============================================================================= */

/* Suppress original EB detail-page structural styles */
.eb-event-uikit .eb-box-heading,
.eb-event-uikit #pop-print { display: none !important; }

/* Large event image */
.eb-event-uikit .eb-event-large-image,
.eb-event-uikit .eb-thumb-left {
    max-width: 100%;
    height: auto;
    margin-bottom: 1.25rem;
}

/* ---- Property rows ---- */
.eb-event-prop-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.4;
}
.eb-event-prop-row:last-child { border-bottom: none; }

.eb-event-prop-icon {
    flex-shrink: 0;
    color: #116E32;
    margin-top: 1px;
}

/* ---- Action buttons row ---- */
.eb-event-actions {
    padding-top: 0.75rem;
    border-top: 1px solid #e5e5e5;
    margin-top: 1rem;
}

/* Reset the <ul> wrapper around register buttons inside the card footer */
.eb-event-card-actions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

/* Prevent description text from wrapping under a floated thumbnail image.
   overflow: hidden creates a new block formatting context (BFC). */
.eb-event-uikit .eb-description-text {
    overflow: hidden;
}

/* =============================================================================
   Footer navigation links — remove underline
   YOOtheme builder list elements render as .uk-list inside .uk-section-primary.
   Bootstrap's global `a` rule adds underlines; this overrides it.
   ============================================================================= */
.uk-section-primary .uk-list a,
.uk-section-primary .uk-list a:hover {
    text-decoration: none;
}

/* =============================================================================
   RSForm labels — visually hidden for text inputs only, screen-reader accessible
   Scoped to text-box, text-area, and password field wrappers so date selectors,
   checkboxes, radio groups, etc. still show their labels visually.
   Uses the standard WCAG visually-hidden pattern.
   ============================================================================= */
.rsform-type-textbox .formControlLabel,
.rsform-type-textarea .formControlLabel,
.rsform-type-password .formControlLabel {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =============================================================================
   RSForm error text — light pink on dark green background
   .formError = per-field "Invalid Input" text; .formRed = bold error label.
   #dc3545 contrast ratio vs #fff: 4.5:1 (passes WCAG AA).
   ============================================================================= */
.formError,
.formRed {
    color: #dc3545 !important;
}

/* =============================================================================
   RSForm submit button — white background, green text
   Overrides .btn-primary from theme.css (background #116e32, color #fff).
   Two-class specificity beats the single-class theme rule; !important covers
   the long compound selectors in theme.css.
   ============================================================================= */
.rsform-submit-button.btn-primary,
.rsform-submit-button.btn-primary:hover,
.rsform-submit-button.btn-primary:active,
.rsform-submit-button.btn-primary.uk-active,
.rsform-submit-button.btn-primary:focus,
.rsform-submit-button.btn-primary:focus-visible {
    background-color: #116e32 !important;
    color: #fff !important;
    outline: none !important;
    border-color: transparent !important;
}

/* Short horizontal rule — approximately 50% width, left-aligned */
.eb-short-hr {
    width: 50%;
    margin-left: 0;
    border-top-color: #e5e5e5;
}

/* Event detail two-column layout: description left, properties right */
.eb-event-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.eb-event-layout-main {
    flex: 1 1 0;
    min-width: 0;
}
.eb-event-layout-aside {
    flex: 0 0 280px;
    min-width: 0;
}
@media (max-width: 767px) {
    .eb-event-layout {
        flex-direction: column;
    }
    .eb-event-layout-aside {
        flex: none;
        width: 100%;
    }
    .eb-short-hr {
        width: 100%;
    }
}
