/**
 * Edremülk - Sahibinden Tarzı İlan Ekleme & Düzenleme Arayüz Stilleri
 */

/* ==========================================================================
   1. GENEL KAPSAYICI & TİPOGRAFİ
   ========================================================================== */
.edremulk-submission-wrapper {
    max-width: 1140px;
    margin: 0 auto 50px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

/* Eski tema varsayılan başlığını gizle */
.property-submission-form-wrapper > h1.title-profile {
    display: none !important;
}

/* ==========================================================================
   2. SAHİBİNDEN TARZI İLERLEME ÇUBUĞU (STEPPER)
   ========================================================================== */
.edremulk-stepper-wrapper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.edremulk-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.edremulk-step {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    position: relative;
    cursor: default;
}

a.edremulk-step {
    cursor: pointer;
}

.edremulk-step-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    background: #f1f5f9;
    color: #94a3b8;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.edremulk-step-info {
    display: flex;
    flex-direction: column;
}

.edremulk-step-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #94a3b8;
    text-transform: uppercase;
}

.edremulk-step-name {
    font-size: 15px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

/* Tamamlanan Adım */
.edremulk-step.completed .edremulk-step-badge {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.edremulk-step.completed .edremulk-step-tag {
    color: #059669;
}

.edremulk-step.completed .edremulk-step-name {
    color: #065f46;
}

/* Aktif Adım */
.edremulk-step.active .edremulk-step-badge {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.15);
}

.edremulk-step.active .edremulk-step-tag {
    color: #2563eb;
}

.edremulk-step.active .edremulk-step-name {
    color: #1e3a8a;
    font-weight: 800;
}

/* Çizgiler */
.edremulk-step-divider {
    flex-grow: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 16px;
    border-radius: 2px;
}

.edremulk-step-divider.completed {
    background: #10b981;
}

/* ==========================================================================
   3. AKTİF PAKET & KOTA BİLGİ ŞERİDİ
   ========================================================================== */
.edremulk-sub-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 24px;
    gap: 15px;
}

.edremulk-sub-banner-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.edremulk-sub-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #dcfce7;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.edremulk-sub-banner-text {
    font-size: 14px;
    color: #166534;
}

.edremulk-sub-banner-sep {
    color: #86efac;
    margin: 0 6px;
}

.edremulk-quota-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #10b981;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   4. BAŞLIK VE AÇIKLAMA
   ========================================================================== */
.edremulk-sub-header {
    margin-bottom: 24px;
}

