/* R12 (31.10) /mls-nedir visual pass. CSS only, loaded by Views/Portal/Mls.cshtml (nothing else links it).
   Texts are unchanged. Rules:
   - one reading column (760px) or two columns (text + picture) inside one wrapper width (1120px), the same on every section;
   - section bands alternate white / light grey / light turquoise, one vertical padding scale (80 / 64 / 44px), one H2 scale, balanced headings;
   - red upper-case heading lines of the old page become an eyebrow, a sentence-style H2 and a badge;
   - CTA group (primary + secondary) is the same everywhere; benefit cards and stat cards are class based, no inline styles.
   Palette follows the home page rhythm (anasayfa-r8.css): band #f1f5fa, turquoise #e4f5f8, navy #022041, teal #138191 (white on it 4.59:1), link #0b4f9c. */

html body .mls-r12 {
    --mls-pad: 80px;
    --mls-h2: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem);
    --mls-band: #f1f5fa;
    --mls-turq: #e4f5f8;
    --mls-navy: #022041;
    --mls-teal: #138191;
    --mls-link: #0b4f9c;
    --mls-text: #3f4a58;
    padding: var(--mls-pad) 0;
    margin: 0;
    text-align: left;
    background-color: #fff;
    color: var(--mls-text);
}

/* band order: intro white, nedir grey, havuz white, belgeli turquoise, sss white, offmarket grey, bond white, (tk cards) turquoise, grey */
html body .mls-r12-nedir,
html body .mls-r12-offmarket { background-color: var(--mls-band); }
html body .mls-r12-belgeli { background-color: var(--mls-turq); }

/* wrappers */
html body .mls-r12 .mls-r12-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
html body .mls-r12 .mls-r12-read { max-width: 760px; margin: 0; }

/* headings: one H2 scale */
html body .mls-r12 .mls-r12-h2,
html body .mls-r12 .mls-offmarket-baslik,
html body section.tk-h455[aria-labelledby^="tk-h455-mls"] .tk-h2 {
    margin: 0 0 20px;
    font-size: var(--mls-h2);
    line-height: 1.2;
    font-weight: 700;
    color: var(--mls-navy);
    letter-spacing: 0;
    text-wrap: balance;
}
html body .mls-r12 .mls-r12-h3 { margin: 40px 0 12px; font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--mls-navy); text-wrap: balance; }
html body .mls-r12 .mls-r12-q { margin: 28px 0 8px; font-size: 1.125rem; line-height: 1.4; font-weight: 600; color: var(--mls-navy); text-wrap: balance; }
html body .mls-r12 .mls-r12-q:first-of-type { margin-top: 8px; }
html body .mls-r12 p,
html body .mls-r12 li { text-wrap: pretty; }
html body .mls-r12 .mls-r12-text p,
html body .mls-r12 .mls-r12-p,
html body .mls-r12 .mls-r12-a,
html body .mls-r12 .mls-offmarket-neden { margin: 0 0 16px; font-size: 1rem; line-height: 1.7; color: var(--mls-text); }
html body .mls-r12 .mls-r12-a { margin-bottom: 12px; }
html body .mls-r12 strong { color: var(--mls-navy); font-weight: 600; }

