/* ==========================================================================
   İletişim — hero konum işareti · kanal kartları · form paneli · iletişim kartı
   Yalnızca views/iletisim.php yükler ($pageCss = 'iletisim').
   ========================================================================== */

/* 1 — Hero: topografik çizgiler (fw_visual contours) + yörünge halkalı konum işareti --- */
/* Koyu zemin sarmalayıcıda; page-hero şeffaf → çizgiler hero'nun ışıma/gren katmanlarının altında kalır */
.ilt-hero { position: relative; isolation: isolate; background: var(--c-ink-900); }
.ilt-hero > .page-hero { z-index: 1; background: transparent; }
.ilt-hero__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ilt-hero__lines {
    position: absolute;
    inset: 0;
    color: var(--c-gold-400);
    opacity: .2;
    -webkit-mask-image: linear-gradient(90deg, transparent 8%, rgba(0, 0, 0, .35) 42%, #000 78%);
    mask-image: linear-gradient(90deg, transparent 8%, rgba(0, 0, 0, .35) 42%, #000 78%);
}
.ilt-hero__lines .fw-visual { width: 100%; height: 100%; }
.ilt-hero--media .ilt-hero__lines { opacity: .12; }
.ilt-hero__frame { position: relative; height: 100%; }
.ilt-hero__locus { display: none; }

@media (min-width: 1024px) {
    /* Halka metin bloğunun dikey ortasına hizalı (hero üst dolgusu header'ı da içerir) */
    .ilt-hero__locus {
        --ring: clamp(320px, 29vw, 420px);
        position: absolute;
        top: calc(50% + (var(--header-h) + clamp(44px, 7vw, 96px) - clamp(64px, 8vw, 112px)) / 2);
        right: calc(var(--gutter) + clamp(0px, 3vw, 56px));
        display: block;
        width: var(--ring);
        height: var(--ring);
        margin-top: calc(var(--ring) / -2);
        color: var(--c-gold-400);
    }
    /* İnce artı işareti (enlem/boylam) — uçlarda kaybolur */
    .ilt-hero__locus::before,
    .ilt-hero__locus::after { content: ""; position: absolute; pointer-events: none; }
    .ilt-hero__locus::before {
        left: -14%;
        right: -14%;
        top: 50%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(198, 164, 106, .34) 22%, rgba(198, 164, 106, .34) 78%, transparent);
    }
    .ilt-hero__locus::after {
        top: -10%;
        bottom: -10%;
        left: 50%;
        width: 1px;
        background: linear-gradient(180deg, transparent, rgba(198, 164, 106, .26) 22%, rgba(198, 164, 106, .26) 78%, transparent);
    }
    .ilt-hero__ring { position: absolute; inset: 0; opacity: .72; }
    .ilt-hero__ring .fw-visual { width: 100%; height: 100%; }
    .ilt-hero__pin {
        position: absolute;
        left: 50%;
        top: 50%;
        z-index: 1;
        width: 9px;
        height: 9px;
        margin: -4.5px 0 0 -4.5px;
        border-radius: 50%;
        background: var(--c-gold-300);
        box-shadow: 0 0 0 5px rgba(198, 164, 106, .14), 0 0 26px 4px rgba(220, 194, 143, .35);
    }
    .ilt-hero__pin::after {
        content: "";
        position: absolute;
        inset: -5px;
        border: 1px solid var(--c-gold-400);
        border-radius: 50%;
        opacity: 0;
    }
    /* Konum etiketi: şehir iğnenin sağında çizginin üstünde, kalan satırlar halkanın altında */
    .ilt-hero__place { position: absolute; inset: 0; margin: 0; }
    .ilt-hero__city {
        position: absolute;
        left: calc(50% + 20px);
        bottom: calc(50% + 10px);
        font-family: var(--font-display);
        font-style: italic;
        font-weight: 400;
        font-size: clamp(26px, 2.2vw, 32px);
        line-height: 1;
        color: var(--c-ivory-50);
        white-space: nowrap;
    }
    .ilt-hero__place > span:not(.ilt-hero__city) {
        position: absolute;
        left: -10%;
        right: -10%;
        top: calc(100% + 22px);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        font-size: 11px;
        font-weight: 500;
        line-height: 1.4;
        letter-spacing: .2em;
        text-transform: uppercase;
        text-align: center;
        color: var(--c-text-inv-muted);
    }
    .ilt-hero__place > span:not(.ilt-hero__city)::before,
    .ilt-hero__place > span:not(.ilt-hero__city)::after { content: ""; flex: none; width: 24px; height: 1px; background: var(--c-gold-400); }
    /* Hero metni halkayla çakışmasın */
    .ilt-hero:not(.ilt-hero--media) .page-hero__text { max-width: min(760px, 56%); }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .ilt-hero__pin::after { animation: ilt-pulse 3.6s var(--ease) infinite; }
}
@keyframes ilt-pulse {
    0% { transform: scale(.6); opacity: .9; }
    70%, 100% { transform: scale(4.2); opacity: 0; }
}
@media (max-width: 1023px) {
    .ilt-hero__lines {
        opacity: .14;
        -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
        mask-image: linear-gradient(180deg, transparent 30%, #000 100%);
    }
}
@media (max-width: 559px) {
    .ilt-hero .page-hero__actions .btn { width: 100%; }
}
/* Bağlam satırı (?konu= / ?ilgi= ile gelindiğinde): gold nokta + seçili konu */
.ilt-hero .page-hero__meta { align-items: center; column-gap: 12px; color: var(--c-text-inv); }
.ilt-hero .page-hero__meta::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-gold-400);
    box-shadow: 0 0 0 4px rgba(198, 164, 106, .16);
}
/* Tireli kısa bileşikler ("Ar-Ge") satır sonunda bölünmez */
.ilt-nw { white-space: nowrap; }