.edremulk-sub-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.edremulk-sub-desc {
    font-size: 15px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Bildirimler */
.edremulk-alert {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.edremulk-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.edremulk-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.edremulk-alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.edremulk-alert-content h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
}

.edremulk-alert-content ul {
    margin: 0;
    padding-left: 18px;
}

/* ==========================================================================
   5. SAHİBİNDEN KART TASARIMI (CMB2 BEFORE-GROUP-ROW)
   ========================================================================== */
div.cmb2-wrap .before-group-row {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 24px 28px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

div.cmb2-wrap .before-group-row:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
    border-color: #cbd5e1 !important;
}

/* Kart Başlığı (Title) */
div.cmb2-wrap .cmb-row[data-fieldtype="title"] {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 14px !important;
    margin-bottom: 20px !important;
}

div.cmb2-wrap .cmb2-metabox-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Başlık Numaralandırma Rozeti */
#heading-edremulk_heading_basic .cmb2-metabox-title::before,
#heading-edremulk_heading_details .cmb2-metabox-title::before,
#heading-edremulk_heading_location .cmb2-metabox-title::before,
#heading-edremulk_heading_media .cmb2-metabox-title::before,
#heading-edremulk_heading_desc .cmb2-metabox-title::before,
#heading-edremulk_heading_amenities .cmb2-metabox-title::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #1e3a8a;
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

#heading-edremulk_heading_basic .cmb2-metabox-title::before { content: "1"; }
#heading-edremulk_heading_details .cmb2-metabox-title::before { content: "2"; }
#heading-edremulk_heading_location .cmb2-metabox-title::before { content: "3"; }
#heading-edremulk_heading_media .cmb2-metabox-title::before { content: "4"; }
#heading-edremulk_heading_desc .cmb2-metabox-title::before { content: "5"; }
#heading-edremulk_heading_amenities .cmb2-metabox-title::before { content: "6"; }

/* ==========================================================================
   6. FORM ALANLARI VE YERLEŞİMİ (INPUT, SELECT, LABELS)
   ========================================================================== */
div.cmb2-wrap .cmb-th {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 6px !important;
    display: block;
    width: 100% !important;
    padding: 0 !important;
}

div.cmb2-wrap .cmb-th label {
    font-weight: 700 !important;
    color: #334155 !important;
    margin: 0 !important;
}

div.cmb2-wrap .cmb-th .required {
    color: #ef4444 !important;
    font-weight: 800;
    margin-left: 2px;
}

div.cmb2-wrap .cmb-td {
    width: 100% !important;
    padding: 0 !important;
}

/* Genel Input Stilleri */
div.cmb2-wrap input[type="text"],
div.cmb2-wrap input[type="number"],
div.cmb2-wrap select:not(.select2-hidden-accessible),
div.cmb2-wrap textarea {
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    height: 48px !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

div.cmb2-wrap textarea {
    height: auto !important;
    min-height: 120px !important;
}

div.cmb2-wrap input[type="text"]:focus,
div.cmb2-wrap input[type="number"]:focus,
div.cmb2-wrap select:not(.select2-hidden-accessible):focus,
div.cmb2-wrap textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
    outline: none !important;
}

/* Açıklama Yazıları */
div.cmb2-wrap .cmb2-metabox-description {
    display: block;
    font-size: 12px !important;
    color: #64748b !important;
    margin-top: 5px !important;
    font-style: normal !important;
    line-height: 1.4;
}

/* Kolon Genişlikleri ve Düzen */
.cmb2-id--property-title {
    width: 100% !important;
    clear: both;
}

/* ==========================================================================
   8. KONUM VE ADRES BİLGİLERİ (İLÇE & MAHALLE 2 KADEMELİ SEÇİCİ)
   ========================================================================== */
.cmb2-id--property-location {
    width: 100% !important;
    clear: both;
    margin-bottom: 20px !important;
}

.cmb2-id--property-location > .cmb-th {
    margin-bottom: 10px !important;
}

.cmb2-id--property-location > .cmb-th label {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

/* 2 Kademeli Seçici Grid (İlçe Sol, Mahalle Sağ) */
.field-taxonomy-location-wrapper-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    width: 100% !important;
}

.field-taxonomy-location-1,
.field-taxonomy-location-2 {
    position: relative !important;
    width: 100% !important;
}

.field-taxonomy-location-1::before {
    content: "İlçe / Bölge *";
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.field-taxonomy-location-2::before {
    content: "Mahalle *";
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

/* Yükleniyor Göstergesi */
.field-taxonomy-location-wrapper .loading::after {
    content: "Mahalleler yükleniyor...";
    position: absolute;
    top: 50%;
    right: 35px;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
}

/* Açık Adres Alanı */
.cmb2-id--property-address {
    width: 100% !important;
    clear: both;
    margin-bottom: 20px !important;
}

.cmb2-id--property-map-location {
    width: 100% !important;
    clear: both;
}

/* Fiyat Alanı Vurgusu */
.cmb2-id--property-price input[type="text"] {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #047857 !important;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   7. DONANIMLAR & ÖZELLİKLER (SAHİBİNDEN MODERN ÇİP SEÇİCİLERİ)
   ========================================================================== */
.cmb2-id--property-amenity .cmb2-checkbox-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 10px 0 0 0 !important;
    list-style: none !important;
}

.cmb2-id--property-amenity .cmb2-checkbox-list li {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto !important;
}

.cmb2-id--property-amenity .cmb2-checkbox-list li label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 18px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    user-select: none !important;
    margin: 0 !important;
}

.cmb2-id--property-amenity .cmb2-checkbox-list li input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #10b981 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.cmb2-id--property-amenity .cmb2-checkbox-list li label:hover {
    border-color: #cbd5e1 !important;
    background: #f1f5f9 !important;
}

/* Seçili Çip */
.cmb2-id--property-amenity .cmb2-checkbox-list li input[type="checkbox"]:checked + label,
.cmb2-id--property-amenity .cmb2-checkbox-list li:has(input[type="checkbox"]:checked) label {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15) !important;
}

/* ==========================================================================
   8. FOTOĞRAF YÜKLEME ALANLARI & CANLI YÜKLEME KARTLARI
   ========================================================================== */
div.cmb2-wrap .cmb-type-wp-realestate-file .cmb-td {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px 20px !important;
    text-align: center;
    transition: all 0.25s ease;
}

div.cmb2-wrap .cmb-type-wp-realestate-file .cmb-td:hover {
    border-color: #2563eb;
    background: #f0f7ff;
}

div.cmb2-wrap .label-can-drag {
    display: inline-block;
    cursor: pointer;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

div.cmb2-wrap .upload-file-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #1e3a8a !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    box-shadow: 0 2px 6px rgba(30, 58, 138, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.2;
}