/* 1. intro header: eyebrow + H2 + badge, MLS logo small beside them */
html body .mls-r12-intro { padding: 56px 0; }
html body .mls-r12-intro .mls-r12-head { display: flex; align-items: center; justify-content: center; gap: 36px; max-width: 860px; margin: 0 auto; }
html body .mls-r12-intro .mls-r12-logo { flex: 0 0 auto; margin: 0; }
html body .mls-r12-intro .mls-r12-logo img { display: block; width: 150px; height: auto; max-width: 100%; }
html body .mls-r12-intro .mls-r12-head-text { min-width: 0; }
html body .mls-r12-intro .mls-r12-eyebrow { margin: 0 0 10px; font-size: .8125rem; line-height: 1.5; font-weight: 700; letter-spacing: .06em; color: var(--mls-teal); text-wrap: balance; }
html body .mls-r12-intro .mls-r12-h2 { margin-bottom: 16px; }
html body .mls-r12-intro .mls-r12-badge { display: inline-block; margin: 0; padding: 7px 16px; border-radius: 999px; background: var(--mls-turq); color: #0b5f6c; font-size: .8125rem; line-height: 1.4; font-weight: 700; letter-spacing: .03em; text-wrap: balance; }

/* 2. + 4. two columns: text and picture slot */
html body .mls-r12 .mls-r12-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
html body .mls-r12 .mls-r12-text { min-width: 0; }
html body .mls-r12 .mls-r12-media { min-width: 0; margin: 0; text-align: center; }
html body .mls-r12 .mls-r12-media picture { display: contents; }
html body .mls-r12 img.mls-r12-phone { display: block; width: min(100%, 340px); height: auto; margin: 0 auto; border-radius: 0; box-shadow: none; }
html body .mls-r12 .mls-r12-media-phone > img:not(.mls-r12-phone) { max-width: 100%; height: auto !important; }
html body .mls-r12 .mls-r12-media-havuz img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 28px rgba(2, 32, 65, .12); }
html body .mls-r12 .mls-r12-media-havuz figcaption { margin-top: 10px; font-size: .8125rem; line-height: 1.5; color: #566273; text-align: left; }

/* 5. CTA group: one primary + one secondary, same on every section */
html body .mls-r12 .mls-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 28px 0 0; }
html body .mls-r12 a.mls-cta-primary,
html body .mls-r12 a.mls-cta-secondary { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 0 26px; border-radius: 8px; font-size: 1rem; line-height: 1.2; font-weight: 600; text-decoration: none; text-align: center; transition: background-color .15s ease, color .15s ease; }
html body .mls-r12 a.mls-cta-primary { background: #064a97; border: 2px solid #064a97; color: #fff; }
html body .mls-r12 a.mls-cta-primary:hover { background: #022041; border-color: #022041; color: #fff; }
html body .mls-r12 a.mls-cta-secondary { background: transparent; border: 2px solid var(--mls-link); color: var(--mls-link); }
html body .mls-r12 a.mls-cta-secondary:hover { background: var(--mls-link); color: #fff; }
html body .mls-r12 a.mls-cta-primary:focus-visible,
html body .mls-r12 a.mls-cta-secondary:focus-visible { outline: 3px solid var(--mls-link); outline-offset: 3px; }

/* 6. benefit cards */
html body .mls-r12 .mls-benefit-grid { list-style: none; margin: 36px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
html body .mls-r12 .mls-benefit { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 0; padding: 26px 24px; background: #fff; border: 1px solid #cfe3e9; border-radius: 14px; box-shadow: 0 2px 10px rgba(2, 32, 65, .05); }
html body .mls-r12 .mls-benefit-ico { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; background: var(--mls-turq); color: var(--mls-navy); font-size: 1.15rem; }
html body .mls-r12 .mls-benefit-ico i { margin: 0; line-height: 1; }
html body .mls-r12 .mls-benefit-text { margin: 0; font-size: 1rem; line-height: 1.65; color: var(--mls-text); }
html body .mls-r12 .mls-benefit-text strong { display: block; margin-bottom: 6px; font-size: 1.125rem; line-height: 1.3; font-weight: 700; color: var(--mls-navy); }

/* 7. off-market stat cards */
html body .mls-r12-offmarket .mls-r12-h2 { text-align: center; }
html body .mls-r12-offmarket .mls-offmarket-neden { max-width: 760px; margin: 0 auto 32px; text-align: center; }
html body .mls-r12 .mls-stat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
html body .mls-r12 .mls-stat { display: flex; flex-direction: column; margin: 0; padding: 28px 24px; background: #fff; border: 1px solid #dbe5f0; border-radius: 14px; box-shadow: 0 2px 10px rgba(2, 32, 65, .05); }
html body .mls-r12 .mls-stat-num { margin: 0 0 14px; font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.1; font-weight: 700; color: var(--mls-teal); letter-spacing: -.01em; text-wrap: balance; }
html body .mls-r12 .mls-stat-text { margin: 0 0 16px; font-size: 1rem; line-height: 1.65; color: var(--mls-text); }
html body .mls-r12 .mls-stat-src { margin: auto 0 0; padding-top: 12px; border-top: 1px solid #e3eaf3; font-size: .8125rem; line-height: 1.5; color: #566273; }

/* sss + related links */
html body .mls-r12 .mls-r12-links { margin: 0; padding-left: 20px; font-size: 1rem; line-height: 1.9; }
html body .mls-r12 .mls-r12-links a,
html body .mls-r12 .mls-r12-a a { color: var(--mls-link); text-decoration: underline; text-underline-offset: 3px; }

/* 8. shared definition cards (ReosIntroCardsH455), /mls-nedir only: reading column, no box icon */
html body section.tk-h455[aria-labelledby^="tk-h455-mls"] { padding: var(--mls-pad) 0; }
html body section.tk-h455[aria-labelledby="tk-h455-mls"] { background-color: var(--mls-turq); }
html body section.tk-h455[aria-labelledby="tk-h455-mls-sss"] { background-color: var(--mls-band); }
/* site-wide .container{max-width:1428px !important} (StyleSheet.css) is why !important is needed here */
html body section.tk-h455[aria-labelledby^="tk-h455-mls"] > .container { max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; padding: 0 24px; box-sizing: border-box; }
html body section.tk-h455[aria-labelledby="tk-h455-mls"] .tk-h2 { max-width: 760px; margin-left: 0; margin-right: 0; text-align: left; }
html body section.tk-h455[aria-labelledby="tk-h455-mls-sss"] .tk-h2 { text-align: center; margin-bottom: 32px; }
html body section.tk-h455[aria-labelledby="tk-h455-mls"] .tk-ikon { display: none; }
html body section.tk-h455[aria-labelledby="tk-h455-mls"] .tk-grid { grid-template-columns: minmax(0, 760px); justify-content: start; }
html body section.tk-h455[aria-labelledby="tk-h455-mls"] .tk-kart { padding: 0; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
html body section.tk-h455[aria-labelledby="tk-h455-mls"] .tk-metin { font-size: 1rem; line-height: 1.7; color: var(--mls-text); }

/* 10. mobile + tablet scale */
@media (max-width: 991.98px) {
    html body .mls-r12 { --mls-pad: 64px; }
    html body section.tk-h455[aria-labelledby^="tk-h455-mls"] { padding: 64px 0; }
    html body .mls-r12 .mls-r12-cols { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    html body .mls-r12 .mls-benefit-grid,
    html body .mls-r12 .mls-stat-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    html body .mls-r12 .mls-benefit-grid { margin: 28px 0; }
}
@media (max-width: 767.98px) {
    html body .mls-r12 { --mls-pad: 44px; }
    html body section.tk-h455[aria-labelledby^="tk-h455-mls"] { padding: 44px 0; }
    html body .mls-r12-intro { padding: 40px 0; }
    html body .mls-r12-intro .mls-r12-head { flex-direction: column; text-align: center; gap: 20px; }
    html body .mls-r12-intro .mls-r12-logo img { width: 120px; }
    html body .mls-r12 .mls-r12-cols { gap: 28px; }
    html body .mls-r12 .mls-cta { flex-direction: column; align-items: stretch; }
    html body .mls-r12 a.mls-cta-primary,
    html body .mls-r12 a.mls-cta-secondary { width: 100%; }
    html body .mls-r12 .mls-r12-h3 { margin-top: 32px; }
}

/* phone picture: soft panel so the cut edges of the hand picture read as intentional (transparent picture; replaced by the new MLS visual later) */
html body .mls-r12 .mls-r12-media-phone { display: flex; align-items: flex-end; justify-content: center; max-width: 420px; width: 100%; margin: 0 auto; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, #ffffff 0%, #e4f5f8 100%); }
html body .mls-r12 .mls-r12-media-phone img.mls-r12-phone { width: 100%; max-width: 100%; }

/* variables for the shared definition cards (they are not .mls-r12 sections) */
html body section.tk-h455[aria-labelledby^="tk-h455-mls"] {
    --mls-pad: 80px;
    --mls-h2: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem);
    --mls-band: #f1f5fa;
    --mls-turq: #e4f5f8;
    --mls-navy: #022041;
    --mls-teal: #138191;
    --mls-link: #0b4f9c;
    --mls-text: #3f4a58;
}


/* brand-variant block of the layout (BrandVariantReos), /mls-nedir only (sibling of the intro section): same band, column and H2 scale as the sections above */
html body .mls-r12-intro ~ .reos-varyant { background: #fff; padding: 80px 0; }
html body .mls-r12-intro ~ .reos-varyant .reos-varyant__in { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
html body .mls-r12-intro ~ .reos-varyant .reos-varyant__in > * { max-width: 760px; }
html body .mls-r12-intro ~ .reos-varyant h2 { margin: 0 0 20px; font-size: clamp(1.625rem, 1.2rem + 1.3vw, 2.25rem); line-height: 1.2; font-weight: 700; color: #022041; text-wrap: balance; }
html body .mls-r12-intro ~ .reos-varyant p { margin: 0 0 16px; font-size: 1rem; line-height: 1.7; color: #3f4a58; }
@media (max-width: 991.98px) { html body .mls-r12-intro ~ .reos-varyant { padding: 64px 0; } }
@media (max-width: 767.98px) { html body .mls-r12-intro ~ .reos-varyant { padding: 44px 0; } }


/* GPT pictures (31.10): one picture per section. Figures are class based, picture + width/height attributes, lightbox (native dialog) on every width. */
html body .mls-r12 .mls-gv-fig { position: relative; margin: 0 auto; max-width: 1152px; }
html body .mls-r12 .mls-gv-fig picture { display: block; }
html body .mls-r12 .mls-gv-img { display: block; width: 100%; height: auto; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(2, 32, 65, .12); }
html body .mls-r12 .mls-gv-zoom { display: block; margin: 12px auto 0; padding: 10px 20px; min-height: 44px; border: 2px solid var(--mls-link); border-radius: 8px; background: #fff; color: var(--mls-link); font: inherit; font-weight: 600; cursor: pointer; }
html body .mls-r12 .mls-gv-zoom:hover { background: var(--mls-link); color: #fff; }
html body .mls-r12 .mls-gv-zoom:focus-visible,
html body .mls-gv-dlg .mls-gv-dlg-close:focus-visible { outline: 3px solid var(--mls-link, #0b4f9c); outline-offset: 3px; }

/* how it works: own band that continues the grey "MLS Nedir?" band */
html body .mls-r12-akis { background-color: var(--mls-band); padding-top: 0; }

/* pool section: the picture replaces the placeholder in the right column (4:3) */
html body .mls-r12 .mls-r12-media-havuz .mls-gv-fig { max-width: none; }
html body .mls-r12 .mls-r12-media-havuz .mls-gv-zoom { margin-top: 10px; }

/* benefit cards: picture icon instead of the round font icon */
html body .mls-r12 .mls-benefit-ico-img { display: block; flex: 0 0 auto; width: 64px; height: 64px; margin: 0 0 2px -4px; }
html body .mls-r12 .mls-benefit-ico-img img { display: block; width: 64px; height: 64px; }
html body .mls-r12 .mls-gv-fig-gizlilik { max-width: 640px; margin-top: 8px; margin-bottom: 36px; }

/* off-market: portrait picture under the three figure cards */
html body .mls-r12 .mls-gv-fig-offmarket { max-width: 520px; margin-top: 40px; }

/* daily work: picture band between the two definition cards (same turquoise as the card above it) */
html body section.tk-h455[aria-labelledby="tk-h455-mls"] { padding-bottom: 40px; }
html body .mls-r12-gun { background-color: var(--mls-turq); padding-top: 0; }

/* lightbox */
html body .mls-gv-dlg { width: min(96vw, 1680px); max-width: 96vw; max-height: 94dvh; margin: auto; padding: 56px 12px 12px; border: 0; border-radius: 12px; background: #fff; box-sizing: border-box; overflow: hidden; }
html body .mls-gv-dlg::backdrop { background: rgba(10, 20, 35, .72); }
html body .mls-gv-dlg .mls-gv-dlg-close { position: absolute; top: 8px; right: 8px; min-height: 44px; padding: 8px 18px; border: 2px solid #0b4f9c; border-radius: 8px; background: #fff; color: #0b4f9c; font: inherit; font-weight: 600; cursor: pointer; }
html body .mls-gv-dlg .mls-gv-dlg-img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(94dvh - 80px); margin: 0 auto; object-fit: contain; }
html body .mls-gv-dlg .mls-gv-dlg-scroll { overflow: auto; max-height: calc(94dvh - 80px); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
@media (max-width: 767.98px) {
  /* A54: phones open the picture at natural size (>=900px) and scroll/pinch inside the dialog; the close button stays fixed above the scroller. */
  html body .mls-gv-dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; padding: 60px 0 0; }
  html body .mls-gv-dlg .mls-gv-dlg-scroll { max-height: calc(100dvh - 60px); height: calc(100dvh - 60px); }
  html body .mls-gv-dlg .mls-gv-dlg-img { max-width: none; min-width: 900px; max-height: none; margin: 0; }
}
/* V64 BEGIN (02.11): the long off-market texts moved from the home MLS.TR boxes; same measure as the reason line above. */
html body .mls-r12-offmarket .mls-offmarket-detay { max-width: 760px; margin: 0 auto 32px; text-align: left; }
html body .mls-r12-offmarket .mls-offmarket-detay p { margin: 0 0 12px; font-size: 1rem; line-height: 1.7; color: var(--mls-text); }
html body .mls-r12-offmarket { scroll-margin-top: 96px; }
/* V64 END */
