/**
 * Edremülk.com - Ziyaretçi Odaklı Favori Sistemi Stilleri
 */

/* ==========================================================================
   0. Eski Temanın Sarı Hata / Popover Kutusunu Tamamen Gizle (Resim 1 & 2 Çözümü)
   ========================================================================== */
#wp-realestate-popup-message,
.wp-realestate-popup-message,
.message-inner.bg-warning,
.message-inner.bg-info {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ==========================================================================
   0.1. İlan Detay Aksiyon Butonları Modernizasyonu (Her Buton Kendi İşini Yapar)
   ========================================================================== */
.property-action-detail {
    text-align: right !important;
}

.property-action-detail .edremulk-price-wrap {
    margin-bottom: 10px !important;
    display: block !important;
}

/* 4 Butonun Yan Yana Tek Satırda Sıralanması */
.property-action-detail {
    text-align: right !important;
    white-space: nowrap !important;
}

.property-action-detail .edremulk-price-wrap {
    margin-bottom: 8px !important;
    display: block !important;
}

.property-action-detail a.btn-add-property-compare,
.property-action-detail a.btn-added-property-compare,
.property-action-detail a.btn-add-property-favorite,
.property-action-detail a.btn-added-property-favorite,
.property-action-detail a.btn-print-property,
.property-action-detail .social-property {
    display: inline-flex !important;
    vertical-align: middle !important;
    margin: 0 2px !important;
    position: relative !important;
}

/* Buton Taban Stilleri (38px ile Tek Satıra Kusursuz Sığar) */
.property-action-detail [class*="btn"],
.property-action-detail a.btn-action-icon,
.property-action-detail a.btn-print-property,
.property-action-detail a.btn-add-social,
.property-action-detail a.btn-add-property-compare,
.property-action-detail a.btn-added-property-compare,
.property-action-detail a.btn-add-property-favorite,
.property-action-detail a.btn-added-property-favorite {
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    border-radius: 9px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04) !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.property-action-detail [class*="btn"] i,
.property-action-detail a i {
    font-size: 15px !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
    line-height: 1 !important;
}

/* 1) KARŞILAŞTIR BUTONU */
.property-action-detail .btn-add-property-compare:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    transform: translateY(-2px) !important;
}
.property-action-detail .btn-add-property-compare:hover i {
    color: #2563eb !important;
}
/* Karşılaştırmaya Eklendiğinde */
.property-action-detail .btn-added-property-compare {
    background: #eff6ff !important;
    border-color: #2563eb !important;
}
.property-action-detail .btn-added-property-compare i {
    color: #2563eb !important;
}

/* 2) FAVORİ / KALP BUTONU */
.property-action-detail .btn-add-property-favorite:hover {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    transform: translateY(-2px) !important;
}
.property-action-detail .btn-add-property-favorite:hover i {
    color: #ef4444 !important;
    transform: scale(1.15) !important;
}
/* Favoriye Eklendiğinde (Dolu Kırmızı) */
.property-action-detail .btn-added-property-favorite {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}
.property-action-detail .btn-added-property-favorite i {
    color: #ffffff !important;
    transform: scale(1.1) !important;
}

/* 3) PAYLAŞ BUTONU VE AÇILIR MENÜ (SHAREBOX) */
.property-action-detail .social-property {
    position: relative !important;
}
.property-action-detail .btn-add-social span {
    display: none !important;
}
.property-action-detail .btn-add-social:hover {
    background: #f5f3ff !important;
    border-color: #c4b5fd !important;
    transform: translateY(-2px) !important;
}
.property-action-detail .btn-add-social:hover i {
    color: #7c3aed !important;
}

/* Paylaşım Açılır Menüsü */
.social-property .bo-social-icons {
    display: none;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    white-space: nowrap;
    gap: 8px;
    transition: all 0.2s ease;
}
.social-property.active .bo-social-icons {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    animation: favFadeIn 0.2s ease forwards;
}