div.cmb2-wrap .upload-file-btn::before {
    content: "" !important;
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
}

div.cmb2-wrap .upload-file-btn:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Yüklenen Fotoğraflar Galerisi Grid */
div.cmb2-wrap .wp-realestate-uploaded-files {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 16px 0 !important;
    padding: 0;
    justify-content: flex-start;
}

div.cmb2-wrap .wp-realestate-uploaded-files:empty {
    display: none;
}

div.cmb2-wrap .wp-realestate-uploaded-file {
    position: relative;
    width: 140px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

div.cmb2-wrap .wp-realestate-uploaded-file:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

div.cmb2-wrap .wp-realestate-uploaded-file-preview {
    display: block;
    width: 100%;
    height: 100%;
}

div.cmb2-wrap .wp-realestate-uploaded-file-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fotoğraf Silme (Çöp Kutusu) Butonu */
div.cmb2-wrap .wp-realestate-remove-uploaded-file {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    left: auto !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(220, 38, 38, 0.9) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    text-decoration: none !important;
    opacity: 0.9;
    transition: all 0.2s ease !important;
    z-index: 10;
}

div.cmb2-wrap .wp-realestate-remove-uploaded-file::before {
    font-family: "FontAwesome" !important;
    content: "\f1f8" !important; /* fa-trash */
    font-size: 13px !important;
    color: #ffffff !important;
    background: transparent !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    line-height: normal !important;
}

div.cmb2-wrap .wp-realestate-remove-uploaded-file:hover {
    background: #b91c1c !important;
    opacity: 1 !important;
    transform: scale(1.1);
}

/* ==========================================================================
   CANLI YÜKLENİYOR İLERLEME KARTI (PROGRESS CARD)
   ========================================================================== */
.edremulk-uploading-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 220px;
    height: 110px;
    background: #ffffff;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    animation: edremulkPulseBorder 1.5s infinite ease-in-out;
    text-align: left;
}

