/* ==========================================================================
   Doka Klinik — taslağın style.css'ine eklemeler.
   style.css taslaktan olduğu gibi geldi; buradaki her kural, taslağın elle
   yazılmış HTML'i yerine sistemden gelen içeriğin (zengin metin, panel
   metni, dinamik liste) aynı görünmesi ya da kullanıcı kararıyla değişen
   bir parça için.
   ========================================================================== */

/* --- Kartlar link oldu (taslakta hekim kartları düz <article>/<figure>) --- */
a.doctor-card, .dk-card-link { display: block; color: inherit; text-decoration: none; }
a.doctor-card:hover, .dk-card-link:hover { color: inherit; }
.dk-card-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; border-radius: 26px; }

/* --- Kurumsal "Biz Kimiz": panelin zengin metni, ilk paragraf taslağın
       .lead-text'i gibi (editör sınıf yazmadığı için seçiciyle) --- */
.dk-about-intro > p:first-of-type { font-size: 1.15rem; color: var(--ink); }

/* --- Zengin metin (tedavi, yazı, hekim, serbest sayfa) ---
   Taslakta "Neden implant?" listesi .check-list, "Tedavi süreci" .steps
   sınıflarıyla elle yazılmıştı. Panel editörü sınıf yazmıyor: düz <ul>
   aynı tik listesi, düz <ol> aynı numaralı adım görünümünü buradan alıyor.
   Editör liste maddelerini <p> ile sarıyor, o yüzden li > p sıfırlanıyor. */
.dk-prose { overflow-wrap: anywhere; }
.dk-prose h2, .dk-prose h3 { scroll-margin-top: calc(var(--header-h) + 24px); }
.dk-prose h3 { font-family: var(--font-sans); font-size: 1.1rem; font-weight: 700; margin: 28px 0 8px; }
.dk-prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.dk-prose a:not(.btn):not(.link-arrow) { color: var(--teal-600); text-decoration: underline; text-underline-offset: 3px; }
.dk-prose li > p { margin: 0; }

.dk-prose ul:not(.toc-list) { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.dk-prose ul:not(.toc-list) > li { position: relative; padding-left: 30px; font-size: .96rem; }
.dk-prose ul:not(.toc-list) > li::before { content: "\F270"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--teal); font-size: 1.1rem; line-height: 1.5; }
.dk-prose ul ul { grid-template-columns: 1fr; margin: 10px 0 0; }

.dk-prose ol { list-style: none; padding: 0; margin: 0 0 1.4rem; counter-reset: step; }
.dk-prose ol > li { position: relative; padding: 8px 0 28px 64px; counter-increment: step; min-height: 44px; }
.dk-prose ol > li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--teal); color: var(--teal); font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; background: var(--cream); }
.dk-prose ol > li:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 44px; bottom: 0; width: 1px; background: var(--line); }
.dk-prose ol > li > p:first-child strong:first-child { display: block; font-size: 1.05rem; color: var(--ink); margin-bottom: 2px; }

.dk-prose blockquote { margin: 40px 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--teal); font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.4; color: var(--ink); font-style: italic; }
.dk-prose blockquote p { font-size: inherit; margin: 0; }
.dk-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .94rem; display: block; overflow-x: auto; }
.dk-prose th, .dk-prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.dk-prose th { background: var(--teal-50); }
.dk-prose .faq { margin-top: 8px; }
@media (max-width: 767.98px) {
  .dk-prose ul:not(.toc-list) { grid-template-columns: 1fr; }
  .dk-prose blockquote { font-size: 1.3rem; }
}

/* --- Hekim detayı (taslakta yoktu) --- */
.dk-doctor-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; }
.dk-doctor-langs { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: .92rem; }
.dk-doctor-langs i { color: var(--teal); }
@media (max-width: 991.98px) {
  .dk-doctor-aside { position: static; }
  .dk-doctor-aside .team-img { max-width: 420px; }
}

