
:root {
    --navy: #1b3462;
    --gold: #c9a227;
    --crimson: #9c2b3a;
    --wine: #2f6fd6;
    --cream: #efe8d4;
    --paper: rgba(255, 253, 248, 0.94);
    --ink: #211f1b;
    --muted: #6b6355;
    --line: #ded4b3;
    --shadow: 0 8px 24px -10px rgba(27, 52, 98, 0.28);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(1300px 650px at 8% -10%, rgba(27,52,98,0.10), transparent 55%),
        radial-gradient(1100px 650px at 100% 15%, rgba(201,162,39,0.08), transparent 55%),
        linear-gradient(180deg, #eeffff 0%, #d5f0f0 100%);
    background-attachment: fixed;
    position: relative;
}


body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.09;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Ctext x='10' y='40' font-size='34' fill='%231b3462' font-family='Georgia,serif'%3E%E2%82%AC%3C/text%3E%3Ctext x='90' y='90' font-size='30' fill='%231b3462' font-family='Georgia,serif'%3E%24%3C/text%3E%3Ctext x='30' y='130' font-size='28' fill='%231b3462' font-family='Georgia,serif'%3E%C2%A5%3C/text%3E%3C/svg%3E");
    background-size: 160px 160px;
}

.page-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 20px 60px;
}


.lang-switch-bar {
    display: flex; justify-content: center; gap: 10px; margin-bottom: 18px;
}
.lang-switch-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--paper); border: 1px solid var(--line);
    color: var(--muted); text-decoration: none;
    font-size: 15px; font-weight: 600; padding: 10px 22px; border-radius: 999px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.lang-flag-icon {
    width: 20px !important;
    height: 15px !important;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
    flex-shrink: 0;
}
.lang-flag-text {
    font-size: 11px; font-weight: 800; letter-spacing: 0.5px;
    background: rgba(0,0,0,0.08); padding: 3px 6px; border-radius: 5px;
}
.lang-switch-btn.active .lang-flag-text { background: rgba(255,255,255,0.22); }
.lang-switch-btn:hover { transform: translateY(-2px); color: var(--navy); }
.lang-switch-btn.active {
    background: var(--navy);
    color: #fff; border-color: transparent;
    box-shadow: 0 10px 24px -10px rgba(27,52,98,0.5);
}
@media (max-width: 480px) {
    .lang-switch-btn { padding: 9px 16px; font-size: 14px; }
}



.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 26px 22px;
    background: rgba(255, 253, 248, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.site-logo {
    width: 118px;
    height: 118px;
    flex-shrink: 0;
    animation: slow-spin 60s linear infinite;
    filter: drop-shadow(0 2px 6px rgba(27,52,98,0.25));
}

@keyframes slow-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.site-title-wrap {
    width: 100%;
}

.brand-title {
    font-family: 'Sora', Arial, sans-serif;
    color: var(--navy);
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.25;
    white-space: nowrap;
    font-size: clamp(18px, 4.6vw, var(--title-size, 40px));
}
.brand-title .title-mobile { display: none; }

.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.15s; }
.delay-3 { transition-delay: 0.25s; }
.delay-4 { transition-delay: 0.35s; }

.updated-row {
    text-align: center;
    margin: 14px 0 26px;
    display: flex;
    justify-content: center;
}

.updated-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--navy);
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #3c9a5c;
    box-shadow: 0 0 0 0 rgba(60,154,92,0.55);
    animation: pulse 2.4s ease-out infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(60,154,92,0.5); }
    70%  { box-shadow: 0 0 0 7px rgba(60,154,92,0); }
    100% { box-shadow: 0 0 0 0 rgba(60,154,92,0); }
}



.main-grid {
    display: grid;
    grid-template-columns: 265px 1fr 265px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 880px) {
    .main-grid { grid-template-columns: 1fr; }
}

.box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
}
.box.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.box:hover { box-shadow: 0 18px 38px -14px rgba(27,52,98,0.38); transform: translateY(-4px) scale(1.005); }
.box.is-visible:hover { transform: translateY(-4px) scale(1.005); }