/* 2 — Kanal kartları: formdaki konuyu seçer (JS'siz: ?konu=<değer>#form) ---------- */
/* Kartlar ile form aynı akışın parçası: aradaki boşluk iki tam bölüm dolgusu kadar olmasın */
.ilt-channels { padding-bottom: calc(var(--section-y) * .72); }
.ilt-channels__grid { list-style: none; display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
.ilt-channels__grid > li { display: flex; min-width: 0; }
@media (min-width: 600px) { .ilt-channels__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
    .ilt-channels__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ilt-channels__grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ilt-channel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: clamp(24px, 2.4vw, 32px) clamp(22px, 2vw, 28px) 20px;
    border: 1px solid var(--t-line);
    border-radius: var(--radius);
    background: var(--t-surface);
    color: var(--t-muted);
    transition: border-color .45s var(--ease), background-color .45s var(--ease);
}
/* üst kenarda soldan açılan gold çizgi (hover / seçili) */
.ilt-channel::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 2px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--c-gold-400);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .7s var(--ease);
}
.ilt-channel:hover { border-color: rgba(176, 141, 87, .55); }
.ilt-channel:hover::before,
.ilt-channel.is-active::before { transform: scaleX(1); }
.ilt-channel.is-active { border-color: var(--c-gold-500); }
.ilt-channel:focus-visible { outline: 2px solid var(--c-gold-400); outline-offset: 3px; }
.ilt-channel__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: clamp(26px, 2.6vw, 38px); }
.ilt-channel__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--t-gold-line);
    border-radius: 50%;
    color: var(--t-strong);
    font-size: 23px;
    transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.ilt-channel:hover .ilt-channel__icon { background: rgba(198, 164, 106, .12); }
