:root {
    --header-bg: #ffffff;
    --sale: #dc2626;
    --rent: #16a34a;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg: #ffffff;
    --white: #ffffff;
    --radius: 0;
    --shadow: 0 1px 3px rgba(15, 23, 42, .06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
    --header-h: 72px;
    --font: 'Figtree', 'Segoe UI', system-ui, sans-serif;
    --transition: .18s cubic-bezier(.4,0,.2,1);
    --panel-w: 1fr;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

body.page-halfmap {
    overflow: hidden;
    height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

body.page-halfmap .site-top-banner {
    flex: 0 0 auto;
}

body.page-halfmap .piyasa-header {
    flex: 0 0 auto;
    position: relative; /* halfmap’te sticky yerine flex yerleşimi */
}

body.page-halfmap .piyasa-main--halfmap {
    flex: 1 1 auto;
    min-height: 0;
}

/* Header — beyaz bar, teal vurgu */
.piyasa-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 80;
    height: var(--header-h);
}

.piyasa-header__inner {
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.piyasa-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 16px;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -.02em;
    text-transform: none;
    flex-shrink: 0;
}

.piyasa-logo__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), .3);
}

.piyasa-logo__mark svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
}

.piyasa-logo__img {
    max-height: 40px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.piyasa-logo--image {
    gap: 0;
}

.piyasa-logo:hover { color: var(--primary); }

.piyasa-logo__name {
    max-width: 220px;
    line-height: 1.15;
}

.piyasa-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: flex-end;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.piyasa-nav--types {
    gap: 6px;
}

.piyasa-nav__type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all var(--transition);
}

.piyasa-nav__type-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    color: inherit;
}
.piyasa-nav__type-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.piyasa-nav__type.is-active,
.piyasa-nav__type:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), .22);
}

.piyasa-admin-link {
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    flex-shrink: 0;
}

.piyasa-admin-link:hover {
    background: var(--bg);
    color: var(--text);
}

/* Main */
.piyasa-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 20px;
}

body.page-bc-detail .piyasa-main {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 24px 40px;
}

@media (max-width: 720px) {
    body.page-bc-detail .piyasa-main {
        padding: 16px 16px 32px;
    }
}

.piyasa-main--halfmap {
    max-width: none;
    margin: 0;
    padding: 0;
    height: auto; /* flex parent (body.page-halfmap) doldurur */
}

/* Half map layout */
.halfmap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    min-height: 0;
}

.halfmap__panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-right: 1px solid var(--border);
    background: var(--white);
}

.halfmap__panel-head {
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: #fff;
    max-height: 52vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.halfmap__title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.halfmap__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.halfmap__count {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
}

.halfmap__lead {
    margin: 4px 0 12px;
    font-size: 13px;
    color: var(--muted);
}

/* Tip ikon şeridi — Zuhaus çizgi ikonlar */
.type-strip {
    display: flex;
    gap: 4px;
    margin: 8px 0 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    justify-content: space-between;
}

.type-strip__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 64px;
    padding: 10px 4px;
    border-radius: 0;
    border: 0;
    background: transparent;
    text-decoration: none;
    color: #999;
    transition: color var(--transition);
}

.type-strip__item:hover,
.type-strip__item.is-active {
    border-color: transparent;
    background: transparent;
    color: var(--text);
    box-shadow: none;
}

.type-strip__item.is-active {
    color: var(--text);
}

.type-strip__item.is-active .type-strip__icon,
.type-strip__item:hover .type-strip__icon {
    color: var(--accent);
}

.type-strip__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.type-strip__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.type-strip__label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
    letter-spacing: .01em;
    text-transform: none;
}

.filter-quick__label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
}

.filter-quick {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-quick__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.filter-field input {
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: #fff;
}

.filter-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2);
}

.filter-features {
    margin-top: 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.filter-features.is-open {
    display: block;
}

.filter-features__title {
    margin: 8px 0 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}

.filter-features__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px 10px;
    padding: 0;
    max-height: 140px;
    overflow-y: auto;
}

.filter-features__item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}

.filter-features__item input {
    margin-top: 2px;
    accent-color: var(--accent);
}

.filter-actions {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 10px;
    margin-top: 12px;
}

.btn-filter {
    min-height: 48px;
    border: 0;
    border-radius: 0;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
}

