/* 
 * İnoto GY İlanlar - Ön Yüz Stilleri 
 */

/* Genel Değişkenler (Settings API'den ezilebilir) */
:root {
    --inoto-primary-color: #3498db;
    --inoto-secondary-color: #2c3e50;
    --inoto-price-color: #27ae60;
    --inoto-bg-color: #f8f9fa;
    --inoto-card-bg: #ffffff;
    
    --inoto-feature-icon-color: #3498db;
    --inoto-feature-text-color: #222222;

    --inoto-badge-satildi: #e74c3c;
    --inoto-badge-kiralandi: #8e44ad;
    --inoto-badge-acil: #c0392b;
    --inoto-badge-firsat: #f39c12;
    --inoto-badge-star: #f1c40f;

    --inoto-title-fs: 16px;
    --inoto-price-fs: 20px;
    --inoto-detail-fs: 14px;
}

/* Fontları temadan miras alması için ve Taşmaları engellemek için Box Model */
.inoto-ilanlar-grid, .inoto-single-container, .inoto-ilan-card,
.inoto-ilanlar-grid *, .inoto-single-container *, .inoto-ilan-card * {
    box-sizing: border-box;
}

/* Sadece metin içeren ana kapsayıcılar için font mirası */
.inoto-ilanlar-grid, .inoto-single-container, .inoto-ilan-card {
    font-family: inherit;
}

/* Taşmaları (Overflow) Engellemek İçin Grid/Flex Sıfırlaması */
.inoto-single-main, .inoto-single-sidebar, .inoto-ilan-card, .inoto-ilan-content {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Gelişmiş Filtreleme Modülü */
.inoto-filter-container {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
}

.inoto-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.inoto-filter-group {
    flex: 1;
    min-width: 150px;
}

.inoto-filter-group select,
.inoto-filter-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dfe6e9;
    border-radius: 6px;
    font-size: 14px;
    color: var(--inoto-secondary-color);
    box-sizing: border-box;
}

.inoto-filter-submit {
    display: flex;
    gap: 10px;
    min-width: 200px;
}