.ilt-channel.is-active .ilt-channel__icon { background: var(--c-ink-900); border-color: var(--c-ink-900); color: var(--c-gold-300); }
.ilt-channel__num {
    margin-left: auto;
    padding-top: 4px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .14em;
    color: var(--t-gold);
    font-variant-numeric: tabular-nums lining-nums;
}
.ilt-channel__title { font-size: clamp(24px, 2vw, 29px); line-height: 1.1; }
.ilt-channel__text { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--t-muted); }
.ilt-channel__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--t-line-soft);
}
/* alt çizginin üstünde en az 28px boşluk; kalan boşluk (eşit yükseklik) margin-top:auto ile */
.ilt-channel > :nth-last-child(2) { margin-bottom: 28px; }
.ilt-channel__hint { font-size: 10.5px; font-weight: 500; line-height: 1.3; letter-spacing: .2em; text-transform: uppercase; color: var(--t-muted); }
.ilt-channel__hint-on { display: none; color: var(--t-gold); }
.ilt-channel.is-active .ilt-channel__hint-off { display: none; }
.ilt-channel.is-active .ilt-channel__hint-on { display: inline; }
.ilt-channel__mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--t-line);
    border-radius: 50%;
    color: var(--t-strong);
    font-size: 15px;
    transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease);
}
.ilt-channel__mark i { transition: transform .45s var(--ease); }
.ilt-channel__mark .ph-check { display: none; }
.ilt-channel:hover .ilt-channel__mark { border-color: var(--t-gold-line); }
.ilt-channel:hover .ilt-channel__mark .ph-arrow-down-right { transform: translate(2px, 2px); }
.ilt-channel.is-active .ilt-channel__mark { background: var(--c-gold-400); border-color: var(--c-gold-400); color: var(--c-ink-950); }
.ilt-channel.is-active .ilt-channel__mark .ph-arrow-down-right { display: none; }
.ilt-channel.is-active .ilt-channel__mark .ph-check { display: inline-block; }
/* Telefon: yatay kompakt kart (ikon | başlık + metin), numara gizli */
@media (max-width: 599px) {
    .ilt-channels__grid { gap: 12px; }
    .ilt-channel { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 20px 18px 14px; }
    .ilt-channel__top { grid-row: 1 / span 2; margin: 2px 0 0; }
    .ilt-channel__num { display: none; }
    .ilt-channel__icon { width: 44px; height: 44px; font-size: 20px; }
    .ilt-channel__title { grid-column: 2; font-size: 23px; }
    .ilt-channel__text { grid-column: 2; margin-top: 6px; font-size: 14px; line-height: 1.55; }
    .ilt-channel > :nth-last-child(2) { margin-bottom: 0; }
    .ilt-channel__foot { grid-column: 1 / -1; margin-top: 16px; padding-top: 12px; }
    .ilt-channel__mark { width: 30px; height: 30px; font-size: 14px; }
}

