.emlak-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.emlak-gallery-main-wrap {
    position: relative;
}

.emlak-gallery-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f7f7f7;
}

.emlak-gallery-slide {
    display: none;
    cursor: zoom-in;
}

.emlak-gallery-slide.is-active {
    display: block;
}

.emlak-gallery-slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.emlak-gallery-nav {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border: none !important;
    border-radius: 50% !important;
    background: rgba(0,0,0,.55) !important;
    color: #fff !important;
    font-size: 28px;
    line-height: 42px;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    box-shadow: none !important;
}

.emlak-gallery-nav.prev {
    left: 12px;
}

.emlak-gallery-nav.next {
    right: 12px;
}

.emlak-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.emlak-gallery-thumb {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid transparent !important;
    border-radius: 10px !important;
    overflow: hidden;
    background: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
}

.emlak-gallery-thumb.is-active {
    border-color: #6bb64a !important;
}

.emlak-gallery-thumb img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.emlak-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.emlak-lightbox.is-open {
    display: flex;
}

.emlak-lightbox-stage {
    width: min(1100px, 90vw);
    height: min(80vh, 800px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.emlak-lightbox-image {
    display: none;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.emlak-lightbox-image.is-active {
    display: block;
}

.emlak-lightbox-close,
.emlak-lightbox-nav {
    position: absolute;
    border: none !important;
    background: rgba(255,255,255,.15) !important;
    color: #fff !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
}

.emlak-lightbox-close {
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 28px;
}

.emlak-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 30px;
}

.emlak-lightbox-nav.prev {
    left: 20px;
}

.emlak-lightbox-nav.next {
    right: 20px;
}

.emlak-lightbox-open {
    overflow: hidden;
}

.emlak-ozellik-tablosu {
    display: flex;
    flex-direction: column;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.emlak-ozellik-row {
    display: grid;
    grid-template-columns: 190px 1fr;
    border-bottom: 1px solid #f1f1f1;
}

.emlak-ozellik-row:last-child {
    border-bottom: none;
}

.emlak-ozellik-label,
.emlak-ozellik-value {
    padding: 12px 14px;
    font-size: 14px;
}

.emlak-ozellik-label {
    background: #fafafa;
    font-weight: 700;
    color: #222;
}

.emlak-ozellik-value {
    color: #444;
}

@media (max-width: 767px) {
    .emlak-gallery-slide img {
        height: 260px;
    }

    .emlak-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .emlak-ozellik-row {
        grid-template-columns: 1fr;
    }
}

/*İlan Listeleme Kısmı*/

/* =========================
   İLAN ARŞİV / FİLTRE SAYFASI
========================= */

.emlak-archive-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.emlak-filter-sidebar {
    border: 1px solid #d9d9d9;
    background: #f8f8f8;
    padding: 14px;
    border-radius: 4px;
    position: sticky;
    top: 20px;
}

.emlak-filter-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.emlak-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4e4e4;
}

.emlak-filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.emlak-filter-title,
.emlak-filter-label {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.emlak-filter-form select,
.emlak-filter-form input {
    width: 100%;
    height: 38px;
    border: 1px solid #cfcfcf;
    background: #fff;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 2px;
    box-sizing: border-box;
}

.emlak-inline-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.emlak-filter-actions {
    margin-top: 4px;
}

.emlak-filter-submit {
    width: 100% !important;
    height: 42px;
    border: 1px solid #7a98bd;
    background: linear-gradient(#5d93cf, #3f76b1);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    border-radius: 2px !important;
    padding: 10px 35px 10px 35px !important;
}

.emlak-list-area {
    min-width: 0;
}

/* Tek sütun liste */
.emlak-card-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.emlak-list-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 180px;
    gap: 18px;
    align-items: stretch;
    border: 1px solid #e3e3e3;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.emlak-list-card-thumb {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #f2f2f2;
    min-height: 180px;
}

.emlak-list-card-thumb img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.emlak-list-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.emlak-list-card-title {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #0d2b66;
}

.emlak-list-card-title a {
    color: inherit;
    text-decoration: none;
}

.emlak-list-card-title a:hover {
    color: #0f5da8;
}

.emlak-list-card-location {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
}

.emlak-list-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 15px;
    color: #444;
}

.emlak-list-card-meta span {
    position: relative;
}

.emlak-list-card-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
}

.emlak-list-card-price {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: #c62828;
    text-align: center;
}

.emlak-list-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    background: var(--e-global-color-b6af9a6);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: background .2s ease;
}

.emlak-list-card-button:hover {
    background: #981d1d;
    color: #fff;
}

.emlak-pagination {
    margin-top: 28px;
}

.emlak-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin-right: 6px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    background: #fff;
    border-radius: 3px;
}

.emlak-pagination .current {
    background: #4f81bd;
    color: #fff;
    border-color: #4f81bd;
}

.emlak-no-results {
    padding: 24px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 4px;
}

@media (max-width: 1200px) {
    .emlak-list-card {
        grid-template-columns: 220px minmax(0, 1fr) 150px;
    }

    .emlak-list-card-title {
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .emlak-archive-layout {
        grid-template-columns: 1fr;
    }

    .emlak-filter-sidebar {
        position: static;
    }

    .emlak-list-card {
        grid-template-columns: 1fr;
    }

    .emlak-list-card-side {
        align-items: flex-start;
    }

    .emlak-list-card-price {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .emlak-inline-2 {
        grid-template-columns: 1fr;
    }

    .emlak-list-card-title {
        font-size: 22px;
    }

    .emlak-list-card-thumb img {
        min-height: 220px;
    }
}

/*#İlan Listeleme Kısmı*/


/* Header başlangıç durumu */
.sabit-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.sabit-header.header-scrolled {
    background: #000000ed !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

