/* app.css: BS dışı kurallar */

:root {

    /* BS yok: header boyu */
    --header-h: 52px;
}

/* BS yok: kök ölçek .92rem */
html {
    font-size: .92rem;
    overflow-y: scroll;
}

/* BS yok: header payı */
:target,
section[id],
#main {
    scroll-margin-top: var(--header-h);
}
.x-small {
    font-size: 0.8rem;
}
/* BS yok: cam header */
.site-header {
    min-height: 52px;
    background: linear-gradient(135deg, #003b94 0%, #0f468a 54%, #0a2f6e 100%) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
/* BS yok: 1200px konteyner */
.container {
    max-width: 1200px;
}
.hero-box {
    background: rgba(0, 0, 0, 1);
    border-radius: 1rem;
}

.hero-box-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 0;
}
@media (max-width: 991.98px) {
    input, select, textarea {
        font-size: 16px !important;
    }
     .hero-box {
        border-radius: 0;
    }
}
.carousel-item,
.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out !important;
}
/* BS yok: hero yüksekliği, skrim ve mobil tam genişlik buton */
@media (min-width: 992px) { .hero { min-height: 420px; } }
.hero-skrim { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.65) 100%); }
@media (max-width: 575.98px) { .hero-search .btn { flex: 1 1 100%; } }

/* BS yok: koyu form */
.form-check-input:checked {
    background-color: #212529;
    border-color: #212529;
}
.form-check-input:focus {
    border-color: #212529;
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.15);
}
/* BS yok: scrollbar */
.overflow-auto::-webkit-scrollbar { display: none; }
.overflow-auto { scrollbar-width: none; }

/* BS yok: sticky panel */
.filter-sidebar {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

.filter-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-group { padding: 0 1rem; }
.filter-group + .filter-group { margin-top: 1rem; }

.filter-scroll > .filter-group + #filterForm { margin-top: 1rem; }
.filter-title {
    font-size: .8125rem; font-weight: 600; color: #212529;
    margin: 0 0 .5rem;
}
.filter-list { display: flex; flex-direction: column; }
.filter-row {
    display: flex; align-items: center; gap: .5rem;
    padding: .25rem 0;
}
.filter-row .bi { width: 14px; font-size: 14px; }
.filter-check { width: 14px; height: 14px; margin: 0; flex: 0 0 14px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }

.filter-price-values {
    display: flex; justify-content: space-between; align-items: baseline;
    font-size: .8125rem; color: #6c757d; margin-bottom: .25rem;
}
.filter-scroll::-webkit-scrollbar { display: none; }

.filter-actions-sticky {
    flex-shrink: 0;
    background: #fff;
    padding: 1rem 0;
    border-top: 1px solid var(--bs-border-color);
    z-index: 10;
}

@media (max-width: 991.98px) {
    .site-header .navbar-nav .nav-link {
        display: flex;
        width: 100%;
    }
    #filterPanel {
        position: fixed;
        inset: 0;
        top: auto;
        height: 85dvh;
        background: #fff;
        z-index: 1050;
        transform: translateY(100%);
        transition: transform 0.3s ease-in-out;
        border-radius: .75rem .75rem 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        padding: 0 0 0 0;   
        display: flex;
        flex-direction: column;
    }

    body.filter-open #filterPanel {
        transform: translateY(0);
    }

    .filter-sidebar {
        flex: 1;
        height: auto;
        min-height: 0;
        background: transparent;   
    }

    .filter-scroll {
        padding-right: 0;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .filter-actions-sticky {
        padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom, 0px));
        margin: 0 -1.5rem;
    }

    #filterBackdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }

    body.filter-open #filterBackdrop {
        opacity: 1;
        visibility: visible;
    }

    body.filter-open {
        overflow: hidden;
    }
}

@media (min-width: 992px) {
    .filter-sidebar {
        position: sticky;
        top: calc(var(--header-h, 70px) + 1rem);
        height: calc(100vh - var(--header-h, 70px) - 2rem);
        border-radius: 0.5rem;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }
}