@keyframes favFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.bo-social-icons .bo-social-item {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
.bo-social-icons .bo-social-item:hover {
    transform: translateY(-2px) !important;
}
.bo-social-icons .share-wa:hover {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #ffffff !important;
}
.bo-social-icons .share-wa:hover i { color: #ffffff !important; }
.bo-social-icons .share-fb:hover {
    background: #1877f2 !important;
    border-color: #1877f2 !important;
    color: #ffffff !important;
}
.bo-social-icons .share-fb:hover i { color: #ffffff !important; }
.bo-social-icons .share-tw {
    color: #0f172a !important;
}
.bo-social-icons .share-tw svg {
    width: 15px !important;
    height: 15px !important;
    fill: currentColor !important;
    display: inline-block !important;
}
.bo-social-icons .share-tw:hover {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}
.bo-social-icons .share-tw:hover svg {
    fill: #ffffff !important;
}
.bo-social-icons .share-copy:hover {
    background: #1a2238 !important;
    border-color: #1a2238 !important;
    color: #ffffff !important;
}
.bo-social-icons .share-copy:hover i { color: #ffffff !important; }

/* ==========================================================================
   0.2. Karşılaştırma Yan Menüsü (Compare Sidebar) Modernizasyonu (Resim 2)
   ========================================================================== */
/* Dikey Yan Şerit Butonu */
#compare-sidebar .compare-sidebar-btn {
    background-color: #1a2238 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 10px 0 0 10px !important;
    box-shadow: -4px 4px 15px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.25s ease !important;
}
#compare-sidebar .compare-sidebar-btn:hover {
    background-color: #2563eb !important;
}

/* Yan Panel Kapsayıcısı */
#compare-sidebar {
    border-radius: 16px 0 0 16px !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12) !important;
    border-left: 1.5px solid #e2e8f0 !important;
}
#compare-sidebar h3.title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a2238 !important;
    border-bottom: 1.5px solid #f1f5f9 !important;
    padding-bottom: 12px !important;
}

/* Sol Buton: Karşılaştır */
#compare-sidebar .compare-actions .btn-theme-second {
    background-color: #1a2238 !important;
    border-color: #1a2238 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    transition: all 0.2s ease !important;
}
#compare-sidebar .compare-actions .btn-theme-second:hover {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    transform: translateY(-1px) !important;
}

/* Sağ Buton: Temizle */
#compare-sidebar .compare-actions .btn-danger,
#compare-sidebar .compare-actions .btn-remove-compare-all {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    transition: all 0.2s ease !important;
}
#compare-sidebar .compare-actions .btn-danger:hover,
#compare-sidebar .compare-actions .btn-remove-compare-all:hover {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    transform: translateY(-1px) !important;
}

/* 4) YAZDIR BUTONU */
.property-action-detail .btn-print-property:hover {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px) !important;
}
.property-action-detail .btn-print-property:hover i {
    color: #0f172a !important;
}

