/**
 * Chofli Platform - Unicode Icons Fallback
 * GUARANTEED SOLUTION: Uses Unicode symbols directly
 */

/* CRITICAL: Force all icons to show using Unicode */
.fas, .far, .fab, .fa, i[class*="fa"] {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols" !important;
    font-style: normal !important;
    font-weight: normal !important;
    display: inline-block !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    vertical-align: baseline !important;
}

/* Basic Icons */
.fa-home:before, .fas.fa-home:before { content: "🏠" !important; }
.fa-search:before, .fas.fa-search:before { content: "🔍" !important; }
.fa-heart:before, .fas.fa-heart:before { content: "❤️" !important; }
.fa-star:before, .fas.fa-star:before { content: "⭐" !important; }
.fa-phone:before, .fas.fa-phone:before { content: "📞" !important; }
.fa-envelope:before, .fas.fa-envelope:before { content: "✉️" !important; }
.fa-user:before, .fas.fa-user:before { content: "👤" !important; }
.fa-cog:before, .fas.fa-cog:before, .fa-settings:before { content: "⚙️" !important; }

/* Property Icons */
.fa-map-marker-alt:before, .fas.fa-map-marker-alt:before { content: "📍" !important; }
.fa-bed:before, .fas.fa-bed:before { content: "🛏️" !important; }
.fa-bath:before, .fas.fa-bath:before { content: "🛁" !important; }
.fa-ruler-combined:before, .fas.fa-ruler-combined:before { content: "📏" !important; }
.fa-car:before, .fas.fa-car:before { content: "🚗" !important; }
.fa-swimming-pool:before, .fas.fa-swimming-pool:before { content: "🏊" !important; }

/* Consultant Icons */
.fa-balance-scale:before, .fas.fa-balance-scale:before { content: "⚖️" !important; }
.fa-calendar-check:before, .fas.fa-calendar-check:before { content: "📅" !important; }
.fa-comments:before, .fas.fa-comments:before { content: "💬" !important; }
.fa-shield-alt:before, .fas.fa-shield-alt:before { content: "🛡️" !important; }
.fa-clock:before, .fas.fa-clock:before { content: "🕐" !important; }
.fa-user-tie:before, .fas.fa-user-tie:before { content: "👔" !important; }

/* Interface Icons */
.fa-bars:before, .fas.fa-bars:before { content: "☰" !important; }
.fa-times:before, .fas.fa-times:before { content: "✖️" !important; }
.fa-check:before, .fas.fa-check:before { content: "✅" !important; }
.fa-plus:before, .fas.fa-plus:before { content: "➕" !important; }
.fa-edit:before, .fas.fa-edit:before { content: "✏️" !important; }
.fa-trash:before, .fas.fa-trash:before { content: "🗑️" !important; }

/* Social Media Icons */
.fa-facebook:before, .fab.fa-facebook:before { content: "📘" !important; }
.fa-twitter:before, .fab.fa-twitter:before { content: "🐦" !important; }
.fa-instagram:before, .fab.fa-instagram:before { content: "📷" !important; }
.fa-linkedin:before, .fab.fa-linkedin:before { content: "💼" !important; }
.fa-youtube:before, .fab.fa-youtube:before { content: "📺" !important; }
.fa-whatsapp:before, .fab.fa-whatsapp:before { content: "💚" !important; }

/* Additional Common Icons */
.fa-calendar:before, .fas.fa-calendar:before { content: "📅" !important; }
.fa-check-circle:before, .fas.fa-check-circle:before { content: "✅" !important; }
.fa-times-circle:before, .fas.fa-times-circle:before { content: "❌" !important; }
.fa-exclamation-circle:before, .fas.fa-exclamation-circle:before { content: "⚠️" !important; }
.fa-info-circle:before, .fas.fa-info-circle:before { content: "ℹ️" !important; }
.fa-question-circle:before, .fas.fa-question-circle:before { content: "❓" !important; }
.fa-arrow-right:before, .fas.fa-arrow-right:before { content: "➡️" !important; }
.fa-arrow-left:before, .fas.fa-arrow-left:before { content: "⬅️" !important; }
.fa-arrow-up:before, .fas.fa-arrow-up:before { content: "⬆️" !important; }
.fa-arrow-down:before, .fas.fa-arrow-down:before { content: "⬇️" !important; }
.fa-download:before, .fas.fa-download:before { content: "⬇️" !important; }
.fa-upload:before, .fas.fa-upload:before { content: "⬆️" !important; }
.fa-share:before, .fas.fa-share:before { content: "📤" !important; }
.fa-print:before, .fas.fa-print:before { content: "🖨️" !important; }
.fa-save:before, .fas.fa-save:before { content: "💾" !important; }
.fa-copy:before, .fas.fa-copy:before { content: "📋" !important; }
.fa-cut:before, .fas.fa-cut:before { content: "✂️" !important; }
.fa-paste:before, .fas.fa-paste:before { content: "📋" !important; }
.fa-undo:before, .fas.fa-undo:before { content: "↶" !important; }
.fa-redo:before, .fas.fa-redo:before { content: "↷" !important; }
.fa-list:before, .fas.fa-list:before { content: "📋" !important; }
.fa-th:before, .fas.fa-th:before { content: "▦" !important; }
.fa-th-large:before, .fas.fa-th-large:before { content: "▦" !important; }
.fa-grid:before, .fas.fa-grid:before { content: "▦" !important; }
.fa-calculator:before, .fas.fa-calculator:before { content: "🧮" !important; }
.fa-paper-plane:before, .fas.fa-paper-plane:before { content: "✈️" !important; }
.fa-vial:before, .fas.fa-vial:before { content: "🧪" !important; }
.fa-chart-line:before, .fas.fa-chart-line:before { content: "📈" !important; }
.fa-building:before, .fas.fa-building:before { content: "🏢" !important; }
.fa-desktop:before, .fas.fa-desktop:before { content: "🖥️" !important; }
.fa-clipboard-check:before, .fas.fa-clipboard-check:before { content: "📋" !important; }
.fa-chart-bar:before, .fas.fa-chart-bar:before { content: "📊" !important; }
.fa-spinner:before, .fas.fa-spinner:before { content: "⏳" !important; }
.fa-exclamation-triangle:before, .fas.fa-exclamation-triangle:before { content: "⚠️" !important; }