/* BS yok: slider (tek sınıf, tek blok) */
.range { position: relative; height: 24px; margin-top: .75rem; }
.range__track, .range__fill { position: absolute; top: 50%; transform: translateY(-50%); height: 6px; border-radius: .25rem; left: 0; right: 0; }
.range__track { background: transparent; }
.range__fill { background: var(--bs-dark); }
.range__input { position: absolute; top: 0; left: 0; width: 100%; height: 24px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; pointer-events: none; }
.range__input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--bs-dark); border: 2px solid var(--bs-white); box-shadow: var(--bs-box-shadow-sm); cursor: pointer; }
.range__input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--bs-dark); border: 2px solid var(--bs-white); box-shadow: var(--bs-box-shadow-sm); cursor: pointer; }
.range__input::-webkit-slider-thumb:active { background: var(--bs-dark); }
.range__input::-moz-range-thumb:active { background: var(--bs-dark); }
.range__input::-webkit-slider-runnable-track { -webkit-appearance: none; background: transparent; }
.range__input::-moz-range-track { background: transparent; }
.range__input:focus, .range__input:focus-visible { outline: none; box-shadow: none !important; }
@media (max-width: 991.98px) {
    /* BS yok: yatay taşma */
.listings-section {
        overflow-x: hidden;   
    }
        #listingCarousel {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        border-radius: 0 !important;
    }
}
.card-type-badge {
    background: rgba(255, 255, 255, 0.55);
    color: #000;
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.5em 1em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.02em;
}

/* BS yok: kart görseli zoom */
.listings-section .card .ratio img {
    transition: transform 0.5s ease;
}

.listings-section .card:hover .ratio img {
    transform: scale(1.03);
}
/* BS yok: hover menü */
.site-header .nav-link:hover, .site-header .nav-link.active {
    background: rgba(230, 235, 239, 0.1);
}  
.site-header .nav-link.active {
font-weight: 600;
}

* { touch-action: manipulation; }

*:focus {
    outline: none;
}

/* BS yok: odak halkası */
*:focus-visible {
    outline: 2px solid #212529;
    outline-offset: 2px;
    border-radius: 4px;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
textarea:focus,
input:focus {
    border-color: #212529 !important;
    box-shadow: 0 0 0 0.2rem rgba(33, 37, 41, 0.15) !important;
}
@media (max-width: 991.98px) {
    /* BS yok: mobil 16px */
input, select, textarea {
        font-size: 16px !important;
    }
}
@media (max-width: 991.98px) {

    /* BS yok: eşit buton */
.site-header .navbar-toggler,
    .site-header #openFilterBtn {
        width: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
@media (max-width: 991.98px) {
    .site-header .logo-img {
        height: 24px !important;
        width: 24px !important;
        margin-top:-4px;
    }
}
/* BS yok: aktif nokta */
.filter-active-dot {
    position: absolute;
    top: 3px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: var(--bs-warning);
    border-radius: 50%;
    border: 1.5px solid #fff;
}

/* BS yok: Quill */
.blog-content,
.page-content,
.listing-content {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--bs-body-color);
    overflow-wrap: break-word;
}

.blog-content > *:first-child,
.page-content > *:first-child,
.listing-content > *:first-child { margin-top: 0; }

.blog-content > *:last-child,
.page-content > *:last-child,
.listing-content > *:last-child  { margin-bottom: 0; }

.blog-content h2,
.page-content h2,
.listing-content h2 {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.35;
    margin: 2rem 0 .75rem;
}

.blog-content h3,
.page-content h3,
.listing-content h3 {
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
    margin: 1.75rem 0 .65rem;
}

.blog-content h4,
.page-content h4,
.listing-content h4 {
    font-size: 1.05rem;
    font-weight: bold;
    margin: 1.5rem 0 .5rem;
}

.blog-content p,
.page-content p,
.listing-content p {
    margin: 0 0 1.1rem;
}

.blog-content ul,
.blog-content ol,
.page-content ul,
.page-content ol,
.listing-content ul,
.listing-content ol {
    margin: 0 0 1.1rem;
    padding-left: 1.5rem;
}

.blog-content li,
.page-content li,
.listing-content li {
    margin-bottom: .4rem;
}

.blog-content li::marker,
.page-content li::marker,
.listing-content li::marker {
    color: var(--bs-secondary-color);
}

.blog-content blockquote,
.page-content blockquote,
.listing-content blockquote {
    margin: 1.25rem 0;
    padding: .5rem 0 .5rem 1rem;
    border-left: 3px solid var(--bs-dark);
    color: var(--bs-secondary-color);
    font-style: italic;
}

.blog-content blockquote p:last-child,
.page-content blockquote p:last-child,
.listing-content blockquote p:last-child {
    margin-bottom: 0;
}

.blog-content a,
.page-content a,
.listing-content a {
    text-decoration: none;
    text-underline-offset: 2px;
}

.blog-content a:hover,
.page-content a:hover,
.listing-content a:hover {
    text-decoration: underline;
}

/* Quill yapıştırması inline renk bırakıyor: ilan metninde bağlantı rengi sabitlenir */
.listing-content a,
.listing-content a * {
    color: var(--bs-link-color) !important;
}

.listing-content a:hover,
.listing-content a:hover * {
    color: var(--bs-link-hover-color) !important;
}

.blog-content strong,
.page-content strong,
.listing-content strong { font-weight: 600; }

.blog-content img,
.page-content img,
.listing-content img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
    margin: 1rem 0;
}

