* {
    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 {
    max-width: 100%;
    display: block;
}

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

/* HEADER */

.site-header {
    width: 100%;
    background: #264D6B;
    color: #FFFFFF;
}

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

.header-top {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    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;
}

.header-top-links a {
    color: #FFFFFF;
    white-space: nowrap;
}

.language-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.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 {
    background: #FFFFFF;
    color: #264D6B !important;
    padding: 9px 13px;
    border-radius: 6px;
    font-weight: 600;
    line-height: 1;
}

.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;
    display: block;
}

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

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

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

.nav-item:hover,
.nav-item.active {
    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;
    opacity: 0.95;
}

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

/* HERO */

.hero {
    background: #264D6B;
    color: #FFFFFF;
    padding: 34px 18px 56px 18px;
}

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

.hero-top-row {
    display: flex;
    align-items: stretch;
    gap: 28px;
    margin-bottom: 24px;
}

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

.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;
}

.hungary-map-wrap {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 8px;
}

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

.map-base {
    fill: #EEF5FA;
    stroke: #D9E3EA;
    stroke-width: 3;
}

.map-area {
    cursor: pointer;
}

.map-area path {
    fill: #DCEBF3;
    stroke: #264D6B;
    stroke-width: 2;
    transition: fill 0.15s ease;
}

.map-area text {
    fill: #1F4059;
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
}

.map-area:hover path,
.map-area.is-selected path {
    fill: #264D6B;
}

.map-area:hover text,
.map-area.is-selected text {
    fill: #FFFFFF;
}

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

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

.partner-box {
    flex: 0 0 350px;
    background: #FFFFFF;
    color: #1F2933;
    border-radius: 12px;
    padding: 22px;
}

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

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

.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;
}

/* SEARCH */

.search-box {
    width: 100%;
    background: #FFFFFF;
    color: #1F2933;
    padding: 16px;
    border-radius: 10px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

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

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

.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;
}

/* CONTENT */

.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;
}

/* CARDS */

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

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

.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;
}

/* MOBILE */

@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%;
    }

    .hero-top-row {
        flex-direction: column;
    }

    .partner-box {
        flex: 1 1 auto;
    }

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

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

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

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

@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 input {
        width: 150px;
    }

    .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 {
        width: 100%;
        border-radius: 0;
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.18);
        padding: 12px 0;
    }

    .hero {
        padding: 34px 14px 50px 14px;
    }

    .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;
    }

    .header-search {
        width: 100%;
    }

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

    .map-area text {
        font-size: 11px;
    }
}
.hungary-map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