@keyframes edremulkPulseBorder {
    0% { border-color: #93c5fd; }
    50% { border-color: #2563eb; }
    100% { border-color: #93c5fd; }
}

.edremulk-uploading-spinner {
    font-size: 22px;
    color: #2563eb;
    flex-shrink: 0;
}

.edremulk-uploading-content {
    flex-grow: 1;
    overflow: hidden;
}

.edremulk-uploading-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.edremulk-uploading-title {
    font-size: 11px;
    font-weight: 700;
    color: #1e3a8a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edremulk-uploading-percent {
    font-size: 12px;
    font-weight: 800;
    color: #2563eb;
}

.edremulk-uploading-bar-bg {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.edremulk-uploading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.2s ease;
}

.edremulk-uploading-filename {
    display: block;
    font-size: 10px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Yükleme Sırasında Buton Durumu */
.btn-uploading-disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* ==========================================================================
   9. ALT SABİT / BELİRGİN EYLEM ÇUBUĞU (ACTION BAR)
   ========================================================================== */
.edremulk-action-bar-wrapper {
    margin-top: 30px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.edremulk-action-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.edremulk-action-btn-back {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    background: #f1f5f9;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.edremulk-action-btn-back:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #94a3b8;
}

.edremulk-action-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    background: #10b981;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.edremulk-action-btn-submit:hover {
    background: #059669;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

/* Eski tema butonunu gizle */
.property-submission-form-wrapper form.cmb-form > .submit-button-wrapper {
    display: none !important;
}

/* ==========================================================================
   10. ÖNİZLEME (PREVIEW) & TAMAMLANDI (DONE) EKRANI STİLLERİ
   ========================================================================== */
.edremulk-preview-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 18px 24px;
    margin-bottom: 24px;
}

.edremulk-preview-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.edremulk-preview-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.edremulk-preview-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.edremulk-preview-btn-edit {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #f8fafc;
    color: #475569;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.edremulk-preview-btn-edit:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #94a3b8;
}

.edremulk-preview-btn-publish {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: #10b981;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
}

.edremulk-preview-btn-publish:hover {
    background: #059669;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
    transform: translateY(-1px);
}

/* Eski önizleme butonlarını gizle */
.wrapper-action-property {
    display: none !important;
}

/* Done Card */
.edremulk-done-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.edremulk-done-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.edremulk-done-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px 0;
}

.edremulk-done-desc {
    font-size: 16px;
    color: #64748b;
    max-width: 650px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
}

.edremulk-done-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* ==========================================================================
   11. MOBİL UYUMLULUK (RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
    .edremulk-stepper {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .edremulk-step-divider {
        display: none;
    }

    .edremulk-step {
        width: 100%;
    }

    .edremulk-sub-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .edremulk-action-bar-inner,
    .edremulk-preview-action-bar {
        flex-direction: column;
        width: 100%;
    }

    .edremulk-action-btn-back,
    .edremulk-action-btn-submit,
    .edremulk-preview-btn-edit,
    .edremulk-preview-btn-publish {
        width: 100%;
        justify-content: center;
    }

    div.cmb2-wrap .before-group-row {
        padding: 18px 16px !important;
    }
}

/* ==========================================================================
   12. HARİTA (PW_MAP), SELECT2 & WYSIWYG GELİŞTİRMELERİ
   ========================================================================== */
/* Harita Arama ve Kapsayıcı */
.pw-map-search-wrapper {
    position: relative !important;
    margin-bottom: 12px !important;
}

.pw-map-search-wrapper input.pw-map-search {
    padding-left: 16px !important;
    border-radius: 8px !important;
}

.pw-map {
    height: 380px !important;
    border-radius: 10px !important;
    border: 1.5px solid #cbd5e1 !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

/* Koordinat kutularını küçük, temiz yan yana yerleşim yap */
.cmb2-id--property-map-location .pw-map-latitude,
.cmb2-id--property-map-location .pw-map-longitude {
    display: inline-block !important;
    width: calc(50% - 8px) !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    color: #475569 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
}

.cmb2-id--property-map-location .pw-map-latitude {
    margin-right: 12px !important;
}

/* Select2 Genel Kapsayıcı ve Reset */
.select2-container {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

/* Tekli Seçim (Single Select) - Gayrimenkul Türü, İlçe, Mahalle vb. */
.select2-container .select2-selection--single {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    height: 48px !important;
    padding: 0 14px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 46px !important;
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding-left: 0 !important;
    padding-right: 30px !important;
    width: 100% !important;
}

.select2-container .select2-selection--single .select2-selection__placeholder {
    color: #64748b !important;
    font-size: 15px !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
    top: 0 !important;
    width: 20px !important;
}

.select2-container .select2-selection--single .select2-selection__clear {
    margin-right: 20px !important;
    font-size: 18px !important;
    color: #94a3b8 !important;
    line-height: 46px !important;
}

/* Çoklu Seçim (Multiple Select) - İçerideki input taşmasını ve çift çerçeveyi tamamen önler */
.select2-container .select2-selection--multiple {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    min-height: 48px !important;
    padding: 4px 10px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 4px;
    width: 100% !important;
}

.select2-container .select2-selection--multiple .select2-search--inline {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 36px !important;
    flex-grow: 1;
}

.select2-container .select2-selection--multiple .select2-search__field,
.select2-container--default .select2-selection--multiple .select2-search__field,
input.select2-search__field {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 6px !important;
    margin: 0 !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Seçilen Çipler */
.select2-container .select2-selection--multiple .select2-selection__choice {
    background: #e0e7ff !important;
    border: 1px solid #c7d2fe !important;
    border-radius: 6px !important;
    color: #1e3a8a !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    margin: 2px !important;
}

.select2-container .select2-selection--multiple .select2-selection__choice__remove {
    color: #4338ca !important;
    margin-right: 6px !important;
    font-weight: 800 !important;
}

/* Ham select etiketini gizle (Select2 arkasında kalan select) */
select.select2-hidden-accessible {
    display: none !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* Açılır Menü Dropdown Listesi */
.select2-dropdown {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    z-index: 99999 !important;
}

.select2-results__option {
    padding: 10px 14px !important;
    font-size: 14px !important;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
}

/* WYSIWYG Editör */
#wp-_property_description-wrap {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

#wp-_property_description-wrap.wp-core-ui .quicktags-toolbar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 8px !important;
}

#wp-_property_description-wrap textarea.wp-editor-area {
    border: none !important;
    padding: 14px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
}

/* ==========================================================================
   ARSA & ARAZİ DİNAMİK ALAN VE SEÇİCİ STİLLERİ
   ========================================================================== */
.cmb2-id--property-zoning-status select,
.cmb2-id--property-tapu-status select {
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    color: #0f172a !important;
    height: 48px !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.cmb2-id--property-zoning-status select:focus,
.cmb2-id--property-tapu-status select:focus {
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* 3 Kolonlu Kart 2 İçi Grid Düzeni */
@media (min-width: 768px) {
    #heading-edremulk_heading_details .before-group-row-inner {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px 20px !important;
    }
    #heading-edremulk_heading_details .before-group-row-inner > div.cmb-row {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    #heading-edremulk_heading_details .before-group-row-inner > [data-fieldtype="title"] {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
}

/* Arsa İlanı Donanım Bilgilendirme Kartı */
#edremulk-arsa-amenity-notice {
    padding: 18px 24px !important;
    background: #f8fafc !important;
    border: 1.5px dashed #94a3b8 !important;
    border-radius: 12px !important;
    color: #334155 !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin-top: 10px !important;
    animation: fadeIn 0.3s ease-in-out;
}

#edremulk-arsa-amenity-notice i {
    color: #0284c7 !important;
    font-size: 28px !important;
    flex-shrink: 0 !important;
}

#edremulk-arsa-amenity-notice strong {
    color: #0f172a !important;
    font-size: 15px !important;
}

/* ==========================================================================
   DIŞ İLANLARDAN VERİ AKTARICI (SAHİBİNDEN / HEPSİEMLAK) KUTUSU
   ========================================================================== */
.edremulk-importer-wrapper {
    background: #ffffff;
    border: 1.5px solid #e0e7ff;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.08);
}

.edremulk-importer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.importer-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 260px;
}

.importer-icon {
    font-size: 30px;
    line-height: 1;
}

.importer-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 800;
    color: #3730a3;
}

.importer-desc {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.edremulk-btn-toggle-importer {
    background: #4f46e5;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edremulk-btn-toggle-importer:hover {
    background: #4338ca;
    transform: translateY(-1px);
}

.edremulk-importer-body {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #c7d2fe;
}

.importer-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.importer-tab-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.importer-tab-btn.active {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.tab-help-text {
    font-size: 13px;
    color: #475569;
    margin-bottom: 12px;
    line-height: 1.5;
}

.importer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
}

/* ==========================================================================
   1-TIKLA AKTAR (BOOKMARKLET) & IMPORTED HERO ALERT STYLES
   ========================================================================== */
.edremulk-importer-wrapper.has-imported-data {
    border-color: #86efac;
    background: #fcfdfd;
}

.edremulk-imported-hero-alert {
    margin-top: 18px;
    padding: 20px 24px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 12px;
}

.hero-alert-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.hero-alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16a34a;
    color: #ffffff;
    font-weight: 700;
    font-size: 13.5px;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.source-tag {
    font-size: 13px;
    color: #475569;
    background: #ffffff;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.imported-listing-title {
    margin: 0 0 14px 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.4;
}

.imported-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.imported-chip-item {
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    min-width: 90px;
}

.imported-chip-item .chip-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
}

.imported-chip-item .chip-val {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.imported-chip-item .chip-val.price-val {
    color: #15803d;
    font-size: 15px;
}

/* Fotoğraflar Tepsisi */
.edremulk-imported-photos-tray {
    margin-top: 14px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.photos-tray-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.photos-tray-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.photos-tray-hint {
    font-size: 12px;
    color: #64748b;
}

.photos-tray-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.photo-tray-thumb {
    position: relative;
    width: 90px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
}

.photo-tray-thumb:hover {
    border-color: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.photo-tray-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-tray-thumb .photo-idx {
    position: absolute;
    bottom: 2px;
    right: 4px;
    background: rgba(0,0,0,0.6);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
}

.hero-alert-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #bbf7d0;
    flex-wrap: wrap;
    gap: 12px;
}

.auto-fill-status {
    font-size: 13.5px;
    color: #166534;
    font-weight: 600;
}

.btn-reapply {
    background: #ffffff;
    border: 1px solid #16a34a;
    color: #16a34a;
    font-weight: 700;
    border-radius: 6px;
    padding: 6px 14px;
    transition: all 0.2s ease;
}

.btn-reapply:hover {
    background: #16a34a;
    color: #ffffff;
}

/* Bookmarklet Sekmesi Öğeleri */
.bookmarklet-box-inner {
    padding: 10px 0;
}

.bookmarklet-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.bookmarklet-drag-zone {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.drag-hint-label {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.edremulk-bookmarklet-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    cursor: move;
    cursor: grab;
    transition: all 0.25s ease;
}

.edremulk-bookmarklet-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.edremulk-bookmarklet-link .b-icon {
    font-size: 18px;
}

.drag-arrow-tip {
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    background: #eef2ff;
    padding: 6px 12px;
    border-radius: 20px;
}

.bookmarklet-copy-zone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bookmarklet-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .bookmarklet-guide-grid {
        grid-template-columns: 1fr;
    }
}

.guide-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.guide-step-card .step-num {
    width: 34px;
    height: 34px;
    background: #4f46e5;
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guide-step-card .step-content h6 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.guide-step-card .step-content p {
    margin: 0;
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.45;
}

.bookmarklet-compatibility-badge {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #334155;
    display: flex;
    align-items: center;
}



