/* SZALLASAPP - CPANEL-BARAT STYLE.CSS */
/* Felul kek sav, alul feher hatter. Flexboxos, egyszeru CSS. */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2933;
    background: #ffffff;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

/* HEADER */

.site-header {
    width: 100%;
    background: #264d6b;
    color: #ffffff;
}

.header-inner {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding: 12px 18px 18px 18px;
}

.header-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.header-top-spacer {
    flex: 1 1 auto;
}

.header-top-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.language-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    white-space: nowrap;
}

.flag {
    font-size: 18px;
    line-height: 1;
}

.header-search input {
    width: 180px;
    height: 34px;
    border: 1px solid #d9e3ea;
    border-radius: 6px;
    padding: 0 11px;
    font-size: 14px;
    background: #ffffff;
    color: #1f2933;
}

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 6px;
    background: #ffffff;
    color: #264d6b;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.header-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    flex: 0 0 auto;
}

.site-logo {
    width: 54px;
    height: auto;
}

.logo-title {
    color: #ffffff;
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1 1 auto;
    font-size: 15px;
}

.nav-item,
.main-nav a {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    background: transparent;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-item:hover,
.nav-item.active,
.main-nav a:hover {
    border-color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
}

.nav-icon {
    width: 17px;
    height: 17px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    color: #ffffff;
}

.menu-toggle {
    display: none;
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
}

/* HERO */
/* A kek hatter kb. a jobb oldali dobozok aljaig tart, utana feher resz jon. */

.hero {
    width: 100%;
    color: #ffffff;
    padding: 34px 18px 70px 18px;
    background: linear-gradient(to bottom, #264d6b 0px, #264d6b 610px, #ffffff 610px, #ffffff 100%);
}

.hero-content {
    width: 100%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

/* FELSO KERESO */

.search-box {
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2933;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 130px;
}

.search-field-large {
    flex: 2 1 260px;
}

.search-field label {
    color: #1f4059;
    font-size: 13px;
    font-weight: 600;
}

.search-field input,
.search-field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9e3ea;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 15px;
    color: #1f2933;
    background: #ffffff;
}

.search-field input:focus,
.search-field select:focus {
    outline: 2px solid #eef5fa;
    border-color: #264d6b;
}

.search-button {
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    background: #264d6b;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 0 24px;
    cursor: pointer;
    flex: 0 0 auto;
}

.search-button:hover {
    background: #1f4059;
}

/* TERKEP + JOBB OLDAL */

.hero-lower-grid {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.map-card {
    flex: 1 1 auto;
    min-width: 0;
    padding: 16px;
    border-radius: 12px;
    background: #315f7f;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.map-card-header {
    margin-bottom: 10px;
}

.map-card-header p {
    margin: 0 0 5px 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.map-card-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
}

.interactive-map {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

.map-background {
    width: 100%;
    height: auto;
    display: block;
}

.map-areas-layer {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 3;
}

.map-area {
    position: absolute;
    display: block;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    outline: none;
}

.map-area:hover,
.map-area:focus,
.map-area.is-selected {
    background: rgba(38, 77, 107, 0.22);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.88);
    border-radius: 8px;
}

.map-tooltip {
    position: absolute;
    z-index: 10;
    left: 0;
    top: 0;
    transform: translate(-50%, -120%);
    background: #ffffff;
    color: #1f4059;
    border: 1px solid #d9e3ea;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.map-tooltip.is-visible {
    opacity: 1;
}

.map-inline-result {
    margin-top: 10px;
    color: #ffffff;
    font-size: 14px;
}

.map-result-label {
    font-weight: 700;
}

.hero-side {
    width: 350px;
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: flex-start;
}

.partner-box,
.side-info-box {
    width: 100%;
    padding: 22px;
    border-radius: 12px;
    background: #ffffff;
    color: #1f2933;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.partner-box h2,
.side-info-box h3 {
    margin: 0 0 10px 0;
    color: #1f4059;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.side-info-box h3 {
    font-size: 19px;
}

.partner-box p,
.side-info-box p {
    margin: 0 0 18px 0;
    color: #667085;
    font-size: 15px;
    line-height: 1.45;
}

.side-info-box p {
    margin-bottom: 0;
}

.partner-button {
    min-height: 42px;
    background: #264d6b;
    color: #ffffff;
    border-radius: 6px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.partner-button:hover {
    background: #1f4059;
}

/* TARTALOM */

.section {
    padding: 64px 18px;
    background: #ffffff;
}

.section-light {
    background: #ffffff;
}

.section-heading {
    max-width: 760px;
    margin: 0 0 34px 0;
}

.section-kicker {
    margin: 0 0 8px 0;
    color: #264d6b;
    font-size: 16px;
    font-weight: 600;
}

.section-heading h2 {
    margin: 0 0 12px 0;
    color: #1f2933;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.section-heading p {
    margin: 0;
    color: #667085;
    font-size: 17px;
    line-height: 1.5;
}

.card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.property-card {
    flex: 1 1 300px;
    background: #ffffff;
    border: 1px solid #d9e3ea;
    border-radius: 12px;
    overflow: hidden;
}

.card-image {
    min-height: 170px;
    background: #264d6b;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
}

.card-body {
    padding: 22px;
}

.card-body h3 {
    margin: 0 0 10px 0;
    color: #1f2933;
    font-size: 22px;
    font-weight: 700;
}

.card-body p {
    margin: 0 0 16px 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.5;
}

.card-link {
    color: #264d6b;
    font-weight: 600;
}

/* FOOTER */

.site-footer {
    background: #1f4059;
    color: #ffffff;
    padding: 54px 18px 0 18px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-grid div {
    flex: 1 1 220px;
}

.footer-grid div:first-child {
    flex: 2 1 360px;
}

.site-footer h3,
.site-footer h4 {
    margin-top: 0;
    color: #ffffff;
}

.site-footer p {
    color: #eef5fa;
}

.site-footer a {
    display: block;
    color: #eef5fa;
    margin-bottom: 8px;
}

.footer-bottom {
    margin-top: 38px;
    padding: 18px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #eef5fa;
}

/* TABLET */

@media screen and (max-width: 1100px) {
    .header-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .main-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .search-box {
        flex-wrap: wrap;
    }

    .search-field {
        flex: 1 1 30%;
    }

    .search-field-large {
        flex: 1 1 100%;
    }

    .search-button {
        flex: 1 1 100%;
    }

    .hero-side {
        width: 320px;
        flex-basis: 320px;
    }
}

/* MOBIL */

@media screen and (max-width: 900px) {
    .header-inner {
        padding: 14px 14px 22px 14px;
    }

    .header-top {
        justify-content: flex-start;
        margin-bottom: 16px;
    }

    .header-top-links {
        justify-content: flex-start;
        gap: 10px;
        font-size: 14px;
    }

    .header-search {
        width: 100%;
    }

    .header-search input {
        width: 100%;
    }

    .header-main {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .site-logo {
        width: 50px;
    }

    .logo-title {
        font-size: 24px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-top: 14px;
        font-size: 16px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-item,
    .main-nav a {
        width: 100%;
        border-radius: 0;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        padding: 12px 0;
    }

    .hero {
        padding: 28px 14px 44px 14px;
        background: #264d6b;
    }

    .hero-lower-grid {
        flex-direction: column;
    }

    .hero-side {
        width: 100%;
        flex: 1 1 auto;
    }

    .map-card-header h1 {
        font-size: 22px;
    }

    .search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .search-field,
    .search-field-large,
    .search-button {
        width: 100%;
        flex: 1 1 auto;
    }

    .property-card {
        flex: 1 1 100%;
    }

    .footer-grid div,
    .footer-grid div:first-child {
        flex: 1 1 100%;
    }
}

@media screen and (max-width: 560px) {
    .logo-title {
        font-size: 22px;
    }

    .site-logo {
        width: 46px;
    }

    .map-tooltip {
        display: none;
    }
}
/* MOBILOS TERKEP-POLYGON FEDES JAVITAS */
.interactive-map {
    position: relative;
    width: 100%;
    aspect-ratio: 827 / 503;
    overflow: hidden;
}

.map-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.map-areas-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.map-areas-layer svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}
