:root {
    --turuncu: #f9c200;
    --yesil: #218a21;
    --beyaz: #f5f5f5;
    --gri: #f8f9fa;
    --koyu-gri: #343d41;
    --secili-checkbox-bg: #e9ecef;
    --yumusak-arka: #fff3e6;
    --mavi: #0000ff;
    --kirmizi: #ff0000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--gri);
    color: var(--koyu-gri);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.navbar {
    background-color: var(--koyu-gri);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.navbar-brand img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-brand .yetki-belge {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler-text {
    font-size: 1.2rem;
    color: var(--turuncu);
    font-weight: bold;
    text-transform: uppercase;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 98, 0, 0.5);
}

.nav-link {
    color: var(--beyaz);
    margin-left: 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover {
    color: var(--turuncu);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.nav-link i {
    color: var(--turuncu);
    margin-right: 5px;
}

.nav-link i.fas {
    color: var(--turuncu);
}

.nav-item {
    position: relative;
}

.badge {
    font-size: 0.7em;
    padding: 0.35em 0.65em;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.dropdown-menu {
    background-color: var(--koyu-gri);
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
    color: var(--beyaz);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--turuncu);
    color: var(--beyaz);
}

#arama-formu {
    background-color: var(--beyaz);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

#arama-formu label {
    font-weight: bold;
    color: var(--koyu-gri);
}

#arama-formu .form-control,
#arama-formu .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
}

#arama-formu .btn {
    background-color: var(--turuncu);
    border: none;
    color: var(--beyaz);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#arama-formu .btn:hover {
    background-color: var(--yesil);
    transform: scale(1.05);
}

#aramaFormCollapse .card {
    margin-bottom: 0;
}

.d-md-none .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.status-basarisiz {
    color: red;
    font-weight: bold;
}

/* Tablo responsive stilleri */
.table-responsive-custom {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-custom {
    min-width: 650px;
    width: 100%;
}

.table-custom th,
.table-custom td {
    white-space: nowrap;
}

/* Watermark styles for index.php card images */
.card-img-container {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden; 
}

.card-img-container .watermark {
    position: absolute;
    top: 90%;
    left: 65%;
    transform: translate(-50%, -50%) rotate(0deg);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    pointer-events: none;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    z-index: 10;
}

@media (min-width: 768px) {
    #aramaFormCollapse .card {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .table-custom {
        min-width: auto;
    }
}

.card {
    border: 3px solid var(--turuncu);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--turuncu);
}

.card-title {
    color: var(--yesil);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--koyu-gri);
    font-size: 0.9rem;
}

