/* ============================================================
   [vig1_masszor_lista] – publikus masszőrlista és -profil (2026-10-17)
   Csak azon az oldalon töltődik be, ahol a shortcode szerepel.
   Sötét mód: html[data-vig1-theme="dark"] + a vig1-dark.css változói (tartalékértékkel,
   mert a masszőrlista oldalán a vig1-dark.css nem töltődik be).
   Lásd vig1fm: dokumentacio/update/2026-10-17/05_wp_masszorlista_shortcode.md.
   ============================================================ */

.vig1-masseurs {
    max-width: 1200px;
    margin: 0 auto;
    color: #111827;
    font-size: 15px;
    line-height: 1.5;
}

.vig1-masseurs *,
.vig1-masseurs *::before,
.vig1-masseurs *::after { box-sizing: border-box; }

.vig1-md-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.vig1-md-lang {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

/* ── Szűrők ── */
.vig1-md-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}

.vig1-md-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; min-width: 0; }
.vig1-md-field label { font-size: 13px; font-weight: 600; color: #374151; }
.vig1-md-field input,
.vig1-md-field select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font-size: 15px;
}
.vig1-md-field input:focus,
.vig1-md-field select:focus { outline: 2px solid #6366f1; outline-offset: 1px; }

.vig1-md-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.vig1-md-btn {
    padding: 9px 18px;
    border: 0;
    border-radius: 6px;
    background: #4f46e5;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.vig1-md-btn:hover, .vig1-md-btn:focus { background: #4338ca; }
.vig1-md-reset { font-size: 14px; color: #4f46e5; }

/* ── Találatszám + nézetváltó ── */
.vig1-md-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 16px 0 12px;
}
.vig1-md-count { margin: 0; color: #4b5563; font-size: 14px; }
.vig1-md-views { display: inline-flex; border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; }
.vig1-md-view {
    padding: 6px 14px;
    color: #374151;
    font-size: 14px;
    text-decoration: none;
    background: #fff;
}
.vig1-md-view + .vig1-md-view { border-left: 1px solid #d1d5db; }
.vig1-md-view.is-active { background: #eef2ff; color: #3730a3; font-weight: 600; }
.vig1-md-view:focus-visible { outline: 2px solid #6366f1; outline-offset: -2px; }

/* ── Üzenetek ── */
.vig1-md-notice {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #374151;
}
.vig1-md-notice-error { border-color: #fca5a5; background: #fee2e2; color: #991b1b; }
.vig1-md-muted { color: #6b7280; font-size: 13px; margin: 0; }

/* ── Grid nézet ── */
.vig1-md-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.vig1-md-card {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.vig1-md-card:hover,
.vig1-md-card:focus-within { border-color: #a5b4fc; box-shadow: 0 4px 14px rgba(79, 70, 229, .12); }
.vig1-md-card-img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #e0e7ff; }
.vig1-md-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; flex: 1 1 auto; }
.vig1-md-card-title { margin: 0; font-size: 17px; line-height: 1.3; }
.vig1-md-name { color: #3730a3; font-weight: 700; text-decoration: none; }
.vig1-md-name:hover, .vig1-md-name:focus { text-decoration: underline; }
/* Az egész kártya kattintható (a név linkje terjed ki rá). */
.vig1-md-card-link::after { content: ''; position: absolute; inset: 0; }
.vig1-md-card-link:focus-visible { outline: none; }
.vig1-md-card:has(.vig1-md-card-link:focus-visible) { outline: 2px solid #6366f1; outline-offset: 2px; }
.vig1-md-card-more { margin-top: auto; font-size: 13px; color: #4f46e5; font-weight: 600; }

.vig1-md-info { color: #374151; overflow-wrap: anywhere; }
.vig1-md-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vig1-md-types { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vig1-md-types li {
    margin: 0;
    padding: 2px 9px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 12px;
    font-weight: 600;
}

/* ── Táblázat nézet ── */
.vig1-md-table-wrap { overflow-x: auto; }
.vig1-md-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e7eb; }
.vig1-md-table th,
.vig1-md-table td { padding: 10px 12px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
.vig1-md-table th { background: #f3f4f6; font-size: 13px; color: #374151; white-space: nowrap; }
.vig1-md-table td:first-child { white-space: nowrap; }

/* ── Lapozás ── */
.vig1-md-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.vig1-md-page {
    min-width: 36px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
}
.vig1-md-page.is-active { background: #4f46e5; border-color: #4f46e5; color: #fff; font-weight: 600; }
a.vig1-md-page:hover, a.vig1-md-page:focus { border-color: #6366f1; color: #3730a3; }
.vig1-md-page-gap { color: #9ca3af; padding: 0 2px; }
.vig1-md-page-of { margin-left: auto; color: #6b7280; font-size: 13px; }

/* ── Profil ── */
.vig1-md-back { margin: 0 0 14px; }
.vig1-md-back a { color: #4f46e5; font-weight: 600; text-decoration: none; }
.vig1-md-back a:hover, .vig1-md-back a:focus { text-decoration: underline; }
.vig1-md-profile { border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; padding: 20px; }
.vig1-md-profile-head { display: flex; gap: 20px; align-items: flex-start; }
.vig1-md-profile-img { flex: 0 0 auto; width: 160px; height: 160px; border-radius: 12px; object-fit: cover; }
.vig1-md-profile-name { margin: 0 0 10px; font-size: 24px; line-height: 1.25; }
.vig1-md-contacts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; }
.vig1-md-contacts dt { font-weight: 600; color: #4b5563; }
.vig1-md-contacts dd { margin: 0; overflow-wrap: anywhere; }
.vig1-md-contacts a { color: #4f46e5; }
.vig1-md-section { margin-top: 20px; }
.vig1-md-section h3 { margin: 0 0 8px; font-size: 17px; }
.vig1-md-type-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vig1-md-type-list li { margin: 0; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; }
.vig1-md-type-list .vig1-md-muted { margin-left: 6px; }
.vig1-md-type-desc { margin-top: 4px; color: #4b5563; font-size: 14px; }

/* ── Mobil (640px alatt) ── */
@media (max-width: 639px) {
    .vig1-md-filters { padding: 12px; }
    .vig1-md-actions { width: 100%; }
    .vig1-md-btn { flex: 1 1 auto; }
    .vig1-md-grid { grid-template-columns: 1fr; }
    .vig1-md-page-of { width: 100%; margin-left: 0; }

    /* A táblázat soronként kártyává válik (nincs vízszintes görgetés). */
    .vig1-md-table, .vig1-md-table tbody, .vig1-md-table tr, .vig1-md-table td { display: block; width: 100%; }
    .vig1-md-table { border: 0; background: transparent; }
    .vig1-md-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .vig1-md-table tr { margin-bottom: 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; overflow: hidden; }
    .vig1-md-table td { border-bottom: 1px solid #f3f4f6; white-space: normal; }
    .vig1-md-table td:last-child { border-bottom: 0; }
    .vig1-md-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 2px; }
    .vig1-md-table td:first-child { white-space: normal; }

    .vig1-md-profile { padding: 14px; }
    .vig1-md-profile-head { flex-direction: column; }
    .vig1-md-profile-img { width: 120px; height: 120px; }
    .vig1-md-profile-name { font-size: 21px; }
}

/* ── Sötét mód ── */
html[data-vig1-theme="dark"] .vig1-masseurs { color: var(--vig1-d-text, #e2e8f0); }
html[data-vig1-theme="dark"] .vig1-md-lang,
html[data-vig1-theme="dark"] .vig1-md-field input,
html[data-vig1-theme="dark"] .vig1-md-field select,
html[data-vig1-theme="dark"] .vig1-md-view,
html[data-vig1-theme="dark"] .vig1-md-page {
    background: var(--vig1-d-surface-2, #1f2937);
    border-color: var(--vig1-d-border, #334155);
    color: var(--vig1-d-text, #e2e8f0);
}
html[data-vig1-theme="dark"] .vig1-md-filters,
html[data-vig1-theme="dark"] .vig1-md-notice,
html[data-vig1-theme="dark"] .vig1-md-type-list li {
    background: var(--vig1-d-surface-2, #1f2937);
    border-color: var(--vig1-d-border, #334155);
    color: var(--vig1-d-text, #e2e8f0);
}
html[data-vig1-theme="dark"] .vig1-md-field label,
html[data-vig1-theme="dark"] .vig1-md-contacts dt { color: var(--vig1-d-text-muted, #cbd5e1); }
html[data-vig1-theme="dark"] .vig1-md-count,
html[data-vig1-theme="dark"] .vig1-md-muted,
html[data-vig1-theme="dark"] .vig1-md-page-of,
html[data-vig1-theme="dark"] .vig1-md-type-desc,
html[data-vig1-theme="dark"] .vig1-md-info { color: var(--vig1-d-text-muted, #cbd5e1); }
html[data-vig1-theme="dark"] .vig1-md-notice-error {
    background: var(--vig1-d-err-bg, rgba(239, 68, 68, .14));
    border-color: var(--vig1-d-err-border, rgba(248, 113, 113, .42));
    color: var(--vig1-d-err-text, #fecaca);
}
html[data-vig1-theme="dark"] .vig1-md-card,
html[data-vig1-theme="dark"] .vig1-md-profile,
html[data-vig1-theme="dark"] .vig1-md-table,
html[data-vig1-theme="dark"] .vig1-md-table tr {
    background: var(--vig1-d-surface, #111827);
    border-color: var(--vig1-d-border, #334155);
}
html[data-vig1-theme="dark"] .vig1-md-table th { background: var(--vig1-d-surface-2, #1f2937); color: var(--vig1-d-text-muted, #cbd5e1); }
html[data-vig1-theme="dark"] .vig1-md-table th,
html[data-vig1-theme="dark"] .vig1-md-table td { border-color: var(--vig1-d-border, #334155); }
html[data-vig1-theme="dark"] .vig1-md-name,
html[data-vig1-theme="dark"] .vig1-md-profile-name,
html[data-vig1-theme="dark"] .vig1-md-section h3 { color: var(--vig1-d-heading, #c7d2fe); }
html[data-vig1-theme="dark"] .vig1-md-view.is-active,
html[data-vig1-theme="dark"] .vig1-md-types li { background: var(--vig1-d-soft-bg, rgba(99, 102, 241, .16)); color: var(--vig1-d-soft-text, #c7d2fe); }
html[data-vig1-theme="dark"] .vig1-md-card-more,
html[data-vig1-theme="dark"] .vig1-md-reset,
html[data-vig1-theme="dark"] .vig1-md-back a,
html[data-vig1-theme="dark"] .vig1-md-contacts a { color: var(--vig1-d-soft-text, #c7d2fe); }
html[data-vig1-theme="dark"] .vig1-md-page.is-active { background: #4f46e5; border-color: #6366f1; color: #fff; }
html[data-vig1-theme="dark"] .vig1-md-card:hover,
html[data-vig1-theme="dark"] .vig1-md-card:focus-within { border-color: var(--vig1-d-soft-border, rgba(129, 140, 248, .42)); }

/* ── Sötét mód kapcsoló (a vig1-dark.css szabályainak megfelelője, mert az ezen az oldalon nem töltődik be) ── */
.vig1-masseurs .vig1-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    background: #fff;
    color: #1e3a5f;
    cursor: pointer;
    line-height: 1;
}
.vig1-masseurs .vig1-theme-toggle:hover { border-color: #93c5fd; background: #eff6ff; }
.vig1-masseurs .vig1-theme-toggle:focus-visible { outline: 2px solid #60a5fa; outline-offset: 1px; }
.vig1-masseurs .vig1-theme-toggle svg { width: 16px; height: 16px; display: block; }
.vig1-masseurs .vig1-theme-toggle .vig1-theme-icon-sun { display: none; }
.vig1-masseurs[data-vig1-theme="dark"] .vig1-theme-toggle .vig1-theme-icon-moon { display: none; }
.vig1-masseurs[data-vig1-theme="dark"] .vig1-theme-toggle .vig1-theme-icon-sun { display: block; }
.vig1-masseurs[data-vig1-theme="dark"] .vig1-theme-toggle { background: #1f2937; border-color: #475569; color: #e2e8f0; }
.vig1-masseurs[data-vig1-theme="dark"] .vig1-theme-toggle:hover { background: #273449; border-color: #64748b; }

/* ============================================================
   Elrendezés + téma-felülírások elleni védelem (2026-10-17, élő teszt után)
   Az #vig1-fm-app azonosítós szabályok erősebbek a téma (pl. Customify)
   `table td`, `ul li`, `select` stílusainál.
   ============================================================ */

/* Kártya nézet: 3 oszlop (oldalanként 3×3), mobilon 1 oszlop (1×9). */
#vig1-fm-app.vig1-masseurs .vig1-md-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 639px) {
    #vig1-fm-app.vig1-masseurs .vig1-md-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Nyelvválasztó: ne nyúljon teljes szélességre. */
#vig1-fm-app.vig1-masseurs select.vig1-md-lang {
    display: inline-block; width: auto; min-width: 0; max-width: none; height: auto;
    margin: 0; padding: 4px 8px; font-size: 14px; line-height: 1.4;
    border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #111827;
}

/* Listák: a téma margói / felsorolásjelei nélkül. */
#vig1-fm-app.vig1-masseurs ul.vig1-md-grid,
#vig1-fm-app.vig1-masseurs ul.vig1-md-types,
#vig1-fm-app.vig1-masseurs ul.vig1-md-type-list { margin: 0; padding: 0; list-style: none; }
#vig1-fm-app.vig1-masseurs ul.vig1-md-grid > li,
#vig1-fm-app.vig1-masseurs ul.vig1-md-types > li,
#vig1-fm-app.vig1-masseurs ul.vig1-md-type-list > li { margin: 0; }
#vig1-fm-app.vig1-masseurs ul.vig1-md-types > li::before { content: none; }

/* Táblázat: a cellák hátterét és színét mi adjuk (a téma fehér cellái helyett). */
#vig1-fm-app.vig1-masseurs .vig1-md-table th,
#vig1-fm-app.vig1-masseurs .vig1-md-table td { background: transparent; color: inherit; border-color: #e5e7eb; }
#vig1-fm-app.vig1-masseurs .vig1-md-table th { background: #f3f4f6; color: #374151; }
#vig1-fm-app.vig1-masseurs .vig1-md-table tbody tr { background: #fff; }

/* Táblázat sötét módban. */
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-table,
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-table tbody tr {
    background: var(--vig1-d-surface, #111827); border-color: var(--vig1-d-border, #334155);
}
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-table th {
    background: var(--vig1-d-surface-2, #1f2937); color: var(--vig1-d-text-muted, #cbd5e1); border-color: var(--vig1-d-border, #334155);
}
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-table td {
    background: transparent; color: var(--vig1-d-text, #e2e8f0); border-color: var(--vig1-d-border, #334155);
}
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-table td::before { color: var(--vig1-d-text-soft, #94a3b8); }
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-table .vig1-md-info { color: var(--vig1-d-text-muted, #cbd5e1); }
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-types li {
    background: var(--vig1-d-soft-bg, rgba(99, 102, 241, .16)); color: var(--vig1-d-soft-text, #c7d2fe);
}
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs select.vig1-md-lang {
    background: var(--vig1-d-surface-2, #1f2937); border-color: var(--vig1-d-border, #334155); color: var(--vig1-d-text, #e2e8f0);
}
@media (max-width: 639px) {
    #vig1-fm-app.vig1-masseurs .vig1-md-table tbody tr { border: 1px solid #e5e7eb; }
    html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-table tbody tr { border-color: var(--vig1-d-border, #334155); }
    html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-table td { border-bottom-color: var(--vig1-d-border, #334155); }
}

/* ============================================================
   Sötét mód javítás (2026-10-17, élő teszt után)
   - A modul sötét háttere, mint a többi felületé (vig1-dark.css:
     #vig1-fm-app[data-vig1-theme="dark"]) - enélkül a világos szövegek
     és az áttetsző aktív gomb a téma fehér hátterén eltűntek.
   - A sötét mód kapcsoló a téma button/svg stílusai ellen védve
     (mint a vig1-dark.css-ben: #vig1-fm-app + !important).
   ============================================================ */
#vig1-fm-app.vig1-masseurs[data-vig1-theme="dark"],
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs {
    color-scheme: dark;
    background: #0b1120;
    color: #e2e8f0;
    border-radius: 14px;
    padding: 12px;
}
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-count { color: #cbd5e1; }
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-views { border-color: #475569; }
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-view { background: #1f2937; color: #e2e8f0; border-color: #475569; }
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-view.is-active { background: #4f46e5; color: #fff; }

#vig1-fm-app.vig1-masseurs .vig1-theme-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #1e3a5f !important;
    box-shadow: none !important;
    line-height: 1 !important;
}
#vig1-fm-app.vig1-masseurs .vig1-theme-toggle svg {
    display: block;
    width: 16px !important;
    height: 16px !important;
    fill: none !important;
    stroke: currentColor !important;
}
#vig1-fm-app.vig1-masseurs .vig1-theme-toggle svg * { fill: none !important; stroke: currentColor !important; }
#vig1-fm-app.vig1-masseurs .vig1-theme-toggle .vig1-theme-icon-sun { display: none !important; }
#vig1-fm-app.vig1-masseurs .vig1-theme-toggle .vig1-theme-icon-moon { display: block !important; }
#vig1-fm-app.vig1-masseurs[data-vig1-theme="dark"] .vig1-theme-toggle .vig1-theme-icon-moon { display: none !important; }
#vig1-fm-app.vig1-masseurs[data-vig1-theme="dark"] .vig1-theme-toggle .vig1-theme-icon-sun { display: block !important; }
#vig1-fm-app.vig1-masseurs[data-vig1-theme="dark"] .vig1-theme-toggle {
    background: #1f2937 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}
#vig1-fm-app.vig1-masseurs[data-vig1-theme="dark"] .vig1-theme-toggle:hover { background: #273449 !important; border-color: #64748b !important; }

/* ── Profil: típusonkénti ár / információ (2026-10-18) ── */
#vig1-fm-app.vig1-masseurs .vig1-md-type-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
#vig1-fm-app.vig1-masseurs .vig1-md-type-list .vig1-md-type-desc { flex-basis: 100%; }
#vig1-fm-app.vig1-masseurs .vig1-md-price {
    margin-left: auto; padding: 2px 10px; border-radius: 999px;
    background: #ecfdf5; color: #065f46; font-size: 13px; font-weight: 600; white-space: normal;
}
html[data-vig1-theme="dark"] #vig1-fm-app.vig1-masseurs .vig1-md-price { background: rgba(34, 197, 94, .14); color: #bbf7d0; }