.inoto-btn-filter {
    background: var(--inoto-primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.inoto-btn-filter:hover { opacity: 0.9; }

.inoto-btn-clear {
    background: #f1f3f5;
    color: #7f8c8d;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inoto-btn-clear:hover { background: #e2e6ea; color: #333; }

/* --- SEKMELİ KATEGORİ FİLTRELERİ (MODERN TASARIM) --- */
.inoto-tab-filters { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; border-bottom: 2px solid #eaeaea; flex-wrap: wrap; }
.inoto-filter-btn { padding: 10px 5px; background: transparent; color: #777; text-decoration: none; font-weight: 600; font-size: 16px; transition: all 0.3s ease; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.inoto-filter-btn:hover { color: var(--inoto-primary); }
.inoto-filter-btn.active { color: var(--inoto-primary); border-bottom-color: var(--inoto-primary); }

/* --- Grid Liste Görünümü (Shortcode) --- */
.inoto-ilanlar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.inoto-ilan-card {
    background: var(--inoto-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.inoto-ilan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.inoto-ilan-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.inoto-ilan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.inoto-ilan-card:hover .inoto-ilan-image img {
    transform: scale(1.05);
}

.inoto-ilan-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 6px;
    align-items: center;
}

.inoto-badge-small, .inoto-badge {
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 2px;
    line-height: 1.2;
    box-shadow: none;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.inoto-badge-small i, .inoto-badge i {
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
}

/* (Kaldırıldı, üstte birleştirildi) */

.inoto-badge-islem {
    background: var(--inoto-primary-color);
}

.inoto-badge-star {
    background: var(--inoto-badge-star);
}

/* Durum Damgaları Renkleri */
.inoto-durum-satildi { background-color: var(--inoto-badge-satildi); color: #fff; }
.inoto-durum-kiralandi { background-color: var(--inoto-badge-kiralandi); color: #fff; }
.inoto-durum-acil { background-color: var(--inoto-badge-acil); color: #fff; }
.inoto-durum-firsat { background-color: var(--inoto-badge-firsat); color: #fff; }
.inoto-durum-rezerve { background-color: var(--inoto-badge-star); color: #fff; }

/* Dinamik İşlem & Emlak Tipleri Renkleri */
.inoto-badge-default { background-color: var(--inoto-badge-diger); color: #fff; border: 1px solid transparent; }
.inoto-badge-satilik { background-color: var(--inoto-badge-satilik, #3498db) !important; color: #fff !important; }
.inoto-badge-kiralik { background-color: var(--inoto-badge-kiralik, #e67e22) !important; color: #fff !important; }
.inoto-badge-bina { background-color: var(--inoto-badge-bina, #95a5a6) !important; color: #fff !important; }
.inoto-badge-dukkan { background-color: var(--inoto-badge-dukkan, #f39c12) !important; color: #fff !important; }
.inoto-badge-ofis { background-color: var(--inoto-badge-ofis, #8e44ad) !important; color: #fff !important; }
.inoto-badge-villa { background-color: var(--inoto-badge-villa, #27ae60) !important; color: #fff !important; }
.inoto-badge-arsa { background-color: var(--inoto-badge-arsa, #d35400) !important; color: #fff !important; }

/* .inoto-ilan-image .inoto-badge-durum (Kullanılmıyor, silindi) */

.inoto-ilan-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.inoto-ilan-emlak-tipi-row {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.inoto-emlak-tipi {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 2px;
    font-size: 9px;
    color: var(--inoto-secondary-color);
    background: #f1f3f5;
    padding: 2px 4px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.inoto-emlak-tipi i {
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
}

/* Emlak Tipleri Özel İkon Renkleri (Sadece ikon renklenir, arka plan gridir) */
.inoto-emlak-color-bina i { color: var(--inoto-badge-bina, #95a5a6) !important; }
.inoto-emlak-color-dukkan i { color: var(--inoto-badge-dukkan, #f39c12) !important; }
.inoto-emlak-color-ofis i { color: var(--inoto-badge-ofis, #8e44ad) !important; }
.inoto-emlak-color-villa i { color: var(--inoto-badge-villa, #27ae60) !important; }
.inoto-emlak-color-arsa i { color: var(--inoto-badge-arsa, #d35400) !important; }
.inoto-emlak-tipi[class*="inoto-emlak-color-"] i { color: var(--inoto-badge-diger, #bdc3c7); }

.inoto-ilan-title {
    margin: 5px 0 15px 0;
    font-size: var(--inoto-title-fs);
    font-weight: 600;
    line-height: 1.4;
}

.inoto-ilan-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.inoto-ilan-title a:hover {
    color: var(--inoto-primary-color);
}

.inoto-ilan-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    color: #7f8c8d;
    font-size: 12px;
}

.inoto-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #edf2f7;
    color: #222;
    font-weight: 500;
    font-size: var(--inoto-detail-fs);
    line-height: 1.2;
}

.inoto-detail-item i {
    color: var(--inoto-primary-color);
    font-size: 15px;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inoto-ilan-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
}

.inoto-ilan-price {
    font-size: var(--inoto-price-fs);
    font-weight: 700;
    color: var(--inoto-price-color);
}

.inoto-btn-detail {
    background: var(--inoto-primary-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.inoto-btn-detail:hover {
    opacity: 0.8;
    color: #fff;
}


/* --- Tekil İlan Sayfası Görünümü --- */
.inoto-single-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.inoto-single-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #eee;
}

.inoto-view-count {
    color: #95a5a6;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.inoto-view-count i {
    font-size: 16px;
}

.inoto-btn-print {
    background: #f8f9fa;
    border: 1px solid #dfe6e9;
    color: #636e72;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.inoto-btn-print:hover {
    background: #dfe6e9;
    color: #2d3436;
}

/* Sidebar İçi Başlık ve Fiyat */
.inoto-sidebar-header {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.inoto-single-badges {
    margin-bottom: 10px;
}

.inoto-single-badges .inoto-badge {
    position: static;
    display: inline-block;
    margin-right: 8px;
    box-shadow: none;
}

.inoto-badge-emlak {
    background: var(--inoto-secondary-color);
}

.inoto-single-title {
    font-size: var(--inoto-single-title-fs);
    color: #222;
    margin: 5px 0 2px 0;
    line-height: 1.3;
}

.inoto-single-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--inoto-price-color);
}

.inoto-single-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

@media (max-width: 768px) {
    .inoto-single-layout {
        grid-template-columns: 1fr;
    }
}

/* Galeri (Lightbox Ekli) */
.inoto-gallery-slider {
    margin-bottom: 30px;
}

.inoto-gallery-main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
    background: #f1f1f1;
}

.inoto-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background 0.3s, color 0.3s;
}

.inoto-slider-arrow:hover {
    background: var(--inoto-primary-color);
    color: #fff;
}

.inoto-prev { left: 15px; }
.inoto-next { right: 15px; }

.inoto-gallery-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Resmi kırpsa bile alanı tam doldurması için */
}

.inoto-zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
    pointer-events: none;
}

.inoto-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch; /* Mobilde akıcı kaydırma */
    scrollbar-width: none; /* Firefox için kaydırma çubuğunu gizle */
}
.inoto-gallery-thumbs::-webkit-scrollbar {
    display: none; /* Chrome/Safari için kaydırma çubuğunu gizle */
}

.inoto-thumb {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s, border 0.2s;
    border: 2px solid transparent;
}

.inoto-thumb:hover, .inoto-thumb.active {
    opacity: 1;
}

.inoto-thumb.active {
    border-color: var(--inoto-primary-color);
}

.inoto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inoto-single-featured-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.inoto-single-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tabs (Sekmeler) - Modern Altı Çizgili Tasarım */
.inoto-tabs-container {
    margin-bottom: 40px;
    background: transparent;
}

.inoto-tabs-nav {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    list-style: none;
    margin: 0 0 25px 0;
    padding: 0;
    background: transparent;
    border-bottom: 2px solid #edf2f7;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Mobilde akıcı kaydırma */
    scrollbar-width: none; /* Firefox için kaydırma çubuğunu gizle */
}
.inoto-tabs-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari için kaydırma çubuğunu gizle */
}

.inoto-tabs-nav li {
    text-align: center;
    padding: 12px 15px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #a0aec0;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    position: relative;
    margin-bottom: -2px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    flex-shrink: 0; /* Mobilde daralmayı önler, scroll yapılmasını sağlar */
}

.inoto-tabs-nav li:hover {
    color: var(--inoto-secondary-color);
}

.inoto-tabs-nav li.active {
    color: var(--inoto-primary-color);
    background: transparent;
    border-bottom: 2px solid var(--inoto-primary-color);
    box-shadow: none;
}

.inoto-tab-content {
    display: none;
    padding: 35px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #edf2f7;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.inoto-tab-content.active {
    display: block;
    animation: inotoFadeIn 0.3s ease;
}

@keyframes inotoFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.inoto-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 oran */
    height: 0;
    overflow: hidden;
}

.inoto-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.inoto-map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

/* Kenar Çubuğu (Sidebar) */
.inoto-btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(37,211,102,0.2);
}

.inoto-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,211,102,0.3);
    color: #fff;
}

.inoto-widget {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.inoto-widget-title {
    margin-top: 0;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #222;
}

.inoto-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inoto-features-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.inoto-features-list li:last-child {
    border-bottom: none;
}

.inoto-features-list li i {
    color: var(--inoto-feature-icon-color);
    vertical-align: middle;
    margin-right: 5px;
}

.inoto-features-list li strong {
    color: #222;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.inoto-features-list li span {
    color: #7f8c8d;
    font-weight: 500;
}

/* Benzer İlanlar */
.inoto-similar-listings {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.inoto-similar-title {
    font-size: 24px;
    color: var(--inoto-secondary-color);
    margin-bottom: 20px;
}

/* Yazdırma (Print) Ayarları */
.inoto-print-only {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    #inoto-print-area, #inoto-print-area * {
        visibility: visible;
    }
    #inoto-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none !important;
    }
    .inoto-single-layout {
        display: block;
    }
    .inoto-gallery-slider {
        display: none; /* Yazdırırken galeriyi gizle */
    }
    .inoto-tabs-container {
        display: none; /* Yazdırırken sekmeleri gizle */
    }
    .inoto-print-only {
        display: block; /* Sadece yazdırırken içeriği düz metin olarak göster */
        margin-top: 30px;
    }
}

/* --- Mobil Uyumluluk (Responsive Design) --- */
@media (max-width: 768px) {
    .inoto-single-container {
        padding: 0 15px;
    }

    /* Filtreleme */
    .inoto-filter-group {
        flex: 100%;
    }

    /* Liste Görünümü (Grid) */
    .inoto-ilanlar-grid {
        grid-template-columns: 1fr; /* Mobilde tek kolon */
        gap: 20px;
    }

    .inoto-ilan-details {
        gap: 10px;
    }

    /* Galeri */
    .inoto-gallery-main-image, 
    .inoto-single-featured-image {
        height: 250px; /* Mobilde resim yüksekliğini küçült */
    }

    /* Tekil İlan Başlık & Fiyat */
    .inoto-single-title {
        font-size: 20px;
    }

    .inoto-single-price {
        font-size: 22px;
    }

    /* Sekmeler (Tabs) */
    .inoto-tabs-nav {
        gap: 5px;
        border-bottom: 1px solid #edf2f7;
    }

    .inoto-tabs-nav li {
        padding: 10px 15px;
        font-size: 14px;
    }

    .inoto-tab-content {
        padding: 15px;
        overflow-x: hidden;
    }

    /* Kenar Çubuğu Öğeleri */
    .inoto-sidebar-header, 
    .inoto-widget {
        padding: 15px;
    }
    
    .inoto-features-list li {
        flex-direction: column; /* Mobilde özellik adı ve değerini alt alta al */
        align-items: flex-start;
        gap: 5px;
    }
    
    .inoto-features-list li span {
        align-self: flex-start;
    }
}