.box h2 {
    margin: 0 0 14px;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.box-rates h2 {
    color: var(--navy);
    font-family: 'Sora', Arial, sans-serif;
    font-size: 19px;
    text-transform: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 9px;
}
.box-rates h2 .rates-icon {
    color: var(--gold);
    flex-shrink: 0;
    animation: coin-spin-in 0.6s ease;
}
@keyframes coin-spin-in {
    from { transform: rotate(-90deg) scale(0.6); opacity: 0; }
    to   { transform: rotate(0deg) scale(1); opacity: 1; }
}



.box-office h2, .box-contact h2 {
    display: block;
    text-align: center;
}
.box-office h2::after, .box-contact h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.office-address { margin-bottom: 14px; text-align: center; }


.office-status-badge {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
    margin: 8px 0 4px;
    white-space: nowrap;
}
.office-status-badge.open { background: rgba(31,157,85,0.12); color: #1f9d55; }
.office-status-badge.closed { background: rgba(208,52,44,0.1); color: #d0342c; }
.office-status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.office-status-badge.open .office-status-dot { animation: pulse 2.2s ease-out infinite; }

.hours-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    border-top: 1px dashed var(--line);
    padding-top: 12px;
    margin-top: 2px;
    text-align: center;
}
.office-hours { margin-top: 6px; text-align: center; }
.office-hours div { margin-top: 4px; }

.map-wrap {
    position: relative;
    margin-top: 14px;
    border-radius: 8px;
    overflow: hidden;
}
.map-embed, .map-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 0;
    display: block;
}
.map-placeholder {
    background: #eee7d2;
    border: 1px dashed var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 13px; text-align: center; padding: 10px;
    border-radius: 8px;
}

.map-expand-btn {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(27,52,98,0.85); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: transform 0.2s ease, background 0.2s ease;
}
.map-expand-btn:hover { transform: scale(1.1); background: var(--crimson); }

.map-hint {
    position: absolute; left: 8px; bottom: 8px; z-index: 2;
    background: rgba(27,52,98,0.85); color: #f4f1e8;
    font-size: 10.5px; padding: 4px 9px; border-radius: 999px;
    pointer-events: none;
}

.map-modal {
    position: fixed; inset: 0;
    background: rgba(10,16,28,0.82);
    display: flex; align-items: center; justify-content: center;
    padding: 4vh 4vw; z-index: 50;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease;
}
.map-modal.is-open { opacity: 1; visibility: visible; }
.map-modal-inner {
    position: relative; width: 100%; max-width: 1100px; height: 88vh;
    background: var(--paper); border-radius: 12px; overflow: hidden;
    box-shadow: 0 30px 70px -20px rgba(0,0,0,0.6);
}
.map-modal-inner iframe { width: 100%; height: 100%; border: 0; }
.map-modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--navy); color: #fff; border: none;
    font-size: 20px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.map-modal-close:hover { background: var(--crimson); }



.rates-scroll { overflow-x: auto; border-radius: 8px; }


.rates-toolbar { margin-bottom: 12px; }
.rates-search-wrap { position: relative; }
.rates-search-wrap svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.rates-search-wrap input {
    width: 100%; padding: 9px 12px 9px 34px; border-radius: 8px; border: 1px solid var(--line);
    background: #fffdf8; color: var(--ink); font-size: 13.5px; font-family: 'Inter', sans-serif;
}

table.rates-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    font-family: 'Inter', Arial, sans-serif;
}
table.rates-table thead th {
    text-align: right;
    font-size: 11.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--navy);
    background: rgba(27,52,98,0.06);
    border-bottom: 2px solid var(--line);
    padding: 13px 16px;
}
table.rates-table thead th { vertical-align: middle; line-height: 1.25; white-space: nowrap; }
table.rates-table thead th .th-sub {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: none;
    font-weight: 600;
    color: var(--navy);
    opacity: 0.85;
}
table.rates-table thead th:first-child { text-align: left; border-top-left-radius: 8px; }
table.rates-table thead th:last-child { border-top-right-radius: 8px; }

table.rates-table td {
    padding: 19px 16px;
    text-align: right;
    border-bottom: 1px solid #eee2c9;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: var(--ink);
}
table.rates-table td:first-child {
    text-align: left;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 9px;
}
table.rates-table td:nth-child(2),
table.rates-table td:nth-child(3) {
    border-left: 1px solid #ddd0aa;
}

table.rates-table tbody tr { border-bottom: none; }
table.rates-table tbody tr:nth-child(even) { background: rgba(27,52,98,0.025); }
table.rates-table tbody tr:hover { background: #f7ecd9; }
table.rates-table tbody tr:hover td:first-child { color: var(--navy); }
table.rates-table tbody tr:hover td { border-color: #e7d9b8; }


table.rates-table tbody tr:nth-child(-n+7) td {
    font-weight: 700;
}

.rates-empty, .documents-empty { font-style: italic; color: var(--muted); font-size: 14px; }

.fi { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); flex-shrink: 0; }



.full-width-box { margin-top: 20px; }

.info-text p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.7; }
.info-text .subtitle { font-style: italic; color: var(--navy); font-weight: 600; margin-bottom: 12px; }