/* Admin Icons */
.fa-user-shield:before, .fas.fa-user-shield:before { content: "🛡️" !important; }
.fa-tachometer-alt:before, .fas.fa-tachometer-alt:before { content: "📊" !important; }
.fa-users:before, .fas.fa-users:before { content: "👥" !important; }
.fa-eye:before, .fas.fa-eye:before { content: "👁️" !important; }
.fa-eye-slash:before, .fas.fa-eye-slash:before { content: "🙈" !important; }

/* Property specific icons */
.fa-key:before, .fas.fa-key:before { content: "🔑" !important; }
.fa-door-open:before, .fas.fa-door-open:before { content: "🚪" !important; }
.fa-couch:before, .fas.fa-couch:before { content: "🛋️" !important; }
.fa-wifi:before, .fas.fa-wifi:before { content: "📶" !important; }
.fa-tv:before, .fas.fa-tv:before { content: "📺" !important; }
.fa-utensils:before, .fas.fa-utensils:before { content: "🍽️" !important; }

/* Status icons */
.fa-circle:before, .fas.fa-circle:before { content: "●" !important; }
.fa-dot-circle:before, .fas.fa-dot-circle:before { content: "◉" !important; }
.fa-square:before, .fas.fa-square:before { content: "■" !important; }

/* Arabic RTL specific spacing */
.icon-fix {
    margin-right: 0 !important;
    margin-left: 3px !important;
    display: inline-block !important;
    font-style: normal !important;
}

/* Property icons specific spacing */
.property-icon {
    margin-right: 0 !important;
    margin-left: 5px !important;
    color: #6b7280 !important;
    font-size: 0.875rem !important;
}

/* Service icons specific */
.service-icon {
    color: inherit !important;
    font-size: 1em !important;
    margin: 0 !important;
}

/* Search icon specific */
.search-icon {
    margin-right: 0 !important;
    margin-left: 8px !important;
}

/* Navigation icons */
nav i[class*="fa"] {
    margin-right: 0 !important;
    margin-left: 5px !important;
}

/* Button icons */
button i[class*="fa"], 
a i[class*="fa"] {
    margin-right: 0 !important;
    margin-left: 3px !important;
}

/* Ensure all icons are visible */
i[class*="fa"] {
    min-width: 1em !important;
    text-align: center !important;
    font-size: inherit !important;
}

/* Force visibility */
i[class*="fa"]:before {
    display: inline-block !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    font-style: normal !important;
    font-weight: normal !important;
}

/* Animation for loading */
.fa-spin {
    animation: fa-spin 2s infinite linear !important;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(359deg); }
}

/* Red favorite icon */
.favorite-btn i {
    color: #ef4444 !important;
}

.favorite-btn.active i {
    color: white !important;
}

/* Rating stars */
.rating-stars i {
    color: #fbbf24 !important;
}

/* Ensure proper display in all contexts */
.fas:before, .far:before, .fab:before, .fa:before {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols" !important;
    font-style: normal !important;
    font-weight: normal !important;
    display: inline-block !important;
}

/* Override any conflicting styles */
* i[class*="fa"] {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols" !important;
    font-style: normal !important;
    font-weight: normal !important;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    i[class*="fa"] {
        font-size: 0.9em !important;
    }
    
    .icon-fix {
        margin-left: 2px !important;
    }
}

/* Print styles */
@media print {
    i[class*="fa"]:before {
        content: attr(data-print-text) !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    i[class*="fa"] {
        font-weight: bold !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    i[class*="fa"] {
        color: inherit !important;
    }
}
