/* Mokymų sąrašo puslapis (.ml-*) */

/* Viena antraštės juosta (pirmas maketas → antras): šiltas fonas, dvi eilutės */
.ml-listing-header {
    background: #faf8f6;
    border-bottom: 1px solid #e8e4e0;
} 
.ml-page-header {
    background: transparent;
    border: none;
    padding: 24px 0 8px;
}
.ml-page-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    flex-wrap: wrap;
}
.ml-page-header__title {
    font-family: "Baton", "Sneak", sans-serif;
    font-weight: 900;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    color: #111;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
}
.ml-page-header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    justify-content: flex-end;
    min-width: min(100%, 320px);
}
.ml-header-search {
    display: flex;
    align-items: center;
    border: 1px solid #111;
    border-radius: 999px;
    padding: 8px 18px;
    background: #fff;
    gap: 10px;
    flex: 1;
    max-width: 420px;
    min-height: 44px;
}
.ml-header-search__icon { width: 20px; height: 20px; flex-shrink: 0; color: #444; }
.ml-header-search__icon svg { width: 100%; height: 100%; }
.ml-header-search__input {
    border: none;
    outline: none;
    flex: 1;
    font-family: inherit;
    font-size: 15px;
    background: transparent;
    min-width: 0;
}
.ml-btn { display: inline-block; border: none; border-radius: 999px; padding: 10px 24px; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, color .15s; }
.ml-btn--black { background: #111; color: #fff; }
.ml-btn--black:hover { background: #333; color: #fff; }

.ml-toolbar {
    background: transparent;
    border: none;
    padding: 4px 0 22px;
    position: sticky;
    top: 0;
    z-index: 50;
}
.ml-toolbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
}
.ml-toolbar__left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    flex: 1;
    min-width: min(100%, 200px);
}
.ml-toolbar__filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #c9c4c0;
    border-radius: 999px;
    padding: 7px 14px 7px 12px;
    font-weight: 600;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    color: #111;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color .15s, box-shadow .15s;
}
.ml-toolbar__filter-toggle:hover {
    border-color: #111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.ml-toolbar__filter-icon {
    display: flex;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #333;
}
.ml-toolbar__filter-icon svg { width: 100%; height: 100%; }
.ml-toolbar__filter-label { line-height: 1; }
.ml-toolbar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    margin-left: 2px;
    border-radius: 6px;
    background: #7c3aed;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.ml-toolbar__clear {
    border: 1px solid #111;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    background: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.ml-toolbar__clear:hover { background: #111; color: #fff; }