.blog-content pre,
.page-content pre,
.listing-content pre {
    background: #f8f9fa;
    border: 1px solid var(--bs-border-color);
    border-radius: .5rem;
    padding: 1rem;
    overflow-x: auto;
    font-size: .875rem;
    margin: 1.25rem 0;
}

.blog-content code,
.page-content code,
.listing-content code {
    background: #f1f3f5;
    padding: .15em .35em;
    border-radius: .25rem;
    font-size: .875em;
}

.blog-content pre code,
.page-content pre code,
.listing-content pre code {
    background: none;
    padding: 0;
}

.blog-content hr,
.page-content hr,
.listing-content hr {
    margin: 2rem 0;
    border-color: var(--bs-border-color);
}

.blog-content .ql-align-center,
.page-content .ql-align-center,
.listing-content .ql-align-center { text-align: center; }
.blog-content .ql-align-right,
.page-content .ql-align-right,
.listing-content .ql-align-right  { text-align: right; }
.blog-content .ql-align-justify,
.page-content .ql-align-justify,
.listing-content .ql-align-justify { text-align: justify; }
#listingCarousel .carousel-inner { aspect-ratio: 4/3; max-height: 500px;}
@media (max-width: 991.98px) {
     #listingCarousel .carousel-inner { aspect-ratio: 4/3; }
}

/* BS yok: akordiyon tonu */
.accordion {
    --bs-accordion-border-color: #e5e7eb;
    --bs-accordion-btn-color: #111827;
    --bs-accordion-active-color: #111827;
    --bs-accordion-active-bg: #f3f4f6;
    --bs-accordion-btn-icon-width: .85rem;
    --bs-accordion-btn-focus-box-shadow: none;
}
.accordion-button,
.accordion-body {
    font-size: .95rem;
}

/* BS yok: cam oklar */
#listingCarousel .carousel-control-prev,
#listingCarousel .carousel-control-next {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    opacity: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

#listingCarousel .carousel-control-prev { left: 42px; }
#listingCarousel .carousel-control-next { right: 42px; }

#listingCarousel .carousel-control-prev:hover,
#listingCarousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.45);
}

#listingCarousel .carousel-control-prev-icon,
#listingCarousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
     filter: brightness(0); 
}