.like-btn {
    background-color: var(--mavi);
    border: none;
    color: var(--beyaz);
    padding: 0.25rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.like-btn:hover {
    background-color: #000099;
    transform: scale(1.05);
}

.modern-btn {
    background-color: var(--yesil);
    border: none;
    color: var(--beyaz);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modern-btn2 {
    background-color: var(--yesil);
    border: none;
    color: var(--beyaz);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modern-btn3 {
    background-color: var(--mavi);
    border: none;
    color: var(--beyaz);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modern-btnara {
    background-color: var(--mavi);
    border: none;
    color: var(--beyaz);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.modern-btn:hover {
    background-color: var(--turuncu);
    transform: scale(1.05);
}

#harita, #ilanHarita {
    height: 400px;
    border: 3px solid var(--turuncu);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ilan-detay-card {
    background-color: var(--beyaz);
    border: 3px solid var(--turuncu);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.ilan-detay-card .card-header {
    background-color: var(--turuncu);
    color: var(--beyaz);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ilan-detay-card .card-title {
    font-size: 1.75rem;
    font-weight: bold;
}

.detay-table th {
    background-color: var(--secili-checkbox-bg);
    color: var(--koyu-gri);
    width: 30%;
    font-weight: bold;
    padding: 0.75rem;
}

.detay-table td {
    line-height: 1.8;
    padding: 0.75rem;
    color: var(--koyu-gri);
}

footer {
    background-color: var(--koyu-gri);
    color: var(--beyaz);
    padding: 2rem 0;
    margin-top: 2rem;
}

footer a {
    color: var(--turuncu);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--yesil);
}

.checkbox-group {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    padding: 15px;
    background-color: var(--beyaz);
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.form-check {
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.form-check-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    vertical-align: middle;
}

.form-check-label {
    cursor: pointer;
    font-size: 1rem;
    color: var(--koyu-gri);
    vertical-align: middle;
}

.form-check.selected {
    background-color: var(--secili-checkbox-bg);
    border-left: 3px solid var(--turuncu);
}

.form-check-input:checked {
    background-color: var(--turuncu);
    border-color: var(--turuncu);
}

.form-check-input:focus {
    box-shadow: 0 0 5px rgba(255, 98, 0, 0.5);
    outline: none;
}

@media (max-width: 768px) {
    .navbar-brand img {
        width: 120px;
        height: 150px;
    }

    .navbar-brand .yetki-belge {
        font-size: 0.8rem;
        margin-top: 0.3rem;
    }

    .nav-link {
        margin-left: 0.5rem;
        font-size: 1rem;
    }

    .navbar-toggler-text {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }

    #arama-formu {
        padding: 1rem;
    }

    .checkbox-group {
        max-height: 150px;
        padding: 10px;
    }

    .form-check {
        padding: 8px;
    }

    .form-check-input {
        width: 16px;
        height: 16px;
    }

    .form-check-label {
        font-size: 0.95rem;
    }

    .card-img-top {
        height: 200px;
    }

    #harita, #ilanHarita {
        height: 300px;
    }

    .ilan-detay-card .card-title {
        font-size: 1.5rem;
    }

    .detay-table th, .detay-table td {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .btn-turuncu, .like-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .modern-btn {
        padding: 0.75rem 1rem;
        font-size: 1.2rem;
    }

    .modern-btn2 {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        background-color: var(--yesil);
    }

    .modern-btn3 {
        padding: 0.75rem 1rem;
        font-size: 1.2rem;
        background-color: var(--mavi);
    }

    .modern-btnara {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        background-color: var(--mavi);
    }

    .modern-btn:hover {
        background-color: var(--turuncu);
        transform: scale(1.05);
    }
    
    .table-responsive-custom {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .table-custom {
        min-width: 650px;
    }
    
    .table-custom th,
    .table-custom td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
    
    .card-container {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: space-between;
    }

    .card-container .col-6 {
        flex: 0 0 calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
        padding: 0;
    }
    
    .card-container .card {
        margin-bottom: 0.5rem;
    }

    .main-search-form .row.g-3 > div {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}

.btn-yesil {
    background-color: var(--yesil) !important;
    border-color: var(--yesil) !important;
    color: white !important;
}

.btn-yesil:hover {
    background-color: #1a6f1a !important;
    border-color: #1a6f1a !important;
    color: white !important;
}

.btn-kirmizi {
    background-color: var(--kirmizi) !important;
    border-color: var(--kirmizi) !important;
    color: white !important;
}

.btn-kirmizi:hover {
    background-color: #cc0000 !important;
    border-color: #cc0000 !important;
    color: white !important;
}

.fullscreen-map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.fullscreen-map {
    flex-grow: 1;
    width: 100%;
}

.fullscreen-map-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2100;
    padding: 0.5rem 1rem;
    font-size: 1rem;
}

.sold-out {
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity 0.3s ease;
}
.sold-out:hover {
    opacity: 0.8;
}

.rented-out { 
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity 0.3s ease;
}
.rented-out:hover {
    opacity: 0.8;
}

.sold-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    background-color: var(--kirmizi);
    color: var(--beyaz);
    padding: 10px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 20;
    opacity: 0.85;
}

.sold-badge.rented-badge { 
    background-color: var(--mavi) !important;
}


/* =================================================== */
/* === İLAN DETAY SAYFASINDAN TAŞINAN STİLLER BAŞLANGIÇ === */
/* =================================================== */

#ilanHarita {
    height: 550px;
}

.buyutme-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    overflow: auto;
    transition: opacity 0.3s ease;
}

.buyutme-img {
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease-in-out;
    border-radius: 8px;
    border: 2px solid var(--turuncu);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.kapat {
    color: var(--beyaz);
    font-size: 40px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.kapat:hover {
    color: var(--turuncu);
}

.sol-ok, .sag-ok {
    color: var(--turuncu);
    font-size: 50px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
    transition: color 0.3s ease;
}

.sol-ok:hover, .sag-ok:hover {
    color: var(--turuncu);
}

.sol-ok { left: 20px; }
.sag-ok { right: 20px; }

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.media-container {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.main-media {
    flex: 3;
    position: relative;
}

.main-media img, .main-media video {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--turuncu);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.main-media img:hover, .main-media video:hover {
    transform: scale(1.02);
}

.thumbnails {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 600px;
    overflow-y: auto;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--gri);
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.thumbnail.active, .thumbnail:hover {
    border-color: var(--turuncu);
    transform: scale(1.05);
}

.thumbnail-video {
    position: relative;
}

.thumbnail-video::after {
    content: '\f144';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--beyaz);
    font-size: 24px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-control-prev, .carousel-control-next {
    background-color: var(--turuncu);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-size: 100%, 100%;
}

.video-container {
    margin-bottom: 1.5rem;
}

.video-container video {
    width: 100%;
    max-height: 700px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--turuncu);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.video-container video:hover {
    transform: scale(1.02);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    visibility: visible;
}

.share-buttons .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.share-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: var(--beyaz) !important;
}

.btn-whatsapp { background-color: #25D366 !important; color: #fff !important; }
.btn-facebook { background-color: #3b5998 !important; color: #fff !important; }
.btn-twitter { background-color: #000000 !important; color: #fff !important; }

.whatsapp-sticky-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-size: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #20c058;
}

.whatsapp-btn i {
    margin-right: 8px;
    font-size: 20px;
}

@media (max-width: 768px) {
    .media-container { flex-direction: column; }
    .main-media img, .main-media video { max-height: 600px; }
    .thumbnails {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding-bottom: 10px;
    }
    .thumbnail {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
    .buyutme-img {
        max-width: 95%;
        max-height: 85vh;
    }
    .kapat { font-size: 30px; right: 15px; top: 10px; }
.sol-ok, .sag-ok { font-size: 40px; color: var(--turuncu); } /* Ortak stiller */
.sol-ok { left: 10px; } /* Sadece sol ok sola */
.sag-ok { right: 10px; } /* Sadece sağ ok sağa */
.video-container video { max-height: 600px; }
    .ilan-detay-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .share-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .whatsapp-sticky-btn {
        bottom: 18px;
        right: 10px;
    }
    .whatsapp-btn {
        padding: 8px 15px;
        font-size: 34px;
    }
    .whatsapp-btn i {
        font-size: 38px;
    }
    .sold-badge, .sold-badge.rented-badge {
        font-size: 0.8rem;
        padding: 8px 20px;
    }
}

/* ================================================= */
/* === İLAN DETAY SAYFASINDAN TAŞINAN STİLLER SON === */
/* ================================================= */

/* ================================================= */
/* === DESTEK BUTONU (GÜNCELLENDİ) === */
/* ================================================= */

.destek-sticky-button {
    position: fixed;
    bottom: 90px; /* Diğer butonlarla çakışmaması için yükseltildi */
    left: 20px;
    background-color: var(--mavi); 
    color: white;
    border-radius: 50%;
    width: 70px; /* Büyütüldü */
    height: 70px; /* Büyütüldü */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px; /* İkon büyütüldü */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.destek-sticky-button:hover {
    background-color: #0000cc; /* Hover için daha koyu mavi */
    transform: scale(1.1);
}

.destek-sticky-button i {
    color: white;
}


/* ======================================================= */
/* === YÖNETİCİ PANELİ İLANLAR TABLOSU (YENİ EKLENDİ) === */
/* ======================================================= */

.ilanlar-yonetici-tablosu {
    font-size: 0.8rem; /* Tablo genel yazı boyutunu biraz daha küçülttük */
    border-collapse: separate;
    border-spacing: 0;
}

.ilanlar-yonetici-tablosu th,
.ilanlar-yonetici-tablosu td {
    padding: 0.4rem 0.5rem;
    vertical-align: middle;
}

/* ID ve İlan No'nun alt alta gelmesi için */
.ilan-id-no a {
    display: block;
    line-height: 1.2;
    text-decoration: none;
}
.ilan-id-no .ilan-no-muted {
    font-size: 0.9em;
    color: #6c757d;
}

/* Etkileşim (Görüntülenme/Beğeni) Sütunu */
.etkilesim-bilgisi span {
    display: inline-block;
    white-space: nowrap;
    margin-right: 8px;
}
.etkilesim-bilgisi i {
    color: var(--koyu-gri);
}

/* Ekleyen Bilgisi Sütunu */
.ekleyen-badge {
    font-size: 0.85em;
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.badge-yonetici { background-color: #6f42c1; } /* Mor */
.badge-kullanici { background-color: #007bff; } /* Mavi */
.badge-partner { background-color: #fd7e14; } /* Turuncu */


/* Durum Sütunu (En önemli iyileştirme) */
.durum-etiketleri {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2em 0.5em;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}
.status-badge i {
    margin-right: 4px;
}

.badge-satildi { background-color: #dc3545; } /* Kırmızı */
.badge-kiralandi { background-color: #c82333; } /* Koyu Kırmızı */
.badge-satilik, .badge-aktif { background-color: #28a745; } /* Yeşil */
.badge-kiralik { background-color: #218838; } /* Koyu Yeşil */
.badge-pasif { background-color: #6c757d; } /* Gri */
.badge-vitrin-evet { background-color: #ffc107; color: #000 !important; } /* Sarı */
.badge-vitrin-hayir { background-color: #e9ecef; color: #000 !important; } /* Açık Gri */
.badge-gizli-evet { background-color: #343a40; } /* Siyah */
.badge-gizli-hayir { background-color: #e9ecef; color: #000 !important; } /* Açık Gri */


/* Mobil için İşlem Sütununu Sabitleme */
@media (max-width: 992px) {
    .table-responsive-yonetici {
        position: relative;
    }
    .ilanlar-yonetici-tablosu th:last-child,
    .ilanlar-yonetici-tablosu td:last-child {
        position: -webkit-sticky; /* Safari için */
        position: sticky;
        right: 0;
        background-color: #f8f9fa; /* Arka plan rengiyle uyumlu */
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }
    .ilanlar-yonetici-tablosu th:last-child {
        z-index: 2;
    }
    .ilanlar-yonetici-tablosu td:last-child {
        z-index: 1;
    }
    .action-buttons a, .action-buttons button {
        margin-bottom: 4px; /* Butonlar alt alta gelirse boşluk bırakır */
    }
}


/* Mobil cihazlar için özel ayar */
@media (max-width: 768px) {
    .destek-sticky-button {
        width: 65px; /* Mobil için optimize edilmiş boyut */
        height: 65px;
        bottom: 80px; /* Diğer butona göre konumu ayarlandı */
        left: 15px;
    }
}

/* =================================================== */
/* === KARŞILAŞTIRMA ÖZELLİĞİ STİLLERİ (YENİ) === */
/* =================================================== */

/* Kart üzerindeki Onay Kutusu */
.compare-checkbox-container {
    background-color: var(--gri);
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px 12px;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.compare-checkbox-container:hover {
    background-color: var(--secili-checkbox-bg);
}

.compare-checkbox-container .form-check-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--koyu-gri);
    cursor: pointer;
}

.compare-checkbox-container .form-check-input {
    cursor: pointer;
    font-size: 1.1rem;
    margin-right: 8px;
}

/* Sabit Karşılaştır Butonu */
.compare-sticky-button {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1040; /* Header'ın altında, diğer her şeyin üstünde */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.compare-sticky-button .btn {
    font-size: 1.2rem;
    padding: 0.75rem 1.5rem;
}

.compare-sticky-button .btn:disabled {
    cursor: not-allowed;
}

/* =================================================== */
/* === İLAN KARŞILAŞTIRMA SAYFASI STİLLERİ (YENİ) === */
/* =================================================== */

.comparison-table {
    table-layout: fixed; /* Sütun genişliklerini sabitler */
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th, 
.comparison-table td {
    vertical-align: top;
    padding: 12px;
    word-wrap: break-word; /* Uzun kelimeleri kırar */
    border: 1px solid #dee2e6;
}

.comparison-table thead th {
    background-color: var(--koyu-gri);
    color: var(--beyaz);
    text-align: center;
    vertical-align: middle;
    position: sticky; /* Başlık satırını sabitler */
    top: 0;
    z-index: 10;
}

.comparison-table thead th:first-child {
    background-color: #f8f9fa; /* İlk hücre (Özellik) */
    color: var(--koyu-gri);
    text-align: left;
    z-index: 11; /* Diğer başlıklardan üstte */
    left: 0; /* Yatayda da sabitler */
}

.comparison-table tbody th {
    background-color: var(--secili-checkbox-bg);
    font-weight: bold;
    text-align: left;
    position: sticky; /* Özellik sütununu sabitler */
    left: 0;
    z-index: 5;
}

.comparison-table tbody tr:hover th {
    background-color: var(--yumusak-arka);
}
.comparison-table tbody tr:hover td {
    background-color: #fdfaf6;
}

.comparison-image-container {
    width: 100%;
    height: 200px; /* Sabit yükseklik */
    overflow: hidden;
    position: relative;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
}

.comparison-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Görüntüyü kırparak sığdırır */
}

.comparison-video {
    width: 100%;
    max-height: 200px; /* Yüksekliği kısıtlar */
    border-radius: 5px;
}

.comparison-aciklama {
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
}

.comparison-table .ilan-baslik {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--yesil);
}
.comparison-table .ilan-baslik a {
    color: var(--yesil);
    text-decoration: none;
}
.comparison-table .ilan-baslik a:hover {
    color: var(--turuncu);
}

.comparison-table .ilan-fiyat {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--kirmizi);
    margin-top: 10px;
    display: block;
}

.comparison-table .ilan-no {
    font-size: 0.9rem;
    color: #6c757d;
    display: block;
    margin-top: 5px;
}


/* =================================================== */
/* === YENİ KART TASARIMI STİLLERİ (index.php'den) === */
/* =================================================== */

.card-footer.border-top-0 {
    border-top: 0 !important; /* card-body'den ayrıldığını belli etmesin */
    background-color: #fff; /* Kart gövdesiyle aynı renk */
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
}

.like-btn-modern, .favori-btn-modern, .admin-view-btn {
    border-radius: 50%; /* Yuvarlak butonlar */
    width: 38px;
    height: 38px;
    font-size: 0.9rem; /* İkon boyutu */
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px; /* Butonlar arası boşluk */
    transition: all 0.3s ease;
}

/* Favori Butonu (Kırmızı) */
.favori-btn-modern {
    color: var(--kirmizi);
    border-color: var(--kirmizi);
}
.favori-btn-modern:hover {
    background-color: var(--kirmizi);
    color: white;
}
.favori-btn-modern .favori-icon-kadir { display: none; }
.favori-btn-modern .favori-icon-ekle { display: inline-block; }

.favori-btn-modern.favorited {
    background-color: var(--kirmizi);
    color: white;
}
.favori-btn-modern.favorited .favori-icon-kadir { display: inline-block; }
.favori-btn-modern.favorited .favori-icon-ekle { display: none; }

/* Beğen Butonu (Mavi) */
.like-btn-modern {
     color: var(--mavi);
     border-color: var(--mavi);
}
.like-btn-modern:hover, .like-btn-modern.liked {
     background-color: var(--mavi);
     color: white;
}
.like-btn-modern.disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    opacity: 0.65;
}

/* Yönetici Göz Butonu (Sarı/Turuncu) */
.admin-view-btn {
    color: var(--turuncu);
    border-color: var(--turuncu);
    font-size: 1rem; /* Göz ikonu biraz daha büyük */
}
.admin-view-btn:hover {
    background-color: var(--turuncu);
    color: white;
}

/* Tıklanabilir alanın padding'ini ayarla */
.card-body-clickable {
    padding-bottom: 0.5rem !important; /* Butonlara yer açmak için alttaki boşluğu azalt */
}

/* === MOBİL SEKME BUTONLARI === */
.nav-tabs {
    border: none;
    gap: 8px;
    padding: 0 8px;
}
.nav-tabs .nav-link {
    background: #f1f3f5;
    color: #495057;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 130px;
    white-space: nowrap;
}
.nav-tabs .nav-link:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}
.nav-tabs .nav-link.active {
    background: var(--turuncu) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(249, 194, 0, 0.4);
}
.nav-tabs .nav-link i {
    font-size: 1.1rem;
}

/* === PARILTILI BUTONLAR === */
.shimmer-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    font-weight: 600;
    text-transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.shimmer-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s;
    z-index: -1;
}

.shimmer-btn:hover::before {
    left: 100%;
}

/* 3D Butonu */
.btn-3d {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    border: none;
}
.btn-3d:hover {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(25, 118, 210, 0.4);
}

/* WebP Butonu */
.btn-webp {
    background: linear-gradient(135deg, #43a047, #66bb6a);
    color: white;
    border: none;
}
.btn-webp:hover {
    background: linear-gradient(135deg, #388e3c, #4caf50);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(67, 160, 71, 0.4);
}

/* === PARILTILI KART === */
.shimmer-card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: white;
}
.shimmer-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* === İKON DAİRE === */
.icon-circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(0,0,0,0.05), rgba(0,0,0,0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

/* === MOBİL === */
@media (max-width: 768px) {
    .shimmer-btn {
        padding: 12px 20px !important;
        font-size: 0.9rem;
    }
    .icon-circle {
        width: 70px;
        height: 70px;
    }
    .icon-circle i {
        font-size: 2rem;
    }
    .card-title {
        font-size: 1.1rem;
    }
}