.ml-toolbar__count {
    font-size: 15px;
    color: #111;
    font-weight: 700;
    white-space: nowrap;
}
.ml-toolbar__count strong { font-weight: 800; }
.ml-toolbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.ml-toolbar__sort-form { margin: 0; }
.ml-sort-wrap {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e1dc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 2px 4px;
}
.ml-sort-select {
    border: none;
    border-radius: 10px;
    padding: 8px 36px 8px 14px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    min-width: 200px;
    color: #111;
}
.ml-sort-select:focus { outline: none; }
.ml-view-toggle {
    display: flex;
    gap: 2px;
    padding: 4px;
    background: #fff;
    border: 1px solid #e5e1dc;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.ml-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    color: #555;
    transition: border-color .15s, background .15s, color .15s;
}
.ml-view-btn svg { width: 18px; height: 18px; }
.ml-view-btn:hover { color: #111; background: #f4f2ef; }
.ml-view-btn.is-active {
    border-color: #111;
    background: #fff;
    color: #111;
}
.ml-view-btn.is-active svg { color: #111; }

.ml-body {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 12px 60px;
}
.ml-sidebar {
    width: 300px;
    flex-shrink: 0;
    transition: width .2s, opacity .2s;
}
.ml-sidebar.is-hidden { width: 0; opacity: 0; overflow: hidden; padding: 0; }
.ml-main { flex: 1; min-width: 0; }

.ml-apply-btn {
    width: 100%; margin-top: 16px; padding: 10px;
    background: #111; color: #fff; border: none;
    border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.ml-apply-btn:hover { background: #333; }
.ml-filter-group {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
}
.ml-filter-group__header {
    width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; background: none; border: none;
    font-weight: 700; font-size: 15px; cursor: pointer; text-align: left;
}
.ml-chevron { width: 18px; height: 18px; flex-shrink: 0; transition: transform .2s; }
.ml-filter-group.is-open .ml-chevron { transform: rotate(180deg); }
.ml-filter-group__body { display: none; padding: 0 16px 14px; }
.ml-filter-group.is-open .ml-filter-group__body { display: block; }
.ml-two-col-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.ml-filter-search-wrap { margin-bottom: 10px; }
.ml-filter-search,
.ml-filter-input-date,
.ml-filter-input-num,
.ml-filter-select {
    width: 100%; border: 1px solid #d0d0d0; border-radius: 8px;
    padding: 7px 12px; font-size: 13px; font-family: inherit;
}
.ml-checkbox-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.ml-checkbox-list li.is-filter-hidden { display: none; }
.ml-checkbox-label { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; cursor: pointer; }
.ml-checkbox-label input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 15px; height: 15px; cursor: pointer; accent-color: #111; }
.ml-checkbox-text { font-size: 13px; line-height: 1.4; color: #222; }
.ml-checkbox-count { color: #777; }

.ml-card {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    transition: box-shadow .15s;
}
.ml-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.ml-card__img-wrap {
    flex-shrink: 0;
    width: 250px;
    display: block;
    overflow: hidden;
}
.ml-card__img-wrap--placeholder {
    background: #f0f0f0;
    display: flex; align-items: center; justify-content: center;
}
.ml-card__img-wrap--placeholder svg { width: 100%; height: 100%; }
.ml-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ml-card__body { flex: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ml-card__top { display: flex; align-items: center; justify-content: space-between; }
.ml-card__provider { font-size: 13px; color: #555; }
.ml-card__fav {
    background: none; border: none; cursor: pointer; padding: 4px;
    color: #e05555; flex-shrink: 0;
}
.ml-card__fav svg { width: 22px; height: 22px; }
.ml-card__fav:hover svg { fill: #e05555; }
.ml-card__title { font-size: 1.2rem; font-weight: 800; line-height: 1.3; color: #111; margin: 0; }
.ml-card__title a { text-decoration: none; color: inherit; }
.ml-card__title a:hover { text-decoration: underline; }

.ml-card__rating { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.ml-stars { display: inline-flex; gap: 1px; }
.ml-star { font-size: 16px; line-height: 1; }
.ml-star--full  { color: #f5a623; }
.ml-star--half  { color: #f5a623; opacity: .6; }
.ml-star--empty { color: #d0d0d0; }
.ml-rating-value { font-weight: 700; color: #f5a623; }
.ml-rating-votes { color: #777; }

.ml-card__meta { display: flex; flex-direction: column; gap: 4px; }
.ml-meta-row { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #444; }
.ml-meta-row--type { color: #555; }
.ml-meta-icon { width: 16px; height: 16px; flex-shrink: 0; color: #888; }

.ml-card__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; border-top: 1px solid #f0f0f0; }
.ml-card__hours { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #333; }
.ml-card__price-block { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ml-card__price-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #444; }
.ml-card__history-link { font-size: 12px; color: #2563eb; text-decoration: underline; white-space: nowrap; }
.ml-card__history-link:hover { color: #1d4ed8; }

.ml-main.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.ml-main.view-grid .ml-card {
    flex-direction: column;
    margin-bottom: 0;
}
.ml-main.view-grid .ml-card__img-wrap { width: 100%; height: 180px; }

.ml-main.view-compact .ml-card {
    margin-bottom: 8px;
    border-radius: 12px;
}
.ml-main.view-compact .ml-card__body {
    padding: 12px 16px;
    gap: 4px;
}
.ml-main.view-compact .ml-card__img-wrap {
    width: 180px;
}
.ml-main.view-compact .ml-card__title {
    font-size: 1.05rem;
}
.ml-main.view-compact .ml-card__footer {
    padding-top: 4px;
}

.ml-pagination { display: flex; gap: 6px; justify-content: center; padding: 32px 0 8px; flex-wrap: wrap; }
.ml-pag-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 2px solid #d0d0d0; border-radius: 8px;
    font-size: 14px; font-weight: 600; text-decoration: none; color: #333; background: #fff;
    transition: all .15s;
}
.ml-pag-btn:hover { border-color: #111; background: #111; color: #fff; }
.ml-pag-btn.is-active { background: #111; color: #fff; border-color: #111; }

.ml-empty { padding: 60px 0; text-align: center; color: #666; font-size: 16px; }

@media (max-width: 1024px) {
    .ml-card__img-wrap { width: 200px; }
}
@media (max-width: 800px) {
    .ml-body { flex-direction: column; padding: 16px 12px 40px; }
    .ml-sidebar { width: 100%; }
    .ml-card { flex-direction: column; }
    .ml-card__img-wrap { width: 100%; height: 180px; }
    .ml-page-header__title { font-size: 1.8rem; }
}
@media (max-width: 560px) {
    .ml-toolbar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .ml-toolbar__right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .ml-sort-wrap {
        flex: 1;
        min-width: min(100%, 160px);
    }
    .ml-sort-select {
        min-width: 0;
        width: 100%;
    }
    .ml-page-header__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .ml-header-search {
        max-width: none;
    }
}

/* Puslapis laikinai nepasiekiamas – pranešimas ant užblurinto fono viršuje */
.ml-listing-main--disabled .ml-listing-main__content {
    position: relative;
}

.ml-listing-main--disabled .ml-listing-main__blurrable {
    filter: blur(12px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.ml-listing-main__disabled-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--ml-disabled-message-top, 25px);
    display: flex;
    justify-content: center;
    padding: 0 24px;
    z-index: 20;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ml-listing-main__disabled-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .ml-listing-main__disabled-overlay {
        transition: none;
    }
}

.ml-listing-main__disabled-message {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    font-family: "Baton", "Sneak", system-ui, sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.35;
    padding: 16px 24px;
    border-radius: 12px;
    max-width: 720px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

/* Paslėpti elementai kol puslapis „išjungtas“ */
.ml-listing-page--disabled .ml-header-search,
.ml-listing-page--disabled .ml-page-header__actions > .ml-btn--black {
    display: none !important;
}

.ml-listing-page--disabled .ml-toolbar {
    display: none !important;
}

.ml-listing-main--disabled .ml-filter-group--price {
    display: none !important;
}