@media (max-width: 575.98px) {
    #listingCarousel .carousel-control-prev,
    #listingCarousel .carousel-control-next {
        width: 36px;
        height: 36px;
    }
    #listingCarousel .carousel-control-prev { left: 8px; }
    #listingCarousel .carousel-control-next { right: 8px; }
}
#listingCarousel .carousel-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}
@media (max-width: 575.98px) {
    #listingCarousel .carousel-counter {
        top: 8px;
        right: 8px;
        padding: 3px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 991.98px) {
    /* BS yok: tam genişlik */
.col > .wide,
    [class*="col-"] > .wide {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        width: calc(100% + 1.5rem);
        max-width: none;
        border-radius: 0 !important;
    }
}

/* BS yok: ikon esnemesin */
.bi { flex-shrink: 0; }

/* BS yok: puan satırları */
.score-part {
    cursor: pointer;
    border-radius: .25rem;
    transition: background-color .15s ease;
}
.score-part:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
}
.score-part-chevron {
    display: inline-flex;
    transition: transform .2s ease;
}
.score-part[aria-expanded="true"] .score-part-chevron {
    transform: rotate(90deg);
}

.btn.offer-given {
    white-space: nowrap;
}

html.offer-modal-open {
    overflow: hidden !important;
}
html.offer-modal-open body.modal-open {
    overflow: visible !important;
}

/* BS yok: çip ölçüsü */
.chip { padding-block: 3px; font-size:12px}  


@media (max-width: 575.98px) {
    /* BS yok: 2 satır kesme */
.summary-clamp {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}

/* BS yok: kaydırmalı şerit */
.strip {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    --gutter: calc(var(--bs-gutter-x) * .5);
    margin-inline: calc(var(--bs-gutter-x) * -.5);
    padding-inline: var(--gutter) 0;
    scroll-padding-inline-start: var(--gutter);
    padding-block: 16px 28px;
    margin-block: -16px -28px;
}
.strip::-webkit-scrollbar { display: none; }
.strip > * { flex: 0 0 auto; width: var(--strip-w, auto); scroll-snap-align: start; }
.strip--cards { --strip-w: 47%; }
.strip--tall { --strip-w: 85%; }
.strip--wide { --strip-w: 95%; }

@media (min-width: 992px) {

    .strip {
        padding-block: 0;
        margin-block: 0;
        scroll-padding-inline-start: 0;
    }
    .strip--cards {
        display: grid;
        grid-template-columns: repeat(var(--strip-cols, 4), minmax(0, 1fr));
        overflow: visible;
        margin-inline: 0;
        padding-inline: 0;
    }
    .strip--cards > * { width: auto; }
}

/* BS yok: hover gölgesi (token) */
a.card, a .card { transition: box-shadow .2s ease; }
a.card:hover, a .card:hover { box-shadow: var(--bs-box-shadow) !important; }
/* BS yok: 44px ikon kutusu */
.icon-lg { width: 44px; height: 44px; flex-shrink: 0; }

/* BS yok: 2 satır kesme */
.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* BS yok: çerez butonu 44px */
.cookie-bar__btn { min-height: 44px; }

#htmx-nav-progress {
    position: fixed; top: var(--header-h); left: 0; height: 3px; width: 0;
    background: var(--bs-dark); opacity: 0; pointer-events: none; z-index: 1080;
    transition: width .3s ease, opacity .3s ease;
}

/* ──────────────────────────────────────────────
   İLAN DETAY (listings/detail.php) — inline stil yok
   Her satırın nedeni: Bootstrap'ta birebir karşılığı yok.
   ────────────────────────────────────────────── */