/* Tooltip Hizalaması */
.property-action-detail .tooltip.top {
    margin-top: -8px !important;
}
.property-action-detail .tooltip-inner {
    background-color: #1e293b !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    padding: 5px 9px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}
.property-action-detail .tooltip.top .tooltip-arrow {
    border-top-color: #1e293b !important;
}

/* ==========================================================================
   1. Kalp Butonları ve Nabız (Pulse) Efekti
   ========================================================================== */
.btn-add-property-favorite,
.btn-added-property-favorite {
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer !important;
}

.btn-added-property-favorite,
.btn-add-property-favorite.is-favorited,
.btn-add-property-favorite.active {
    color: #e53935 !important;
}

.btn-added-property-favorite i,
.btn-add-property-favorite.is-favorited i,
.btn-add-property-favorite.active i {
    color: #e53935 !important;
    font-weight: 700;
}

/* Kalp Nabız Animasyonu */
@keyframes favPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.fav-pulse {
    animation: favPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* ==========================================================================
   2. Header & Mobil Bar Canlı Favori Sayacı
   ========================================================================== */
.elementor-widget-apus_element_user_info .top-wrapper-menu,
.top-wrapper-menu {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

.edremulk-fav-btn-wrap {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    margin-right: 14px !important;
    flex-shrink: 0 !important;
}

.edremulk-header-fav-link {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 6px 12px;
    background: #ffffff;
    border: 1.5px solid #eef2f6;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: #1a2238 !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    white-space: nowrap !important;
    vertical-align: middle;
}

.edremulk-header-fav-link:hover {
    background: #fff5f5;
    border-color: #ffcdd2;
    color: #e53935 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.12);
}

.edremulk-header-fav-link .fav-icon {
    font-size: 16px;
    color: #e53935;
    margin-right: 6px;
    transition: transform 0.2s ease;
}

.edremulk-header-fav-link:hover .fav-icon {
    transform: scale(1.2);
}

.edremulk-header-fav-link .fav-label {
    margin-right: 4px;
}

.edremulk-fav-count {
    display: inline-block;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    padding: 0 6px;
    background: #e53935;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    text-align: center;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.edremulk-fav-count:empty,
.edremulk-fav-count[data-count="0"] {
    background: #9aa0a6;
}

/* Yüzen Mobil Kısayol Butonu */
.edremulk-floating-fav-btn {
    position: fixed;
    right: 20px;
    bottom: 85px;
    z-index: 999;
    background: #1a2238;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.edremulk-floating-fav-btn i {
    color: #e53935;
    font-size: 16px;
}

.edremulk-floating-fav-btn:hover {
    background: #0f1525;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   3. Toast Bildirimi
   ========================================================================== */
.edremulk-fav-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    padding: 14px 22px;
    background: #1a2238;
    color: #ffffff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: none;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #e53935;
}

.edremulk-fav-toast i {
    color: #e53935;
    font-size: 16px;
}

/* ==========================================================================
   4. Favoriler Sayfası (/favoriler/) Ana Kapsayıcısı
   ========================================================================== */
.edremulk-favorites-page-wrap {
    max-width: 1240px;
    margin: 40px auto 70px auto;
    padding: 0 20px;
    font-family: inherit;
}

.edremulk-fav-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: #ffffff;
    padding: 24px 30px;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.edremulk-fav-header-info h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a2238;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.edremulk-fav-header-info h1 i {
    color: #e53935;
}

.edremulk-fav-header-info .sub-text {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.edremulk-clear-favs-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.edremulk-clear-favs-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* ==========================================================================
   5. Favori İlan Kartları Izgarası (Grid)
   ========================================================================== */
.edremulk-fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.edremulk-fav-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.edremulk-fav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.edremulk-fav-thumb-wrap {
    position: relative;
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #f1f5f9;
}

.edremulk-fav-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.edremulk-fav-card:hover .edremulk-fav-thumb-wrap img {
    transform: scale(1.05);
}

.edremulk-fav-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.edremulk-fav-badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edremulk-fav-badge.status-satilik {
    background: #1a2238;
    color: #ffffff;
}

.edremulk-fav-badge.status-kiralik {
    background: #2563eb;
    color: #ffffff;
}

.edremulk-fav-badge.type-badge {
    background: rgba(255, 255, 255, 0.92);
    color: #1a2238;
    backdrop-filter: blur(4px);
}

.edremulk-fav-remove-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    border: none;
}

.edremulk-fav-remove-icon:hover {
    background: #e53935;
    color: #ffffff;
    transform: scale(1.1);
}

.edremulk-fav-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.edremulk-fav-price {
    font-size: 22px;
    font-weight: 800;
    color: #1a2238;
    margin-bottom: 8px;
}

.edremulk-fav-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a2238;
    margin: 0 0 10px 0;
}

.edremulk-fav-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.edremulk-fav-title a:hover {
    color: #2563eb;
}

.edremulk-fav-location {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.edremulk-fav-meta {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
    font-size: 13px;
    color: #475569;
}

.edremulk-fav-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

/* Sorumlu Danışman & Kart Aksiyon Alanı */
.edremulk-fav-agent-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 4px;
}

.edremulk-fav-agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edremulk-fav-agent-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0;
}

.edremulk-fav-agent-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a2238;
}

.edremulk-fav-agent-sub {
    font-size: 11px;
    color: #94a3b8;
}

.edremulk-fav-card-wa-btn {
    background: #25d366;
    color: #ffffff !important;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.edremulk-fav-card-wa-btn:hover {
    background: #1ebd5a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* ==========================================================================
   6. Sayfa Altı Sabit / Büyük Aksiyon Çubuğu (WhatsApp İletişim)
   ========================================================================== */
.edremulk-fav-actions-bar {
    background: #ffffff;
    border: 1.5px solid #eef2f6;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.edremulk-fav-actions-text h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1a2238;
    margin: 0 0 6px 0;
}

.edremulk-fav-actions-text p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.edremulk-send-all-btn {
    background: #25d366;
    color: #ffffff !important;
    padding: 16px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
}

.edremulk-send-all-btn i {
    font-size: 22px;
}

.edremulk-send-all-btn:hover {
    background: #1ebd5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   7. Boş Durum (Empty State)
   ========================================================================== */
.edremulk-fav-empty-state {
    text-align: center;
    padding: 70px 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 20px;
}

.edremulk-fav-empty-icon {
    width: 90px;
    height: 90px;
    background: #fee2e2;
    color: #e53935;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px auto;
}

.edremulk-fav-empty-state h2 {
    font-size: 24px;
    font-weight: 800;
    color: #1a2238;
    margin-bottom: 12px;
}

.edremulk-fav-empty-state p {
    font-size: 15px;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto 25px auto;
    line-height: 1.6;
}

.edremulk-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1a2238;
    color: #ffffff !important;
    padding: 14px 26px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.edremulk-explore-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .edremulk-fav-grid {
        grid-template-columns: 1fr;
    }
    .edremulk-fav-header-info,
    .edremulk-fav-actions-bar {
        flex-direction: column;
        text-align: center;
    }
    .edremulk-send-all-btn {
        width: 100%;
        justify-content: center;
    }
    .edremulk-header-fav-link .fav-label {
        display: none;
    }
}
