/* Emlak CMS — Site ek stilleri · v1.2
 * Tailwind CDN'in kapsamadığı küçük bileşenler: lightbox, galeri, içerik tipografisi, yazdırma.
 */
:root { --navy: #0f1f3d; --gold: #c9a24b; }
html, body { overflow-x: hidden; }
[x-cloak], .is-hidden { display: none !important; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Hero deseni */
.hero-bg { background: radial-gradient(1200px 500px at 80% -10%, rgba(201,162,75,.28), transparent 60%), linear-gradient(135deg, #0a1428 0%, #0f1f3d 55%, #172b52 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000 30%, transparent); pointer-events: none; }

/* Galeri küçük resimleri */
.thumbs { scrollbar-width: thin; }
.thumbs button[aria-current="true"] { outline: 3px solid var(--gold); outline-offset: -3px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(5,10,22,.94); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 10px; user-select: none; }
.lightbox .lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.22); }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-close { right: 12px; top: 12px; }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #cfd6e4; font-size: 14px; font-weight: 600; }

/* Zengin metin (blog, açıklama) */
.prose-emlak { color: #334155; line-height: 1.8; font-size: 16px; }
.prose-emlak p { margin: 0 0 1em; }
.prose-emlak h2, .prose-emlak h3, .prose-emlak h4 { color: var(--navy); font-weight: 700; margin: 1.6em 0 .6em; line-height: 1.3; }
.prose-emlak h2 { font-size: 1.5rem; } .prose-emlak h3 { font-size: 1.25rem; }
.prose-emlak ul, .prose-emlak ol { margin: 0 0 1.2em 1.3em; }
.prose-emlak ul { list-style: disc; } .prose-emlak ol { list-style: decimal; }
.prose-emlak li { margin: .35em 0; }
.prose-emlak a { color: #a9842f; text-decoration: underline; }
.prose-emlak blockquote { border-left: 4px solid var(--gold); padding: .4em 1em; background: #fbf6ea; border-radius: 0 10px 10px 0; margin: 1em 0; }

/* Kredi aracı aralık kaydırıcısı */
input[type=range] { accent-color: var(--gold); }

/* WhatsApp butonu nabız efekti */
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: #25d366; opacity: .45; animation: wa-pulse 2.4s infinite; z-index: -1; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .45 } 70% { transform: scale(1.5); opacity: 0 } 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } * { scroll-behavior: auto !important; } }

/* Mobil filtre çekmecesi (masaüstünde karartma katmanı hiç görünmez) */
.filter-backdrop { display: none; }
@media (max-width: 1023px) {
  .filter-drawer { position: fixed; inset: 0 0 0 auto; width: min(360px, 92vw); z-index: 70; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; border-radius: 0 !important; }
  .filter-drawer.open { transform: none; }
  .filter-backdrop { position: fixed; inset: 0; background: rgba(10,20,40,.5); z-index: 65; display: none; }
  .filter-backdrop.open { display: block; }
}

@media print {
  header, footer, .wa-float, [data-no-print] { display: none !important; }
  body { background: #fff; }
}