/* BS yok: özellik tablosu etiket sütunu */
.minw-120 { min-width: 120px; }
/* BS yok: puan bileşeni etiket sütunu */
.minw-108 { min-width: 108px; }
/* BS yok: puan değeri sütunu (text-end ile birlikte kullanılır) */
.minw-34 { min-width: 34px; }
/* BS yok: 4px ince ilerleme çubuğu (BS .progress varsayılanı 16px) */
.progress-xs { height: 4px; }
/* BS yok: mobil sabit CTA çubuğu katmanı */
.detail-cta { z-index: 1030; }
/* BS yok: 80px header'ın altında yapışkan sağ kolon */
.detail-aside { top: 80px; z-index: 10; }
/* BS yok: harita kartı yüksekliği ve tıklanabilirlik */
.detail-map { width: 100%; height: 200px; cursor: pointer; }
/* BS yok: .small'dan küçük yardımcı metin */
.fs-7 { font-size: .72rem; }

/* POI sekme kapsülü: tarayıcı varsayılanı yerine sitenin koyu rengi */
#poiTabs .btn { background: #fff; border: 1px solid #dee2e6; color: #212529; }
#poiTabs .btn.active { background: #212529; border-color: #212529; color: #fff; }
#poiTabs .btn:focus-visible { outline: 2px solid #212529; outline-offset: 2px; }

/* ──────────────────────────────────────────────
   ORTAK KATMAN — inline stil yok
   ────────────────────────────────────────────── */
/* BS yok: ikon boyu tek kaynaktan (svg_icon → data-icon-size). rem = kök 14,72px ölçeği */
[data-icon-size="10"] { font-size: .68rem; }
[data-icon-size="12"] { font-size: .82rem; }
[data-icon-size="13"] { font-size: .88rem; }
[data-icon-size="14"] { font-size: .95rem; }
[data-icon-size="16"] { font-size: 1.09rem; }
[data-icon-size="18"] { font-size: 1.22rem; }
[data-icon-size="22"] { font-size: 1.49rem; }
[data-icon-size="24"] { font-size: 1.63rem; }
[data-icon-size="26"] { font-size: 1.77rem; }
[data-icon-size="30"] { font-size: 2.04rem; }

/* BS yok: metin blok genişliği sınırları (max-width utility'si BS'de yok) */
.mw-360 { max-width: 360px; }
.mw-560 { max-width: 560px; }
.mw-640 { max-width: 640px; }
.mw-ch-44 { max-width: 44ch; }

/* BS yok: 70vh (BS'de 25/50/75/100 var) */
.min-vh-70 { min-height: 70vh; }
/* BS yok: tam ekran örtü katmanı (BS z-3'te biter) */
.z-1080 { z-index: 1080; }

/* BS yok: hesaplama sayfası sağ kolonu, header yüksekliğine bağlı yapışkan */
.aside-tools { top: calc(var(--header-h) + 1rem); z-index: 10; }

/* BS yok: header altına hizalanan yapışkan/sabit katman (toast, sağ kolon) */
.sticky-under-header { top: calc(var(--header-h) + 1rem); }


/* BS yok: kart favori kalbi — 28×28 sabit, tip rozetinden bağımsız zemin */
.card-fav {
    /* Erişilebilirlik: 28×28 dokunma hedefi; görünen daire 22 px kalır
       (3 px iç boşluk + background-clip: content-box) */
    width: 28px;
    height: 28px;
    padding: 3px;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
    background-clip: content-box;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* BS yok: favori sayacı — badge'in 11px/19px tabanından küçük (10px yazı, ~16px yükseklik) */
.fav-count {
    font-size: 10px;
    line-height: 1;
    padding: 3px 5px;
    min-width: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* BS yok: araç ikon daireleri */
.icon-36 { width: 36px; height: 36px; }
.icon-56 { width: 56px; height: 56px; }

/* BS yok: şerit sütun sayısı öznitelikten (4 varsayılan) */
[data-strip-cols="2"] { --strip-cols: 2; }
[data-strip-cols="3"] { --strip-cols: 3; }

/* Kırıntı ayırıcısı: sayfa başına inline değişken yerine tek yer */
.breadcrumb { --bs-breadcrumb-divider: '›'; }