.info-intro-under-title {
    max-width: 620px;
    margin: 14px auto 0;
    padding-top: 12px;
    border-top: 1px solid rgba(27,52,98,0.12);
    text-align: center;
}
.info-intro-under-title p {
    margin: 0 0 5px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 11.5px;
    line-height: 1.55;
    letter-spacing: 0.1px;
    color: var(--muted);
}
.info-intro-under-title p:last-child { margin-bottom: 0; }
.info-intro-under-title .subtitle {
    font-family: 'Inter', Arial, sans-serif;
    font-style: normal;
    font-weight: 600;
    color: var(--navy);
    font-size: 11.5px;
    letter-spacing: 0.2px;
    opacity: 0.85;
    margin-bottom: 6px;
}


.right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.mobile-only-fee-text,
.mobile-only-map,
.mobile-only-fee-label { display: none; }

.documents-list { list-style: none; margin: 0; padding: 0; }
.documents-list li {
    padding: 10px 0; border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 10px;
}
.documents-list .icon { color: var(--gold); flex-shrink: 0; }
.documents-list li:last-child { border-bottom: none; }
.documents-list a { color: var(--navy); text-decoration: none; font-weight: 500; }
.documents-list a:hover { color: var(--crimson); text-decoration: underline; }



.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; align-items: center; }
.contact-list li { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; white-space: nowrap; }
.contact-list .icon { color: var(--gold); flex-shrink: 0; }
.contact-list a { color: var(--navy); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }



.site-footer {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 30px;
}


.box-heading-with-badge {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 8px;
}
.box-section-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
    letter-spacing: 0.3px;
}
.office-status-badge.info-badge { background: rgba(27,52,98,0.1); color: var(--navy); }
.office-status-badge.info-badge .office-status-dot { background: var(--navy); }


/* Fejléc: mobil középre, kisebb logó */
@media (max-width: 600px) {
    .site-header { padding: 18px 14px 14px; gap: 8px; }
    .site-logo { width: 80px; height: 80px; }
    .brand-title {
        font-size: clamp(18px, 7vw, 28px) !important;
        white-space: normal;
    }
    .brand-title .title-desktop { display: none; }
    .brand-title .title-mobile { display: inline; }
    .lang-switch-bar { gap: 6px; margin-bottom: 12px; }
    .lang-switch-btn { padding: 8px 14px; font-size: 13px; }
    .updated-row { margin: 10px 0 16px; }
    .updated-badge { font-size: 12px; padding: 5px 12px; }

    /* Iroda doboz: terkep helyett kezelesi koltseg szoveg */
    .desktop-only-map { display: none; }
    .mobile-only-fee-text { display: block; margin-top: 8px; }
    .mobile-only-fee-text p { font-size: 13px; }
    .mobile-only-fee-label {
        display: flex;
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px dashed var(--line);
    }

    /* Kezelesi koltseg doboz: szoveg helyett terkep - a felso "TAJEKOZTATO
       SZOVEG" jelvenyt itt elrejtjuk mobilon, mert az mar athelyezve fent,
       a kezelesi koltseg szoveg fole kerult az Iroda dobozban. */
    .desktop-only-fee-text { display: none; }
    .desktop-only-fee-label { display: none; }
    .mobile-only-map { display: block; }
}


@media (max-width: 880px) {
    .main-grid { grid-template-columns: 1fr; gap: 14px; }
    .box-office, .box-contact { max-width: 100%; }
    .right-col { gap: 14px; }
}


@media (max-width: 600px) {
    table.rates-table { font-size: 13px; }
    table.rates-table td, table.rates-table thead th { padding: 13px 10px; }
    table.rates-table thead th { font-size: 11px; letter-spacing: 0.8px; }
    table.rates-table thead th .th-sub { font-size: 12px; letter-spacing: 0.1px; }
    .rates-search-wrap input { font-size: 13px; }
    .fav-toggle-btn { display: none; } 
}

/* Nyitva/zárva badge mobilon */
@media (max-width: 400px) {
    .office-status-badge { font-size: 11.5px; padding: 5px 10px; }
    .brand-title { font-size: clamp(17px, 8vw, 24px) !important; }
}


@media (max-width: 600px) {
    .full-width-box { margin-top: 14px; }
    .info-text p { font-size: 13.5px; }
    .documents-list li { font-size: 13.5px; }
    .contact-list li { font-size: 13px; white-space: normal; }
}


@media (max-width: 400px) {
    .contact-list { gap: 10px; }
    .contact-list li { flex-direction: column; text-align: center; gap: 4px; }
}


@media (max-width: 500px) {
    .rates-toolbar { flex-direction: column; gap: 8px; }
    .rates-search-wrap { min-width: 0; width: 100%; }
}
