:root {
    --brand: #073b78;
    --brand-dark: #052b59;
    --brand-ink: #071c36;
    --gold: #efa51c;
    --gold-strong: #df9307;
    --bg-soft: #f4f6f8;
    --border: #d8dee6;
    --text: #1c2735;
    --muted: #667281;
    --white: #fff;
}

/* CodeIgniter application additions: keep the flat navy-and-gold design language. */
.admin-shell { min-height: 760px; display: grid; grid-template-columns: 270px minmax(0, 1fr); background: var(--bg-soft); }
.admin-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; min-height: 100vh; height: 100vh; padding: 24px 18px; color: #dce6f0; background: var(--brand-dark); overflow-y: auto; }
.admin-brand { display: grid; gap: 8px; padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.admin-brand img { width: 190px; background: #fff; }
.admin-sidebar nav { display: grid; gap: 4px; margin-top: 24px; }
.admin-sidebar nav a, .admin-back { display: flex; align-items: center; gap: 12px; padding: 12px; color: #dce6f0; font-weight: 700; }
.admin-sidebar nav a:hover { color: var(--brand-dark); background: var(--gold); }
.admin-sidebar-footer { margin-top: auto; padding-top: 18px; }
.admin-sidebar-footer form { margin: 0; }
.admin-back { border-top: 1px solid rgba(255,255,255,.14); }
.admin-logout { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px; border: 0; color: #fff; background: transparent; font-weight: 750; text-align: left; }
.admin-logout:hover { color: var(--brand-dark); background: var(--gold); }
.admin-main { min-width: 0; padding: 42px clamp(22px, 4vw, 64px) 70px; }
.admin-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.admin-title h1 { margin: .35rem 0; color: var(--brand-ink); font-weight: 850; }
.admin-task { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.admin-task:last-child { border-bottom: 0; }
.admin-task i { color: var(--brand); font-size: 1.5rem; }
.admin-task div { display: grid; gap: 4px; }
.admin-task span { color: var(--muted); }
.admin-task b { margin-left: auto; color: var(--brand); font-size: 1.25rem; }
.admin-filter-bar { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(180px, .35fr) auto auto; align-items: end; gap: 14px; margin-bottom: 22px; padding: 18px; border: 1px solid var(--border); background: #fff; }
.admin-filter-bar label, .admin-form label, .admin-gateway-form label { display: block; margin-bottom: 6px; color: #536173; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table { min-width: 760px; margin: 0; vertical-align: middle; }
.admin-table th { padding: 13px 16px; color: #5d6a7b; background: #f2f5f7; font-size: .72rem; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
.admin-table td { padding: 14px 16px; border-color: #e5e9ee; }
.admin-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: .76rem; }
.admin-listing-thumb,
.dashboard-listing-thumb { display: grid; place-items: center; width: 96px; height: 64px; border: 1px solid var(--border); object-fit: cover; background: #edf1f4; }
.admin-listing-thumb.empty,
.dashboard-listing-thumb.empty { color: var(--muted); font-size: 1.25rem; }
.admin-badge { display: inline-block; padding: 5px 8px; border: 1px solid #b9c7d5; color: var(--brand-dark); background: #eef3f7; font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .035em; white-space: nowrap; }
.admin-badge-success { border-color: #8fc5a5; color: #145c32; background: #edf8f1; }
.admin-empty { padding: 36px !important; color: var(--muted) !important; text-align: center; }
.admin-pagination { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 20px; color: var(--muted); }
.admin-pagination div, .admin-row-actions { display: flex; gap: 8px; }
.admin-form { padding: clamp(20px, 3vw, 34px); }
.admin-form fieldset { padding: 18px; border: 1px solid var(--border); }
.admin-form legend { width: auto; padding: 0 8px; color: var(--brand-ink); font-size: 1rem; font-weight: 800; }
.admin-form-actions { display: flex; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); }
.admin-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.admin-field-help { display: block; margin-top: 7px; color: var(--muted); }
.admin-danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 26px; padding: 20px; border: 1px solid #e0aeb2; background: #fff8f8; }
.admin-danger-zone div { display: grid; gap: 4px; }
.admin-danger-zone span { color: var(--muted); }
.admin-assignment-panel { margin-bottom: 24px; }
.admin-sticky-actions { position: sticky; bottom: 0; z-index: 4; padding: 18px; border: 1px solid var(--border); background: rgba(255,255,255,.96); box-shadow: 0 -8px 24px rgba(7,28,54,.08); }
.admin-setting-group { margin-bottom: 22px; }
.admin-value-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-gateway-form { padding: 18px 0; border-bottom: 1px solid var(--border); }
.admin-gateway-form:first-child { padding-top: 0; }
.admin-gateway-form:last-child { padding-bottom: 0; border-bottom: 0; }
.admin-gateway-title { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 16px; }
.admin-gateway-title div { display: grid; gap: 3px; }
.admin-definition-list { display: grid; grid-template-columns: minmax(130px, .7fr) 1fr; gap: 0; margin: 0; }
.admin-definition-list dt, .admin-definition-list dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--border); }
.admin-definition-list dt { color: var(--muted); }
.admin-login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr); }
.admin-login-brand { position: relative; display: grid; align-items: center; padding: clamp(36px, 7vw, 100px); color: #fff; background: linear-gradient(145deg, var(--brand-dark), var(--brand)); overflow: hidden; }
.admin-login-brand::after { position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border: 55px solid rgba(239,165,28,.22); content: ""; transform: rotate(18deg); }
.admin-login-brand > div { position: relative; z-index: 1; max-width: 560px; }
.admin-login-brand img { width: 230px; margin-bottom: 70px; background: #fff; }
.admin-login-brand .section-eyebrow { color: var(--gold); }
.admin-login-brand h1 { margin: .6rem 0 1rem; font-size: clamp(2.4rem, 4vw, 4.5rem); line-height: 1.02; font-weight: 850; letter-spacing: -.04em; }
.admin-login-brand p { max-width: 520px; color: #dce6f0; font-size: 1.08rem; line-height: 1.7; }
.admin-login-form { display: grid; place-items: center; padding: 40px; background: #fff; }
.admin-login-form .auth-form { width: min(100%, 480px); }
@media (max-width: 991.98px) { .admin-shell { grid-template-columns: 1fr; } .admin-sidebar { position: static; min-height: auto; height: auto; overflow-y: visible; } .admin-sidebar nav { grid-template-columns: repeat(2, 1fr); } .admin-sidebar-footer { margin-top: 18px; padding-top: 0; } .admin-filter-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 991.98px) { .admin-login-shell { grid-template-columns: 1fr; } .admin-login-brand { min-height: 340px; } .admin-login-brand img { margin-bottom: 34px; } }
@media (max-width: 575.98px) { .admin-sidebar nav { grid-template-columns: 1fr; } .admin-title { align-items: stretch; flex-direction: column; } .admin-login-form { padding: 34px 20px; } .admin-filter-bar { grid-template-columns: 1fr; } .admin-pagination, .admin-danger-zone { align-items: stretch; flex-direction: column; } .admin-check-grid { grid-template-columns: 1fr; } }

* {
    box-sizing: border-box;
    border-radius: 0 !important;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container {
    max-width: 1440px;
}

.utility-bar {
    padding: 8px 0;
    color: #d7e1ec;
    background: var(--brand-dark);
    font-size: .78rem;
}
.utility-bar a:hover { color: #fff; }

.navbar {
    min-height: 78px;
    border-bottom: 1px solid var(--border);
}
.brand-logo {
    width: 205px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}
.navbar .nav-link {
    color: #314052;
    padding-inline: 1rem !important;
    font-weight: 650;
}
.navbar .nav-link.active,
.navbar .nav-link:hover { color: var(--brand); }
.navbar-toggler {
    display: grid;
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    padding: 0;
    place-items: center;
}
.navbar-toggler-icon { width: 1.65rem; height: 1.65rem; }
.header-account-mobile {
    display: inline-grid;
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    place-items: center;
    border: 1px solid #bfcbd8;
    color: var(--brand);
    background: #fff;
    font-size: 1.35rem;
}
.header-account-mobile:hover { color: var(--brand-dark); background: #eef3f7; }
.mobile-nav-logout-form { margin: 0; }
.mobile-nav-logout {
    display: flex !important;
    width: 100%;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    text-align: left;
}

.btn {
    border-radius: 0 !important;
    font-weight: 750;
}
.btn-primary-brand {
    color: #fff;
    background: var(--brand);
    border: 1px solid var(--brand);
    padding: .72rem 1rem;
}
.btn-primary-brand:hover {
    color: #fff;
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}
.btn-login {
    color: var(--brand);
    border: 1px solid #bfcbd8;
    background: #fff;
    padding: .72rem 1rem;
}
.btn-login:hover { background: #eef3f7; }
.header-logout-form { margin: 0; }
.header-logout-button {
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    border: 1px solid var(--border);
    color: var(--brand);
    background: #fff;
    font-size: 1.2rem;
    line-height: 1;
}
.header-logout-button:hover { color: #fff; background: var(--brand); }
.btn-gold-flat {
    color: var(--brand-dark);
    background: var(--gold);
    border: 1px solid var(--gold);
    padding: .8rem 1.15rem;
}
.btn-gold-flat:hover {
    color: var(--brand-dark);
    background: #ffc04c;
    border-color: #ffc04c;
}

.search-hero {
    position: relative;
    padding: 74px 0 62px;
    border-bottom: 1px solid #d9e1e9;
    background-image: url("../img/hero-hungary-real-estate.png");
    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
    overflow: hidden;
}

.search-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.96) 0%,
            rgba(255,255,255,.92) 36%,
            rgba(255,255,255,.74) 62%,
            rgba(255,255,255,.38) 100%
        ),
        linear-gradient(
            180deg,
            rgba(255,255,255,.10) 0%,
            rgba(255,255,255,.18) 55%,
            rgba(255,255,255,.72) 100%
        );
    pointer-events: none;
}

.hero-heading {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin-bottom: 30px;
}
.hero-kicker,
.section-eyebrow {
    display: block;
    color: var(--brand);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .095em;
    font-weight: 850;
}
.hero-heading h1 {
    max-width: 840px;
    margin: .55rem 0 .8rem;
    color: var(--brand-ink);
    font-size: clamp(2.55rem, 5vw, 4.45rem);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 850;
    text-wrap: balance;
}
.hero-heading p {
    max-width: 760px;
    margin: 0;
    color: #47586a;
    font-size: 1.12rem;
    line-height: 1.65;
    font-weight: 560;
}

.main-search {
    position: relative;
    z-index: 3;
}

.main-search {
    border: 1px solid #bcc9d6;
    background: #fff;
}
.transaction-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}
.transaction-tab {
    min-width: 135px;
    padding: 13px 24px;
    border: 0;
    border-right: 1px solid var(--border);
    color: #4d5b6b;
    background: #f4f6f8;
    font-weight: 800;
}
.transaction-tab.active {
    color: #fff;
    background: var(--brand);
}
.search-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.6fr .85fr .85fr auto;
    align-items: stretch;
    gap: 0;
    padding: 18px;
}
.form-block {
    padding: 0 13px;
    border-right: 1px solid var(--border);
}
.form-block:first-of-type { padding-left: 0; }
.form-block label {
    display: block;
    margin-bottom: 4px;
    color: #778292;
    font-size: .69rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .055em;
}
.form-control,
.form-select {
    min-height: 40px;
    border: 0;
    box-shadow: none !important;
    padding-inline: 0;
    color: var(--text);
    background-color: #fff;
    font-weight: 700;
}
.field-with-icon {
    display: flex;
    align-items: center;
    gap: 8px;
}
.field-with-icon i { color: var(--brand); }
.btn-search {
    min-width: 135px;
    margin-left: 15px;
    color: #fff;
    background: var(--brand);
    border: 1px solid var(--brand);
}
.btn-search:hover {
    color: #fff;
    background: var(--brand-dark);
}
.search-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 18px;
    border-top: 1px solid var(--border);
    background: #fbfcfd;
}
.search-tools a {
    padding: 12px 18px 12px 0;
    margin-right: 22px;
    color: var(--brand);
    font-size: .87rem;
    font-weight: 750;
}
.search-tools i { margin-right: 5px; }

.section {
    padding: 76px 0;
}
.section-tight {
    padding-top: 64px;
    padding-bottom: 64px;
}
.bg-light-flat { background: var(--bg-soft); }

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}
.section-title-row h2,
.feature-copy h2,
.wanted-grid h2,
.business-copy h2,
.final-cta h2 {
    margin: .35rem 0 0;
    color: var(--brand-ink);
    font-size: clamp(1.9rem, 3.5vw, 2.85rem);
    line-height: 1.08;
    letter-spacing: -.035em;
    font-weight: 850;
}
.text-link {
    color: var(--brand);
    font-weight: 800;
}
.text-link:hover { text-decoration: underline; }

.quick-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.quick-category {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    padding: 18px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
    transition: background .15s ease;
}
.quick-category:hover { background: #f5f8fb; }
.quick-category > i:first-child {
    width: 38px;
    color: var(--brand);
    font-size: 1.55rem;
}
.quick-category div { display: grid; }
.quick-category strong { color: var(--brand-ink); font-size: 1rem; }
.quick-category span { margin-top: 3px; color: var(--muted); font-size: .82rem; }
.quick-category .bi-chevron-right { color: #9aa4af; }

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.listing-item {
    border: 1px solid var(--border);
    background: #fff;
}
.listing-item:hover { border-color: #aab8c6; }
.listing-item-promoted { border-color: #d9aa47; box-shadow: inset 4px 0 0 var(--gold); }
.listing-photo {
    position: relative;
    height: 295px;
    overflow: hidden;
    background: #dce3ea;
}
.listing-photo-link { display: block; height: 100%; }
.listing-photo-link:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.listing-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-promotion-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    color: var(--brand-dark);
    background: var(--gold);
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .035em;
}
.listing-results-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
    color: var(--brand-dark);
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .055em;
}
.listing-results-section-label-organic {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}
.listing-label {
    position: absolute;
    left: 0;
    top: 0;
    padding: 7px 10px;
    color: #fff;
    background: var(--brand);
    font-size: .72rem;
    font-weight: 850;
}
.label-green { background: #198754; }
.label-gold {
    color: var(--brand-dark);
    background: var(--gold);
}
.save-button {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 1px solid #c7d0da;
    color: var(--brand);
    background: #fff;
}
.save-button.is-favorite,
[data-favorite].is-favorite { color: #b42318; }
.save-button:disabled,
[data-favorite]:disabled { cursor: wait; opacity: .65; }
.dashboard-favorites-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .dashboard-favorites-grid { grid-template-columns: minmax(0, 1fr); } }
.listing-info { padding: 18px; }
.location {
    color: var(--brand);
    font-size: .8rem;
    font-weight: 700;
}
.listing-info h3 {
    margin: 8px 0 15px;
    min-height: 2.65em;
    color: var(--brand-ink);
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 800;
}
.property-data {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    color: #617083;
    font-size: .8rem;
    font-weight: 650;
}
.price-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #e3e8ed;
}
.price-line strong { color: var(--brand-ink); }
.price-line span { color: #8994a0; font-size: .78rem; }

.split-feature {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    border: 1px solid var(--border);
}
.feature-copy {
    padding: 50px;
    background: #fff;
}
.feature-copy p {
    margin: 1rem 0;
    color: var(--muted);
    line-height: 1.7;
}
.feature-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}
.feature-list > div {
    display: flex;
    gap: 10px;
    align-items: center;
}
.feature-list i { color: var(--gold-strong); font-size: 1.15rem; }

.flat-map {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    background: #edf0e7;
}
.map-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79,101,82,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79,101,82,.12) 1px, transparent 1px);
    background-size: 45px 45px;
}
.map-toolbar {
    position: absolute;
    z-index: 5;
    left: 20px;
    top: 20px;
    display: flex;
    gap: 18px;
    padding: 11px 14px;
    border: 1px solid #c9d1d8;
    background: #fff;
    color: var(--brand-ink);
    font-weight: 800;
}
.map-road {
    position: absolute;
    height: 11px;
    border-top: 3px solid #fff;
    border-bottom: 3px solid #fff;
    background: #cfc29d;
}
.road-a { width: 95%; left: -9%; top: 52%; transform: rotate(13deg); }
.road-b { width: 78%; right: -10%; top: 30%; transform: rotate(-32deg); }
.road-c { width: 75%; left: 18%; top: 74%; transform: rotate(-22deg); }

.map-radius {
    position: absolute;
    left: 43%;
    top: 27%;
    width: 190px;
    height: 190px;
    border: 2px dashed var(--brand);
    background: rgba(7,59,120,.08);
    border-radius: 50% !important;
}
.map-pin {
    position: absolute;
    z-index: 4;
    padding: 6px 8px;
    color: #fff;
    background: var(--brand);
    border: 2px solid #fff;
    font-size: .73rem;
    font-weight: 850;
}
.pin-a { left: 18%; top: 34%; }
.pin-b { left: 50%; top: 47%; }
.pin-c { right: 14%; top: 23%; }
.pin-d { right: 22%; bottom: 18%; }

.wanted-section {
    padding: 62px 0;
    color: #fff;
    background: var(--brand-dark);
}
.section-eyebrow.light { color: #f5bd58; }
.wanted-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: end;
    gap: 50px;
}
.wanted-grid h2 { color: #fff; }
.wanted-grid p {
    max-width: 720px;
    margin: .8rem 0 0;
    color: #c3d0df;
    line-height: 1.7;
}
.wanted-actions {
    display: grid;
    gap: 13px;
    justify-items: start;
}
.simple-light-link {
    color: #fff;
    font-weight: 750;
}
.simple-light-link:hover { text-decoration: underline; }

.location-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.location-list a {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 3px 14px;
    padding: 20px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.location-list a:hover { background: #f6f8fa; }
.location-list strong { color: var(--brand-ink); }
.location-list span { color: var(--muted); font-size: .78rem; }
.location-list i {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--brand);
}

.business-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.business-copy p {
    margin: 1rem 0 1.5rem;
    color: var(--muted);
    line-height: 1.7;
}
.business-features {
    border-top: 1px solid var(--border);
}
.business-features > div {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 16px;
    padding: 19px 0;
    border-bottom: 1px solid var(--border);
}
.business-features i {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--brand);
    font-size: 1.55rem;
}
.business-features strong { color: var(--brand-ink); }
.business-features span { color: var(--muted); font-size: .85rem; }

.final-cta {
    padding: 48px 0;
    color: #fff;
    background: var(--brand);
}
.final-cta span { color: #c6d6e8; font-weight: 700; }
.final-cta h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.site-footer {
    padding: 58px 0 24px;
    color: #adbdce;
    background: #04162c;
}
.footer-logo {
    width: 210px;
    height: 60px;
    object-fit: contain;
    object-position: left center;
    background: #fff;
}
.site-footer p { max-width: 360px; margin-top: 16px; line-height: 1.65; }
.site-footer h3 {
    margin-bottom: 14px;
    color: #fff;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 800;
}
.site-footer .col-6 a {
    display: block;
    margin: 8px 0;
    font-size: .9rem;
}
.site-footer a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: .82rem;
}
.footer-privacy-links { display: flex; align-items: center; gap: 20px; }
.footer-privacy-links button {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
}
.footer-privacy-links button:hover,
.footer-privacy-links button:focus-visible { color: #fff; }

.cookie-consent-banner {
    position: fixed;
    z-index: 1080;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
    border: 1px solid #c7d0da;
    background: #fff;
    box-shadow: 0 18px 55px rgba(4, 22, 44, .22);
}
.cookie-consent-copy { max-width: 720px; }
.cookie-consent-copy h2,
.cookie-preferences h2 { margin: 3px 0 8px; color: var(--brand-ink); font-size: 1.35rem; font-weight: 850; }
.cookie-consent-copy p,
.cookie-preferences > p { margin: 0; color: var(--muted); line-height: 1.55; }
.cookie-consent-copy a { display: inline-block; margin-top: 8px; color: var(--brand); font-size: .85rem; font-weight: 750; text-decoration: underline; }
.cookie-consent-actions,
.cookie-preferences-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cookie-consent-actions { flex: 0 0 auto; }
.cookie-preferences-backdrop {
    position: fixed;
    z-index: 1090;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(4, 22, 44, .62);
}
.cookie-preferences {
    width: min(100%, 680px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 26px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 24px 75px rgba(4, 22, 44, .3);
}
.cookie-preferences-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.cookie-preferences-close { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--border); color: var(--brand); background: #fff; }
.cookie-preference-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.cookie-preference-row:first-of-type { margin-top: 18px; border-top: 1px solid var(--border); }
.cookie-preference-row strong { display: block; color: var(--brand-ink); }
.cookie-preference-row span { display: block; margin-top: 4px; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.cookie-preference-row .form-switch { flex: 0 0 auto; margin: 0; padding-left: 3rem; }
.cookie-preference-row .form-check-input { width: 2.5rem; height: 1.3rem; margin-left: -3rem; }
.cookie-preferences-actions { margin-top: 22px; }
body.cookie-preferences-open { overflow: hidden; }

@media (max-width: 767.98px) {
    .footer-privacy-links { align-items: flex-start; flex-direction: column; gap: 8px; }
    .cookie-consent-banner { right: 12px; bottom: 12px; left: 12px; align-items: stretch; flex-direction: column; gap: 18px; padding: 18px; }
    .cookie-consent-actions { display: grid; grid-template-columns: 1fr; }
    .cookie-consent-actions .btn { width: 100%; }
}

@media (max-width: 575.98px) {
    .cookie-preferences { padding: 20px 16px; }
    .cookie-preference-row { align-items: flex-start; }
    .cookie-preferences-actions { display: grid; grid-template-columns: 1fr; }
}

@media (max-width: 1199.98px) {
    .search-grid {
        grid-template-columns: 1fr 1.35fr 1fr 1fr;
    }
    .btn-search {
        grid-column: 1 / -1;
        min-height: 50px;
        margin: 14px 0 0;
    }
    .form-block:nth-of-type(4) { border-right: 0; }
}

@media (max-width: 991.98px) {
    .brand-logo { width: 170px; }
    .search-grid { grid-template-columns: 1fr 1fr; }
    .form-block {
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
    .form-block:first-of-type { padding-left: 12px; }
    .quick-category-grid,
    .location-list { grid-template-columns: repeat(2, 1fr); }
    .listing-grid { grid-template-columns: 1fr 1fr; }
    .listing-item:last-child { display: none; }
    .split-feature,
    .business-grid { grid-template-columns: 1fr; }
    .wanted-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .search-hero { padding-top: 48px; }
    .hero-heading h1 { font-size: 2.55rem; }
    .transaction-tabs { overflow-x: auto; }
    .transaction-tab { flex: 1; min-width: 115px; }
    .section { padding: 58px 0; }
    .section-title-row { align-items: flex-start; flex-direction: column; }
    .quick-category-grid,
    .location-list,
    .listing-grid { grid-template-columns: 1fr; }
    .listing-item:last-child { display: block; }
    .listing-photo { height: 250px; }
    .feature-copy { padding: 30px 24px; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 575.98px) {
    .navbar { padding: 12px 0; }
    .header-navbar-inner { flex-wrap: wrap; }
    .header-brand {
        width: 100%;
        flex: 0 0 100%;
        margin: 0 0 12px;
        padding: 0;
        text-align: center;
    }
    .brand-logo {
        display: block;
        width: 100%;
        height: auto;
        margin: 0 auto;
        object-position: center;
    }
    .header-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0 !important;
    }
    .search-grid { grid-template-columns: 1fr; padding: 10px; }
    .form-block { padding: 11px 8px; }
    .search-tools { padding: 0 10px; flex-direction: column; }
    .search-tools a { margin: 0; padding: 10px 0; }
    .price-line { flex-direction: column; }
    .flat-map { min-height: 350px; }
    .map-radius {
        left: 30%;
        top: 28%;
        transform: scale(.85);
    }
}

@media (max-width: 767.98px) {
    .search-hero {
        background-position: 63% center;
    }

    .search-hero-overlay {
        background: rgba(255,255,255,.88);
    }
}


/* ==========================================================
   IngatlanHub.eu — shared subpage design system
   Flat UI / no rounded corners
   ========================================================== */

.page-hero {
    border-bottom: 1px solid var(--border);
    background: #f6f8fa;
    padding: 38px 0;
}
.page-hero h1 {
    margin: .3rem 0 .5rem;
    color: var(--brand-ink);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 850;
    letter-spacing: -.04em;
}
.page-hero p {
    max-width: 800px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}
.breadcrumb-flat {
    margin-bottom: 10px;
    color: #758190;
    font-size: .82rem;
}
.breadcrumb-flat ol {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.breadcrumb-flat li:not(:last-child)::after { margin-left: 8px; color: #a3adb8; content: "/"; }
.breadcrumb-flat a { color: var(--brand); }

.page-layout {
    padding: 40px 0 72px;
}
.flat-panel {
    border: 1px solid var(--border);
    background: #fff;
}
.flat-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: #f7f9fb;
}
.flat-panel-header h2,
.flat-panel-header h3 {
    margin: 0;
    color: var(--brand-ink);
    font-size: 1rem;
    font-weight: 850;
}
.flat-panel-body { padding: 20px; }

.form-label {
    margin-bottom: 6px;
    color: #596675;
    font-size: .76rem;
    font-weight: 800;
}
.form-control,
.form-select {
    border: 1px solid #cbd4dd;
    min-height: 44px;
    padding: .55rem .72rem;
    background: #fff;
}
textarea.form-control { min-height: 120px; }

.form-control:focus,
.form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(7,59,120,.08) !important;
}
.form-check-input { border-radius: 0 !important; }

.filter-group {
    padding: 18px 0;
    border-bottom: 1px solid #e7ebef;
}
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-group-title {
    margin-bottom: 12px;
    color: var(--brand-ink);
    font-size: .83rem;
    font-weight: 850;
}

.badge-flat {
    display: inline-block;
    padding: 5px 8px;
    color: var(--brand);
    border: 1px solid #b9c7d6;
    background: #f4f7fa;
    font-size: .73rem;
    font-weight: 800;
}
.badge-flat.gold {
    color: #704900;
    border-color: #efc56f;
    background: #fff3d9;
}
.badge-flat.green {
    color: #126642;
    border-color: #b6dfcd;
    background: #eaf7f1;
}

.icon-square {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--brand);
    border: 1px solid #cbd6e0;
    background: #f5f8fb;
}

/* categories page */
.category-section + .category-section { margin-top: 28px; }
.category-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand);
}
.category-section-title h2 {
    margin: 0;
    color: var(--brand-ink);
    font-size: 1.2rem;
    font-weight: 850;
}
.category-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-left: 1px solid var(--border);
}
.category-link {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
    min-height: 78px;
    padding: 16px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
}
.category-link:hover { background: #f7f9fb; }
.category-link strong { color: var(--brand-ink); }
.category-link span { color: var(--muted); font-size: .78rem; }
.category-link i {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    color: var(--brand);
}

/* advanced search */
.advanced-search-layout {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 24px;
}
.search-step {
    border: 1px solid var(--border);
    background: #fff;
    margin-bottom: 18px;
}
.search-step-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
    background: #f7f9fb;
}
.step-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #fff;
    background: var(--brand);
    font-size: .82rem;
    font-weight: 850;
}
.search-step-head h2 {
    margin: 0;
    color: var(--brand-ink);
    font-size: 1rem;
    font-weight: 850;
}
.search-step-body { padding: 18px; }
.sticky-search-summary { position: sticky; top: 104px; }
.search-summary-price {
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.search-summary-list {
    padding: 0;
    margin: 0;
    list-style: none;
}
.search-summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 8px 0;
    color: var(--muted);
    font-size: .83rem;
}
.search-summary-list strong { color: var(--text); text-align: right; }

/* listing result page */
.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.results-count strong { color: var(--brand-ink); }
.view-switch { display: flex; height: 49px; border: 1px solid var(--border); }
.view-switch button {
    display: grid;
    width: 48px;
    height: 100%;
    place-items: center;
    border: 0;
    border-right: 1px solid var(--border);
    color: #667281;
    background: #fff;
    font-size: 1.15rem;
    line-height: 1;
}
.view-switch button:last-child { border-right: 0; }
.view-switch button.active { color: #fff; background: var(--brand); }

.listing-results {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}
.listing-results .listing-results-section-label {
    grid-column: 1 / -1;
    margin-bottom: -4px;
}
.listing-results .listing-item {
    min-width: 0;
    margin: 0;
}
.listing-results .listing-info { position: relative; min-width: 0; }
.listing-results .listing-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
}
.listing-results .listing-photo img { aspect-ratio: 3 / 2; }
.listing-results-list { grid-template-columns: minmax(0, 1fr); }
.listing-results-list .listing-item {
    display: grid;
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
    align-items: stretch;
}
.listing-results-list .listing-photo { align-self: start; }
.listing-results-list .listing-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 24px;
}
.listing-results-list .listing-info h3 { min-height: 0; margin-bottom: 12px; }
.listing-results-list .price-line { margin-top: auto; }
.listing-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.listing-results-grid .listing-item { display: block; }
.listing-results-grid .listing-info h3 { min-height: 2.65em; }

@media (max-width: 767.98px) {
    .results-toolbar { align-items: flex-start; flex-direction: column; }
    .listing-results-grid { grid-template-columns: minmax(0, 1fr); }
    .listing-results-list .listing-item { grid-template-columns: minmax(150px, 42%) minmax(0, 1fr); }
    .listing-results-list .listing-info { justify-content: flex-start; padding: 16px; }
}

@media (max-width: 575.98px) {
    .listing-results-list .listing-item { grid-template-columns: minmax(0, 1fr); }
}

.results-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    margin-top: 24px;
}
.results-sidebar { align-self: start; position: sticky; top: 104px; }
.result-listing {
    display: grid;
    grid-template-columns: 285px 1fr;
    min-height: 230px;
    border: 1px solid var(--border);
    background: #fff;
    margin-bottom: 16px;
}
.result-photo {
    position: relative;
    min-height: 230px;
    background: #dde4ea;
}
.result-photo img { width: 100%; height: 100%; object-fit: cover; }
.result-photo-count {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 6px 9px;
    color: #fff;
    background: rgba(4,22,44,.78);
    font-size: .72rem;
    font-weight: 800;
}
.result-content {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
}
.result-content h2 {
    margin: 6px 0 10px;
    color: var(--brand-ink);
    font-size: 1.15rem;
    font-weight: 850;
}
.result-location { color: var(--brand); font-size: .79rem; font-weight: 750; }
.result-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 4px 0 14px;
    color: #5e6c7b;
    font-size: .8rem;
}
.result-features span {
    padding-right: 12px;
    margin-right: 12px;
    border-right: 1px solid #d8dee4;
}
.result-features span:last-child { border-right: 0; }
.result-description {
    color: #657180;
    font-size: .86rem;
    line-height: 1.55;
}
.result-bottom {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 15px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e5e9ed;
}
.result-price strong {
    display: block;
    color: var(--brand-ink);
    font-size: 1.2rem;
}
.result-price small { color: #7b8794; }
.result-actions { display: flex; gap: 8px; }

/* listing detail */
.detail-head {
    padding: 26px 0 18px;
}
.detail-head-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
}
.detail-head h1 {
    margin: .35rem 0 .5rem;
    color: var(--brand-ink);
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 850;
    letter-spacing: -.035em;
}
.detail-location { color: var(--brand); font-weight: 750; }
.detail-price {
    text-align: right;
}
.detail-price strong {
    display: block;
    color: var(--brand-ink);
    font-size: 1.7rem;
}
.detail-price span { color: var(--muted); }
.detail-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
}
.share-modal-content { border: 0; border-radius: 3px; box-shadow: 0 24px 70px rgba(4, 22, 44, .2); }
.share-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}
.share-option {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 14px 7px;
    border: 1px solid var(--border);
    color: var(--brand-ink);
    background: #fff;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.share-option i { font-size: 1.55rem; }
.share-option span { overflow: hidden; max-width: 100%; font-size: .82rem; font-weight: 750; text-overflow: ellipsis; }
.share-option:hover,
.share-option:focus-visible { border-color: var(--brand); color: var(--brand-ink); background: #f5f8fb; transform: translateY(-2px); }
.share-option.facebook i { color: #1877f2; }
.share-option.x i { color: #111; }
.share-option.whatsapp i { color: #168c45; }
.share-option.email i { color: var(--brand); }
.share-link-label { color: var(--brand-ink); font-size: .84rem; font-weight: 750; }
.share-feedback { min-height: 1.3rem; margin: 8px 0 0; color: #397044; font-size: .82rem; }
.detail-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2px;
    height: 510px;
    background: #fff;
}
.gallery-main,
.gallery-secondary {
    overflow: hidden;
}
.gallery-main img,
.gallery-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-secondary-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}
.listing-gallery {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
    gap: 3px;
    height: 510px;
    overflow: hidden;
    background: #dce3ea;
}
.listing-gallery-single { grid-template-columns: minmax(0, 1fr); gap: 0; }
.gallery-feature,
.gallery-thumbnails button { position: relative; padding: 0; border: 0; overflow: hidden; background: #dce3ea; }
.gallery-feature img,
.gallery-thumbnails img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gallery-feature:hover img,
.gallery-thumbnails button:hover img { transform: scale(1.02); }
.gallery-thumbnails { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; min-width: 0; }
.gallery-thumbnails button span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(7,28,54,.65); font-size: 1.8rem; font-weight: 850; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; padding: 7px 11px; color: #fff; background: rgba(7,28,54,.82); font-weight: 750; }
.detail-gallery.is-empty { display: block; }
.detail-gallery.is-empty .gallery-main { display: grid; place-items: center; align-content: center; gap: 8px; height: 100%; color: var(--muted); }
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox { position: fixed; inset: 0; z-index: 1080; display: grid; place-items: center; padding: 52px 80px; background: rgba(2,12,25,.94); }
.gallery-lightbox > img { max-width: 100%; max-height: calc(100vh - 104px); object-fit: contain; }
.gallery-lightbox-close,
.gallery-lightbox-nav { position: absolute; z-index: 1; display: grid; place-items: center; border: 0; color: #fff; background: rgba(255,255,255,.12); }
.gallery-lightbox-close { top: 18px; right: 18px; width: 44px; height: 44px; }
.gallery-lightbox-nav { top: 50%; width: 50px; height: 70px; transform: translateY(-50%); font-size: 1.5rem; }
.gallery-lightbox-nav.previous { left: 18px; }
.gallery-lightbox-nav.next { right: 18px; }
.gallery-lightbox [data-gallery-position] { position: absolute; bottom: 18px; color: #fff; font-weight: 750; }
body.gallery-open { overflow: hidden; }
.detail-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding-top: 28px;
}
.detail-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.summary-cell {
    min-height: 90px;
    padding: 15px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.summary-cell span { display: block; color: var(--muted); font-size: .73rem; }
.summary-cell strong { display: block; margin-top: 5px; color: var(--brand-ink); }
.detail-section {
    margin-top: 28px;
}
.detail-section h2 {
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--brand);
    color: var(--brand-ink);
    font-size: 1.2rem;
    font-weight: 850;
}
.parameter-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.parameter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 12px 14px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: .83rem;
}
.parameter-row span { color: var(--muted); }
.parameter-row strong { text-align: right; color: var(--text); }
.contact-box { position: sticky; top: 104px; }
.contact-person { color: var(--muted); font-size: .82rem; }
.contact-direct-actions { display: grid; gap: 9px; margin-bottom: 20px; }
.contact-direct-action {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    color: var(--brand-ink);
    background: #f8fafb;
    text-decoration: none;
}
.contact-direct-action:hover,
.contact-direct-action:focus-visible { border-color: var(--brand); color: var(--brand-ink); background: #f1f5f8; }
.contact-direct-action.preferred { border-left: 4px solid var(--gold); }
.contact-direct-action > i { flex: 0 0 auto; color: var(--brand); font-size: 1.25rem; }
.contact-direct-action span { min-width: 0; }
.contact-direct-action small { display: block; color: var(--muted); font-size: .7rem; }
.contact-direct-action strong { display: block; overflow: hidden; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.contact-form-heading { padding-top: 18px; margin-top: 4px; border-top: 1px solid var(--border); }
.contact-form-heading h3 { margin: 0 0 4px; color: var(--brand-ink); font-size: 1rem; font-weight: 800; }
.contact-form-heading p { margin-bottom: 14px; color: var(--muted); font-size: .78rem; }
.contact-form .form-label { margin: 10px 0 5px; color: var(--brand-ink); font-size: .78rem; font-weight: 750; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-consent { margin: 14px 0; color: var(--muted); font-size: .73rem; line-height: 1.45; }
.contact-own-notice { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.agent-card {
    display: flex;
    gap: 13px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.agent-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    background: #e8eef4;
    color: var(--brand);
    font-size: 1.7rem;
}
.agent-card strong { display: block; color: var(--brand-ink); }
.agent-card span { color: var(--muted); font-size: .78rem; }

/* static content */
.static-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 34px;
}
.static-nav {
    position: sticky;
    top: 104px;
    align-self: start;
    border: 1px solid var(--border);
}
.static-nav a {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: #4c5b6b;
    font-size: .86rem;
    font-weight: 700;
}
.static-nav a:last-child { border-bottom: 0; }
.static-nav a.active {
    color: #fff;
    background: var(--brand);
}
.article-content {
    max-width: 860px;
}
.article-content h2 {
    margin: 32px 0 12px;
    color: var(--brand-ink);
    font-size: 1.45rem;
    font-weight: 850;
}
.article-content h3 {
    margin: 24px 0 10px;
    color: var(--brand-ink);
    font-size: 1.08rem;
    font-weight: 800;
}
.article-content p,
.article-content li {
    color: #536171;
    line-height: 1.75;
}
.article-content ul { padding-left: 20px; }
.article-content ol { padding-left: 22px; }
.article-content a { text-decoration: underline; text-underline-offset: 2px; }
.legal-version {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: .84rem;
}
.legal-draft-alert {
    margin-bottom: 24px;
    padding: 16px 18px;
    border: 1px solid #e8b95d;
    border-left: 4px solid #bd7912;
    background: #fff8e8;
    color: #6b4814;
    line-height: 1.55;
}
.legal-data-list {
    display: grid;
    grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
    margin: 18px 0 28px;
    border: 1px solid var(--border);
}
.legal-data-list dt,
.legal-data-list dd {
    margin: 0;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.legal-data-list dt { background: #f6f8fa; color: var(--brand-ink); font-weight: 750; }
.legal-data-list dd { overflow-wrap: anywhere; color: #536171; }
.legal-data-list dt:last-of-type,
.legal-data-list dd:last-of-type { border-bottom: 0; }

@media (max-width: 600px) {
    .legal-data-list { grid-template-columns: 1fr; }
    .legal-data-list dt { border-bottom: 0; }
}

/* login */
.auth-section {
    min-height: calc(100vh - 115px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-visual {
    position: relative;
    min-height: 640px;
    background-image:
        linear-gradient(rgba(5,43,89,.58), rgba(5,43,89,.68)),
        url("../img/hero-hungary-real-estate.png");
    background-size: cover;
    background-position: center;
}
.auth-visual-content {
    position: absolute;
    left: 9%;
    right: 9%;
    bottom: 10%;
    color: #fff;
}
.auth-visual-content h1 {
    max-width: 620px;
    font-size: clamp(2.2rem,4vw,4rem);
    font-weight: 850;
    letter-spacing: -.04em;
}
.auth-visual-content p { max-width: 560px; color: #e0eaf4; line-height: 1.7; }
.auth-form-wrap {
    display: grid;
    place-items: center;
    padding: 50px;
    background: #fff;
}
.auth-form {
    width: min(100%, 440px);
}
.auth-logo {
    width: 225px;
    height: 72px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 28px;
}
.auth-form h2 { color: var(--brand-ink); font-weight: 850; }
.auth-intro { margin-bottom: 22px; color: var(--muted); line-height: 1.65; }
.auth-alert { display: flex; align-items: flex-start; gap: 10px; border-radius: 0; font-size: .9rem; }
.auth-alert > i { flex: 0 0 auto; margin-top: 1px; font-size: 1.05rem; }
.auth-form-options { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-secondary-action { margin: 22px 0 0; color: var(--muted); font-size: .9rem; }
.auth-terms { padding-left: 1.75rem; color: #536171; line-height: 1.5; }
.auth-form .form-text { color: #6c7885; font-size: .78rem; line-height: 1.45; }
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #8b96a2;
    font-size: .8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

/* user dashboard */
.dashboard-shell {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: calc(100vh - 115px);
}
.dashboard-sidebar {
    border-right: 1px solid var(--border);
    background: #f4f6f8;
}
.dashboard-user-head {
    padding: 22px 18px;
    border-bottom: 1px solid var(--border);
}
.dashboard-user-head strong { color: var(--brand-ink); display: block; }
.dashboard-user-head span { color: var(--muted); font-size: .78rem; }
.dashboard-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 17px;
    border-bottom: 1px solid #e0e5ea;
    color: #405062;
    font-size: .88rem;
    font-weight: 700;
}
.dashboard-menu a i { width: 20px; color: var(--brand); }
.dashboard-menu a.active {
    color: #fff;
    background: var(--brand);
}
.dashboard-menu a.active i { color: #fff; }
.dashboard-logout-form { margin: 18px; }
.dashboard-logout-form button { width: 100%; }
.profile-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.profile-tabs a { white-space: nowrap; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; color: var(--brand-ink); text-decoration: none; background: #fff; }
.profile-tabs a:hover, .profile-tabs a:focus-visible { border-color: var(--brand); color: var(--brand); }
.profile-section { scroll-margin-top: 24px; }
.profile-avatar-editor { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.profile-avatar-preview { display: grid; place-items: center; flex: 0 0 112px; width: 112px; height: 112px; overflow: hidden; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-soft); color: var(--muted); font-size: 2.5rem; }
.profile-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.notification-preferences { display: grid; gap: 0; }
.notification-preference { border: 0; border-bottom: 1px solid var(--border); padding: 16px 0; margin: 0; }
.notification-preference:first-child { padding-top: 0; }
.notification-preference:last-child { border-bottom: 0; padding-bottom: 0; }
.notification-preference legend { float: none; width: auto; margin: 0 0 4px; font-size: 1rem; font-weight: 700; color: var(--brand-ink); }
.notification-preference p { color: var(--muted); margin: 0 0 10px; }
.profile-coming { display: flex; align-items: flex-start; gap: 14px; }
.profile-coming > i { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); color: var(--brand); font-size: 1.25rem; }
.dashboard-main { padding: 34px; background: #fff; }
.dashboard-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}
.dashboard-title-row h1 {
    margin: 0;
    color: var(--brand-ink);
    font-size: 2rem;
    font-weight: 850;
}
.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    margin-bottom: 26px;
}
.kpi {
    padding: 18px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.kpi span { color: var(--muted); font-size: .76rem; }
.kpi strong { display: block; margin-top: 5px; color: var(--brand); font-size: 1.7rem; }
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}
.dashboard-table th {
    padding: 11px 12px;
    border: 1px solid var(--border);
    color: #5d6977;
    background: #f6f8fa;
    font-size: .73rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.dashboard-table td {
    padding: 12px;
    border: 1px solid var(--border);
    vertical-align: middle;
    font-size: .84rem;
}
.table-listing {
    display: flex;
    align-items: center;
    gap: 11px;
}
.table-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
}

/* add listing wizard */
.wizard-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
}
.wizard-sidebar {
    border: 1px solid var(--border);
    align-self: start;
    position: sticky;
    top: 104px;
}
.wizard-step-link {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    padding: 13px;
    border-bottom: 1px solid var(--border);
}
.wizard-step-link:last-child { border-bottom: 0; }
.wizard-step-number {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid #aebbc8;
    color: #73808d;
    font-size: .76rem;
    font-weight: 850;
}
.wizard-step-link strong { color: #506071; font-size: .82rem; }
.wizard-step-link.active {
    background: #f1f6fb;
    border-left: 4px solid var(--brand);
}
.wizard-step-link.active .wizard-step-number {
    color: #fff;
    border-color: var(--brand);
    background: var(--brand);
}
.wizard-step-link.active strong { color: var(--brand-ink); }
.wizard-section {
    border: 1px solid var(--border);
    margin-bottom: 20px;
}
.wizard-section-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    background: #f7f9fb;
}
.wizard-section-head h2 {
    margin: 0;
    color: var(--brand-ink);
    font-size: 1.05rem;
    font-weight: 850;
}
.wizard-section-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .8rem;
}
.wizard-section-body { padding: 20px; }

.media-dropzone { display: grid; justify-items: center; gap: 6px; padding: 32px 18px; border: 2px dashed #aebbc8; color: var(--muted); background: #f8fafb; text-align: center; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.media-dropzone:hover,
.media-dropzone:focus,
.media-dropzone.is-dragging { outline: 0; border-color: var(--brand); background: #eef5fb; }
.media-dropzone > i { color: var(--brand); font-size: 2.2rem; }
.media-dropzone strong { color: var(--brand-ink); font-size: 1rem; }
.media-dropzone span,
.media-dropzone small { display: block; }
.media-manager-status { min-height: 25px; padding: 10px 0 4px; color: var(--muted); font-size: .85rem; }
.media-manager-status.is-error { color: #b02a37; }
.media-manager-status.is-success { color: #146c43; }
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.media-empty { grid-column: 1 / -1; margin: 0; padding: 24px; border: 1px solid var(--border); color: var(--muted); text-align: center; }
.media-tile { position: relative; min-width: 0; border: 2px solid transparent; background: #eef2f5; cursor: grab; }
.media-tile.is-cover { border-color: var(--gold-strong); }
.media-tile > img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.media-cover-badge { position: absolute; top: 7px; left: 7px; padding: 4px 7px; color: var(--brand-dark); background: var(--gold); font-size: .68rem; font-weight: 850; }
.media-tile-actions { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); background: #fff; }
.media-action { min-height: 34px; border: 0; border-right: 1px solid var(--border); color: var(--brand); background: #fff; }
.media-action:last-child { border-right: 0; color: #a52834; }
.media-action:hover:not(:disabled) { color: #fff; background: var(--brand); }
.media-action:disabled { color: #aab3bd; cursor: not-allowed; }
.media-manager-help { margin: 12px 0 0; color: var(--muted); font-size: .8rem; }

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}
.choice-card {
    display: block;
    min-height: 92px;
    padding: 16px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    background: #fff;
}
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card strong { display: block; color: var(--brand-ink); }
.choice-card span { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }
.choice-card:has(input:checked) {
    box-shadow: inset 0 0 0 3px var(--brand);
    background: #f4f8fc;
}
.range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}
.range-inputs .form-control { min-width: 0; }
.range-inputs > span { flex: 0 0 auto; color: var(--muted); }
.dynamic-attribute {
    transition: opacity .15s ease;
}
.dynamic-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    padding: 10px 12px;
    border: 1px solid var(--border);
}
.contact-options {
    display: grid;
    gap: 8px;
}
.preview-description {
    white-space: pre-line;
    line-height: 1.7;
}
.preview-attributes {
    display: grid;
    grid-template-columns: minmax(140px, .8fr) 1.5fr;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}
.preview-attributes dt,
.preview-attributes dd {
    margin: 0;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
}
.preview-attributes dt { color: var(--muted); font-weight: 650; }
.upload-area {
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 25px;
    border: 2px dashed #b6c2ce;
    text-align: center;
    color: var(--muted);
    background: #fafbfc;
}
.upload-area i { color: var(--brand); font-size: 2rem; margin-bottom: 8px; }
.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0 0;
}
.help-note {
    padding: 14px;
    border-left: 4px solid var(--gold);
    background: #fff8e8;
    color: #66522f;
    font-size: .83rem;
    line-height: 1.55;
}

/* shared map placeholder */
.map-placeholder {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #edf1e9;
}
.map-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(68,100,72,.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(68,100,72,.10) 1px, transparent 1px);
    background-size: 38px 38px;
}
.fake-road {
    position: absolute;
    height: 10px;
    border-top: 3px solid white;
    border-bottom: 3px solid white;
    background: #ccbfa2;
}
.fake-road.r1 { width: 85%; left: -5%; top: 42%; transform: rotate(12deg); }
.fake-road.r2 { width: 70%; right: -10%; top: 66%; transform: rotate(-31deg); }
.fake-road.r3 { width: 62%; left: 28%; top: 22%; transform: rotate(-45deg); }
.fake-marker {
    position: absolute;
    z-index: 3;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--brand);
    border: 3px solid #fff;
}
.fake-marker.m1 { left: 44%; top: 46%; }
.fake-marker.m2 { left: 62%; top: 29%; }
.fake-marker.m3 { left: 25%; top: 61%; }

/* responsive */
@media (max-width: 991.98px) {
    .category-list-grid { grid-template-columns: repeat(2, 1fr); }
    .advanced-search-layout,
    .results-layout,
    .detail-body-grid,
    .static-layout,
    .wizard-layout {
        grid-template-columns: 1fr;
    }
    .results-sidebar,
    .contact-box,
    .static-nav,
    .wizard-sidebar,
    .sticky-search-summary {
        position: static;
    }
    .detail-gallery { height: 420px; }
    .detail-summary { grid-template-columns: repeat(2, 1fr); }
    .parameter-table { grid-template-columns: 1fr; }
    .dashboard-shell { grid-template-columns: 1fr; }
    .dashboard-sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
    .dashboard-menu { display: flex; overflow-x: auto; }
    .dashboard-menu a { white-space: nowrap; border-right: 1px solid #e0e5ea; }
    .dashboard-kpis { grid-template-columns: repeat(2, 1fr); }
    .auth-section { grid-template-columns: 1fr; }
    .auth-visual { min-height: 360px; }
}

@media (max-width: 767.98px) {
    .category-list-grid { grid-template-columns: 1fr; }
    .result-listing { grid-template-columns: 1fr; }
    .result-photo { min-height: 235px; }
    .detail-head-grid { grid-template-columns: 1fr; }
    .detail-price { text-align: left; }
    .detail-actions { justify-content: flex-start; }
    .share-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-gallery { grid-template-columns: 1fr; height: 360px; }
    .listing-gallery { grid-template-columns: 1fr; height: 360px; }
    .gallery-thumbnails { display: none; }
    .gallery-lightbox { padding: 60px 10px; }
    .gallery-lightbox-nav { width: 42px; height: 58px; }
    .gallery-lightbox-nav.previous { left: 6px; }
    .gallery-lightbox-nav.next { right: 6px; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wizard-footer { align-items: stretch; flex-direction: column; }
    .wizard-footer .btn { width: 100%; }
    .range-inputs { flex-wrap: wrap; }
    .range-inputs .form-control { flex: 1 1 120px; }
    .dynamic-check-grid,
    .preview-attributes { grid-template-columns: 1fr; }
    .preview-attributes dt { padding-bottom: 0; border-bottom: 0; }
    .gallery-secondary-grid { display: none; }
    .choice-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-main { padding: 22px 14px; }
    .dashboard-title-row { align-items: flex-start; flex-direction: column; }
    .dashboard-table-wrapper { overflow-x: auto; }
    .dashboard-table { min-width: 800px; }
}

@media (max-width: 575.98px) {
    .detail-summary,
    .dashboard-kpis,
    .choice-grid { grid-template-columns: 1fr; }
    .auth-form-wrap { padding: 30px 18px; }
    .auth-form-options { align-items: flex-start; flex-direction: column; }
    .page-layout { padding-top: 25px; }
}