/* 3 — Form paneli ---------------------------------------------------------------- */
.ilt-form__grid { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 1024px) {
    .ilt-form__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
}
.ilt-form__main { display: flex; min-width: 0; }
.ilt-form__panel {
    position: relative;
    width: 100%;
    gap: clamp(30px, 3.4vw, 42px);
    padding: clamp(24px, 4vw, 52px);
    border: 1px solid var(--t-line);
    border-radius: var(--radius);
    background: var(--c-ivory-50);
}
.ilt-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.ilt-fieldset > * + * { margin-top: 22px; }
.ilt-legend {
    float: left;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--t-line-soft);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--t-strong);
}
.ilt-legend + * { clear: both; margin-top: 0; padding-top: 24px; }
.ilt-legend .step-num { background: var(--c-ivory-50); }
/* ?ilgi= bağlamı (biyoaktif / geliştirme vakası adı) */
.ilt-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 12px 16px;
    border: 1px solid rgba(176, 141, 87, .5);
    border-radius: var(--radius);
    background: rgba(198, 164, 106, .08);
    color: var(--t-fg);
}
.ilt-legend + .ilt-context { margin-top: 24px; padding-top: 12px; }
.ilt-context i { font-size: 17px; color: var(--t-gold); }
.ilt-context__label { font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--t-muted); }
.ilt-context strong { font-family: var(--font-display); font-size: 21px; font-weight: 500; line-height: 1.2; color: var(--t-strong); }
.ilt-form__consent { max-width: 60ch; }
.ilt-form__panel .form__foot { padding-top: clamp(22px, 2.4vw, 28px); border-top: 1px solid var(--t-line-soft); }
.ilt-form__panel .field__hint { margin: 0; }
.ilt-form__panel .field__hint .req { color: var(--t-gold); }
.ilt-form__panel .form-notice { margin: 0; }
/* Hatalı alan: yalnız kullanıcı etkileşiminden sonra (:user-invalid) */
.ilt-form__panel :is(.input, .select, .textarea):user-invalid { border-color: #9B2F22; }
.ilt-form__panel .check input:user-invalid { border-color: #9B2F22; }
.ilt-form__panel .field.is-error :is(.input, .select, .textarea) { border-color: #9B2F22; }
@media (max-width: 559px) {
    .ilt-form__panel .form__foot { flex-direction: column-reverse; align-items: stretch; }
    .ilt-form__panel .form__foot .btn { width: 100%; }
}

/* 4 — İletişim kartı (koyu): adres, telefon, e-posta, saatler, sosyal, harita --------- */
.ilt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--c-ink-900);
    color: var(--t-muted);
}
.ilt-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(70% 55% at 92% 0%, rgba(111, 122, 90, .2), transparent 70%);
}
/* satır düzeni gövde genişliğine göre (tablette gövde kartın yarısı) */
.ilt-card__body { display: grid; gap: clamp(24px, 2.4vw, 30px); padding: clamp(26px, 3.2vw, 44px); container-type: inline-size; min-width: 0; }
.ilt-card__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--t-line);
}
.ilt-card__head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 1px; background: var(--c-gold-400); }
.ilt-card__title { font-size: clamp(25px, 2.1vw, 31px); line-height: 1.1; }
.ilt-card__logo { --logo-h: 20px; flex: none; opacity: .72; }
.ilt-card__list { display: grid; }
.ilt-card__row { display: grid; gap: 8px; padding-block: 16px; border-bottom: 1px solid var(--t-line-soft); }
.ilt-card__row:first-child { padding-top: 0; }
.ilt-card__row:last-child { border-bottom: 0; padding-bottom: 0; }
@container (min-width: 400px) {
    .ilt-card__row { grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: baseline; }
}
.ilt-card__row dt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--t-muted);
}
.ilt-card__row dt i { flex: none; font-size: 16px; letter-spacing: 0; color: var(--c-gold-400); transform: translateY(1px); }
.ilt-card__row dd { min-width: 0; font-size: 15px; line-height: 1.6; color: var(--t-fg); overflow-wrap: anywhere; }
.ilt-card__row address { font-style: normal; }
.ilt-card__big {
    font-family: var(--font-display);
    font-size: clamp(21px, 1.75vw, 25px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--t-strong);
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
    transition: color .3s var(--ease);
}
.ilt-card__big:hover, .ilt-card__sub a:hover { color: var(--c-gold-300); }
.ilt-card__sub { display: block; margin-top: 4px; font-size: 13.5px; color: var(--t-muted); }
.ilt-card__social { flex-wrap: wrap; }

/* Harita: sıcak tonlu, soluk → üzerine gelince canlanır; kart yüksekliğini doldurur */
.ilt-map { display: flex; flex: 1 1 auto; flex-direction: column; margin: 0; border-top: 1px solid var(--t-line); }
.ilt-map__frame { position: relative; flex: 1 1 auto; min-height: 260px; overflow: hidden; background: var(--c-ink-850); }
.ilt-map__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border: 0;
    /* koyu kartla uyumlu: ters çevrilmiş, sıcak tonlu gece haritası */
    filter: grayscale(1) invert(.9) sepia(.4) brightness(.7) contrast(.92);
    transition: filter .9s var(--ease);
}
.ilt-map:hover iframe,
.ilt-map:focus-within iframe { filter: none; }
/* Harita yüklenene (veya engellenene) kadar arkada görünen sade yer tutucu */
.ilt-map__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c-gold-400); font-size: 30px; opacity: .55; }
.ilt-map__ph::before { content: ""; position: absolute; width: 96px; height: 96px; border: 1px solid rgba(198, 164, 106, .3); border-radius: 50%; }
.ilt-map__frame::after {
    content: "";
    position: absolute;
    inset: clamp(8px, 1.2vw, 12px);
    border: 1px solid rgba(220, 194, 143, .4);
    z-index: 2;
    border-radius: 2px;
    pointer-events: none;
}
.ilt-map__caption { padding: 16px clamp(26px, 3.2vw, 44px) 20px; }
@media (min-width: 700px) and (max-width: 1023px) {
    .ilt-card { flex-direction: row; }
    .ilt-card__body { flex: 1 1 56%; }
    .ilt-map { flex: 1 1 44%; border-top: 0; border-left: 1px solid var(--t-line); }
}
