/* Legnotre GDPR & Accessibility - Scoped CSS */
.lgn-gdpr-wrapper,
.lgn-a11y-wrapper {
    --lgn-yellow: #ffbd00;
    --lgn-red: #ed1d23;
    --lgn-red-dark: #c0392b;
    --lgn-dark: #2c3e50;
    --lgn-white: #ffffff;
    --lgn-grey: #f5f5f5;
    --lgn-grey-dark: #e0e0e0;
    --lgn-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.lgn-gdpr-wrapper *, .lgn-a11y-wrapper * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--lgn-font);
}

/* GDPR Banner */
.lgn-gdpr-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    pointer-events: none;
}

.lgn-gdpr-wrapper > * {
    pointer-events: auto;
}

.lgn-gdpr-banner {
    background: var(--lgn-white);
    box-shadow: 0 -4px 25px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.lgn-gdpr-banner.lgn-gdpr-visible { transform: translateY(0); }
.lgn-gdpr-banner.lgn-gdpr-hidden { transform: translateY(100%); }

.lgn-gdpr-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.lgn-gdpr-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.lgn-gdpr-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--lgn-yellow), #ffd54f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lgn-gdpr-icon svg { width: 30px; height: 30px; fill: var(--lgn-dark); }

.lgn-gdpr-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--lgn-dark);
    margin-bottom: 8px;
}

.lgn-gdpr-text p {
    font-size: 0.95rem;
    color: var(--lgn-dark);
    opacity: 0.75;
    line-height: 1.6;
}

.lgn-gdpr-text a {
    color: var(--lgn-red);
    text-decoration: underline;
}

.lgn-gdpr-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.lgn-gdpr-btn {
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.lgn-gdpr-btn:focus { outline: 3px solid var(--lgn-yellow); outline-offset: 2px; }

.lgn-gdpr-btn-accept {
    background: var(--lgn-red);
    color: var(--lgn-white);
    border-color: var(--lgn-red);
}

.lgn-gdpr-btn-accept:hover {
    background: var(--lgn-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237,29,35,0.35);
}

.lgn-gdpr-btn-decline {
    background: transparent;
    color: var(--lgn-dark);
    border-color: var(--lgn-dark);
}

.lgn-gdpr-btn-decline:hover {
    background: var(--lgn-dark);
    color: var(--lgn-white);
}

.lgn-gdpr-btn-settings {
    background: transparent;
    color: var(--lgn-dark);
    border: none;
    text-decoration: underline;
    padding: 14px 16px;
}

.lgn-gdpr-btn-settings:hover { color: var(--lgn-red); }

/* Modal */
.lgn-gdpr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lgn-gdpr-modal-overlay.lgn-gdpr-modal-active {
    opacity: 1;
    visibility: visible;
}

.lgn-gdpr-modal {
    background: var(--lgn-white);
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lgn-gdpr-modal-overlay.lgn-gdpr-modal-active .lgn-gdpr-modal {
    transform: scale(1);
}

.lgn-gdpr-modal-header {
    padding: 24px 28px;
    background: var(--lgn-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lgn-gdpr-modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--lgn-dark);
}

.lgn-gdpr-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--lgn-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lgn-gdpr-modal-close:hover { background: var(--lgn-red); }
.lgn-gdpr-modal-close:hover svg { fill: var(--lgn-white); }
.lgn-gdpr-modal-close svg { width: 18px; height: 18px; fill: var(--lgn-dark); }

.lgn-gdpr-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.lgn-gdpr-cookie-category {
    margin-bottom: 24px;
    padding: 20px;
    background: var(--lgn-grey);
    border-radius: 10px;
    border-left: 4px solid var(--lgn-yellow);
}

.lgn-gdpr-cookie-category:last-child { margin-bottom: 0; }

.lgn-gdpr-cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.lgn-gdpr-cookie-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lgn-dark);
}

.lgn-gdpr-cookie-category p {
    font-size: 0.9rem;
    color: var(--lgn-dark);
    opacity: 0.7;
    line-height: 1.6;
}

/* Toggle Switch */
.lgn-gdpr-toggle, .lgn-a11y-toggle {
    position: relative;
    width: 54px;
    height: 30px;
    flex-shrink: 0;
}

.lgn-gdpr-toggle input, .lgn-a11y-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.lgn-gdpr-toggle-track, .lgn-a11y-toggle-track {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #ccc;
    transition: 0.3s;
    border-radius: 30px;
}

.lgn-gdpr-toggle-track:before, .lgn-a11y-toggle-track:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: var(--lgn-white);
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.lgn-gdpr-toggle input:checked + .lgn-gdpr-toggle-track,
.lgn-a11y-toggle input:checked + .lgn-a11y-toggle-track {
    background: var(--lgn-red);
}

