body {
    font-family: Calibri, Arial, sans-serif;
    color: #222;
    margin: 25px 5% 30px 5%;
    background: #fff;
    word-break: break-word;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #003366;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
h1{
    text-align: center;
}
.header-logo .logo { height: 100px; }
.header-contacts { text-align: right; font-size: 18pt; line-height: 1.4; }

.network-title { text-align: left; font-size: 18pt; margin-top: 10px; margin-bottom: 30px; font-weight: bold; color: #003366; }
.main-title { font-family: "Myriad Pro Cond", "Myriad Pro", sans-serif; font-size: 40pt; font-weight: bold; text-align: center; margin: 18px 0 10px 0; letter-spacing: 1px; }
.datum-felbontas { text-align: center; font-size: 16pt; margin-bottom: 15px; }
.felbontas { color:rgb(0, 0, 0); font-weight: 600; }
.main-photo {  text-align: center; margin-bottom: 14px; }
.main-photo img { width:50%; height: auto; border-radius: 10px; margin-bottom: 7px; }
.photo-caption { font-size: 12pt; color: #586e91; margin-bottom: 7px; }
.keszitette { text-align: center; font-size: 13pt; color: #666; margin-bottom: 14px; }

/* Táblázat fix class-okra */
.status-table { border-collapse: collapse; width: 100%; margin-bottom: 18px; font-size: 13pt; }
.status-table td { border: 1px solid #d1dae6; padding: 8px 11px; text-align: center; }

/* Egyedi cellák helyes formában */
tr.row1 td.cell1_1 { background: #f2f2f2; text-align: left; }
tr.row1 td.cell1_2 { background: #f2f2f2; text-align: right; }
tr.row1 td.cell1_3 { font-size: 1.15em; background: #f2f2f2; text-align: right; }

tr.row2 td.cell2_1 { text-align: left; background: #f2f2f2; }
tr.row2 td.cell2_2 { background: #f2f2f2; text-align: right; }
tr.row2 td.cell2_3 { background: #f2f2f2; text-align: right; }

tr.row3 td.cell3_1 { text-align: left; }
tr.row3 td.cell3_2 { font-weight: bold; text-align: right;}

tr.row4 td.cell4_1 { text-align: left; background: #f2f2f2; }
tr.row4 td.cell4_2 { background: #f2f2f2; text-align: right; }

tr.row5 td.cell5_1 { text-align: left; }
tr.row5 td.cell5_2 { text-align: left; }
tr.row5 td.cell5_3 { text-align: right; }

tr.row6 td.cell6_1 { text-align: left; }
tr.row6 td.cell6_2 { text-align: left; }
tr.row6 td.cell6_3 { text-align: right; }

tr.row7 td.cell7_1 { text-align: left; background: #f2f2f2; }
tr.row7 td.cell7_2 { text-align: left; background: #f2f2f2; }
tr.row7 td.cell7_3 { text-align: right; background: #f2f2f2; }

tr.row8 td.cell8_1 { text-align: left;  background: #f2f2f2; }
tr.row8 td.cell8_2 { text-align: left; font-weight: bold; background: #f2f2f2; }
tr.row8 td.cell8_3 { font-weight: bold; background: #f2f2f2; text-align: right; }

tr.row9 td.cell9_1 { text-align: left;}
tr.row9 td.cell9_2 { font-weight: bold; text-align: center; }

tr.row10 td.cell10_1 { text-align: left; font-weight: }
tr.row10 td.cell10_2 { font-weight: bold; text-align: right; }

tr.row11 td.cell11_1 { text-align: left; background: #f2f2f2; }
tr.row11 td.cell11_2 { font-weight: bold; text-align: right; background: #f2f2f2; }


.file-info { font-size: 12.5pt; color:rgb(0, 0, 0); margin: 10px 0 14px 0; }
.note { font-size: 13pt; color:rgb(0, 0, 0); text-align: left; margin: 12px auto 14px auto; }
.note_cell12_2 {
    text-align: center;
    word-break: break-word;
    white-space: pre-line; /* FONTOS: sortörések megtartása! */
    font-size: 13pt;
    margin: 12px auto 14px auto;
    color:rgb(0, 0, 0);
    padding: 8px 10px;
}
.license { font-size: 13pt; margin: 12px auto 14px auto; text-align: center; color:rgb(0, 0, 0); }
.egyeb-kepek { margin-top: 20px; margin-bottom: 20px; }
.egyeb-kep-blokk { margin-bottom: 22px; text-align: center; }
.egyeb-kep-blokk img { max-width: 60%; border-radius: 10px; }
.pdf-download { text-align: center; margin: 18px 0 18px 0; }
.pdf-download a { color: #fff; background: #003366; padding: 10px 28px; border-radius: 12px; font-size: 16pt; text-decoration: none; font-weight: bold; transition: background 0.2s; }
.pdf-download a:hover { background: #1e5fa8; }
.footer-note { font-size: 12pt; color:rgb(0, 0, 0); margin: 22px auto 8px auto; line-height: 1.25; margin-top: 30px; text-align: justify; font-weight: bold; }
hr { margin: 22px 0 22px 0; border: none; border-top: 2px solid #d1dae6; }
.header-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* ---- RESZPONZÍV, MOBILBARÁT MÓD ---- */
@media (max-width: 900px) {
    body {
        margin: 8px 3vw 16px 3vw;
        font-size: 16px;
    }
    .header {
        align-items: flex-start;
        padding-bottom: 6px;
    }
    .header-logo {
        align-items: flex-start;
    }
    .header-logo .logo {
        height: 60px;
        max-width: 65vw;
    }
    .header-info {
        font-size: 13px;
        text-align: center;
        margin-top: 6px;
    }
    .header-contacts {
        font-size: 15px;
        text-align: left;
        margin: 8px 0 0 0;
        line-height: 1.3;
    }
    .network-title,
    .main-title {
        font-size: 30pt;
        margin-bottom: 12px;
        margin-top: 8px;
    }
    .datum-felbontas {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .main-photo img, .egyeb-kep-blokk img {
        height: auto;
    }
    .photo-caption {
        font-size: 11px;
    }
    .keszitette {
        font-size: 12px;
        margin-bottom: 10px;
    }
    .status-table {
        font-size: 11.5px;
    }
    .status-table td {
        padding: 5px 5px;
        font-size: 11.5px;
    }
    .file-info, .note, .license {
        font-size: 11.5px;
        margin: 6px 0 9px 0;
    }
    .note_cell12_2 {
        font-size: 11.5px;
        padding: 4px 4vw;
    }
    .pdf-download {
        margin: 13px 0 13px 0;
    }
    .pdf-download a {
        font-size: 14px;
        padding: 6px 14px;
    }
    .footer-note {
        font-size: 10.5px;
        margin-top: 14px;
        margin-bottom: 8px;
    }
    .main-photo .header-info {
        font-size: 12px;
        padding: 2px 0 2px 0;
    }
    .egyeb-kepek {
        margin: 8px 0 10px 0;
    }
}

@media (max-width: 550px) {
    .header-logo .logo {
        height: 38px;
        max-width: 95vw;
    }
    .header-info {
        font-size: 11px;
    }
    .header-contacts {
        font-size: 12px;
    }
    .network-title, .main-title {
        font-size: 30px;
    }
    .status-table {
        font-size: 10px;
    }
    .file-info, .note, .license, .footer-note, .note_cell12_2 {
        font-size: 9.8px;
    }
    .pdf-download a {
        font-size: 11px;
        padding: 4px 8px;
    }
    .main-photo img, .egyeb-kep-blokk img {
        max-width: 99vw;
        border-radius: 4px;
    }
    .main-photo .header-info {
        font-size: 10px;
    }
    .note_cell12_2 {
        padding: 2px 1vw;
    }
}

/* Ne legyen vízszintes görgetés semmilyen mobilon! */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}
.ceges-logo {
    max-width: 250px;
    height: auto;
    margin: 0 auto 8px auto;
    display: block;
}
.hramn-logo {
    max-height: 80px;
    max-width: 210px;
    height: auto;
    width: auto;
    display: block;
}
.main-photo2 img {
    max-width: 50%;
    height: auto;
    
    margin-bottom: 7px;
    
}
.main-photo2 {
    text-align: center;
    margin-bottom: 12px;
}
.main-photo2 .photo-caption {
    font-size: 12pt;
    color: #586e91;
    margin-bottom: 7px;
}
@media (max-width: 700px) {
    .header-info {
        font-size: 13px;
        padding: 4px 4vw 4px 4vw;
        max-width: 98vw;
        margin-top: 8px;
        line-height: 1.5;
    }
}
@media (max-width: 480px) {
    .header-info {
        font-size: 12px;
        margin-bottom: 8px;
        margin-top: 6px;
        line-height: 1.34;
    }
}

.header-info {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.3em;
    word-break: break-word;
}
.keszitette-label {
    color: #999;
}
.keszitette-ceg {
    color: #222;
    font-weight: bold;
}
.info-label {
    color: #999;
    margin-left: 18px;
}
.info-value {
    color: #222;
    margin-left: 4px;
}

@media (max-width: 900px) {
    .header-info { font-size: 13px; }
    .info-label { margin-left: 9px; }
    .info-value { margin-left: 2px; }
}
@media (max-width: 550px) {
    .header-info { font-size: 12px; }
    /* Minden elem soronként külön blokk lesz mobilon */
    .header-info span {
        display: block;
        margin-left: 0;
        margin-bottom: 3px;
    }
}
.license-group {
    margin: 30px 0 15px 0;
    font-size: 1.35em;
    line-height: 1.5;
    color: #222;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.license-group span {
    font-size: 1em;
    color: #1c1c1c;
    font-weight: normal;
}
.license-main, .license-secondary {
    margin-bottom: 24px;
}
@media (max-width: 700px) {
    .license-group {
        font-size: 1em;
    }
}
@media (max-width: 480px) {
    .license-group {
        font-size: 0.95em;
        padding: 0 3vw;
    }
}


.license-label {
    color: #222;
    font-size: 1em;
    font-weight: normal;
    display: block;
    margin-bottom: 2px;
}
.license-bold {
    font-weight: bold;
    color: #222;
    font-size: 1em;
}
.license-main,
.license-secondary {
    margin-bottom: 20px;
    text-align: left;
}

@media (max-width: 900px) {
    .license-group {
        font-size: 11px;
    }
    .license-main, .license-secondary {
        margin-bottom: 16px;
    }
}
@media (max-width: 550px) {
    .license-group {
        font-size: 9.8px;
        padding: 0 3vw;
    }
    .license-main, .license-secondary {
        font-size: 1em;
    }
}
.export-footer {
    margin-top: 2em;
}

.footer-line-full {
    border: none;
    border-top: 1px solid #000;
    width: 100%;
    margin: 0 0 0.3em 0;
}

.footer-left {
    font-family: 'Arial', sans-serif;
    font-size: 10.5pt;
    text-align: left;
}
/* Lábéc optimalizálás mobilra */
@media (max-width: 900px) {
    .export-footer .footer-left {
        font-size: 10px;
        padding-left: 2vw;
        padding-right: 2vw;
    }
}

@media (max-width: 550px) {
    .export-footer .footer-left {
        font-size: 9px;
        padding-left: 3vw;
        padding-right: 3vw;
    }
    .export-footer .footer-line-full {
        margin: 0 0 0.3em 0;
    }
}
@page {
    size: A4;
    margin: 30mm 30mm 30mm 30mm;
    @bottom-right {
        content: counter(page) " / " counter(pages);
        font-family: Calibri, Arial, sans-serif;
        font-size: 11pt;
        color: #003366;
    }
}

.no-print {
    display: block;
}
@media print {
    .no-print {
        display: none !important;
    }
}
.page-break {
    display: block;
    page-break-before: always;
    break-before: page;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    clear: both;
}
.page-break + * {
    margin-top: 80px !important; /* VAGY amennyi kell: 20px, 50px stb. */
}
.spacer-after-pagebreak { height: 80px; }



.hramn-header2 {
    margin: 18px 0 14px 0;
    padding: 0 18px 0 0;
    font-family: Calibri, Arial, sans-serif;
    /* background: none;  <-- háttér törölve */
}
.hramn-header2-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
}
.hramn-logo-block {
    min-width: 210px; /* vagy ahogy pontosan illeszkedik! */
    margin-right: 0;
    position: relative;
}
.hramn-logo-img {
    height: 72px;
    width: auto;
    display: block;
    margin-bottom: 0;
}
body.dark-mode .hramn-logo-img {
    filter: brightness(1.22) saturate(1.18) contrast(1.04);
}
.hramn-header2-contact {
    text-align: right;
    color: #1b3930;
    font-size: 15px;
    margin-top: -10px;
    min-width: 270px;
}
.hramn-header2-contact div {
    margin-bottom: 3px;
    font-weight: normal;
    font-size: 16px;
}
.hramn-header2-contact span {
    color: #222;
    font-family: Calibri, Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
    margin-left: 8px;
}
.hramn-header2-line-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    margin-top: -9px; /* finomhangolás hogy rámenjen a logóra */
    margin-bottom: 0;
}
.hramn-header2-szlogen {
    font-size: 17px;
    color: #195848;
    font-weight: bold;
    margin-left: 85px;    /* logó szélessége + kb. 5px */
    margin-right: 0;
    z-index: 3;
    padding-bottom: 0px;
    min-width: 340px;
    position: relative;
    top: 5px;
    left: 0;
}

.hramn-header2-web {
    margin-left: auto;
    color: #195848;
    font-size: 15px;
    font-weight: normal;
    margin-bottom: -2px;
    /* background: none;  <-- háttér törölve */
    z-index: 3;
    position: relative;
    top: 5px;
}
.hramn-header2-web a {
    color: #195848;
    text-decoration: none;
}
.hramn-header2-web a:hover {
    text-decoration: underline;
}
.hramn-header2-line {
    width: 100%;
    border-bottom: 2px solid #195848;
    margin-top: -18px;
    margin-bottom: 3px;
    z-index: 1;
    position: relative;
    margin-left: 85px;
}
@media (max-width: 900px) {
    .hramn-header2 {
        margin: 10px 0 8px 0;
        padding: 0 4vw 0 0;
    }
    .hramn-logo-block {
        min-width: 110px;
    }
    .hramn-logo-img {
        height: 40px;
    }
    .hramn-header2-contact {
        font-size: 12px;
        min-width: 110px;
    }
    .hramn-header2-contact div,
    .hramn-header2-contact span {
        font-size: 9px;
    }
    .hramn-header2-szlogen {
        font-size: 12px;
        min-width: 120px;
        margin-left: 44px;
        top: 9;
    }
    .hramn-header2-web {
        font-size: 11px;
        margin-bottom: -1px;
        top: 10;
    }
    .hramn-header2-line {
        margin-left: 44px;
        margin-top: -10px;
        margin-bottom: 2px;
    }
}

@media (max-width: 550px) {
    .hramn-header2 {
        margin: 5px 0 3px 0;
        padding: 20px 2vw 0 0;
    }
    .hramn-logo-block {
        min-width: 54px;
    }
    .hramn-logo-img {
        height: 22px;
    }
    .hramn-header2-contact {
        font-size: 7.9px;
        min-width: 48px;
    }
    .hramn-header2-contact div,
    .hramn-header2-contact span {
        font-size: 4.9px;
    }
    .hramn-header2-szlogen {
        font-size: 6.9px;
        min-width: 50px;
        margin-left: 26px;
        top: 4px;
    }
    .hramn-header2-web {
        font-size: 6.5px;
        margin-bottom: -1px;
        top: 4px;
    }
    .hramn-header2-line {
        margin-left: 27px;
        margin-top: -6px;
        margin-bottom: 14px;
    }
}
#map {
    height: 400px;
    width: 100%;
}

.ol-popup {
    position: absolute;
    min-width: 245px;
    max-width: min(360px, calc(100vw - 32px));
    box-sizing: border-box;
    padding: 14px 36px 14px 16px;
    border: 1px solid #bdcac7;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.24);
    color: #222;
    font: 14px/1.45 Calibri, Arial, sans-serif;
}

.ol-popup[hidden] {
    display: none;
}

.ol-popup::after,
.ol-popup::before {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    border: solid transparent;
    content: "";
    pointer-events: none;
}

.ol-popup::after {
    margin-left: -10px;
    border-width: 10px;
    border-top-color: #fff;
}

.ol-popup::before {
    margin-left: -11px;
    border-width: 11px;
    border-top-color: #bdcac7;
}

.ol-popup a {
    color: #00796b;
    font-weight: 600;
}

.ol-popup-closer {
    position: absolute;
    top: 3px;
    right: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4b5552;
    cursor: pointer;
    font: 24px/1 Arial, sans-serif;
}

.ol-popup-closer:hover,
.ol-popup-closer:focus-visible {
    color: #00796b;
}

body.dark-mode .ol-popup {
    border-color: #52635f;
    background: #1d2725;
    color: #e8f0ee;
}

body.dark-mode .ol-popup::after {
    border-top-color: #1d2725;
}

body.dark-mode .ol-popup::before {
    border-top-color: #52635f;
}

body.dark-mode .ol-popup a,
body.dark-mode .ol-popup-closer:hover,
body.dark-mode .ol-popup-closer:focus-visible {
    color: #69d1c1;
}

body.dark-mode .ol-popup-closer {
    color: #c8d4d1;
}

.survey-map-location {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.survey-map-location .survey-map-popup {
    margin-bottom: 13px;
}

.survey-map-location-marker {
    display: block;
    width: 25px;
    height: 41px;
    object-fit: contain;
    filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.34));
}

.survey-map-popup {
    position: relative;
    padding: 11px 15px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
    color: #333;
    font: 12px/1.4 Arial, sans-serif;
    white-space: nowrap;
    pointer-events: none;
}

.survey-map-popup::before {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-top: -10px;
    margin-left: -9px;
    background: #fff;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.18);
    content: "";
    transform: rotate(45deg);
}

body.dark-mode .survey-map-popup {
    background: #fff;
    color: #333;
}

body.dark-mode .survey-map-popup::before {
    background: #fff;
}

.map-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 5px 8px 9px;
    overflow-x: auto;
    border-bottom: 1px solid #e7e7e7;
    color: #2b2b2b;
    font-family: Calibri, Arial, sans-serif;
    font-size: 0.87rem;
    scrollbar-width: thin;
    white-space: nowrap;
}

.map-legend-item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 3px 4px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    line-height: 1.15;
    transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.map-legend-item:hover {
    background: #eef3f1;
}

.map-legend-item:focus-visible {
    outline: 2px solid #00796b;
    outline-offset: 2px;
}

.map-legend-item.is-off {
    background: #f1f2f2;
    color: #9da3a1;
}

.map-legend-item.is-off .map-legend-pin {
    filter: grayscale(1);
    opacity: 0.45;
}

.map-legend-item.is-off .map-legend-gear,
.map-legend-item.is-off .map-legend-research {
    filter: grayscale(1);
    opacity: 0.38;
}

.map-legend-separator {
    flex: 0 0 auto;
    color: #c8c8c8;
    font-size: 1.65rem;
    font-weight: 300;
    line-height: 1;
}

.map-legend-pin {
    display: inline-block;
    flex: 0 0 25px;
    width: 25px;
    height: 32px;
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/leaflet-extra-markers/1.2.1/img/markers_default.png");
    background-repeat: no-repeat;
    background-size: 378px 128.8px;
}

.map-legend-pin--green { background-position: -277.2px 0; }
.map-legend-pin--yellow { background-position: -75.6px 0; }
.map-legend-pin--purple { background-position: -176.4px 0; }
.map-legend-pin--orange { background-position: -50.4px 0; }
.map-legend-pin--blue { background-position: -126px 0; }

.map-legend-gear {
    display: block;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    opacity: 0.67;
    filter: grayscale(1);
}

.map-legend-research {
    display: block;
    flex: 0 0 23px;
    width: 23px;
    height: 25px;
    object-fit: contain;
    opacity: 0.67;
    filter: grayscale(1);
}

body.dark-mode .map-legend {
    border-bottom-color: #3b4341;
    color: #d8dddc;
}

body.dark-mode .map-legend-separator {
    color: #5e6866;
}

body.dark-mode .map-legend-item:hover {
    background: #28322f;
}

body.dark-mode .map-legend-item.is-off {
    background: #282d2c;
    color: #737c79;
}

@media (max-width: 1320px) {
    .map-legend {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .map-legend {
        display: grid;
        grid-template-columns: repeat(7, minmax(34px, 40px));
        width: 100%;
        max-width: 100%;
        justify-content: center;
        gap: 4px;
        padding: 6px 4px 8px;
        overflow: visible;
        white-space: normal;
    }

    .map-legend-item {
        position: relative;
        justify-content: center;
        width: 100%;
        height: 40px;
        padding: 3px;
    }

    .map-legend-item > span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .map-legend-separator {
        display: none;
    }
}

main {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}
.modern-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', sans-serif;
}

.modern-table th, .modern-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.modern-table thead {
    background: linear-gradient(90deg, #00796b, #26a69a);
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}

.modern-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.modern-table tbody tr:hover {
    background-color: #e0f2f1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.highlighted-row {
    background-color: #e0f2f1 !important;
    font-weight: bold;
    box-shadow: inset 3px 0 0 #00796b;
}

.modern-table td a {
    color: #00796b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-table td a:hover {
    color: #004d40;
    text-decoration: underline;
}

body.dark-mode .modern-table {
    background-color: #1d1f21;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}

body.dark-mode .modern-table th,
body.dark-mode .modern-table td {
    color: #e7e7e7;
    border-bottom: 1px solid #32363a;
}

body.dark-mode .modern-table tbody tr:nth-child(even) {
    background-color: #262a2d;
}

body.dark-mode .modern-table tbody tr:hover {
    background-color: #1f4a45;
}

body.dark-mode .highlighted-row {
    background-color: #205b54 !important;
    box-shadow: inset 3px 0 0 #62dacb;
}

body.dark-mode .modern-table td a {
    color: #66ddd0;
}

body.dark-mode .modern-table td a:hover {
    color: #9cf7ec;
}

body.dark-mode .modern-table td:before {
    color: #6bd6c8;
}

@media (max-width: 768px) {
    .modern-table, .modern-table thead, .modern-table tbody, .modern-table th, .modern-table td, .modern-table tr {
        display: block;
    }

    .modern-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .modern-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .modern-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }

    .modern-table td:before {
        position: absolute;
        top: 0;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #00796b;
    }

    .modern-table td:nth-of-type(1):before { content: "Megnevezés"; }
    .modern-table td:nth-of-type(2):before { content: "Besorolás"; }
    .modern-table td:nth-of-type(3):before { content: "Dátum"; }
    .modern-table td:nth-of-type(4):before { content: "Ortofotó terepi felbontása"; }
}
.filter-container {
    margin: 0 auto 28px auto;
    padding: 18px 24px;
    text-align: left;
    background-color: #fbfcfb;
    border-top: 1px solid #e2ebe8;
    border-bottom: 1px solid #e2ebe8;
    box-shadow: 0 8px 18px rgba(0, 65, 53, 0.07);
    display: grid;
    grid-template-columns: minmax(360px, 1.6fr) minmax(230px, 1fr) minmax(150px, 0.7fr) minmax(170px, 0.75fr) auto;
    gap: 14px;
    align-items: end;
    justify-content: center;
}

.filter-container label {
    color: #2d3734;
    font-weight: 700;
    line-height: 1.2;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.name-search-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
}

.name-combobox {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    min-width: 0;
}

.name-combobox input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.name-combobox .name-search-toggle {
    width: 40px;
    min-width: 40px;
    padding: 0;
    color: #00675d;
    background: #eef7f5;
    border-color: #bac9c5;
    border-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    font-size: 17px;
}

.name-combobox .name-search-toggle:hover {
    color: #fff;
    background: #00796b;
    border-color: #00796b;
}

.name-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1200;
    display: none;
    width: min(520px, 100%);
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid #8fbab2;
    border-radius: 6px;
    box-shadow: 0 14px 28px rgba(0, 65, 53, 0.18);
}

.name-suggestions.is-open {
    display: block;
}

.name-suggestions::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 18px;
    width: 12px;
    height: 12px;
    background: inherit;
    border-left: 1px solid #8fbab2;
    border-top: 1px solid #8fbab2;
    transform: rotate(45deg);
}

.name-suggestions li {
    position: relative;
    z-index: 1;
    padding: 9px 10px;
    color: #263633;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.name-suggestions li:hover {
    color: #005f54;
    background: #eef7f5;
}

.name-suggestions .name-suggestion-empty {
    color: #687875;
    cursor: default;
}

.name-suggestions .name-suggestion-empty:hover {
    color: #687875;
    background: transparent;
}

.filter-container .name-mobile-select {
    display: none;
}

.filter-container input,
.filter-container select,
.filter-container button {
    min-height: 36px;
    border-radius: 4px;
    border: 1px solid #bac9c5;
    font-family: Calibri, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.2;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.filter-container input,
.filter-container select {
    background-color: #fff;
    color: #222;
    padding: 7px 12px;
    width: 100%;
    box-sizing: border-box;
}

.filter-container input {
    min-width: 0;
}

.filter-container select {
    cursor: pointer;
}

.filter-container input:focus,
.filter-container select:focus,
.filter-container button:focus-visible {
    outline: none;
    border-color: #00796b;
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.18);
}

.filter-container button {
    color: #fff;
    background: #00796b;
    border-color: #00796b;
    padding: 7px 14px;
    cursor: pointer;
    font-weight: 700;
}

.filter-container button:hover {
    background: #005f54;
    border-color: #005f54;
}

.selected-area-box {
    max-width: 800px;
    margin: 28px auto 14px;
    padding: 16px 18px;
    border-left: 5px solid #008577;
    border-radius: 8px;
    background: #eef8f6;
    box-shadow: 0 10px 24px rgba(0, 91, 82, 0.12);
}

.selected-area-box[hidden] {
    display: none;
}

.selected-area-box-label {
    margin-bottom: 6px;
    color: #00675d;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.selected-area-box-title {
    display: inline-block;
    color: #00796b;
    font-size: 1.12rem;
    font-weight: 800;
    text-decoration: none;
}

.selected-area-box-title:hover {
    color: #005f54;
    text-decoration: underline;
}

.selected-area-box-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 10px;
    color: #263331;
}

.selected-area-box-meta span {
    white-space: nowrap;
}

.modern-table th:nth-child(3),
.modern-table td:nth-child(3) {
    white-space: nowrap;
}

#resetSearchBtn {
    color: #00675d;
    background: #eef7f5;
    border-color: #8fbab2;
    white-space: nowrap;
}

#resetSearchBtn:hover {
    color: #fff;
    background: #00796b;
    border-color: #00796b;
}

#dark-mode-toggle {
    width: 38px;
    min-width: 38px;
    padding: 0;
    color: #17483f;
    background: #eef7f5;
    border-color: #8fbab2;
}

#dark-mode-toggle:hover {
    color: #fff;
    background: #00796b;
    border-color: #00796b;
}

.filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.filter-actions .reset-filters-btn {
    white-space: nowrap;
}

.language-switch-corner {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 5000;
}

.language-switch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.language-switcher {
    height: 34px;
    width: auto;
    padding: 4px;
    border: 1px solid #9fbdb7;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    vertical-align: middle;
}

.language-switcher:hover {
    border-color: #8fbab2;
    background: #eef7f5;
}

body.dark-mode .filter-container {
    background-color: #1c2423;
    border-color: #2f3b3a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

body.dark-mode .selected-area-box {
    background: #1c2a28;
    border-left-color: #4fbdaa;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

body.dark-mode .selected-area-box-label,
body.dark-mode .selected-area-box-title {
    color: #69d1c1;
}

body.dark-mode .selected-area-box-title:hover {
    color: #9be2d8;
}

body.dark-mode .selected-area-box-meta {
    color: #d6e4e1;
}

body.dark-mode .filter-container label {
    color: #d3e9e4;
}

body.dark-mode .filter-container input,
body.dark-mode .filter-container select {
    color: #ecf5f3;
    background-color: #26302f;
    border-color: #48615d;
}

body.dark-mode .filter-container input::placeholder {
    color: #aabdb9;
}

body.dark-mode .filter-container input:focus,
body.dark-mode .filter-container select:focus,
body.dark-mode .filter-container button:focus-visible {
    border-color: #4fbdaa;
    box-shadow: 0 0 0 3px rgba(79, 189, 170, 0.22);
}

body.dark-mode .filter-container button {
    color: #0c1917;
    background: #4fbdaa;
    border-color: #4fbdaa;
}

body.dark-mode .filter-container button:hover {
    background: #7bd7c6;
    border-color: #7bd7c6;
}

body.dark-mode #resetSearchBtn,
body.dark-mode #dark-mode-toggle {
    color: #d3e9e4;
    background: #243331;
    border-color: #48615d;
}

body.dark-mode .language-switcher {
    background: rgba(20, 30, 28, 0.92);
    border-color: #486862;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
}

body.dark-mode #resetSearchBtn:hover,
body.dark-mode #dark-mode-toggle:hover,
body.dark-mode .language-switcher:hover {
    color: #0c1917;
    background: #4fbdaa;
    border-color: #4fbdaa;
}

body.dark-mode .name-combobox .name-search-toggle {
    color: #d3e9e4;
    background: #243331;
    border-color: #48615d;
}

body.dark-mode .name-combobox .name-search-toggle:hover {
    color: #0c1917;
    background: #4fbdaa;
    border-color: #4fbdaa;
}

body.dark-mode .name-suggestions {
    background: #202927;
    border-color: #48615d;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
}

body.dark-mode .name-suggestions::before {
    border-color: #48615d;
}

body.dark-mode .name-suggestions li {
    color: #ecf5f3;
}

body.dark-mode .name-suggestions li:hover {
    color: #0c1917;
    background: #4fbdaa;
}

body.dark-mode .name-suggestions .name-suggestion-empty,
body.dark-mode .name-suggestions .name-suggestion-empty:hover {
    color: #aabdb9;
    background: transparent;
}

@media (max-width: 1100px) {
    .filter-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .filter-field-search,
    .filter-actions {
        grid-column: 1 / -1;
    }

    .filter-actions {
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .filter-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 12px;
    }

    .filter-container label {
        white-space: normal;
    }

    .name-search-wrap {
        grid-template-columns: 1fr;
    }

    .name-combobox {
        display: grid;
    }

    .filter-container .name-mobile-select {
        display: none;
    }

    .name-suggestions {
        width: 100%;
        max-height: 240px;
    }

    .filter-actions {
        display: grid;
        grid-template-columns: 1fr 44px;
        align-items: center;
        justify-content: stretch;
        gap: 8px;
    }

    .filter-actions .reset-filters-btn {
        width: 100%;
    }

    #dark-mode-toggle {
        width: 44px;
        min-width: 44px;
        justify-self: center;
    }

    .language-switch-corner {
        bottom: 12px;
        right: 12px;
    }

    .language-switcher {
        height: 24px;
        padding: 2px;
        border-radius: 4px;
    }
}
/* Dark Mode automatikus váltás a rendszer alapján */
@media (prefers-color-scheme: dark) {
 body {
   background-color: #121212;
   color: #ddd;
 }

 /* Ha vannak menü, gomb vagy más elemeid, azokat is lehet stílusozni itt */
 nav, header, footer {
   background-color: #222;
   color: #ccc;
 }
}

body.light-mode {
 background-color: #fff !important;
 color: #222 !important;
}

body.light-mode nav,
body.light-mode header,
body.light-mode footer {
 background-color: #fff !important;
 color: inherit !important;
}

body.dark-mode {
 background-color: #121212 !important;
 color: #ddd !important;
}

body.dark-mode nav, 
body.dark-mode header, 
body.dark-mode footer {
 background-color: #222 !important;
 color: #ccc !important;
}

/* --- Navbar (Navigációs sáv) - Teljesen új szakasz --- */
.navbar {
    display: flex; /* Asztali nézetben alapból flexbox elrendezés */
    justify-content: center;
    gap: clamp(0.75rem, 3vw, 3rem);
    padding: 1.5rem 1rem;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%; /* Fontos, hogy kitöltse a szélességet */
    box-sizing: border-box; /* Hogy a padding ne növelje a szélességet */
}

.navbar a {
    position: relative;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    color: #333;
    padding: 4px 2px;
    transition: color 0.3s ease;
    white-space: nowrap; /* Megakadályozza a törést */
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: #00796b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navbar a:hover {
    color: #00796b;
}

.navbar a:hover::after {
    transform: scaleX(1);
}

/* Aktív menüpont kiemelése */
.navbar a.active {
    color: #00796b;
    font-weight: 600;
}

.navbar a.active::after {
    transform: scaleX(1);
}

/* Hamburger gomb alapból rejtve asztali nézetben */
#hamburger-btn {
    display: none;
    font-size: 2rem; /* Hogy jól látható legyen, ha megjelenik */
    background: none;
    border: none;
    cursor: pointer;
    color: #00796b;
    padding: 10px 15px; /* Kicsi padding, hogy könnyebb legyen megnyomni */
}

/* --- Mobil nézet: 600px alatt --- */
@media (max-width: 600px) {
    .main-title {
        margin: 8px auto 7px;
        font-size: 24px;
        line-height: 1.08;
        letter-spacing: 0.3px;
    }

    .datum-felbontas {
        margin-bottom: 0;
    }

    .datum-felbontas > br {
        display: none;
    }

    .navbar {
        flex-direction: column; /* Menüpontok függőlegesen */
        align-items: flex-start; /* Elemek balra igazítva */
        gap: 0; /* Ne legyen gap a menüpontok között függőlegesen */
        padding: 0; /* A paddinget a gomb kapja meg */
    }

    /* Mutasd a hamburger gombot mobil nézetben */
    #hamburger-btn {
        display: block; /* Hamburger gomb megjelenítése */
        width: auto;
        min-width: 40px;
        height: 40px;
        text-align: left; /* A karaktert balra igazítja */
        box-sizing: border-box; /* Paddinget beleszámolja a szélességbe */
        margin: 3px 0;
        padding: 4px 8px;
        font-size: 1.55rem;
        line-height: 1;
    }

    /* Alapból rejtse el a menüpontokat mobil nézetben */
    .navbar a {
        display: none; /* Rejtse el a menüpontokat alapból */
        width: 100%; /* Menüpontok is töltsék ki a szélességet */
        padding: 10px 1rem; /* Padding a menüpontoknak */
        border-bottom: 1px solid #eee; /* Elválasztó vonal */
        box-sizing: border-box;
    }

    /* Ha a .navbar elem megkapja az 'active' osztályt, mutasd a menüpontokat */
    .navbar.active {
        flex-direction: column; /* Fontos, hogy aktív állapotban is függőleges legyen */
        align-items: flex-start;
    }

    .navbar.active a {
        display: block; /* Menüpontok megjelenítése, ha a navbar aktív */
    }
}

@media (min-width: 601px) and (max-width: 820px) {
    .navbar a {
        font-size: 1rem;
    }
}

/* --- Dark Mode specifikus stílusok a navigációhoz (ha van ilyen) --- */
body.dark-mode .navbar {
    background-color: #222; /* Sötét mód háttér */
    border-bottom-color: #444; /* Sötét mód szegély */
}

body.dark-mode .navbar a {
    color: #ccc; /* Sötét mód szövegszín */
}

body.dark-mode .navbar a:hover {
    color: #00a69a; /* Sötét mód hover szín */
}

body.dark-mode .navbar a::after {
    background-color: #00a69a; /* Sötét mód aláhúzás szín */
}

body.dark-mode .navbar a.active {
    color: #00a69a; /* Sötét mód aktív szín */
}

body.dark-mode #hamburger-btn {
    color: #00a69a; /* Sötét mód hamburger gomb szín */
}

body.dark-mode .main-title,
body.dark-mode .datum-felbontas,
body.dark-mode .footer-note,
body.dark-mode .footer-left {
    color: #dedede;
}

body.dark-mode .hramn-header2-contact,
body.dark-mode .hramn-header2-szlogen,
body.dark-mode .hramn-header2-web,
body.dark-mode .hramn-header2-web a {
    color: #4fbdaa;
}

body.dark-mode .hramn-header2-contact span {
    color: #d3e9e4;
}

body.dark-mode .hramn-header2-line {
    border-bottom-color: #2f9f8b;
}

body.dark-mode hr,
body.dark-mode .footer-line-full {
    border-top-color: #2f3b3a;
}

#drChart,
#torzitasChart,
#coverageChart {
    display: block;
    max-width: 100% !important;
}

#data-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#data-table th,
#data-table td {
    white-space: nowrap;
}

img[src$="10cm.png"],
img[src$="20cm.png"],
img[src$="50cm.png"],
img[src$="20m.png"],
img[src*="hramndinamicsample"],
img[src*="hramttokol"],
img[src*="erd.png"] {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1100px) {
    #drChart,
    #torzitasChart,
    #coverageChart,
    #data-table {
        max-width: calc(100vw - 32px) !important;
    }
}

@media (max-width: 700px) {
    #drChart,
    #torzitasChart,
    #coverageChart {
        min-height: 260px;
    }

    #data-table {
        font-size: 0.85rem;
    }
}

@media (max-width: 700px) {
    #drChart {
        height: 360px !important;
        min-height: 360px;
    }
}

/* --- Bevezető oldal --- */
.intro-page {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.intro-hero {
    margin: 28px 0 30px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid #dceae6;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(0, 121, 107, 0.12), transparent 38%),
        linear-gradient(145deg, #f7fbfa 0%, #ffffff 70%);
    box-shadow: 0 18px 42px rgba(0, 65, 53, 0.08);
}

.intro-kicker {
    margin: 0 0 10px;
    color: #00796b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-align: center;
    text-transform: uppercase;
}

.intro-hero h1 {
    max-width: 880px;
    margin: 0 auto 24px;
    color: #163a32;
    font-size: clamp(2rem, 4.2vw, 3.55rem);
    line-height: 1.08;
    text-wrap: balance;
}

.intro-copy {
    max-width: 1000px;
    margin: 0 auto;
    color: #2d3b37;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.55;
    text-align: left;
}

.intro-copy p {
    margin: 0 0 0.52rem;
}

.intro-copy p:last-child {
    margin-bottom: 0;
}

.intro-section-title {
    margin: 44px auto 22px;
    color: #163a32;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.intro-gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

.intro-gallery-card {
    grid-column: span 6;
    overflow: hidden;
    margin: 0;
    border: 1px solid #dce7e3;
    border-radius: 16px;
    background: #f5f8f7;
    box-shadow: 0 10px 25px rgba(0, 50, 42, 0.08);
}

.intro-gallery-card--wide {
    grid-column: span 7;
}

.intro-gallery-card--narrow {
    grid-column: span 5;
}

.intro-gallery-card--full {
    grid-column: 1 / -1;
}

.intro-gallery-card img {
    display: block;
    width: 100%;
    height: clamp(230px, 31vw, 430px);
    object-fit: contain;
    background: #fff;
}

.intro-gallery-card--full img {
    height: auto;
    max-height: 720px;
}

.intro-gallery-card figcaption {
    padding: 13px 16px 15px;
    color: #31433e;
    font-size: 0.98rem;
    line-height: 1.35;
    text-align: left;
}

.intro-cta {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin: 36px 0 46px;
    padding: 24px 28px;
    border-radius: 16px;
    background: #195848;
    color: #fff;
}

.intro-cta p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.45;
}

.intro-cta a {
    flex: 0 0 auto;
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: #fff;
    color: #195848;
    font-weight: 700;
    text-decoration: none;
}

.intro-cta a:hover,
.intro-cta a:focus-visible {
    background: #e7f3ef;
}

body.dark-mode .intro-hero {
    border-color: #324b45;
    background:
        radial-gradient(circle at top right, rgba(0, 166, 154, 0.16), transparent 38%),
        linear-gradient(145deg, #18231f 0%, #121817 70%);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25);
}

body.dark-mode .intro-hero h1,
body.dark-mode .intro-section-title {
    color: #dceee9;
}

body.dark-mode .intro-copy {
    color: #d1ddda;
}

body.dark-mode .intro-kicker {
    color: #4fbdaa;
}

body.dark-mode .intro-gallery-card {
    border-color: #344b46;
    background: #1b2522;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.24);
}

body.dark-mode .intro-gallery-card img {
    background: #f4f4f2;
}

body.dark-mode .intro-gallery-card figcaption {
    color: #d4e2de;
}

body.dark-mode .intro-cta {
    background: #184b41;
}

@media (max-width: 820px) {
    .intro-gallery-card,
    .intro-gallery-card--wide,
    .intro-gallery-card--narrow {
        grid-column: 1 / -1;
    }

    .intro-gallery-card img {
        height: auto;
        max-height: 620px;
    }
}

@media (max-width: 600px) {
    .intro-hero {
        margin-top: 18px;
        padding: 24px 18px;
        border-radius: 15px;
    }

    .intro-copy {
        line-height: 1.48;
    }

    .intro-gallery {
        gap: 14px;
    }

    .intro-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        text-align: center;
    }

    .intro-cta a {
        text-align: center;
    }
}