.btn-filter:hover { background: var(--primary-dark); }

.btn-reset {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
    border-radius: 0;
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}

.btn-reset:hover { background: var(--primary-light); }

.halfmap__result-bar {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.halfmap__select,
.filter-field input,
.halfmap__search {
    border-radius: 0;
}

.halfmap__kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.halfmap__kpi {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
}

.halfmap__kpi-label {
    display: block;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 2px;
}

.halfmap__kpi strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
}

.halfmap__kpi--sale strong { color: var(--sale); }
.halfmap__kpi--rent strong { color: var(--rent); }

.halfmap__filters { display: flex; flex-direction: column; gap: 8px; }

.halfmap__search {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 12px;
    font: inherit;
    font-size: 13px;
    background: #fff;
}

.halfmap__search:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2);
}

.halfmap__filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.halfmap__select {
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    color: var(--text);
}

.halfmap__cards {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 20px;
    background: #fff;
    overscroll-behavior: contain;
}

.halfmap__cards--grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 14px;
    align-content: start;
}

.halfmap__empty {
    text-align: center;
    padding: 48px 16px;
    color: var(--muted);
    font-weight: 650;
    font-size: 13px;
    grid-column: 1 / -1;
}

.hm-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 0;
    margin-bottom: 10px;
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.hm-card--grid {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    min-width: 0;
    border: 0;
    overflow: visible;
    background: transparent;
}

.hm-card--grid:hover {
    border-color: transparent;
    box-shadow: none;
}

.hm-card--grid.is-active {
    border-color: transparent;
    box-shadow: none;
    outline: 3px solid var(--primary);
    outline-offset: 6px;
    border-radius: 10px;
}

.hm-card--grid.is-active .hm-card__media {
    box-shadow: 0 0 0 2px #fff, 0 8px 20px rgba(var(--primary-rgb), .35);
}

.hm-card--grid.is-active .hm-card__title {
    color: var(--primary);
}

.hm-card:hover,
.hm-card.is-active {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
    box-shadow: var(--shadow-md);
}

.hm-card.is-active {
    outline: 2px solid rgba(var(--primary-rgb), .35);
}

.hm-card__media {
    position: relative;
    display: block;
    background: #e5e7eb;
    min-height: 120px;
}

.hm-card--grid .hm-card__media {
    min-height: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.hm-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
    transition: transform .35s ease;
}

.hm-card--grid:hover .hm-card__media img {
    transform: scale(1.04);
}

.hm-card__ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .02em;
    background: #f0f0f0;
    color: #888;
}

.hm-card__badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
    padding: 5px 10px;
    border-radius: 2px;
    background: rgba(34, 34, 34, .82);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
}

.hm-card__badge--type {
    background: rgba(34, 34, 34, .82);
    color: #fff;
}

