/* hbaemlak.com */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* Üst menü */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--brand); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo span em { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.nav a:hover, .nav a.on { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.top .acts { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: #fff; flex-direction: column; padding: 8px 16px 14px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .top.open .nav { display: flex; }
  .top .wrap { gap: 12px; }
  .logo { margin-right: auto; }
  .acts .hide-m { display: none; }
}

/* Ana sayfa */
.hero { position: relative; background: linear-gradient(135deg, #0b3352 0%, #135581 60%, #1b6c9e 100%); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 300px at 85% 0%, rgba(201, 138, 27, .25), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); max-width: 720px; letter-spacing: -.02em; }
.hero p.lead { font-size: 1.1rem; opacity: .88; max-width: 620px; margin-bottom: 28px; }
.search { background: #fff; color: var(--ink); border-radius: 16px; padding: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); max-width: 980px; }
.search .seg { margin-bottom: 12px; }
.search .fields { display: grid; grid-template-columns: 1.1fr 1.1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.search .field { margin: 0; }
@media (max-width: 860px) { .search .fields { grid-template-columns: 1fr 1fr; } .search .fields .btn { grid-column: 1 / -1; } }
@media (max-width: 420px) { .search .fields { grid-template-columns: 1fr; } }

.section { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { padding: 22px; }
.step b { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); align-items: center; justify-content: center; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.cta-band { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cta { padding: 26px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cta p { margin: 0; }
.cta.a { background: var(--brand); color: #fff; }
.cta.a p { opacity: .85; }
.cta.b { background: var(--accent-soft); color: #5e3f07; border: 1px solid #f0dcb5; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* İlan listesi */
.page-head { padding: 28px 0 8px; }
.list-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; align-items: start; padding-bottom: 48px; }
.filters { position: sticky; top: 82px; padding: 18px; }
.filters summary { display: none; }
.filters .field { margin-bottom: 10px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 900px) {
  .list-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; }
  .filters summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 700; list-style: none; }
  .filters summary::-webkit-details-marker { display: none; }
  .filters[open] summary { margin-bottom: 14px; }
}
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.result-bar select { width: auto; min-height: 36px; padding: 6px 10px; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; padding: 0 10px; }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* İlan detayı */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; padding: 22px 0 56px; }
@media (max-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.crumbs { font-size: .87rem; color: var(--muted); padding-top: 22px; }
.crumbs a { color: var(--muted); }
.gallery { overflow: hidden; }
.gallery .main { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #dfe8f0, #f1f4f7); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; font-size: 18px; box-shadow: var(--shadow); }
.gallery .prev { left: 12px; } .gallery .next { right: 12px; }
.gallery .count { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 6px; }
.thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.thumbs button { flex: 0 0 84px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button.on { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.side { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .side { position: static; } }
.side .price { font-size: 1.7rem; font-weight: 800; color: var(--brand); }
.side .price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.spec-table div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.spec-table div span:first-child { color: var(--muted); }
.spec-table div span:last-child { font-weight: 600; text-align: right; }
@media (max-width: 560px) { .spec-table { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: .87rem; }
.desc { white-space: pre-wrap; color: var(--ink-2); }
.contact-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-weight: 600; }

/* Giriş / kayıt */
.auth { max-width: 440px; margin: 48px auto; padding: 0 16px; }
.auth .card { padding: 28px; }
.auth h1 { font-size: 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hesabım */
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px 0 18px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { padding: 10px 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--brand); border-bottom-color: var(--brand); text-decoration: none; }
.my-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px; }
.my-item + .my-item { margin-top: 12px; }
.my-item .thumb { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #dfe8f0, #f1f4f7); display: flex; align-items: center; justify-content: center; color: #a9b8c6; }
.my-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.my-item h3 { margin: 0 0 4px; font-size: 1rem; }
.my-item .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .my-item { grid-template-columns: 90px minmax(0, 1fr); } .my-item .acts { grid-column: 1 / -1; justify-content: flex-start; } }
.req { padding: 16px 18px; }
.req + .req { margin-top: 12px; }
.req .note { margin-top: 10px; padding: 10px 12px; background: var(--brand-soft); border-radius: 8px; font-size: .92rem; color: var(--brand); }
.form-page { max-width: 920px; margin: 0 auto; padding: 0 16px 56px; }

/* Alt bilgi */
.foot { background: #0b2235; color: #b9c6d2; margin-top: 40px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding-top: 40px; padding-bottom: 28px; }
.foot h4 { color: #fff; margin: 0 0 10px; font-size: .95rem; }
.foot a { color: #b9c6d2; display: block; padding: 3px 0; }
.foot .logo { color: #fff; margin-bottom: 10px; }
.foot .linkbtn { color: #e3b866; padding: 6px 0; text-align: left; }
.foot .copy { border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 16px; text-align: center; font-size: .85rem; color: #8193a3; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }
.prose { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; }
.prose .card { padding: 28px; }