.lgn-gdpr-toggle input:checked + .lgn-gdpr-toggle-track:before,
.lgn-a11y-toggle input:checked + .lgn-a11y-toggle-track:before {
    transform: translateX(24px);
}

.lgn-gdpr-toggle input:disabled + .lgn-gdpr-toggle-track {
    background: var(--lgn-yellow);
    cursor: not-allowed;
}

.lgn-gdpr-modal-footer {
    padding: 20px 28px;
    background: var(--lgn-grey);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Accessibility Widget */
.lgn-a11y-wrapper {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999998;
}

.lgn-a11y-trigger {
    width: 52px;
    height: 52px;
    border-radius: 26px 0 0 26px;
    background: linear-gradient(135deg, var(--lgn-dark), #1a252f);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -3px 0 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.lgn-a11y-trigger:hover {
    background: linear-gradient(135deg, var(--lgn-red), var(--lgn-red-dark));
    width: 60px;
    box-shadow: -5px 0 20px rgba(237,29,35,0.3);
}

.lgn-a11y-trigger:focus {
    outline: 3px solid var(--lgn-yellow);
    outline-offset: 3px;
}

.lgn-a11y-trigger svg { width: 32px; height: 32px; fill: var(--lgn-white); }

.lgn-a11y-trigger-label {
    position: absolute;
    right: 60px;
    background: var(--lgn-dark);
    color: var(--lgn-white);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lgn-a11y-trigger:hover .lgn-a11y-trigger-label {
    opacity: 1;
    visibility: visible;
}

.lgn-a11y-panel {
    position: absolute;
    top: 50%;
    right: 60px;
    transform: translateY(-50%);
    width: 340px;
    background: var(--lgn-white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1000001;
}

.lgn-a11y-panel.lgn-a11y-panel-active {
    opacity: 1;
    visibility: visible;
    right: 65px;
}

/* Mobile overlay for a11y panel */
.lgn-a11y-overlay {
    display: none;
}

.lgn-a11y-panel-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--lgn-dark), #1a252f);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lgn-a11y-panel-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lgn-white);
}

.lgn-a11y-panel-close {
    width: 34px;
    height: 34px;
    border: none;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lgn-a11y-panel-close:hover { background: var(--lgn-red); }
.lgn-a11y-panel-close svg { width: 16px; height: 16px; fill: var(--lgn-white); }

.lgn-a11y-panel-body {
    padding: 20px;
    max-height: 420px;
    overflow-y: auto;
}

.lgn-a11y-section { margin-bottom: 20px; }
.lgn-a11y-section:last-child { margin-bottom: 0; }

.lgn-a11y-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--lgn-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.lgn-a11y-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: var(--lgn-grey);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lgn-a11y-option:last-child { margin-bottom: 0; }
.lgn-a11y-option:hover { background: var(--lgn-grey-dark); }

.lgn-a11y-option-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
}

.lgn-a11y-option-icon {
    width: 42px;
    height: 42px;
    background: var(--lgn-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lgn-a11y-option-icon svg { width: 22px; height: 22px; fill: var(--lgn-dark); }

.lgn-a11y-option-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--lgn-dark);
    margin-bottom: 2px;
}

.lgn-a11y-option-text span {
    font-size: 0.8rem;
    color: var(--lgn-dark);
    opacity: 0.6;
}

.lgn-a11y-font-controls { display: flex; gap: 8px; }

.lgn-a11y-font-btn {
    width: 38px;
    height: 38px;
    border: 2px solid var(--lgn-dark);
    background: var(--lgn-white);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--lgn-dark);
    transition: all 0.3s ease;
}

.lgn-a11y-font-btn:hover {
    background: var(--lgn-yellow);
    border-color: var(--lgn-yellow);
}

.lgn-a11y-reset {
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: transparent;
    border: 2px solid var(--lgn-dark);
    border-radius: 8px;
    color: var(--lgn-dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lgn-a11y-reset:hover {
    background: var(--lgn-dark);
    color: var(--lgn-white);
}

/* Global A11y Effects */
html.lgn-a11y-high-contrast { filter: contrast(1.4); }
html.lgn-a11y-high-contrast img { filter: contrast(0.8); }
html.lgn-a11y-grayscale { filter: grayscale(1); }
html.lgn-a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.lgn-a11y-invert img, html.lgn-a11y-invert video { filter: invert(1) hue-rotate(180deg); }

html.lgn-a11y-big-cursor, html.lgn-a11y-big-cursor * {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24"><path fill="%23000" d="M7 2l12 11.5-5.5 1 3.5 7-2.5 1-3.5-7L7 18z"/></svg>') 0 0, auto !important;
}

html.lgn-a11y-highlight-links a {
    background: var(--lgn-yellow) !important;
    color: var(--lgn-dark) !important;
    padding: 2px 4px !important;
    outline: 2px solid var(--lgn-red) !important;
}

.lgn-a11y-reading-line {
    position: fixed;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(255,189,0,0.25);
    border-top: 2px solid var(--lgn-yellow);
    border-bottom: 2px solid var(--lgn-yellow);
    pointer-events: none;
    z-index: 999997;
    display: none;
}

html.lgn-a11y-reading-guide .lgn-a11y-reading-line { display: block; }
html.lgn-a11y-letter-spacing, html.lgn-a11y-letter-spacing * { letter-spacing: 0.12em !important; }
html.lgn-a11y-line-height, html.lgn-a11y-line-height * { line-height: 2 !important; }

/* === MOBILE RESPONSIVE === */
@media screen and (max-width: 900px) {
    .lgn-gdpr-container {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        text-align: center;
    }
    .lgn-gdpr-content { flex-direction: column; }
    .lgn-gdpr-actions { flex-wrap: wrap; justify-content: center; width: 100%; }
    .lgn-gdpr-btn { flex: 1; min-width: 140px; }
    .lgn-gdpr-btn-settings { flex-basis: 100%; }
}

@media screen and (max-width: 600px) {
    .lgn-gdpr-container { padding: 20px 16px; gap: 16px; }
    .lgn-gdpr-icon { width: 48px; height: 48px; }
    .lgn-gdpr-icon svg { width: 26px; height: 26px; }
    .lgn-gdpr-text h4 { font-size: 1.05rem; }
    .lgn-gdpr-text p { font-size: 0.88rem; }
    .lgn-gdpr-actions { flex-direction: column; width: 100%; }
    .lgn-gdpr-btn { width: 100%; padding: 14px 20px; }
    
    .lgn-gdpr-modal-overlay { padding: 12px; align-items: flex-end; }
    .lgn-gdpr-modal { max-height: 90vh; border-radius: 16px 16px 0 0; }
    .lgn-gdpr-modal-header { padding: 20px; }
    .lgn-gdpr-modal-body { padding: 20px; }
    .lgn-gdpr-cookie-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .lgn-gdpr-modal-footer { flex-direction: column; padding: 16px 20px; }
    .lgn-gdpr-modal-footer .lgn-gdpr-btn { width: 100%; }
    
    /* A11y widget mobilra */
    .lgn-a11y-wrapper { right: 0; top: 50%; transform: translateY(-50%); }
    .lgn-a11y-trigger { width: 46px; height: 46px; border-radius: 23px 0 0 23px; }
    .lgn-a11y-trigger svg { width: 24px; height: 24px; }
    .lgn-a11y-trigger-label { display: none; }
    
    /* Overlay mobilon */
    .lgn-a11y-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    .lgn-a11y-overlay.lgn-a11y-overlay-active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Panel mobilon - középen, teljes szélességben */
    .lgn-a11y-panel { 
        position: fixed !important; 
        left: 16px !important; 
        right: 16px !important; 
        top: 50% !important; 
        bottom: auto !important;
        transform: translateY(-50%) !important; 
        width: auto !important; 
        max-height: 80vh;
        opacity: 0;
        visibility: hidden;
        z-index: 1000000 !important;
    }
    .lgn-a11y-panel.lgn-a11y-panel-active { 
        opacity: 1 !important; 
        visibility: visible !important; 
    }
    .lgn-a11y-panel-body { max-height: 60vh; padding: 16px; overflow-y: auto; }
    .lgn-a11y-option { padding: 12px 14px; }
    .lgn-a11y-option-icon { width: 38px; height: 38px; }
    .lgn-a11y-font-btn { width: 34px; height: 34px; }
}

@media screen and (max-width: 380px) {
    .lgn-gdpr-container { padding: 16px 12px; }
    .lgn-gdpr-icon { width: 42px; height: 42px; }
    .lgn-gdpr-text h4 { font-size: 1rem; }
    .lgn-gdpr-btn { padding: 12px 16px; font-size: 0.9rem; }
    .lgn-a11y-wrapper { right: 0; }
    .lgn-a11y-trigger { width: 42px; height: 42px; border-radius: 21px 0 0 21px; }
    .lgn-a11y-panel { left: 8px !important; right: 8px !important; }
}

@media print {
    .lgn-gdpr-wrapper, .lgn-a11y-wrapper, .lgn-a11y-reading-line { display: none !important; }
}

/* Google Maps - sütielfogadás utáni betöltés */
.lgn-map{position:relative;width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#eef1f4 url(/pics/utalap-logo.png) no-repeat center 18%/120px auto;border-radius:8px;padding:18px;text-align:center;color:#2c3e50;font-family:'Inter',sans-serif}
.lgn-map-load{background:#ed1d23;color:#fff;border:0;border-radius:6px;padding:10px 18px;font-weight:600;font-size:.95rem;cursor:pointer}
.lgn-map-load:hover{background:#c0392b}
.lgn-map-note{font-size:.8rem;color:#555;max-width:360px;margin:0}
.lgn-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:8px}