.hm-card__price {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 1;
    padding: 6px 11px;
    border-radius: 3px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.hm-card--grid .hm-card__body {
    padding: 12px 2px 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hm-card__body {
    padding: 10px 12px 12px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hm-card--grid .hm-card__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.hm-card__title {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-card__title:hover { color: #111; }

.hm-card--grid .hm-card__loc {
    margin: 0 0 6px;
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-card__loc {
    margin: 0 0 8px;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-card__specs {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #777;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-card__specs::before {
    content: '';
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E");
}

.hm-card__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.hm-card__meta-row span {
    padding: 2px 6px;
    border-radius: 6px;
    background: #f3f4f6;
}

.hm-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

.hm-card__stat {
    padding: 6px 8px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--border);
}

.hm-card__stat span {
    display: block;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
}

.hm-card__stat strong {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-top: 1px;
}

.hm-card__stat strong small {
    font-size: 10px;
    font-weight: 650;
    color: var(--muted);
}

.hm-card__stat em {
    display: block;
    font-style: normal;
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
}

.hm-card__stat--sale strong { color: var(--sale); }
.hm-card__stat--rent strong { color: var(--rent); }

.hm-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.hm-card__map-btn {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    padding: 5px 8px;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

.hm-card__map-btn:hover {
    border-color: var(--accent);
    background: var(--primary-light);
}

.hm-card__link {
    font-size: 12px;
    font-weight: 750;
    color: var(--primary);
    text-decoration: none;
}

.halfmap__map-wrap {
    position: relative;
    min-height: 0;
    background: #e2e8f0;
}

.halfmap__map {
    width: 100%;
    height: 100%;
}

.halfmap__zoom {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: auto;
}

.halfmap__zoom-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    transition: background .15s, transform .12s, border-color .15s;
}

.halfmap__zoom-btn:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
}

.halfmap__zoom-btn:active {
    transform: scale(0.96);
    background: var(--primary-light);
}

.halfmap__zoom-btn--fit {
    font-size: 16px;
    margin-top: 2px;
}

.halfmap__map-legend {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: flex;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    color: var(--text);
    box-shadow: var(--shadow);
    pointer-events: none;
    z-index: 15;
    max-width: calc(100% - 72px);
    flex-wrap: wrap;
}

.halfmap__map-legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.halfmap__map-legend i.is-sale { background: var(--sale); }
.halfmap__map-legend i.is-rent { background: var(--rent); }

/* Görselli harita pini — Zuhaus sarı ev pin */
.hm-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    z-index: 1;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .28));
    transition: transform .15s ease, z-index 0s;
}

.hm-pin:hover,
.hm-pin.is-active {
    z-index: 5;
    transform: translate(-50%, -100%) scale(1.1);
}

.hm-pin__photo {
    display: flex;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent);
    background: var(--primary-light);
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.hm-pin__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hm-pin__ph {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    background: var(--accent);
}

.hm-pin__tip {
    display: block;
    width: 0;
    height: 0;
    margin: -2px auto 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 11px solid var(--accent);
    filter: none;
}

.hm-pin.is-active .hm-pin__photo {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .35);
}

.hm-pin.is-active .hm-pin__tip {
    border-top-color: var(--primary-dark);
}

/* Harita alt-orta kart */
.hm-float-card {
    position: absolute;
    left: 50%;
    bottom: 20px;
    top: auto;
    transform: translateX(-50%);
    z-index: 20;
    width: min(340px, calc(100% - 28px));
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
    font-family: var(--font);
    animation: hmFloatIn .18s ease;
}

@keyframes hmFloatIn {
    from { opacity: 0; transform: translateX(-50%) translateY(10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.hm-float-card[hidden] { display: none !important; }

.hm-float-card__close {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: rgba(15, 23, 42, .55);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.hm-float-card__media {
    display: block;
    position: relative;
    min-height: 110px;
    background: #e2e8f0;
}

.hm-float-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.hm-float-card__ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
}

.hm-float-card__body {
    padding: 12px 14px 12px 12px;
    min-width: 0;
}

.hm-float-card__eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--primary);
    margin-bottom: 2px;
}

.hm-float-card__title {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-float-card__title:hover { color: var(--primary); }

.hm-float-card__loc {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hm-float-card__stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    font-weight: 750;
    margin-bottom: 4px;
}

.hm-float-card__stats .is-sale { color: var(--sale); }
.hm-float-card__stats .is-rent { color: var(--rent); }

.hm-float-card__meta {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
}

.hm-float-card__link {
    font-size: 12px;
    font-weight: 750;
    color: var(--primary);
    text-decoration: none;
}

.hm-card__no-coord {
    font-size: 11px;
    font-weight: 650;
    color: var(--muted);
}

.hm-card--no-map {
    opacity: 0.92;
}

@media (max-width: 960px) {
    /* Tek sayfa kaydırması — sticky harita + nested overflow kaydırmayı kilitliyordu */
    html, body.page-halfmap {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100%;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: auto;
    }
    body.page-halfmap {
        position: relative;
    }
    .piyasa-header {
        position: sticky;
        top: 0;
    }
    .piyasa-main--halfmap {
        height: auto;
        min-height: 0;
        overflow: visible;
    }
    .halfmap {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        height: auto;
        min-height: 0;
        overflow: visible;
    }
    .halfmap__map-wrap {
        order: -1;
        position: relative;
        height: 42vh;
        min-height: 240px;
        max-height: 360px;
        flex: 0 0 auto;
        z-index: 1;
        /* Harita alanı sayfa scroll'unu çalmasın */
        touch-action: pan-x pan-y;
    }
    .halfmap__map {
        touch-action: pan-x pan-y;
    }
    .halfmap__panel {
        border-right: 0;
        display: block;
        overflow: visible;
        min-height: 0;
        flex: 1 1 auto;
    }
    .halfmap__panel-head {
        position: relative;
    }
    .halfmap__cards {
        flex: none;
        overflow: visible;
        max-height: none;
        overscroll-behavior: auto;
        padding-bottom: 32px;
    }
    .halfmap__cards--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .halfmap__panel-head {
        max-height: none;
        overflow: visible;
    }
    .halfmap__zoom {
        top: auto;
        bottom: 56px;
        right: 10px;
        transform: none;
    }
    .halfmap__zoom-btn {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 24px;
    }
    .hm-float-card {
        bottom: 12px;
        width: min(320px, calc(100% - 20px));
    }
    .halfmap__map-legend {
        bottom: 10px;
        left: 10px;
        font-size: 10px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .halfmap__map-wrap {
        height: 38vh;
        min-height: 220px;
        max-height: 300px;
    }
    .halfmap__zoom {
        bottom: 50px;
        gap: 8px;
    }
    .halfmap__zoom-btn {
        width: 46px;
        height: 46px;
    }
    .halfmap__cards--grid {
        grid-template-columns: 1fr;
    }
    .filter-features__grid {
        grid-template-columns: 1fr;
    }
}

/* Detail page helpers */
.bc-site-back {
    margin: 20px 0 0;
    font-size: 13px;
}

.bc-site-back a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.bc-site-back a:hover { text-decoration: underline; }

/* Public price analysis */
.bc-price-analysis {
    margin-top: 4px;
}

.bc-price-analysis__summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

@media (max-width: 800px) {
    .bc-price-analysis__summary { grid-template-columns: repeat(2, 1fr); }
}

.bc-price-analysis__item {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #f8fafc;
}

.bc-price-analysis__item span {
    display: block;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--muted);
    margin-bottom: 4px;
}

.bc-price-analysis__item strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.bc-price-analysis__item--sale strong { color: var(--sale); }
.bc-price-analysis__item--rent strong { color: var(--rent); }

.bc-price-table-wrap { overflow-x: auto; }

.bc-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bc-price-table th,
.bc-price-table td {
    padding: 9px 11px;
    border-bottom: 1px solid var(--border);
    text-align: right;
    white-space: nowrap;
}

.bc-price-table th:first-child,
.bc-price-table td:first-child {
    text-align: left;
    font-weight: 750;
}

.bc-price-table thead th {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.bc-price-table th.is-sale-count { background: #dc2626; color: #fff; }
.bc-price-table th.is-sale-m2 { background: #86efac; color: #14532d; }
.bc-price-table th.is-rent-count { background: #b91c1c; color: #fff; }
.bc-price-table th.is-rent-m2 { background: #22c55e; color: #052e16; }

.bc-price-table td.is-muted { color: var(--muted); }

.bc-price-disclaimer {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.piyasa-footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
    background: var(--white);
}

.piyasa-footer__social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.piyasa-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--c-primary-l, #f0fdfa);
    color: var(--c-primary, #0f766e);
    transition: background .15s ease, color .15s ease;
}

.piyasa-footer__social-link:hover {
    background: var(--c-primary, #0f766e);
    color: #fff;
}

/* ─── Yukarı çık ─────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), .35);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .2s, transform .2s, background .15s;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover { background: var(--primary-dark); }

.back-to-top__icon {
    font-size: 16px;
    line-height: 1;
    font-weight: 800;
}

@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        padding: 12px 14px;
    }
    .back-to-top__text { display: none; }
}

/* ── Zuhaus filter layout overrides ── */
.halfmap__panel-head {
    padding: 14px 16px 10px;
    max-height: 46vh;
}

.zh-filters { display: flex; flex-direction: column; gap: 12px; }

.zh-filters__loc-search {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 12px;
    align-items: end;
}

.zh-search--hero {
    min-height: 48px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid rgba(var(--primary-rgb), .22);
    background: #f8fffe;
}
.zh-search--hero:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .18);
}

.btn-detail-filter {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1.5px solid rgba(var(--primary-rgb), .35);
    background: #fff;
    color: var(--primary);
    font: inherit;
    font-weight: 750;
    font-size: 13px;
    cursor: pointer;
}
.btn-detail-filter:hover { background: var(--primary-light); }

.feature-modal[hidden] { display: none !important; }
.feature-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 20px;
}
.feature-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
}
.feature-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(82vh, 780px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .2);
    overflow: hidden;
}
.feature-modal__head,
.feature-modal__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.feature-modal__foot {
    border-bottom: 0;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}
.feature-modal__head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
}
.feature-modal__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f1f5f9;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #334155;
}
.feature-modal__body {
    padding: 16px 18px;
    overflow-y: auto;
}
.feature-modal__group { margin-bottom: 18px; }
.feature-modal__group-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
}
.feature-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.feature-modal__empty {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.zh-filters__top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.zh-filters .type-strip {
    flex: 1;
    margin: 0;
    justify-content: flex-start;
    gap: 6px;
}
.zh-filters .type-strip__item {
    cursor: pointer;
    font: inherit;
    flex: 0 0 auto;
    min-width: 68px;
    max-width: 96px;
    padding: 6px 8px;
    gap: 5px;
}

.zh-filters__mid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.zh-filters__bottom {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.zh-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
}

.zh-select { position: relative; display: block; }
.zh-select--type { flex: 0 0 160px; }

.zh-select__icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #aaa;
    pointer-events: none;
    z-index: 1;
}

.zh-select__native,
.zh-search,
.zh-minmax input,
.zh-stepper input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #e8e8e8;
    border-radius: 0;
    background: #fff;
    font: inherit;
    font-size: 13px;
    color: var(--text);
    padding: 0 10px;
}

