/* Emlak ilan görselleştirme sayfasının kendi dili (bileşen: components/hizmet/kimlik/EmlakIlan.astro): ilan masası, ilan kartı ve kontakt baskı.
   Mini ilan kartları · kontakt baskı · ilan formu · WhatsApp asistanı · arama sonuçları · teslim klasörü · ilan numaralı rehber. */
.hk-emlak-ilan-gorsellestirme { --hk-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; --hk-turuncu: #E8572F; --hk-wa: #1FA971; --hk-karanlik: #17141E; }

/* ───────── Öne çıkanlar: mini ilan kartları ───────── */
.hk-mini-bolum { padding-top: 6px; }
.hk-miniler { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hk-mini { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 20px; background: #FFFFFF; box-shadow: 0 20px 44px rgba(29, 24, 48, .1), 0 0 0 1px var(--ds-line); }
.hk-mini__foto { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: #F4EFE9; }
.hk-mini__foto > img { width: 100%; height: 100%; object-fit: cover; }
.hk-mini.m1 .hk-mini__foto { background: linear-gradient(160deg, #FFE7DA, #F3EEFF); }
.hk-mini__tel { display: block; width: 46%; aspect-ratio: 9 / 16; padding: 6px; border-radius: 18px; background: #1D1830; box-shadow: 0 16px 30px rgba(29, 24, 48, .25); translate: 0 18%; }
.hk-mini__tel img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; border-radius: 12px; }
.hk-mini__etiket { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 24px); padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .94); font-size: 12px; font-weight: 700; color: var(--hk-turuncu); }
.hk-mini.m3 .hk-mini__foto { background: #E7F6EE; }
.hk-mini__sohbet { display: flex; flex-direction: column; gap: 8px; width: 82%; font-size: 12.5px; line-height: 1.35; }
.hk-mini__sohbet span { max-width: 86%; padding: 8px 11px; border-radius: 12px; }
.hk-mini__sohbet .gelen { align-self: flex-start; background: #FFFFFF; color: var(--ds-ink); box-shadow: 0 2px 6px rgba(29, 24, 48, .08); }
.hk-mini__sohbet .giden { align-self: flex-end; background: #D9FDD3; color: #12321E; }
.hk-mini__sohbet .hk-mini__randevu { align-self: center; max-width: 100%; padding: 5px 10px; border-radius: 999px; background: var(--hk-wa); color: #FFFFFF; font-weight: 700; font-size: 11.5px; }
.hk-mini__govde { padding: 18px 20px 22px; }
.hk-mini h2 { margin: 0; font-family: var(--ds-display); font-size: 21px; line-height: 1.2; letter-spacing: -.015em; color: var(--ds-ink); }
.hk .hk-mini p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--ds-muted); }

/* ───────── Kontakt baskı ───────── */
.hk-kontakt { padding: 20px 22px 24px; border-radius: 10px; background: var(--hk-karanlik); color: #FFFFFF; box-shadow: 0 30px 60px rgba(23, 20, 30, .3); }
.hk-kontakt__ust { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; font: 700 11.5px/1.3 var(--hk-mono); letter-spacing: .08em; color: #F5B841; }
.hk-kontakt__ust span:last-child { color: rgba(255, 255, 255, .6); letter-spacing: 0; }
.hk-kontakt ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hk-kontakt li { position: relative; min-width: 0; padding: 8px 8px 10px; background: #0E0C13; }
.hk-kontakt img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.hk-kontakt__no { position: absolute; top: -9px; left: 10px; padding: 0 4px; background: var(--hk-karanlik); font: 700 11px/1.4 var(--hk-mono); color: #F5B841; }
.hk-kontakt__alt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 8px; font-size: 13px; }
.hk-kontakt__alt b { font: 700 12px/1.2 var(--hk-mono); letter-spacing: .06em; color: rgba(255, 255, 255, .9); }
.hk-kontakt__alt em { font-style: normal; color: rgba(255, 255, 255, .65); min-width: 0; overflow-wrap: anywhere; }
.hk-kontakt li.secili::after { content: ""; position: absolute; inset: -3px -4px; border: 2px solid rgba(232, 87, 47, .8); border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%; rotate: -1.5deg; pointer-events: none; }
.hk-kontakt li.secili .hk-kontakt__alt em { color: #FFB39C; font-weight: 600; }

/* ───────── Süreç: ilan formu ───────── */
.hk-ilanform { overflow: hidden; border-radius: 22px; background: #FFFFFF; box-shadow: 0 24px 50px rgba(29, 24, 48, .1), 0 0 0 1px var(--ds-line); }
.hk-ilanform__sekmeler { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--ds-line); background: #FBF8F6; }
.hk-ilanform__sekmeler::-webkit-scrollbar { display: none; }
.hk-ilanform__sekmeler span { display: inline-flex; align-items: center; gap: 8px; flex: 1 0 auto; padding: 14px 18px; font-size: 13.5px; font-weight: 600; color: var(--ds-muted-2); white-space: nowrap; border-bottom: 3px solid transparent; }
.hk-ilanform__sekmeler b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #EEE9F7; font-size: 11.5px; color: var(--ds-ink); }
.hk-ilanform__sekmeler .tamam b { background: var(--hk-wa); color: #FFFFFF; }
.hk-ilanform__sekmeler .aktif { color: var(--ds-ink); border-bottom-color: var(--hk-turuncu); }
.hk-ilanform__sekmeler .aktif b { background: var(--hk-turuncu); color: #FFFFFF; }
.hk-ilanform ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 0; padding: 14px 28px 22px; list-style: none; }
.hk-ilanform li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--ds-line); }
.hk-ilanform__kutu { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 2px; border-radius: 7px; background: var(--hk-wa); color: #FFFFFF; font-size: 12px; }
.hk-ilanform li:last-child .hk-ilanform__kutu { background: var(--hk-turuncu); }
.hk-ilanform li div { min-width: 0; }
.hk-ilanform li b { font-family: var(--ds-display); font-size: 17px; line-height: 1.3; color: var(--ds-ink); }
.hk .hk-ilanform li p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--ds-muted); }

/* ───────── Yapay zekâ satış asistanı ───────── */
.hk-asistan { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; }
.hk-asistan .hk-baslik { margin-bottom: 0; }
.hk-asistan__maddeler { margin-top: 22px; }
.hk-wa { overflow: hidden; border-radius: 26px; background: #EFE7DD; box-shadow: 0 30px 60px rgba(29, 24, 48, .16), 0 0 0 1px rgba(29, 24, 48, .06); }
.hk-wa__bas { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: #0B6E5A; color: #FFFFFF; }
.hk-wa__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .18); font-size: 15px; }
.hk-wa__bas b { font-size: 15px; }
.hk-wa__bas em { margin-left: auto; font-style: normal; font-size: 11.5px; opacity: .75; }
.hk-wa__akis { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; }
.hk .hk-wa__akis p { max-width: 84%; margin: 0; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.hk .hk-wa__akis .gelen { align-self: flex-start; background: #FFFFFF; color: var(--ds-ink); border-top-left-radius: 4px; }
.hk .hk-wa__akis .giden { align-self: flex-end; background: #D9FDD3; color: #12321E; border-top-right-radius: 4px; }
.hk-wa__panel { display: flex; align-items: center; gap: 12px; margin: 0 16px 18px; padding: 12px 14px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 10px 24px rgba(29, 24, 48, .1); font-size: 13px; color: var(--ds-muted); }
.hk-wa__panel i { color: var(--ds-violet); font-size: 18px; }
.hk-wa__panel span { min-width: 0; }
.hk-wa__panel b { display: block; color: var(--ds-ink); font-size: 14px; }

/* ───────── Kimler için: arama sonuçları ───────── */
.hk-sonuclar { overflow: hidden; border-radius: 22px; background: #FFFFFF; box-shadow: 0 20px 44px rgba(29, 24, 48, .08), 0 0 0 1px var(--ds-line); }
.hk-sonuclar__filtre { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--ds-line); font-size: 14px; color: var(--ds-ink); }
.hk-sonuclar__filtre span { display: inline-flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 14px; border-radius: 999px; background: #F6F3FB; }
.hk-sonuclar__filtre em { flex: 0 0 auto; font-style: normal; font-size: 13px; color: var(--ds-muted-2); }
.hk-sonuclar ul { margin: 0; padding: 0; list-style: none; }
.hk-sonuclar li { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--ds-line); }
.hk-sonuclar li:last-child { border-bottom: 0; }
.hk-sonuc__resim { display: grid; place-items: center; width: 88px; aspect-ratio: 4 / 3; border-radius: 12px; font-size: 22px; color: #FFFFFF; }
.hk-sonuc__resim.r1 { background: linear-gradient(150deg, #F28B63, #E8572F); }
.hk-sonuc__resim.r2 { background: linear-gradient(150deg, #9C86FF, #5B3DF5); }
.hk-sonuc__resim.r3 { background: linear-gradient(150deg, #5CC9DD, #0E8FA8); }
.hk-sonuc__resim.r4 { background: linear-gradient(150deg, #8DD39E, #1FA971); }
.hk-sonuclar h3 { margin: 0; font-family: var(--ds-display); font-size: 18px; line-height: 1.25; color: var(--ds-ink); }
.hk .hk-sonuclar p { margin: 5px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ds-muted); }
.hk-sonuc__rozet { padding: 6px 10px; border-radius: 8px; background: #F6F3FB; font-size: 12px; font-weight: 700; color: var(--ds-violet); white-space: nowrap; }
.hk-sonuclar li:first-child .hk-sonuc__rozet { background: #FFE9E1; color: var(--hk-turuncu); }

/* ───────── Çıktılar: teslim klasörü ───────── */
.hk-klasor { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #FFF5EE, #FBF8FF); box-shadow: inset 0 0 0 1px var(--ds-line); }
.hk-dosya { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 16px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 8px 20px rgba(29, 24, 48, .06), 0 0 0 1px var(--ds-line); }
.hk-dosya__tur { flex: 0 0 auto; display: grid; place-items: center; gap: 2px; width: 52px; height: 58px; border-radius: 10px; background: #FFE9E1; color: var(--hk-turuncu); }
.hk-dosya__tur i { font-size: 17px; }
.hk-dosya__tur b { font: 700 10.5px/1 var(--hk-mono); }
.hk-dosya__ad { min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ds-ink); }
.hk-klasor__bag { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; font-size: 15px; line-height: 1.6; color: var(--ds-muted); }
.hk-klasor__bag > i { margin-top: 4px; color: var(--ds-violet); }
.hk-klasor__bag a { color: var(--ds-violet); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ───────── Rehber: ilan numaralı satırlar ───────── */
.hk-rehber.ilan .hk-rehber__liste { display: grid; gap: 10px; }
.hk-rehber.ilan .hk-rehber__madde { border-radius: 16px; background: #FFFFFF; box-shadow: 0 10px 26px rgba(29, 24, 48, .06), 0 0 0 1px var(--ds-line); padding: 0 22px; }
.hk-rehber.ilan .hk-rehber__madde > summary { padding: 18px 0; }
.hk-rehber.ilan .hk-rehber__on { font: 700 12px/1 var(--hk-mono); color: var(--hk-turuncu); }
.hk-rehber.ilan .hk-rehber__ok { color: var(--hk-turuncu); }

@media (max-width: 1099.98px) {
  .hk-klasor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk-asistan { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .hk-wa { max-width: 460px; }
}
@media (max-width: 767.98px) {
  .hk-mini { flex: 0 0 var(--w); scroll-snap-align: start; }
  .hk-kontakt { padding: 16px 12px 18px; }
  .hk-kontakt ol { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hk-ilanform ol { grid-template-columns: minmax(0, 1fr); padding: 6px 18px 14px; }
  .hk-ilanform__sekmeler span { padding: 12px 14px; }
  .hk-sonuclar li { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
  .hk-sonuc__resim { width: 56px; font-size: 17px; }
  .hk-sonuc__rozet { display: none; }
  .hk-sonuclar__filtre { padding: 12px 14px; font-size: 13px; }
  .hk-sonuclar__filtre span { overflow-wrap: anywhere; }
  .hk-klasor { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .hk-klasor__bag a { white-space: normal; }
  .hk-rehber.ilan .hk-rehber__madde { padding: 0 16px; }
}
