/* ==========================================================================
   /cozumler/emlak — sektöre özel kahraman (cozumler/kahraman/emlak.php)
   Taban: css/gorev-tanitim.css belirteçleri (.gv). Önek: eml-.
   Sahne durumu kökteki a1..a6 sınıflarıyla birikir, etkin adım data-adim'de (js/emlak-kahraman.js):
     a1 mesaj yazılıyor · a2 mesaj geldi, müşteri kaydedildi · a3 talep satırları + portföyden seçilenler
     a4 sunum telefonda açılır · a5 Beğendim + Sunum Geçmişi · a6 yer gösterme randevusu
   Masaüstünde katmanlar birikir; ≤900px'te yalnız etkin adımın katmanı görünür.
   ========================================================================== */

.gv .eml { padding: 56px 40px 0; }
.gv .eml h1 {
    font-size: clamp(38px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -.05em; font-weight: 600; max-width: 1000px;
    text-wrap: balance; /* üç satırda sonda tek kelime kalmasın */
}
.gv .eml .sx-alt { margin-top: 18px; }

.eml-ust { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-top: 32px; }
.gv .eml-giris { color: var(--ink-2); font-size: 18px; line-height: 1.58; max-width: 600px; }
.eml-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Sahne ---------- */
.eml-sahne { position: relative; margin: 40px 0 0; }
.eml-foto {
    position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden;
    background: linear-gradient(160deg, #f1e4d3, #e3cfb6); /* fotoğraf gelmezse sıcak zemin */
}
.eml-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.eml-foto::after { /* solda ve altta okunurluk için yumuşak karartma */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(24, 16, 8, .26) 0%, rgba(24, 16, 8, 0) 42%),
        linear-gradient(180deg, rgba(24, 16, 8, 0) 55%, rgba(24, 16, 8, .3) 100%);
}
.eml-katman { position: absolute; inset: 0; pointer-events: none; }
.eml-katman img { display: block; }

/* 1 · Cam WhatsApp baloncuğu */
.eml-balon {
    position: absolute; top: 28px; left: 28px; width: min(340px, 36%);
    padding: 12px 14px 13px; border-radius: 18px 18px 18px 6px;
    background: rgba(255, 255, 255, .76); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 18px 40px -18px rgba(24, 16, 8, .45);
    opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .45s ease, transform .45s ease;
}
.eml.a1 .eml-balon { opacity: 1; transform: none; }
.eml-balon-ust { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.eml-balon-ust .sx-lg { width: 22px; height: 22px; border-radius: 7px; font-size: 12px; }
.eml-balon-ust span { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.eml-balon-govde { position: relative; margin-top: 7px; min-height: 42px; }
.gv .eml-balon-govde p { font-size: 14px; line-height: 1.45; color: var(--ink); opacity: 0; transition: opacity .35s ease; }
.eml.a2 .eml-balon-govde p { opacity: 1; }
.eml-yaziyor { position: absolute; left: 0; top: 6px; display: inline-flex; gap: 4px; transition: opacity .2s; }
.eml-yaziyor i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: eml-nokta 1s infinite ease-in-out; }
.eml-yaziyor i:nth-child(2) { animation-delay: .15s; }
.eml-yaziyor i:nth-child(3) { animation-delay: .3s; }
.eml.a2 .eml-yaziyor { opacity: 0; }
@keyframes eml-nokta { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-3px); opacity: 1; } }
.eml-kayit {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 6px 11px; border-radius: 999px;
    background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; max-width: 100%;
    opacity: 0; transform: translateY(4px); transition: opacity .35s ease .7s, transform .35s ease .7s;
}
.eml-kayit i { font-size: 10px; color: #9be0a8; }
.eml.a2 .eml-kayit { opacity: 1; transform: none; }

/* 2 · Müşteri kartı › Gayrimenkul (talep) */
.eml-talep {
    position: absolute; left: 28px; bottom: 28px; width: min(340px, 36%);
    background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 12px 14px 12px;
    box-shadow: 0 28px 60px -30px rgba(24, 16, 8, .6);
    opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .45s ease;
}
.eml.a3 .eml-talep { opacity: 1; transform: none; }
.eml-talep-bas { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; min-width: 0; }
.eml-av {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    background: var(--b-peach-bg); color: var(--b-peach-t); font-size: 10.5px; font-weight: 600;
}
.eml-talep-bas b { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.eml-sekme { margin-left: auto; display: inline-flex; padding: 2px; border-radius: 999px; background: var(--soft); font-size: 10.5px; flex-shrink: 0; }
.eml-sekme em, .eml-sekme span { font-style: normal; padding: 3px 8px; border-radius: 999px; color: var(--ink-3); white-space: nowrap; }
.eml-sekme em { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 20, .1); }
.eml-satirlar { margin: 0; }
.eml-satirlar > div {
    display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: baseline; gap: 8px;
    padding: 6px 0; border-top: 1px solid var(--line);
    opacity: 0; transform: translateX(-6px); transition: opacity .3s ease, transform .3s ease;
}
.eml-satirlar dt { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.eml-satirlar dd { margin: 0; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eml.a3 .eml-satirlar > div { opacity: 1; transform: none; }
.eml.a3 .eml-satirlar > div:nth-child(1) { transition-delay: .35s; }
.eml.a3 .eml-satirlar > div:nth-child(2) { transition-delay: .6s; }
.eml.a3 .eml-satirlar > div:nth-child(3) { transition-delay: .85s; }
.eml.a3 .eml-satirlar > div:nth-child(4) { transition-delay: 1.1s; }
.eml-secilen {
    display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 8px 10px; border-radius: 10px;
    background: var(--b-mint-bg); color: var(--b-mint-t); font-size: 12px; line-height: 1.3;
    opacity: 0; transform: translateY(6px); transition: opacity .35s ease 1.6s, transform .35s ease 1.6s;
}
.eml-secilen b { font-weight: 600; }
.eml-secilen > i { margin-left: auto; font-size: 12px; }
.eml-kucuk { display: inline-flex; flex-shrink: 0; }
.eml-kucuk img { width: 32px; height: 24px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 2px var(--b-mint-bg); }
.eml-kucuk img + img { margin-left: -9px; }
.eml.a3 .eml-secilen { opacity: 1; transform: none; }

/* 3 · Müşterinin telefonunda sunum sayfası */
.eml-tel {
    position: absolute; right: 48px; top: 34px; bottom: -48px; width: 252px;
    padding: 7px; border-radius: 36px; background: #161616;
    box-shadow: 0 40px 70px -34px rgba(24, 16, 8, .7), inset 0 0 0 1px rgba(255, 255, 255, .08);
    opacity: 0; transform: translateY(26px); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .9, .3, 1.1);
}
.eml.a4 .eml-tel { opacity: 1; transform: none; }
.eml-tel-ekran { position: relative; height: 100%; border-radius: 29px; overflow: hidden; background: #fff; }
.eml-tel-ekran::before { /* kamera adası */
    content: ''; position: absolute; top: 8px; left: 50%; width: 62px; height: 17px; margin-left: -31px;
    border-radius: 999px; background: #161616; z-index: 2;
}
.eml-tel-ust { display: flex; align-items: center; gap: 7px; padding: 34px 14px 6px; }
.eml-logo {
    width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--ink); color: #fff; font-size: 11px; font-weight: 600;
}
.eml-tel-ust b { font-size: 12.5px; font-weight: 600; }
.eml-tel-ara {
    margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--soft); font-size: 10.5px; color: var(--ink-2);
}
.eml-tel-selam { padding: 6px 14px 10px; display: flex; flex-direction: column; }
.eml-tel-selam small { font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--coral); }
.eml-tel-selam b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
.eml-ilan { margin: 0 10px 10px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #fff; }
.eml-ilan-foto { position: relative; aspect-ratio: 16 / 10; background: #eee6da; }
.eml-ilan-foto img { width: 100%; height: 100%; object-fit: cover; }
.eml-ilan-foto span, .eml-ilan-foto em {
    position: absolute; top: 8px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; font-style: normal; white-space: nowrap;
}
.eml-ilan-foto span { left: 8px; background: rgba(255, 255, 255, .92); color: var(--ink); }
.eml-ilan-foto em { right: 8px; background: var(--b-mint-bg); color: var(--b-mint-t); }
.eml-ilan-foto em i { font-size: 8.5px; }
.eml-ilan-bilgi { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 8px; min-width: 0; }
.eml-ilan-bilgi b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eml-ilan-bilgi small { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eml-ilan-bilgi small i { font-size: 9px; }
.eml-ilan-bilgi strong { font-size: 14px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; white-space: nowrap; }
.eml-ilan-bilgi s { font-size: 11px; font-weight: 500; color: var(--ink-3); margin-right: 3px; }
.eml-begen {
    display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; margin: 0 10px 10px;
    border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--ink);
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.eml-begen .fas { display: none; }
.eml.a5 .eml-begen { background: #fdeceb; border-color: #f6c8c3; color: #b2382a; }
.eml.a5 .eml-begen .far { display: none; }
.eml.a5 .eml-begen .fas { display: inline-block; animation: eml-kalp .55s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes eml-kalp { 0% { transform: scale(.4); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* 3 · Danışmanın Sunum Geçmişi satırı */
.eml-gecmis {
    position: absolute; top: 92px; right: 282px; width: 250px; z-index: 1;
    background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px 12px;
    box-shadow: 0 24px 50px -26px rgba(24, 16, 8, .6);
    opacity: 0; transform: translateX(12px); transition: opacity .4s ease .5s, transform .45s ease .5s;
}
.eml.a5 .eml-gecmis { opacity: 1; transform: none; }
.eml-gecmis-bas { font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.eml-gecmis-bas i { font-size: 9.5px; margin-right: 3px; }
.eml-gecmis-satir { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.eml-gecmis-satir > span:first-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.eml-gecmis-satir b { font-size: 13px; font-weight: 600; }
.eml-gecmis-satir small { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.eml-gorulme {
    margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ink-2);
    padding: 3px 8px; border-radius: 999px; background: var(--soft); white-space: nowrap;
}
.eml-gorulme i { font-size: 10px; color: var(--ink-3); }
.eml-ilgi {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 9px; border-radius: 999px;
    background: var(--b-mint-bg); color: var(--b-mint-t); font-size: 11.5px; font-weight: 600; white-space: nowrap;
}

/* 4 · Yer gösterme randevusu */
.eml-randevu {
    position: absolute; bottom: 28px; left: calc(28px + min(340px, 36%) + 20px); width: 256px;
    display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 4px 10px; align-items: center;
    background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 11px 12px 12px;
    box-shadow: 0 28px 60px -30px rgba(24, 16, 8, .6);
    opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .4s ease, transform .5s cubic-bezier(.2, .9, .3, 1.2);
}
.eml.a6 .eml-randevu { opacity: 1; transform: none; }
.eml-gun {
    display: flex; flex-direction: column; align-items: center; justify-content: center; height: 54px; border-radius: 11px;
    background: var(--b-peach-bg); color: var(--b-peach-t); line-height: 1.05;
}
.eml-gun small { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.eml-gun b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.eml-randevu-bilgi { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.eml-randevu-bilgi small { font-family: var(--mono); font-size: 10px; color: var(--ink-3); white-space: nowrap; }
.eml-randevu-bilgi b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eml-randevu-bilgi span { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eml-hatirlat {
    grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
    padding: 5px 10px; border-radius: 999px; background: var(--b-lav-bg); color: var(--b-lav-t); font-size: 11.5px; font-weight: 500; white-space: nowrap;
    opacity: 0; transform: translateY(4px); transition: opacity .35s ease .6s, transform .35s ease .6s;
}
.eml-hatirlat i { font-size: 10px; }
.eml.a6 .eml-hatirlat { opacity: 1; transform: none; }

/* ---------- Dört adım ---------- */
.eml-adimlar {
    list-style: none; margin: 84px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px;
}
.eml-adimlar li { position: relative; border-top: 1px solid var(--line-2); min-width: 0; }
.eml-adimlar button {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: 100%;
    padding: 16px 0 4px; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink);
}
.eml-no { font-family: var(--mono); font-size: 12px; color: var(--ink-3); transition: color .3s; }
.eml-adimlar b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.eml-acik { font-size: 14px; line-height: 1.5; color: var(--ink-3); transition: color .3s; }
.eml-yer {
    margin-top: 8px; padding: 3px 8px; border-radius: 6px; background: var(--soft);
    font-family: var(--mono); font-size: 10.5px; color: var(--ink-2); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.eml-adimlar li.etkin .eml-no { color: var(--coral); }
.eml-adimlar li.etkin .eml-acik { color: var(--ink-2); }
.eml-adimlar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.eml-ilerleme { position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--ink); }
.eml-adimlar li.etkin .eml-ilerleme { animation: eml-ilerle var(--eml-sure, 3s) linear forwards; }
@keyframes eml-ilerle { from { width: 0; } to { width: 100%; } }

/* ---------- Sunum sayfası notları ---------- */
.eml-sunum-not {
    display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: center;
    margin-top: 56px; padding: 20px 24px; border-radius: 20px; background: var(--cream);
}
.eml-sunum-not-bas { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--b-sand-t); line-height: 1.5; }
.eml-sunum-not ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.eml-sunum-not li { display: flex; align-items: baseline; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); min-width: 0; }
.eml-sunum-not li i { width: 14px; flex-shrink: 0; text-align: center; font-size: 12px; color: var(--b-sand-t); }
.eml-sunum-not li b { color: var(--ink); font-weight: 600; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1080px) {
    .gv .eml { padding-left: 32px; padding-right: 32px; }
    .eml-tel { right: 36px; }
    .eml-gecmis { right: 268px; }
}
@media (max-width: 900px) {
    /* Tek katman kipi: yalnız etkin adımın katmanı görünür */
    .eml-ust { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
    .eml-sahne { margin-top: 36px; }
    .eml-foto { aspect-ratio: 5 / 4; }
    .eml-balon { top: 18px; left: 18px; width: min(360px, calc(100% - 36px)); }
    .eml-talep { left: 18px; bottom: 18px; width: min(360px, calc(100% - 36px)); }
    .eml-tel { right: 40px; top: 24px; bottom: -36px; }
    .eml-gecmis { top: auto; bottom: 40px; left: 18px; right: auto; }
    .eml-randevu { left: 18px; bottom: 18px; width: 300px; }
    .gv .eml:not([data-adim="1"]) .eml-balon,
    .gv .eml:not([data-adim="2"]) .eml-talep,
    .gv .eml:not([data-adim="3"]) .eml-tel,
    .gv .eml:not([data-adim="3"]) .eml-gecmis,
    .gv .eml:not([data-adim="4"]) .eml-randevu { opacity: 0; transform: translateY(10px); transition-delay: 0s; }
    .eml-adimlar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; margin-top: 64px; }
    .eml-sunum-not { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
}
@media (max-width: 600px) {
    .gv .eml { padding: 40px 16px 0; }
    .gv .eml h1 { font-size: clamp(32px, 9.6vw, 44px); letter-spacing: -.045em; }
    .gv .eml-giris { font-size: 16px; }
    .eml-cta .gv-btn { flex: 1 1 100%; }
    .eml-sahne { margin-top: 28px; }
    .eml-foto { aspect-ratio: auto; height: 540px; border-radius: 22px; }
    .eml-foto img { object-position: 50% 50%; }
    .eml-foto::after {
        background: linear-gradient(180deg, rgba(24, 16, 8, .22) 0%, rgba(24, 16, 8, 0) 30%, rgba(24, 16, 8, 0) 60%, rgba(24, 16, 8, .34) 100%);
    }
    .eml-balon { top: 12px; left: 12px; right: 12px; width: auto; }
    .eml-talep { left: 12px; right: 12px; bottom: 12px; width: auto; }
    .eml-tel { left: calc(50% - 118px); right: auto; width: 236px; top: 22px; bottom: -30px; }
    .eml-gecmis { left: 12px; right: 12px; bottom: 12px; width: auto; }
    .eml-randevu { left: 12px; right: 12px; bottom: 12px; width: auto; }
    .eml-adimlar { grid-template-columns: 1fr; gap: 0; margin-top: 54px; }
    .eml-adimlar button { padding-bottom: 14px; }
    .eml-sunum-not { padding: 18px; }
    .eml-sunum-not ul { grid-template-columns: 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .eml *, .eml *::before { transition: none !important; animation: none !important; }
    .eml-adimlar li.etkin .eml-ilerleme { width: 100%; }
}