.zh-select--type .zh-select__native,
.zh-col--loc .zh-select:first-child .zh-select__native { padding-left: 28px; }

.zh-loc-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.zh-minmax { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zh-minmax--area { margin-top: 8px; }
.zh-minmax--area > .zh-label { grid-column: 1 / -1; margin-bottom: 4px; }

.zh-price__text {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    margin-bottom: 8px;
}
.zh-price__text small { font-weight: 500; color: #999; margin-left: 4px; }

.zh-price__sliders { position: relative; height: 26px; }
.zh-price__sliders input[type="range"] {
    position: absolute;
    left: 0;
    width: 100%;
    top: 4px;
    margin: 0;
    pointer-events: none;
    appearance: none;
    background: transparent;
    height: 16px;
}
.zh-price__sliders input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: #eee;
    border-radius: 2px;
}
.zh-price__sliders input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    margin-top: -7px;
    pointer-events: auto;
    cursor: pointer;
}
.zh-price__sliders input[type="range"]::-moz-range-track {
    height: 4px;
    background: #eee;
    border-radius: 2px;
}
.zh-price__sliders input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    pointer-events: auto;
    cursor: pointer;
}

.zh-stepper {
    display: grid;
    grid-template-columns: 1fr 30px 40px 30px;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}
.zh-stepper input {
    min-height: 32px;
    text-align: center;
    padding: 0;
    -moz-appearance: textfield;
}
.zh-stepper input::-webkit-outer-spin-button,
.zh-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.zh-stepper__btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    color: #444;
}
.zh-stepper__btn:hover { border-color: var(--accent); background: var(--primary-light); }

.zh-filters__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.zh-filters__count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.zh-filters .filter-features__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 110px;
}

.zh-filters .btn-filter {
    min-height: 44px;
    min-width: 150px;
    padding: 0 18px;
    color: #fff;
}
.zh-filters .btn-reset {
    min-height: 44px;
    padding: 0 16px;
    color: var(--primary);
}

@media (max-width: 1280px) {
    .halfmap__cards--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .zh-filters__mid { grid-template-columns: 1fr 1fr; }
    .zh-col--price { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
    .halfmap__cards--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zh-filters__loc-search { grid-template-columns: 1fr; }
    .zh-filters__top { flex-direction: column; }
    .zh-select--type { flex: none; width: 100%; }
    .zh-filters__bottom { grid-template-columns: 1fr; }
    .zh-filters .filter-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .piyasa-nav__type-label { display: none; }
    .feature-modal__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .halfmap__cards--grid { grid-template-columns: 1fr; }
    .zh-filters__mid { grid-template-columns: 1fr; }
    .zh-loc-row { grid-template-columns: 1fr; }
}