/* --- Footer: tek satırlı saat metni (taslakta gün gün tablo vardı) --- */
.footer-hours li { justify-content: flex-start; }
.dk-legal-sep { margin: 0 8px; opacity: .45; }
.dk-legal { color: inherit; opacity: .8; }
.dk-legal:hover { opacity: 1; color: #fff; }

/* --- CTA saat kutusu: canlı "açık/kapalı" rozeti yerine saat ikonu --- */
.cta-float-hours { flex-direction: row; align-items: center; gap: 10px; }
.cta-float-hours i { color: var(--teal); font-size: 1.1rem; }
.cta-float-hours small { font-size: .82rem; color: var(--ink); font-weight: 600; }

/* --- Blog sayfalaması (taslakta yoktu) --- */
.dk-pagination { display: flex; justify-content: center; margin-top: 56px; }
.dk-pagination nav > div:first-child { display: none !important; }
.dk-pagination nav > div:last-child { display: flex !important; flex-direction: column; align-items: center; gap: 12px; }
.dk-pagination p.small { margin: 0; color: var(--muted); }
.dk-pagination .pagination { --bs-pagination-color: var(--ink); --bs-pagination-hover-color: var(--teal-600); --bs-pagination-active-bg: var(--teal); --bs-pagination-active-border-color: var(--teal); --bs-pagination-border-color: var(--line); --bs-pagination-focus-box-shadow: none; gap: 6px; margin: 0; }
.dk-pagination .page-link { border-radius: 999px !important; min-width: 42px; text-align: center; }

/* --- Blog: etiket düğmeleri + arama (taslakta yoktu; düğmeler taslağın
       galeri sayfasındaki .filter-chips'i, orada <button>, burada link) --- */
.dk-blog-bar { display: flex; align-items: flex-start; gap: 16px 32px; margin-bottom: 40px; }
.dk-blog-bar .filter-chips { margin: 0; flex: 1 1 0; min-width: 0; }
.filter-chips a { padding: 9px 20px; border-radius: 100px; border: 1px solid var(--line); color: var(--ink-2); font-size: .88rem; font-weight: 500; text-decoration: none; transition: all .3s var(--ease); }
.filter-chips a span { margin-left: 4px; opacity: .55; font-size: .8em; }
.filter-chips a:hover, .filter-chips a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.dk-search { position: relative; flex: 0 0 280px; margin-left: auto; }
.dk-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.dk-search input { width: 100%; padding: 11px 18px 11px 44px; border-radius: 100px; border: 1px solid var(--line); background: #fff; font-size: .92rem; color: var(--ink); }
.dk-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(42, 140, 140, .12); }
.dk-filter-note { margin: -16px 0 32px; color: var(--muted); font-size: .92rem; }
.dk-filter-note a { margin-left: 10px; color: var(--teal-600); font-weight: 600; text-decoration: none; }
.dk-empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.dk-empty i { display: block; font-size: 2rem; color: var(--teal); margin-bottom: 12px; }
@media (max-width: 991.98px) {
  .dk-blog-bar { flex-direction: column; align-items: stretch; }
  .dk-search { flex: none; margin-left: 0; }
}

/* Yazı altı: etiketi listede süzen link */
.article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.dk-post-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 100px; background: var(--teal-50); color: var(--teal-600); font-size: .85rem; font-weight: 600; text-decoration: none; }
.dk-post-tag:hover { background: var(--teal); color: #fff; }

/* --- İletişim formu: sonuç ve hata --- */
.dk-form-success { display: grid; justify-items: start; gap: 14px; }
.dk-form-success .section-title { margin: 0; }
.dk-form-success-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); font-size: 1.6rem; }
.dk-form-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(217, 119, 106, .12); color: #B4523F; font-size: .9rem; }
#appointmentForm .form-check-label a { color: var(--teal-600); text-decoration: underline; }

/* --- Sanal tur sayfası: krpano turu sitenin içinde (iframe) --- */
.dk-tour { padding-top: clamp(40px, 5vw, 64px); }
.dk-tour-frame { position: relative; height: min(78vh, 760px); min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow); }
.dk-tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.dk-tour-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.dk-tour-foot i.bi-hand-index { color: var(--teal); margin-right: 6px; }
/* Tam ekran: tarayıcının kendi tam ekranı (:fullscreen) ya da, desteklemeyen
   tarayıcıda (iPhone Safari), ekranı kaplayan çerçeve (.is-expanded). Kapatma
   düğmesi yalnızca bu iki durumda görünür. */
.dk-tour-frame:fullscreen { height: 100%; border-radius: 0; }
.dk-tour-frame.is-expanded { position: fixed; inset: 0; z-index: 2000; height: 100dvh; min-height: 0; border-radius: 0; }
.dk-tour-lock, .dk-tour-lock body { overflow: hidden; }
.dk-tour-close { display: none; position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.1rem; box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .5); }
.dk-tour-frame:fullscreen .dk-tour-close, .dk-tour-frame.is-expanded .dk-tour-close { display: grid; place-items: center; }
@media (max-width: 767.98px) {
  .dk-tour-frame { height: 70vh; min-height: 360px; }
}

/* --- Galeri: kategori/başlık olmayan fotoğraf --- */
.g-item .g-meta:empty { display: none; }

/* --- Mobil taşma: offcanvas menüdeki lotus süsü ve dekoratif parlamalar
       402px genişlikte yatay kaydırma açıyordu --- */
html, body { overflow-x: clip; }
.oc-lotus, .footer-lotus, .footer-glow { max-width: 100vw; }
