/* ── Reset / alap ─────────────────────────────────────────────────────── */
.mhk-wrap {
    max-width: 1300px;
    padding-top: 0;
    margin: 0;
}

/* ── Grid ─────────────────────────────────────────────────────────────── */
.mhk-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 24px;
}

/* ── Kártya ───────────────────────────────────────────────────────────── */
.mhk-card {
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s;
}
.mhk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.mhk-card.status-elmarad  { opacity: .55; }
.mhk-card.status-archivalt { display: none; }

/* ── Kép ──────────────────────────────────────────────────────────────── */
.mhk-card-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
}
.mhk-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.mhk-card:hover .mhk-card-img img { transform: scale(1.04); }

/* ── Badge ────────────────────────────────────────────────────────────── */
.mhk-badge {
    position: absolute;
    top: 8px; right: 8px;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.badge-soldout   { background: rgba(180,0,0,.85);   color: #fff; }
.badge-elmarad   { background: rgba(60,60,60,.9);   color: #fff; }
.badge-halasztva { background: rgba(160,120,0,.85); color: #fff; }

/* ── Body ─────────────────────────────────────────────────────────────── */
.mhk-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.mhk-date {
    font-size: 14px;
    color: #ccc;
    letter-spacing: .02em;
}

.mhk-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}
.mhk-title a {
    color: #e8e8e8;
    text-decoration: none;
}
.mhk-title a:hover { color: #c0a060; }

.mhk-venue {
    font-size: 12px;
    color: #888;
}
.mhk-venue a { color: #888; text-decoration: none; }
.mhk-venue a:hover { color: #aaa; }
.mhk-addr { display: none; }   /* Kártyán elég a helyszín neve */

.mhk-organizers {
    font-size: 11px;
    color: #666;
}
.mhk-organizers a { color: #666; text-decoration: none; }
.mhk-organizers a:hover { color: #999; }

/* ── Gombok ───────────────────────────────────────────────────────────── */
.mhk-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 10px;
}
.mhk-btn {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    background-color: moccasin;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .15s;
}
.mhk-btn:hover { opacity: .82; }
.mhk-btn-ticket  { background: #c0a060; color: #111; }
.mhk-btn-soldout { background: #444;    color: #888; cursor: default; }
.mhk-btn-fb      { background: #1877f2; color: #fff; }

/* ── Szűrő fejléc ─────────────────────────────────────────────────────── */
.mhk-filter-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.mhk-back {
    color: #888;
    text-decoration: none;
    font-size: 13px;
}
.mhk-back:hover { color: #ccc; }
.mhk-filter-title {
    margin: 0;
    font-size: 18px;
    color: #e8e8e8;
}

.mhk-empty {
    color: #666;
    font-style: italic;
}

/* ── Single oldal: adatblokk ──────────────────────────────────────────── */
.mhk-concert-meta {
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 18px 0 26px;
    font-size: 15px;
    line-height: 1.5;
}

.mhk-meta-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #242424;
}
.mhk-meta-row:last-of-type { border-bottom: none; }

.mhk-meta-icon  { width: 22px; text-align: center; flex-shrink: 0; font-style: normal; }
.mhk-meta-label {
    width: 80px;
    flex-shrink: 0;
    color: #aaa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.mhk-meta-value { color: #d8d8d8; flex: 1; }
.mhk-meta-value a { color: #c0a060; text-decoration: none; }
.mhk-meta-value a:hover { text-decoration: underline; }
.mhk-meta-addr {
    display: block;
    font-size: 12px;
    color: #ccc;
    margin-top: 2px;
}

.mhk-meta-status { padding-bottom: 12px; margin-bottom: 2px; }
.mhk-meta-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.mhk-meta-badge.soldout   { background: #3a0000; color: #ff6b6b; border: 1px solid #600; }
.mhk-meta-badge.elmarad   { background: #2a0000; color: #ff4444; border: 1px solid #500; }
.mhk-meta-badge.halasztva { background: #2a2a00; color: #ffcc44; border: 1px solid #550; }

.mhk-meta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 14px;
}

/* ── Genre tagek a kártyán ────────────────────────────────────────────── */
.mhk-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}
.mhk-genre-tag {
    display: inline-block;
    padding: 2px 7px;
    background: #222;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    font-size: 10px;
    color: #999;
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.mhk-genre-tag:hover {
    border-color: #c0a060;
    color: #c0a060;
}

/* ══════════════════════════════════════════════════════════════════════════
   TOOLBAR – Keresés + Nézet váltó
   ══════════════════════════════════════════════════════════════════════════ */
.mhk-toolbar {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    grid-template-areas: "search date venue viewbtns";
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.mhk-search-wrap  { grid-area: search; }
.mhk-filter-date  { grid-area: date; }
.mhk-filter-venue { grid-area: venue; }
.mhk-view-btns    { grid-area: viewbtns; }

/* ── Keresés ──────────────────────────────────────────────────────────── */
.mhk-search-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 8px;
    flex: 1;
    max-width: 420px;
    min-width: 300px;
    transition: border-color .15s;
}
.mhk-search-wrap:focus-within {
    border-color: #c0a060;
}
.mhk-search-icon {
    color: #555;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 10px;
}
.mhk-search-input {
    background: none;
    border: none;
    outline: none;
    color: #e0e0e0;
    font-size: 14px;
    padding: 0;
    flex: 1;
    min-width: 0;
}
.mhk-search-input::placeholder { color: #555; }
.mhk-search-clear {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 14px;
    padding: 0 0 0 4px;
    line-height: 1;
    flex-shrink: 0;
}
.mhk-search-clear:hover { color: #aaa; }

/* ── Dátum + Helyszín szűrők ──────────────────────────────────────────── */
.mhk-filter-date,
.mhk-filter-venue {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ccc;
    font-size: 13px;
    padding: 8px 10px;
    height: 38px;
    cursor: pointer;
    transition: border-color .15s;
    appearance: none;
    -webkit-appearance: none;
}
.mhk-filter-date {
    min-width: 140px;
    color-scheme: dark;
}
.mhk-filter-venue {
    min-width: 160px;
    max-width: 220px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}
.mhk-filter-date:hover,
.mhk-filter-venue:hover  { border-color: #555; }
.mhk-filter-date:focus,
.mhk-filter-venue:focus  { border-color: #c0a060; outline: none; }

/* Üres select (placeholder) szürkébb */
.mhk-filter-venue option { background: #1a1a1a; color: #ccc; }
.mhk-filter-venue option[value=""] { color: #666; }

/* Nézet váltó gombsor */

/* ── Nézet váltó gombok ───────────────────────────────────────────────── */
.mhk-view-btns {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.mhk-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    cursor: pointer;
    color: #555;
    transition: color .15s, border-color .15s, background .15s;
}
.mhk-view-btn:hover  { color: #aaa; border-color: #555; }
.mhk-view-btn.active { color: #c0a060; border-color: #c0a060; background: #1e1a10; }

/* Mobilos toolbar 2 soros elrendezés */
@media (max-width: 640px) {
    .mhk-toolbar {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        grid-template-areas:
            "search search"
            "date   venue";
    }
    .mhk-filter-date  { min-width: 0; width: 100%; }
    .mhk-filter-venue { max-width: 100%; width: 100%; }
    .mhk-view-btns    { display: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LISTA NÉZET
   ══════════════════════════════════════════════════════════════════════════ */

/* Grid nézetben a lista-specifikus elemek rejtve */
.mhk-list-col-venue { display: none; }

/* Lista nézet aktiválva */
.mhk-list.view-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mhk-list.view-list .mhk-card {
    display: grid;
    grid-template-columns: 160px 1fr 220px;
    grid-template-rows: auto;
    border-radius: 6px;
    min-height: 100px;
}

/* Kép – lista nézet */
.mhk-list.view-list .mhk-card-img {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: unset;
    height: 100%;
    min-height: 100px;
    border-radius: 6px 0 0 6px;
    overflow: hidden;
}
.mhk-list.view-list .mhk-card-img img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Body – lista nézet: cím + dátum + stílusok */
.mhk-list.view-list .mhk-card-body {
    grid-column: 2;
    grid-row: 1;
    padding: 14px 16px;
    justify-content: center;
}
/* Grid nézetben látható venue/org sor elrejtése lista nézetben a body-ban */
.mhk-list.view-list .mhk-card-body .mhk-venue,
.mhk-list.view-list .mhk-card-body .mhk-organizers,
.mhk-list.view-list .mhk-card-body .mhk-card-actions {
    display: none;
}

/* 3. oszlop: helyszín + szervező + gombok */
.mhk-list.view-list .mhk-list-col-venue {
    display: flex;
    flex-direction: column;
    grid-column: 3;
    grid-row: 1;
    padding: 14px 16px;
    border-left: 1px solid #2a2a2a;
    justify-content: center;
    gap: 4px;
}
.mhk-list.view-list .mhk-list-col-venue .mhk-venue,
.mhk-list.view-list .mhk-list-col-venue .mhk-organizers {
    font-size: 13px;
}
.mhk-list.view-list .mhk-list-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.mhk-list.view-list .mhk-list-actions .mhk-btn {
    font-size: 11px;
    padding: 4px 10px;
}

/* Ha nincs kép – lista nézet */
.mhk-list.view-list .mhk-card:not(:has(.mhk-card-img)) {
    grid-template-columns: 1fr 220px;
}
.mhk-list.view-list .mhk-card:not(:has(.mhk-card-img)) .mhk-card-body {
    grid-column: 1;
}
.mhk-list.view-list .mhk-card:not(:has(.mhk-card-img)) .mhk-list-col-venue {
    grid-column: 2;
}

/* Responsive: mobil – lista nézet is kártyaként jelenik meg */
@media (max-width: 640px) {
    /* Lista nézet mobilon: kártyaként */
    .mhk-list.view-list .mhk-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .mhk-list.view-list .mhk-card-img {
        grid-column: 1; grid-row: 1;
        height: 180px;
        border-radius: 6px 6px 0 0;
    }
    .mhk-list.view-list .mhk-card-body {
        grid-column: 1; grid-row: 2;
    }
    .mhk-list.view-list .mhk-card-body .mhk-venue,
    .mhk-list.view-list .mhk-card-body .mhk-organizers,
    .mhk-list.view-list .mhk-card-body .mhk-card-actions {
        display: flex;
    }
    .mhk-list.view-list .mhk-list-col-venue {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   SLIDER  [mhk_slider]
   ══════════════════════════════════════════════════════════════════════════ */

.mhk-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow: hidden;
}

/* Nyíl gombok */
.mhk-slider-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 50%;
    color: #aaa;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s, color .15s;
    z-index: 2;
    padding: 0;
}
.mhk-slider-btn:hover { border-color: #c0a060; color: #c0a060; }
.mhk-slider-btn:disabled { opacity: .3; cursor: default; }

/* Viewport: vágja le a túlnyúló kártyákat */
.mhk-slider-viewport {
    flex: 1;
    overflow: hidden;
}

/* Track: a kártyák vízszintes sora, CSS transform-mal mozog */
.mhk-slider-track {
    display: flex;
    gap: 12px;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* Egyedi slide kártya */
.mhk-slide {
    flex-shrink: 0;
    /* szélesség JS-ből kerül rá inline style-ként */
    border-radius: 6px;
    background: #151515;
    border: 1px solid #222;
    overflow: hidden;
    transition: border-color .15s;
}
.mhk-slide:hover { border-color: #444; }

.mhk-slide-inner {
    display: block;
    text-decoration: none;
    color: unset;
    height: 100%;
}

.mhk-slide-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.mhk-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.mhk-slide:hover .mhk-slide-img img { transform: scale(1.04); }

.mhk-slide-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mhk-slide-date {
    font-size: 14px !important;
    color: #ccc !important;
    letter-spacing: .02em;
}
.mhk-slide-title {
    margin: 0;
    font-size: 14px !important;
    font-weight: normal;
    color: #e8e8e8 !important;
    line-height: 1.35;
    text-decoration: none !important;
    /* 2 sor max */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mhk-slide:hover .mhk-slide-title { color: #c0a060 !important; }
.mhk-slide-venue {
    font-size: 12px !important;
    color: #888 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   SIDEBAR LISTA  [mhk_sidebar]
   ══════════════════════════════════════════════════════════════════════════ */

.mhk-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mhk-sb-item {
    display: flex;
    gap: 0px;
    align-items: flex-start;
    text-decoration: none;
    color: unset;
    transition: opacity .15s;
    background-color: rgba(0,0,0,0.4);
    padding: 10px;
    margin-bottom: 5px;
}
.mhk-sb-item:last-child { border-bottom: none; }
.mhk-sb-item:hover { opacity: .8; }

.mhk-sb-img {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    background: #111;
}
.mhk-sb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mhk-sb-body {
    flex: 1;
    min-width: 0;
}
.mhk-sb-noimg { /* képnélküli verzió: teljes szélesség */ }

.mhk-sb-title {
    margin: 0;
    font-size: 14px !important;
    font-weight: normal;
    color: #e8e8e8 !important;
    line-height: 1.35;
    text-decoration: none !important;
    /* 2 sor max */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mhk-sb-item:hover .mhk-sb-title { color: #c0a060 !important; }
.mhk-sb-date {
    font-size: 14px !important;
    color: #ccc !important;
    letter-spacing: .02em;
}
.mhk-sb-venue {
    font-size: 12px !important;
    color: #888 !important;
}
