/**
 * Frontend Styles for Event Auction Items
 * RTL Support - Professional Design
 */

/* Container */
.eai-container,
.eai-event-auction-items,
.eai-single-container {
    direction: rtl;
    text-align: right;
    font-family: inherit;
    line-height: 1.6;
}

/* Post Thumbnail */
.eai-post-thumbnail-single {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.eai-post-thumbnail-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Breadcrumbs */
/* Professional Breadcrumbs */
.eai-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 8px 0;
    direction: rtl;
    flex-wrap: wrap;
}

.eai-breadcrumb-item {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.eai-breadcrumb-item:hover {
    color: #6b7280;
}

.eai-breadcrumb-home-icon {
    font-size: 12px;
    opacity: 0.7;
}

.eai-breadcrumb-separator {
    color: #d1d5db;
    font-size: 12px;
    margin: 0 4px;
    opacity: 0.5;
    font-weight: 300;
}

.eai-breadcrumb-current {
    color: #374151;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .eai-breadcrumbs {
        font-size: 12px;
        gap: 5px;
        margin-bottom: 12px;
        padding: 6px 0;
    }
    
    .eai-breadcrumb-item {
        font-size: 12px;
    }
    
    .eai-breadcrumb-separator {
        margin: 0 3px;
        font-size: 11px;
    }
    
    .eai-breadcrumb-current {
        font-size: 12px;
    }
    
    .eai-breadcrumb-home-icon {
        font-size: 11px;
    }
    
    /* Organizer Section Mobile */
    .eai-organizer-card {
        padding: 16px;
    }
    
    .eai-organizer-header {
        gap: 12px;
    }
    
    .eai-organizer-avatar {
        width: 48px;
        height: 48px;
    }
    
    .eai-avatar-icon {
        font-size: 24px;
    }
    
    .eai-organizer-name {
        font-size: 18px;
    }
    
    .eai-organizer-contact-item {
        gap: 10px;
    }
    
    .eai-contact-icon {
        font-size: 16px;
        width: 20px;
        height: 20px;
    }
    
    .eai-contact-label {
        font-size: 11px;
    }
    
    .eai-contact-link {
        font-size: 14px;
    }
    
    /* Additional Info Mobile */
    .eai-additional-info-content {
        padding: 16px;
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* Property Link Mobile */
    .eai-property-link-wrapper {
        padding: 16px;
    }
    
    .eai-property-link-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Ensure styles apply in event pages */
.eai-event-auction-items .eai-auction-items-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
    margin-bottom: 50px !important;
    padding: 30px 0 !important;
}

.eai-event-auction-items .eai-auction-item-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 18px !important;
    transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
    /* Remove position: relative to avoid affecting absolute children */
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    /* Allow favorite button to be fully visible */
    overflow: visible !important;
}

/* Section Title */
.eai-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1a1a1a;
    text-align: right;
    position: relative;
    padding-bottom: 15px;
}

.eai-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3e9799, #4fb3b5);
    border-radius: 2px;
}

/* Auction Items Grid - Spacious Professional Design */
/* ========================================
   STRICT GRID SYSTEM - Professional Layout
   ======================================== */

.eai-auction-items-grid,
.eai-event-auction-items .eai-auction-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 0;
    padding: 0;
    direction: rtl;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 769px) and (max-width: 1024px) {
    .eai-auction-items-grid,
    .eai-event-auction-items .eai-auction-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .eai-auction-items-grid,
    .eai-event-auction-items .eai-auction-items-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Pagination - ترقيم الصفحات */
.eai-event-auction-items .eai-pagination,
.eai-pagination {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    direction: rtl;
}

.eai-pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.eai-pagination-item {
    margin: 0;
    padding: 0;
}

.eai-pagination-item a,
.eai-pagination-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.eai-pagination-item a:hover {
    color: #3e9799;
    background: rgba(62, 151, 153, 0.08);
    border-color: rgba(62, 151, 153, 0.3);
}

.eai-pagination-item span.current {
    color: #ffffff;
    background: linear-gradient(135deg, #3e9799, #4fb3b5);
    border-color: #3e9799;
}

.eai-pagination-item span.dots {
    border: none;
    background: transparent;
}

@media (max-width: 768px) {
    .eai-pagination-list {
        gap: 6px;
    }
    
    .eai-pagination-item a,
    .eai-pagination-item span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* Mobile styles are defined in the main media query above */

/* ========================================
   AUCTION CARD - Clean & Balanced Design
   ======================================== */

.eai-event-auction-items .eai-auction-item-card,
.eai-auction-item-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.eai-auction-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #d1d5db;
}

/* ================================
   Pricing Path / Acceptance Analysis
   ================================ */

.eai-pricing-path-analysis-section {
    margin-top: 16px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 18px 18px 16px;
}

.eai-pricing-path-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #111827;
}

.eai-pricing-path-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.06);
    color: #1d4ed8;
    font-size: 14px;
}

.eai-pricing-path-description {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}

.eai-pricing-badge {
    margin-right: auto;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid transparent;
}

.eai-badge-precise {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.28);
}

.eai-badge-normal {
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.28);
}

.eai-badge-corrected,
.eai-badge-info {
    background: rgba(234, 179, 8, 0.08);
    color: #92400e;
    border-color: rgba(234, 179, 8, 0.32);
}

.eai-badge-danger {
    background: rgba(248, 113, 113, 0.1);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.32);
}

.eai-badge-warning {
    background: rgba(251, 191, 36, 0.12);
    color: #92400e;
    border-color: rgba(245, 158, 11, 0.35);
}

.eai-badge-neutral {
    background: rgba(148, 163, 184, 0.08);
    color: #374151;
    border-color: rgba(148, 163, 184, 0.35);
}

.eai-pricing-instant-acceptance .eai-pricing-path-card,
.eai-pricing-correction-path .eai-pricing-path-card {
    padding-top: 6px;
}

.eai-pricing-instant-label {
    font-size: 11px;
    font-weight: 500;
    color: #64748B;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.eai-pricing-instant-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #1E293B;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    margin-bottom: 6px;
    direction: ltr;
    text-align: right;
}

.eai-pricing-instant-value.eai-number-main {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-wrap: wrap;
}

.eai-number-sign,
.eai-number-value,
.eai-number-unit {
    display: inline-block;
}

.eai-number-sign {
    font-size: 0.9em;
    font-weight: 600;
    margin-inline-end: 1px;
}

.eai-number-value {
    font-size: 1em;
    font-weight: 700;
}

.eai-number-unit {
    font-size: 0.65em;
    font-weight: 500;
    color: #64748B;
    margin-inline-start: 2px;
    opacity: 0.85;
}

.eai-number-arrow {
    font-size: 0.5em;
    margin-inline-start: 4px;
    opacity: 0.7;
    vertical-align: middle;
}

.eai-number-positive {
    color: #059669;
}

.eai-number-negative {
    color: #DC2626;
}

.eai-number-neutral {
    color: #64748B;
}

.eai-pricing-instant-sub {
    font-size: 11px;
    color: #64748B;
    margin-top: 4px;
    line-height: 1.3;
}

.eai-pricing-instant-gap .eai-pricing-instant-value-wrapper {
    margin-bottom: 4px;
}

.eai-number-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.eai-number-badge.eai-number-positive {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.2);
    color: #059669;
}

.eai-number-badge.eai-number-negative {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.2);
    color: #DC2626;
}

.eai-pricing-instant-prices .eai-pricing-instant-value {
    font-size: 20px;
    font-weight: 600;
}

.eai-pricing-instant-prices-row {
    margin-top: 8px;
}

.eai-price-compact-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(241, 245, 249, 1);
}

.eai-price-compact-row:last-child {
    border-bottom: none;
}

.eai-price-label-compact {
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
}

.eai-price-value-compact {
    font-size: 16px;
    font-weight: 700;
    color: #1E293B;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    direction: ltr;
    text-align: right;
}

.eai-price-value-compact.eai-number-positive {
    color: #059669;
}

.eai-price-value-compact.eai-number-negative {
    color: #DC2626;
}

.eai-price-value-compact.eai-number-neutral {
    color: #64748B;
}

/* New compact layout for instant acceptance - clear visual hierarchy */
.eai-instant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 24px;
}

.eai-instant-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.eai-instant-main-value {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.eai-instant-main-label {
    font-size: 12px;
    color: #64748B;
}

.eai-instant-meta-line {
    font-size: 13px;
    color: #4B5563;
}

.eai-instant-prices-strip {
    margin-top: 4px;
}

.eai-instant-prices-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
}

.eai-instant-price-label {
    font-size: 12px;
    color: #9CA3AF;
}

.eai-price-arrow {
    font-size: 14px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .eai-instant-metrics {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }
}

.eai-pricing-correction-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.eai-pricing-correction-main {
    padding: 18px 18px 16px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid rgba(209, 213, 219, 0.9);
}

.eai-pricing-correction-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.eai-pricing-correction-value {
    font-size: 34px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.eai-pricing-progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(209, 213, 219, 0.7);
    overflow: hidden;
}

.eai-pricing-progress-fill {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #15803d, #22c55e);
}

.eai-pricing-correction-main.eai-pricing-correction-negative .eai-pricing-progress-fill {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.eai-pricing-correction-main.eai-pricing-correction-neutral .eai-pricing-progress-fill {
    background: linear-gradient(90deg, #6b7280, #9ca3af);
}

.eai-pricing-progress-fill::after {
    content: '';
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.eai-pricing-correction-meta {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
}

.eai-pricing-meta-item {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(229, 231, 235, 0.95);
    background: #ffffff;
}

.eai-pricing-meta-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.eai-pricing-meta-value {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.eai-pricing-meta-unit,
.eai-pricing-meta-unit *.eai-pricing-meta-unit {
    font-size: 11px;
    color: #64748B;
}

.eai-pricing-note {
    margin-top: 14px;
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 900px) {
    .eai-pricing-correction-grid,
    .eai-pricing-instant-grid {
        grid-template-columns: 1fr;
    }
}

/* Fixed Image Height - Consistent Aspect Ratio */
.eai-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: #f3f4f6;
    overflow: hidden;
    flex-shrink: 0;
    isolation: isolate;
}

.eai-card-image a {
    display: block;
    width: 100%;
    height: 100%;
    position: static;
    overflow: hidden;
}

.eai-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
    position: static;
    z-index: 1;
}

.eai-auction-item-card:hover .eai-card-image img {
    transform: scale(1.03);
}

/* Card Content - Clear Hierarchy */
.eai-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px;
    gap: 12px;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    min-height: 0;
}

/* Title - Priority 1 */
.eai-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    order: 1;
}

.eai-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.eai-card-title a:hover {
    color: #3e9799;
}

/* Meta Information - Priority 2 */
.eai-card-meta-right {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

.eai-location-item,
.eai-product-number-item {
    display: flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
    flex-direction: row-reverse;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.eai-meta-icon {
    font-size: 14px;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Countdown Timer - Priority 3 */
.eai-countdown-container {
    order: 3;
    margin: 0;
    padding: 0;
}

.eai-countdown-subtle {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    direction: rtl;
}

.eai-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    min-width: 48px;
}

.eai-countdown-value {
    font-size: 15px;
    font-weight: 700;
    color: #3e9799;
    line-height: 1;
}

.eai-countdown-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Price Section - Priority 4 */
.eai-card-footer {
    order: 4;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eai-card-price {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
}

.eai-price-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eai-price-value {
    font-size: 20px;
    font-weight: 700;
    color: #3e9799;
    line-height: 1.2;
}

.eai-price-currency {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-right: 4px;
}

/* Actions - Priority 5 */
.eai-card-action {
    order: 5;
    margin: 0;
    direction: rtl;
    text-align: right;
}

.eai-view-button {
    display: block;
    width: 100%;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #ffffff;
    background: #3e9799;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    direction: rtl;
    box-sizing: border-box;
    min-height: 40px;
}

.eai-view-button:hover {
    background: #2d7a7c;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(62, 151, 153, 0.2);
}

.eai-view-button:active {
    transform: translateY(0);
}


/* Wishlist Button - Overlay on Image (Top-Right Corner RTL) */
.eai-card-wishlist-button {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
    z-index: 999 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* Lock position - prevent any movement */
    transform: none !important;
    /* Prevent any parent transforms from affecting position */
    isolation: isolate;
    /* Ensure button is positioned relative to .eai-card-image only */
    contain: layout style paint;
    /* Prevent clipping */
    overflow: visible !important;
    box-sizing: border-box !important;
}

.eai-card-wishlist-button:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    /* No transform to prevent position shift */
    transform: none !important;
}

.eai-card-wishlist-button.active {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    /* No transform to prevent position shift */
    transform: none !important;
}

.eai-card-wishlist-button.active:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    /* No transform to prevent position shift */
    transform: none !important;
}

.eai-card-wishlist-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.2s ease;
    flex-shrink: 0 !important;
    /* Perfect centering */
    margin: 0 !important;
    padding: 0 !important;
    /* Ensure SVG doesn't overflow */
    overflow: visible !important;
    box-sizing: content-box !important;
}

.eai-card-wishlist-icon .eai-heart-path {
    transition: all 0.2s ease;
}

/* Default state: White icon (not in wishlist) - outline heart */
.eai-card-wishlist-icon .eai-heart-path {
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
    fill: none !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)) !important;
}

.eai-card-wishlist-button:hover .eai-card-wishlist-icon .eai-heart-path {
    stroke: #ffffff !important;
    stroke-width: 3 !important;
    fill: none !important;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)) !important;
}

/* Active state: Red icon (in wishlist) - filled heart */
.eai-card-wishlist-button.active .eai-card-wishlist-icon .eai-heart-path {
    fill: #dc2626 !important;
    stroke: #dc2626 !important;
    stroke-width: 2 !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) !important;
}

.eai-card-wishlist-button.active:hover .eai-card-wishlist-icon .eai-heart-path {
    fill: #b91c1c !important;
    stroke: #b91c1c !important;
    stroke-width: 2 !important;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3)) !important;
}

/* Remove emoji image styles - no longer needed */

/* Ensure button is visible on event pages and always on top of image */
.eai-event-auction-items .eai-card-wishlist-button,
.eai-card-image .eai-card-wishlist-button {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    /* Lock position - prevent any movement */
    transform: none !important;
    /* Prevent any parent transforms from affecting position */
    isolation: isolate;
    contain: layout style paint;
}

.eai-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    direction: rtl;
    text-align: right;
    gap: 12px;
}

.eai-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    text-align: right;
    color: #1a1a1a;
    min-height: auto;
    position: relative;
    padding-bottom: 10px;
}

.eai-card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 1px;
    background: #e5e7eb;
}

.eai-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.eai-card-title a:hover {
    color: #3e9799;
}

.eai-card-meta,
.eai-auction-item-card .eai-card-meta,
.eai-event-auction-items .eai-card-meta {
    margin-bottom: 8px !important;
    font-size: 13px !important;
    color: #495057 !important;
    text-align: right !important;
    padding: 4px 0 !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    justify-content: flex-start !important;
    direction: rtl !important;
    flex-direction: row-reverse !important;
    width: 100% !important;
}

.eai-card-meta-right,
.eai-auction-item-card .eai-card-meta-right,
.eai-event-auction-items .eai-card-meta-right {
    justify-content: flex-start !important;
    direction: rtl !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin-bottom: 8px !important;
    gap: 0 !important;
}

.eai-card-meta-inline,
.eai-auction-item-card .eai-card-meta-inline,
.eai-event-auction-items .eai-card-meta-inline {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    direction: rtl !important;
    text-align: right !important;
    flex-direction: row-reverse !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}

.eai-card-meta-inline-all {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    justify-content: flex-end !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    flex-direction: row !important;
    width: 100% !important;
    overflow: visible !important;
}

.eai-meta-item {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: fit-content !important;
}

.eai-meta-item .eai-product-number,
.eai-meta-item .eai-region,
.eai-meta-item .eai-city {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.eai-location-item,
.eai-auction-item-card .eai-location-item,
.eai-event-auction-items .eai-location-item {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    direction: rtl !important;
    flex-direction: row-reverse !important;
}

.eai-location-item .eai-meta-icon,
.eai-auction-item-card .eai-location-item .eai-meta-icon,
.eai-event-auction-items .eai-location-item .eai-meta-icon {
    margin-left: 4px !important;
    margin-right: 0 !important;
    order: 2 !important;
}

.eai-location-item .eai-region,
.eai-location-item .eai-city,
.eai-auction-item-card .eai-location-item .eai-region,
.eai-auction-item-card .eai-location-item .eai-city,
.eai-event-auction-items .eai-location-item .eai-region,
.eai-event-auction-items .eai-location-item .eai-city {
    direction: rtl !important;
    text-align: right !important;
    order: 1 !important;
}

.eai-card-meta-right .eai-meta-icon,
.eai-auction-item-card .eai-card-meta-right .eai-meta-icon,
.eai-event-auction-items .eai-card-meta-right .eai-meta-icon {
    margin-left: 6px !important;
    margin-right: 0 !important;
    order: 2 !important;
}

.eai-card-meta-right .eai-product-number,
.eai-auction-item-card .eai-card-meta-right .eai-product-number,
.eai-event-auction-items .eai-card-meta-right .eai-product-number {
    text-align: right !important;
    direction: rtl !important;
    order: 1 !important;
}

/* Product Number Item - Separate Line */
.eai-product-number-item {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    direction: rtl !important;
    flex-direction: row-reverse !important;
    margin-bottom: 10px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.eai-product-number-item .eai-meta-icon {
    margin-left: 6px !important;
    margin-right: 0 !important;
    order: 2 !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
}

.eai-product-number-item .eai-product-number {
    order: 1 !important;
    text-align: right !important;
    direction: rtl !important;
    color: #3e9799 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    flex: 1 !important;
}

/* Location Inline - Separate Line */
.eai-location-inline {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    direction: rtl !important;
    flex-direction: row-reverse !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
}

.eai-location-inline .eai-meta-icon {
    margin-left: 4px !important;
    margin-right: 0 !important;
    order: 3 !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
}

.eai-location-inline .eai-region {
    order: 2 !important;
    text-align: right !important;
    direction: rtl !important;
    color: #495057 !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.eai-location-inline .eai-separator {
    order: 1 !important;
    color: #999 !important;
    margin: 0 4px !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
}

.eai-location-inline .eai-city {
    order: 0 !important;
    text-align: right !important;
    direction: rtl !important;
    color: #495057 !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

.eai-location-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.eai-meta-icon {
    font-size: 14px;
    line-height: 1;
}

.eai-card-meta .eai-product-number,
.eai-card-meta-right .eai-product-number {
    color: #3e9799;
    font-weight: 600;
    order: 1 !important;
    direction: rtl !important;
    text-align: right !important;
}

.eai-card-meta .eai-city {
    color: #6c757d;
}

/* Countdown Timer - Subtle Design */
.eai-countdown-container,
.eai-event-auction-items .eai-countdown-container {
    margin: 0;
    padding: 0;
}

.eai-countdown-subtle {
    display: flex !important;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    direction: ltr;
    margin: 4px 0;
    width: 100%;
    overflow: visible;
    min-height: 50px;
}

.eai-countdown-item,
.eai-event-auction-items .eai-countdown-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    padding: 6px 5px !important;
    border-radius: 6px !important;
    min-width: 48px !important;
    max-width: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e9ecef !important;
    flex-shrink: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.eai-countdown-value,
.eai-event-auction-items .eai-countdown-value {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #dc3545 !important;
    line-height: 1 !important;
    font-family: inherit !important;
    margin-bottom: 2px !important;
}

.eai-countdown-label,
.eai-event-auction-items .eai-countdown-label {
    font-size: 9px !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
}

/* Price Section - Premium Gradient Box */
/* Card Footer - Fixed Bottom Section */
.eai-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eai-card-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.eai-price-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eai-price-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.eai-price-currency {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-right: 4px;
}

/* Action Button - Consistent Size */
.eai-card-action {
    margin: 0;
    direction: rtl;
    text-align: right;
}

.eai-view-button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: #3e9799;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.eai-view-button:hover {
    background: #2d7a7c;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(62, 151, 153, 0.2);
}

/* Countdown Timer - Premium Design (for single page) */
.eai-countdown-container {
    margin: 0;
    padding: 0;
}

.eai-countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.eai-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 14px 12px;
    border-radius: 12px;
    min-width: 70px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.eai-countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.eai-countdown-item:hover::before {
    transform: scaleX(1);
}

.eai-countdown-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.eai-countdown-value {
    font-size: 28px;
    font-weight: 700;
    color: #dc3545;
    line-height: 1;
    font-family: inherit;
    margin-bottom: 6px;
    text-shadow: 0 1px 2px rgba(220, 53, 69, 0.1);
}

.eai-countdown-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
}

@media (max-width: 768px) {
    .eai-countdown-item {
        min-width: 60px;
        padding: 12px 10px;
    }
    
    .eai-countdown-value {
        font-size: 24px;
    }
    
    .eai-countdown-label {
        font-size: 10px;
    }
    
    .eai-countdown {
        gap: 8px;
    }
}

/* Single Auction Item Page */
.eai-single-container {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 30px 20px; */
    /* background: #f8f9fa; */
}

.eai-single-header {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Title and Share Button Wrapper */
/* Header Grid Layout */
.eai-header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    margin: 8px 0;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    direction: rtl;
    align-items: start;
}

/* Right Column: Auction Info */
.eai-header-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.eai-single-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Main Auction Source - Label Chip */
.eai-source-label {
    margin-top: 4px;
    margin-bottom: 8px;
}

.eai-source-chip {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f4f8;
    border: 1px solid #cbd5e0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Metadata Row - Groups all identifiers */
.eai-metadata-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* Deed Number - Technical Tag */
.eai-deed-number-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #ffffff;
    border: 1.5px dashed #cbd5e0;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.eai-deed-number-tag .eai-tag-label {
    font-weight: 600;
    color: #718096;
    font-size: 11px;
}

.eai-deed-number-tag .eai-tag-value {
    font-family: inherit;
    font-weight: 700;
    color: #2d3748;
    letter-spacing: 0.5px;
    font-size: 12px;
}

/* Plot Number - Softer Technical Tag */
.eai-plot-number-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.eai-plot-number-tag .eai-tag-label {
    font-weight: 500;
    color: #a0aec0;
    font-size: 11px;
}

.eai-plot-number-tag .eai-tag-value {
    font-family: inherit;
    font-weight: 600;
    color: #4a5568;
    letter-spacing: 0.3px;
    font-size: 12px;
}

/* Status Badge - Strong Visual Accent */
.eai-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border: 1.5px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    position: relative;
}

.eai-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.eai-status-text {
    font-weight: 700;
}

/* Status Badge Colors with Indicators */
.eai-status-badge.eai-status-قادم {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border-color: #ffb74d;
}

.eai-status-badge.eai-status-قادم .eai-status-indicator {
    background: #ff9800;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2), 0 0 6px rgba(255, 152, 0, 0.4);
}

.eai-status-badge.eai-status-نشط,
.eai-status-badge.eai-status-قيد-التنفيذ {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border-color: #81c784;
}

.eai-status-badge.eai-status-نشط .eai-status-indicator,
.eai-status-badge.eai-status-قيد-التنفيذ .eai-status-indicator {
    background: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2), 0 0 6px rgba(76, 175, 80, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.eai-status-badge.eai-status-منتهي {
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    color: #616161;
    border-color: #bdbdbd;
}

.eai-status-badge.eai-status-منتهي .eai-status-indicator {
    background: #9e9e9e;
    box-shadow: 0 0 0 2px rgba(158, 158, 158, 0.2);
}

/* Left Column: Countdown & Actions */
.eai-header-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    flex-shrink: 0;
}

.eai-countdown-wrapper {
    display: flex;
    align-items: center;
}

.eai-countdown-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
    flex-wrap: wrap;
}

.eai-countdown-item-compact {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    min-width: 60px;
    transition: all 0.2s ease;
}

.eai-countdown-item-compact:hover {
    background: #f0f2f5;
    border-color: #d0d5db;
}

.eai-countdown-item-compact .eai-countdown-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 2px;
}

.eai-countdown-label-compact {
    font-size: 11px;
    font-weight: 500;
    color: #666;
    text-transform: none;
}

.eai-status-display-wrapper {
    display: flex;
    align-items: center;
}

.eai-share-buttons-wrapper {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Unified Action Buttons - EXACT SAME SIZE FOR ALL */
.eai-wishlist-button,
.eai-share-button,
.eai-calendar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    border-radius: 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    direction: rtl;
    white-space: nowrap;
    border: 1px solid transparent;
    box-sizing: border-box;
    line-height: 1 !important;
    flex-shrink: 0;
    margin: 0;
}

/* Wishlist Button */
.eai-wishlist-button {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    color: #495057 !important;
}

.eai-wishlist-button:hover {
    background: #fff5f5 !important;
    border-color: #ff6b6b !important;
    color: #ff6b6b !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.15);
}

.eai-wishlist-button.active {
    background: #ff6b6b !important;
    border-color: #ff6b6b !important;
    color: #ffffff !important;
}

.eai-wishlist-button.active:hover {
    background: #ee5a6f !important;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.25);
}

.eai-wishlist-icon {
    font-size: 14px !important;
    line-height: 1 !important;
    display: inline-block;
}

.eai-wishlist-text {
    font-size: 12px !important;
    line-height: 1 !important;
}

/* Share Button */
.eai-share-button {
    background: #667eea !important;
    color: #ffffff !important;
    border: 1px solid #667eea !important;
}

.eai-share-button:hover {
    background: #5568d3 !important;
    border-color: #5568d3 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}

/* Calendar Button */
.eai-calendar-button {
    background: #28a745 !important;
    color: #ffffff !important;
    border: 1px solid #28a745 !important;
}

.eai-calendar-button:hover {
    background: #218838 !important;
    border-color: #218838 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.25);
}

.eai-share-button span,
.eai-calendar-button span {
    font-size: 14px !important;
    line-height: 1 !important;
    display: inline-block;
}

.eai-share-buttons {
    display: inline-block;
}

@media (max-width: 768px) {
    .eai-header-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 12px;
        margin: 8px 0;
    }
    
    .eai-header-info {
        gap: 6px;
    }
    
    .eai-single-title {
        font-size: 20px;
    }
    
    .eai-source-chip {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .eai-metadata-row {
        gap: 6px;
        margin-top: 4px;
    }
    
    .eai-deed-number-tag,
    .eai-plot-number-tag {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    .eai-deed-number-tag .eai-tag-label,
    .eai-plot-number-tag .eai-tag-label {
        font-size: 10px;
    }
    
    .eai-deed-number-tag .eai-tag-value,
    .eai-plot-number-tag .eai-tag-value {
        font-size: 11px;
    }
    
    .eai-status-badge {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .eai-status-indicator {
        width: 6px;
        height: 6px;
    }
    
    .eai-header-actions {
        align-items: flex-start;
        gap: 8px;
    }
    
    .eai-countdown-compact {
        justify-content: flex-start;
        gap: 6px;
    }
    
    .eai-countdown-item-compact {
        min-width: 55px;
        padding: 6px 10px;
    }
    
    .eai-countdown-item-compact .eai-countdown-value {
        font-size: 16px;
    }
    
    .eai-countdown-label-compact {
        font-size: 10px;
    }
    
    .eai-share-buttons-wrapper {
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
    }
    
    .eai-wishlist-button,
    .eai-share-button,
    .eai-calendar-button {
        padding: 6px 12px;
        height: 30px;
        min-height: 30px;
        max-height: 30px;
        font-size: 11px;
    }
    
    .eai-wishlist-icon,
    .eai-share-button span,
    .eai-calendar-button span {
        font-size: 13px;
    }
}



/* Product Info Grid - Premium Layout */
.eai-product-info-grid {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    direction: rtl;
}

.eai-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    direction: rtl;
}

.eai-info-item-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    flex: 0 1 auto;
}

.eai-info-label-compact {
    font-weight: 600;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.eai-info-value-compact {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
    white-space: nowrap;
}

.eai-info-value-compact.eai-product-number {
    color: #3e9799;
}

.eai-status-compact {
    flex: 0 0 auto;
}

.eai-status-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.eai-countdown-compact-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    direction: rtl;
    flex-wrap: wrap;
}

.eai-countdown-label-compact {
    font-weight: 600;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.eai-single-countdown {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.eai-single-countdown .eai-countdown {
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .eai-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .eai-info-item-compact {
        width: 100%;
        justify-content: space-between;
    }
    
    .eai-countdown-compact-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .eai-single-countdown .eai-countdown {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .eai-product-info-grid {
        padding: 15px;
    }
    
    .eai-info-row {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .eai-info-item-compact {
        padding: 6px 10px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .eai-countdown-compact-wrapper {
        padding: 10px 12px;
    }
}

.eai-status-value {
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.eai-status-value:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.eai-countdown-wrapper {
    margin-top: 15px;
}

.eai-countdown-title,
.eai-status-title,
.eai-status-label-compact {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: right;
    direction: rtl;
}

.eai-product-status-display {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    margin-top: 8px;
    display: inline-block;
    min-width: 200px;
}

.eai-product-status-display.eai-status-sold {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.eai-product-status-display.eai-status-not-sold {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.eai-product-status-display.eai-status-undefined {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.eai-single-countdown {
    margin: 0;
}

.eai-single-countdown .eai-countdown {
    justify-content: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .eai-single-countdown .eai-countdown {
        gap: 8px;
    }
}

.eai-additional-info-frame {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    direction: rtl;
    text-align: right;
}

/* Dates Section */
.eai-dates-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.eai-dates-section-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: right;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    direction: rtl;
}

.eai-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    direction: rtl;
}

.eai-date-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f2ff 100%);
    border: 1px solid #d0e5ff;
    border-radius: 12px;
    transition: all 0.3s ease;
    direction: rtl;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.eai-date-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #b3d9ff;
}

.eai-date-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.eai-date-content {
    flex: 1;
    text-align: right;
}

.eai-date-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    text-transform: none;
}

.eai-date-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.eai-time-value {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    opacity: 0.85;
}

/* Prices Section */
.eai-prices-section {
    margin-top: 20px;
}

.eai-info-frame-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
    direction: rtl;
}

.eai-prices-section .eai-info-frame-item:last-child {
    border-bottom: none;
}

.eai-info-frame-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
    margin-left: 15px;
}

.eai-info-frame-value {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
    text-align: left;
    direction: ltr;
}

@media (max-width: 768px) {
    .eai-dates-grid {
        grid-template-columns: 1fr;
    }
    
    .eai-date-card {
        padding: 15px;
    }
    
    .eai-date-icon {
        font-size: 28px;
    }
    
    .eai-date-value {
        font-size: 16px;
    }
    
    .eai-info-frame-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .eai-info-frame-value {
        text-align: right;
        direction: rtl;
    }
}

/* Property Info Section - Specification Grid */
/* Attempts History Section */
.eai-attempts-history-section {
    margin-top: 32px;
    margin-bottom: 32px;
    direction: rtl;
}

.eai-attempts-history-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    direction: rtl;
}

.eai-attempts-history-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 16px 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Attempt cards list */
.eai-attempts-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eai-attempt-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    border: 1px solid #e5e7eb;
    direction: rtl;
    border-left-width: 4px;
    border-left-style: solid;
    border-right-width: 4px;
    border-right-style: solid;
    border-right-color: transparent;
}

.eai-attempt-card-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.eai-attempt-card-info {
    flex: 1.4;
}

.eai-attempt-card-agent {
    flex: 1;
}

.eai-attempt-card-price {
    flex: 1.1;
    align-items: flex-start;
    text-align: right;
}

.eai-attempt-card-status {
    flex: 0.9;
    align-items: flex-start;
    text-align: right;
}

/* Status accent border colors */
.eai-attempt-card.eai-status-sold {
    border-left-color: #16a34a;
}

.eai-attempt-card.eai-status-not_sold {
    border-left-color: #9ca3af;
}

.eai-attempt-card.eai-status-undefined {
    border-left-color: #e5e7eb;
}

.eai-attempt-card.eai-status-live {
    border-left-color: #2563eb;
}

.eai-attempt-card.eai-status-upcoming {
    border-left-color: #f97316;
}

.eai-attempt-card-current {
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.10);
}

/* Growth-based background & right accent */
.eai-attempt-card.eai-card-growth-positive {
    background: rgba(34, 197, 94, 0.04);
    border-right-color: #22c55e;
}

.eai-attempt-card.eai-card-growth-negative {
    background: rgba(239, 68, 68, 0.04);
    border-right-color: #ef4444;
}

.eai-attempt-card.eai-card-growth-neutral {
    background: #ffffff;
}

/* Hover elevation */
.eai-attempt-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.eai-attempt-card.eai-card-growth-positive:hover {
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.18);
}

.eai-attempt-card.eai-card-growth-negative:hover {
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.18);
}

/* Attempt info block */
.eai-attempt-order-main {
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
}

.eai-attempt-current-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
}

.eai-attempt-asset-name a {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
}

.eai-attempt-asset-name a:hover {
    color: #2563eb;
}

.eai-attempt-order-dates {
    font-size: 12px;
    color: #6b7280;
}

.eai-attempt-order-date-sep {
    margin: 0 3px;
    color: #d1d5db;
}

.eai-attempt-id-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #4b5563;
    font-size: 11px;
}

/* Agent & platform block */
.eai-agent-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

.eai-attempt-agent-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.eai-attempt-platform-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 600;
}

/* Price block */
.eai-price-label {
    font-size: 11px;
    color: #9ca3af;
}

.eai-price-main {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
}

.eai-price-amount {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.eai-price-currency {
    font-size: 11px;
    color: #6b7280;
}

.eai-price-secondary {
    font-size: 12px;
    color: #16a34a;
    margin-top: 4px;
}

.eai-price-secondary-label {
    font-weight: 600;
    margin-left: 4px;
}

.eai-price-change-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.eai-price-change-arrow {
    font-size: 12px;
}

.eai-price-change-value {
    font-variant-numeric: tabular-nums;
}

.eai-price-change-label {
    font-weight: 500;
}

.eai-change-positive {
    background: #ecfdf3;
    color: #166534;
}

.eai-change-negative {
    background: #fef2f2;
    color: #b91c1c;
}

/* Status block */
.eai-attempt-card-status .eai-status-label {
    font-size: 11px;
    color: #9ca3af;
}

.eai-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.eai-status-chip-sold {
    background: #dcfce7;
    color: #166534;
}

.eai-status-chip-not_sold {
    background: #f3f4f6;
    color: #4b5563;
}

.eai-status-chip-live {
    background: #dbeafe;
    color: #1d4ed8;
}

.eai-status-chip-upcoming {
    background: #ffedd5;
    color: #c2410c;
}

.eai-status-chip-undefined {
    background: #e5e7eb;
    color: #4b5563;
}

/* Mini timeline */
.eai-attempt-mini-timeline {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.eai-timeline-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #d1d5db;
}

.eai-timeline-dot-sold {
    background: #16a34a;
}

.eai-timeline-dot-not-sold {
    background: #9ca3af;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .eai-attempt-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .eai-attempt-card-price,
    .eai-attempt-card-status {
        align-items: flex-start;
        text-align: right;
    }
}

.eai-attempt-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.eai-attempt-status-sold {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.eai-attempt-status-not_sold {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.eai-attempt-status-undefined {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.eai-attempt-col-platform {
    min-width: 140px;
    color: #6b7280;
}

.eai-attempt-col-change {
    min-width: 160px;
    text-align: center;
}

.eai-attempt-order {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.eai-attempt-order-main {
    font-weight: 600;
    color: #111827;
}

.eai-attempt-order-dates {
    font-size: 12px;
    color: #6b7280;
}

.eai-attempt-order-date-sep {
    margin: 0 2px;
    color: #d1d5db;
}

.eai-attempt-change-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.eai-change-positive {
    background: #ecfdf3;
    color: #166534;
}

.eai-change-negative {
    background: #fef2f2;
    color: #b91c1c;
}

.eai-attempt-change-sign {
    font-size: 13px;
}

.eai-attempt-change-value {
    font-variant-numeric: tabular-nums;
}

.eai-attempt-change-label {
    font-weight: 500;
}

.eai-attempt-link {
    color: #3e9799;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.eai-attempt-link:hover {
    color: #2d7a7c;
    text-decoration: underline;
}

.eai-attempt-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
    direction: rtl;
}

.eai-attempt-date-item {
    display: flex;
    align-items: center;
    gap: 6px;
    direction: rtl;
}

.eai-attempt-date-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.eai-attempt-date-value {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}

.eai-attempt-empty {
    color: #9ca3af;
    font-style: italic;
}

/* Empty State */
.eai-attempts-empty-state {
    padding: 48px 24px;
    text-align: center;
    direction: rtl;
}

.eai-attempts-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.eai-attempts-empty-message {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    font-weight: 500;
}

/* Price Evolution Chart Section */
.eai-price-evolution-section {
    margin-top: 24px;
    margin-bottom: 32px;
    direction: rtl;
}

.eai-price-evolution-title {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.eai-price-evolution-description {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #6b7280;
}

.eai-price-evolution-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
}

/* Chart Labels - Desktop */
.eai-chart-labels-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 4px;
    direction: rtl;
}

.eai-chart-label-left,
.eai-chart-label-right {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.3px;
}

.eai-chart-label-left {
    color: #16a34a;
}

.eai-chart-label-right {
    color: #dc2626;
}

/* Chart Labels - Mobile (hidden on desktop) */
.eai-chart-labels-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 4px;
    direction: rtl;
}

.eai-chart-label-mobile-left,
.eai-chart-label-mobile-right {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.eai-chart-label-mobile-left {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
}

.eai-chart-label-mobile-right {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
}

.eai-price-evolution-chart-wrapper {
    position: relative;
    width: 100%;
    min-height: 220px;
}

.eai-price-evolution-chart-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.eai-price-evolution-chart-scroll canvas {
    min-width: 520px;
    width: 100%;
    height: 260px;
    max-height: 320px;
}

@media (max-width: 640px) {
    .eai-price-evolution-card {
        padding: 14px 12px 18px;
    }
    
    .eai-price-evolution-title {
        font-size: 18px;
    }
    
    .eai-price-evolution-description {
        font-size: 12px;
    }
    
    /* Hide desktop labels, show mobile labels */
    .eai-chart-labels-desktop {
        display: none;
    }
    
    .eai-chart-labels-mobile {
        display: flex;
    }
    
    .eai-price-evolution-chart-scroll canvas {
        min-width: 480px;
        height: 220px;
    }
}

/* Percentage Change Section */
.eai-percent-change-section {
    margin-top: 28px;
    padding: 22px 24px;
    border-radius: 14px;
    border: 1px solid rgba(229, 231, 235, 0.6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    direction: rtl;
    text-align: right;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.eai-percent-change-section.eai-percent-positive,
.eai-percent-change-section.eai-percent-negative,
.eai-percent-change-section.eai-percent-zero {
    background: #ffffff;
    border-color: rgba(229, 231, 235, 0.85);
}

.eai-percent-change-header {
    margin-bottom: 10px;
}

.eai-percent-change-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 10px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.eai-percent-change-value-wrapper {
    display: none; /* لم نعد نستخدم الـwrapper القديم */
}

.eai-percent-change-icon {
    font-size: 24px;
    line-height: 1;
    opacity: 0.9;
}

.eai-percent-change-value {
    font-size: 16px;
    font-weight: 600;
}

.eai-percent-change-section.eai-percent-positive .eai-percent-change-value {
    color: #16a34a;
}

.eai-percent-change-section.eai-percent-negative .eai-percent-change-value {
    color: #dc2626;
}

.eai-percent-change-section.eai-percent-zero .eai-percent-change-value {
    color: #6b7280;
}

.eai-percent-change-details {
    display: none; /* تم استبداله بالـGrid الجديد */
}

.eai-percent-change-delta {
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
}

.eai-delta-value {
    font-weight: 700;
    font-size: 14px;
    color: #1f2937;
}

.eai-percent-change-prices {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #6b7280;
}

.eai-price-comparison {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.eai-price-comparison strong {
    font-weight: 600;
    color: #374151;
}

.eai-price-separator {
    color: #d1d5db;
    font-weight: 300;
}

.eai-overall-trend {
    display: none;
}

.eai-trend-indicator {
    font-weight: 600;
    color: #4b5563;
}

.eai-percent-positive .eai-trend-indicator {
    color: #16a34a;
}

.eai-percent-negative .eai-trend-indicator {
    color: #dc2626;
}

@media (max-width: 640px) {
    .eai-percent-change-section {
        margin-top: 20px;
        padding: 18px 18px;
        border-radius: 12px;
    }
    
    .eai-percent-change-label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .eai-percent-change-icon {
        font-size: 20px;
    }
    
    .eai-percent-change-value {
        font-size: 15px;
    }
    
    .eai-percent-change-details {
        display: none;
    }
    
    .eai-percent-change-delta {
        font-size: 12px;
    }
    
    .eai-delta-value {
        font-size: 13px;
    }
    
    .eai-percent-change-prices {
        font-size: 11px;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .eai-price-separator {
        display: none;
    }
    
    .eai-overall-trend {
        display: none;
    }
}

/* Layout الجديد لقسم نسبة التغير */
.eai-percent-change-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eai-percent-change-big {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1.1;
}

.eai-percent-arrow {
    margin-left: 6px;
    font-size: 32px;
}

.eai-percent-number {
    font-size: 40px;
}

.eai-percent-change-section.eai-percent-positive .eai-percent-change-big {
    color: #16a34a;
}

.eai-percent-change-section.eai-percent-negative .eai-percent-change-big {
    color: #dc2626;
}

.eai-percent-change-section.eai-percent-zero .eai-percent-change-big {
    color: #6b7280;
}

.eai-percent-change-section.eai-percent-positive .eai-percent-arrow {
    color: #16a34a;
}

.eai-percent-change-section.eai-percent-negative .eai-percent-arrow {
    color: #dc2626;
}

.eai-percent-change-section.eai-percent-zero .eai-percent-arrow {
    color: #9ca3af;
}

.eai-percent-change-subtext {
    font-size: 13px;
    color: #4b5563;
}

.eai-percent-trend-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

.eai-percent-change-section.eai-percent-positive .eai-percent-trend-badge {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
}

.eai-percent-change-section.eai-percent-negative .eai-percent-trend-badge {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.eai-percent-change-section.eai-percent-zero .eai-percent-trend-badge {
    background: rgba(156, 163, 175, 0.08);
    color: #6b7280;
}

.eai-percent-divider {
    margin: 12px 0;
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.eai-percent-prices-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.eai-price-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eai-price-label {
    font-size: 11px;
    color: #9ca3af;
}

.eai-price-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.eai-price-delta {
    font-weight: 700;
    font-size: 15px;
}

.eai-price-cell:not(:last-child) {
    border-left: 1px dashed rgba(229, 231, 235, 0.8);
    padding-left: 10px;
}

@media (max-width: 640px) {
    .eai-percent-prices-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .eai-price-cell:not(:last-child) {
        border-left: none;
        padding-left: 0;
        border-bottom: 1px dashed rgba(229, 231, 235, 0.8);
        padding-bottom: 8px;
        margin-bottom: 6px;
    }
    
    .eai-percent-change-big {
        font-size: 32px;
    }
}

/* Progress Bar for percentage change */
.eai-percent-progress-bar {
    margin-top: 6px;
    margin-bottom: 10px;
}

.eai-percent-progress-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.eai-percent-progress-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #f3f4f6;
    overflow: hidden;
    position: relative;
}

.eai-percent-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width 0.5s ease-out;
    position: absolute;
    right: 0; /* يبدأ من أقصى اليمين ثم يمتد لليسار */
}

.eai-percent-change-section.eai-percent-positive .eai-percent-progress-fill {
    background: linear-gradient(to left, #15803d, #4ade80);
}

.eai-percent-change-section.eai-percent-negative .eai-percent-progress-fill {
    background: linear-gradient(to left, #b91c1c, #f87171);
}

.eai-percent-change-section.eai-percent-zero .eai-percent-progress-fill {
    background: linear-gradient(to left, #6b7280, #d1d5db);
}

/* Pricing Path Analysis Section */
.eai-pricing-path-analysis-section {
    margin-top: 20px;
    margin-bottom: 24px;
    direction: rtl;
}

.eai-pricing-path-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.eai-pricing-path-description {
    margin: 0 0 20px 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.eai-pricing-path-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.eai-pricing-path-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    direction: rtl;
}

.eai-pricing-path-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    min-height: 120px;
    position: relative;
}

.eai-pricing-path-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    border-radius: 14px 0 0 14px;
    background: transparent;
    transition: background 0.3s ease;
}

.eai-pricing-path-item.eai-path-item-avg::before {
    background: #3b82f6;
}

.eai-pricing-path-item.eai-path-item-reductions::before {
    background: #ef4444;
}

.eai-pricing-path-item.eai-path-item-duration::before {
    background: #6b7280;
}

.eai-pricing-path-item.eai-path-item-trend::before {
    background: #10b981;
}

.eai-pricing-path-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(229, 231, 235, 1);
}

.eai-pricing-path-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.8;
}

.eai-pricing-path-content {
    flex: 1;
    min-width: 0;
}

.eai-pricing-path-label-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.eai-pricing-path-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.2px;
    line-height: 1.4;
    flex: 1;
}

.eai-pricing-path-tooltip {
    font-size: 14px;
    color: #9ca3af;
    cursor: help;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(156, 163, 175, 0.1);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.eai-pricing-path-tooltip:hover {
    background: rgba(156, 163, 175, 0.2);
    color: #6b7280;
}

.eai-pricing-path-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    right: 50%;
    transform: translateX(50%);
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(31, 41, 55, 0.95);
    color: #ffffff;
    font-size: 11px;
    font-weight: 400;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
    max-width: 200px;
    white-space: normal;
    text-align: right;
    direction: rtl;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.eai-pricing-path-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 50%;
    transform: translateX(50%);
    margin-bottom: 2px;
    border: 5px solid transparent;
    border-top-color: rgba(31, 41, 55, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1001;
}

.eai-pricing-path-tooltip:hover::after,
.eai-pricing-path-tooltip:hover::before {
    opacity: 1;
}

.eai-pricing-path-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.eai-pricing-path-value.eai-path-positive {
    color: #16a34a;
}

.eai-pricing-path-value.eai-path-negative {
    color: #dc2626;
}

.eai-pricing-path-value.eai-path-neutral {
    color: #4b5563;
}

.eai-trend-strength {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

.eai-strength-value {
    font-weight: 700;
    font-size: 12px;
}

.eai-strength-value.eai-strength-strong {
    color: #16a34a;
}

.eai-strength-value.eai-strength-moderate {
    color: #f59e0b;
}

.eai-strength-value.eai-strength-weak {
    color: #6b7280;
}

@media (max-width: 768px) {
    .eai-pricing-path-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .eai-pricing-path-card {
        padding: 20px;
    }
    
    .eai-pricing-path-item {
        padding: 16px;
    }
    
    .eai-pricing-path-icon {
        font-size: 24px;
    }
    
    .eai-pricing-path-label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .eai-pricing-path-value {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .eai-pricing-path-analysis-section {
        margin-top: 24px;
        margin-bottom: 24px;
    }
    
    .eai-pricing-path-title {
        font-size: 18px;
        margin-bottom: 14px;
        padding-bottom: 10px;
    }
    
    .eai-pricing-path-card {
        padding: 16px;
        border-radius: 12px;
    }
    
    .eai-pricing-path-grid {
        gap: 14px;
    }
    
    .eai-pricing-path-item {
        padding: 14px;
        gap: 12px;
        border-radius: 10px;
    }
    
    .eai-pricing-path-icon {
        font-size: 22px;
    }
    
    .eai-pricing-path-label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .eai-pricing-path-value {
        font-size: 14px;
    }
}

.eai-property-info-section {
    margin-top: 32px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    direction: rtl;
}

.eai-property-info-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: right;
}

.eai-property-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    direction: rtl;
}

.eai-property-info-spec {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.eai-property-info-spec:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.eai-spec-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.7;
}

.eai-spec-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eai-spec-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.eai-spec-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    word-break: break-word;
}

@media (max-width: 768px) {
    .eai-property-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .eai-property-info-spec {
        padding: 14px;
    }
    
    .eai-spec-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .eai-spec-label {
        font-size: 11px;
    }
    
    .eai-spec-value {
        font-size: 15px;
    }
}

/* Boundaries Section - Directional Cards */
.eai-boundaries-section {
    margin-top: 32px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    direction: rtl;
}

.eai-boundaries-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: right;
}

.eai-boundaries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    direction: rtl;
}

.eai-boundary-card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eai-boundary-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Direction-specific subtle colors */
.eai-boundary-north {
    background: linear-gradient(135deg, #fef3f2 0%, #ffffff 100%);
    border-color: #fee2e2;
}

.eai-boundary-south {
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
    border-color: #dbeafe;
}

.eai-boundary-east {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #dcfce7;
}

.eai-boundary-west {
    background: linear-gradient(135deg, #fefce8 0%, #ffffff 100%);
    border-color: #fef3c7;
}

.eai-boundary-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
}

.eai-boundary-direction-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.eai-boundary-direction-label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eai-boundary-card-value {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.6;
    margin-top: 4px;
    word-break: break-word;
}

@media (max-width: 768px) {
    .eai-boundaries-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .eai-boundary-card {
        padding: 14px;
    }
    
    .eai-boundary-direction-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .eai-boundary-direction-label {
        font-size: 13px;
    }
    
    .eai-boundary-card-value {
        font-size: 14px;
    }
}

/* Product Slider - Enhanced */
.eai-product-slider {
    position: relative;
    width: 100%;
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Professional Slider Design - Image Only */
.eai-slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    cursor: pointer;
}

.eai-slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.eai-slide.active {
    display: block;
    opacity: 1;
}

.eai-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.eai-slide:hover img {
    transform: scale(1.02);
}

/* Navigation Arrows - Minimal, Circular, Semi-transparent, Hover Only */
.eai-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eai-product-slider:hover .eai-slider-nav {
    opacity: 1;
}

.eai-slider-prev,
.eai-slider-next {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    font-weight: 300;
    line-height: 1;
}

.eai-slider-prev:hover,
.eai-slider-next:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.08);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

/* Dots Pagination - Minimal, Subtle, Centered */
.eai-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 16px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.eai-product-slider:hover .eai-slider-dots {
    opacity: 0.9;
}

.eai-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.eai-dot.active {
    background: #ffffff;
    width: 20px;
    border-radius: 3px;
}

.eai-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Lightbox Styles */
.eai-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.eai-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eai-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: default;
}

.eai-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

.eai-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.eai-lightbox-prev,
.eai-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

.eai-lightbox-prev {
    right: 20px;
}

.eai-lightbox-next {
    left: 20px;
}

.eai-lightbox-prev:hover,
.eai-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 768px) {
    .eai-lightbox-prev,
    .eai-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .eai-lightbox-prev {
        right: 10px;
    }
    
    .eai-lightbox-next {
        left: 10px;
    }
    
    .eai-lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* Tabs - Modern Professional Design */
.eai-single-tabs {
    margin-top: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.eai-tabs-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    flex-direction: row;
    direction: rtl;
    background: #ffffff;
    padding: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
    /* Smooth scrolling */
    scroll-behavior: smooth;
}

/* Custom scrollbar for tabs - Modern Design */
.eai-tabs-nav::-webkit-scrollbar {
    height: 4px;
}

.eai-tabs-nav::-webkit-scrollbar-track {
    background: #f9fafb;
}

.eai-tabs-nav::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.eai-tabs-nav::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.eai-tabs-nav li {
    margin: 0;
    flex-shrink: 0;
}

.eai-tab-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 15px;
    border-bottom: 3px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    /* Icon styling */
    line-height: 1.5;
}

/* Icon spacing in RTL */
.eai-tab-link {
    direction: rtl;
}

.eai-tab-link::before {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #3e9799;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
}

.eai-tab-link:hover {
    color: #3e9799;
    background: rgba(62, 151, 153, 0.04);
}

.eai-tab-link.active {
    color: #3e9799;
    background: #ffffff;
    font-weight: 600;
}

.eai-tab-link.active::before {
    width: 100%;
    height: 3px;
    background: #3e9799;
}

.eai-tabs-content {
    margin-top: 0;
    padding: 40px;
    background: #ffffff;
    direction: rtl;
    text-align: right;
}

.eai-tab-panel {
    display: none;
    animation: fadeInTab 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    text-align: right;
    opacity: 0;
    transform: translateY(8px);
}

.eai-tab-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

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

/* Tab Icons Styling */
.eai-tab-link {
    /* Ensure icons are properly sized */
    font-size: 15px;
}

/* Improve tab spacing and visual hierarchy */
.eai-tabs-nav li:not(:last-child) {
    border-left: 1px solid #e5e7eb;
}

.eai-tabs-nav li:first-child .eai-tab-link {
    border-top-right-radius: 0;
}

.eai-tabs-nav li:last-child .eai-tab-link {
    border-top-left-radius: 0;
}

/* Data Grid - Removed old definition, using new one below */

/* Data Groups - Visual Separation */
.eai-data-group {
    margin-bottom: 24px;
}

.eai-data-group:last-child {
    margin-bottom: 0;
}

.eai-data-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    direction: rtl;
}

/* Data Item - Base Style */
.eai-data-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    direction: rtl;
    text-align: right;
}

.eai-data-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
    transform: translateY(-1px);
}

/* Group A: Numeric / Official Data */
.eai-data-group-numeric .eai-data-item {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-color: #e2e8f0;
}

.eai-data-group-numeric .eai-data-item:hover {
    border-color: #cbd5e1;
    background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
}

.eai-data-group-numeric .eai-data-icon {
    color: #475569;
    opacity: 0.8;
}

/* Group B: Location Data */
.eai-data-group-location .eai-data-item {
    background: linear-gradient(135deg, #fefefe 0%, #f9fafb 100%);
    border-color: #e5e7eb;
}

.eai-data-group-location .eai-data-item:hover {
    border-color: #d1d5db;
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 100%);
}

.eai-data-group-location .eai-data-icon {
    color: #4b5563;
    opacity: 0.75;
}

/* Icon Styling */
.eai-data-icon {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Content Wrapper */
.eai-data-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Label Styling */
.eai-data-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Value Styling */
.eai-data-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    word-break: break-word;
}

/* Numeric Values - Stronger Emphasis */
.eai-data-value-numeric {
    font-weight: 700;
    font-family: inherit;
    letter-spacing: 0.3px;
    color: #0f172a;
}

/* Property Link Section - Clean CTA */
.eai-property-link-section {
    margin-top: 32px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    direction: rtl;
    text-align: right;
}

.eai-property-link-section h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.eai-property-link-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.eai-property-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: #3e9799;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(62, 151, 153, 0.2);
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.eai-property-link-button:hover {
    background: #2d7a7c;
    box-shadow: 0 4px 8px rgba(62, 151, 153, 0.3);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.eai-button-icon {
    font-size: 16px;
    opacity: 0.95;
}

.eai-button-text {
    flex: 1;
}

.eai-external-link-icon {
    font-size: 14px;
    opacity: 0.9;
    margin-right: 2px;
}

.eai-description,
.eai-additional-info {
    margin-top: 32px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.eai-description h3,
.eai-additional-info h3 {
    font-size: 20px;
    margin: 0 0 16px 0;
    color: #1a1a1a;
    font-weight: 700;
    position: relative;
    padding-bottom: 0;
}

.eai-description h3::after,
.eai-additional-info h3::after {
    display: none;
}

.eai-description-content,
.eai-additional-info-content {
    line-height: 1.8;
    color: #374151;
    font-size: 15px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    border-right: 3px solid #3e9799;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

.eai-additional-info-content p {
    margin: 0 0 12px 0;
}

.eai-additional-info-content p:last-child {
    margin-bottom: 0;
}

.eai-additional-info-content ul,
.eai-additional-info-content ol {
    margin: 12px 0;
    padding-right: 24px;
}

.eai-additional-info-content li {
    margin-bottom: 8px;
}

/* Rating Section - Matching Additional Info Design */
.eai-rating-section {
    margin-top: 32px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.eai-rating-section h3 {
    font-size: 20px;
    margin: 0 0 16px 0;
    color: #1a1a1a;
    font-weight: 700;
    position: relative;
    padding-bottom: 0;
}

.eai-rating-section h3::after {
    display: none;
}

.eai-rating-content {
    line-height: 1.8;
    color: #374151;
    font-size: 15px;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    border-right: 3px solid #3e9799;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

/* Override general-rating container styles to match design */
.eai-rating-content .gr-rating-container {
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.eai-rating-content .gr-rating-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.eai-rating-content .gr-rating-title {
    font-size: 18px;
    margin: 0 0 12px 0;
    color: #1a1a1a;
    font-weight: 700;
}

.eai-rating-content .gr-rating-stats {
    gap: 10px;
}

.eai-rating-content .gr-stat-badge {
    padding: 6px 12px;
    font-size: 13px;
}

.eai-rating-content .gr-questions-list {
    gap: 20px;
}

.eai-rating-content .gr-question-item {
    padding: 15px;
    background: #f9fafb;
}

.eai-rating-content .gr-form-actions {
    margin-top: 25px;
    padding-top: 15px;
}

/* Rating Disabled Message */
.eai-rating-disabled-message {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-right: 3px solid #ffc107;
    border-radius: 8px;
    text-align: center;
}

.eai-rating-disabled-message p {
    margin: 0;
    color: #856404;
    font-size: 15px;
    font-weight: 500;
}

/* Organizer Section - Professional Agent Card */
.eai-organizer-section {
    margin-top: 32px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.eai-organizer-section h3 {
    font-size: 20px;
    margin: 0 0 16px 0;
    color: #1a1a1a;
    font-weight: 700;
    padding-bottom: 0;
}

.eai-organizer-section h3::after {
    display: none;
}

.eai-organizer-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Agent Header with Avatar */
.eai-organizer-header {
    display: flex;
    align-items: center;
    gap: 16px;
    direction: rtl;
    margin-bottom: 16px;
}

.eai-organizer-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
    overflow: hidden;
    position: relative;
}

.eai-organizer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: 50% !important;
    clip-path: circle(50%);
}

.eai-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #6b7280;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    position: relative;
    z-index: 2;
    border-radius: 50% !important;
}

.eai-avatar-icon {
    font-size: 28px;
    opacity: 0.7;
    display: none; /* Hide icon when using initials */
}

.eai-organizer-name-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.eai-organizer-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    border: none;
    line-height: 1.4;
}

.eai-organizer-name-link {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.eai-organizer-name-link:hover {
    color: #3e9799;
}

/* Followers Count */
.eai-organizer-followers {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    width: 100%;
}

.eai-followers-icon {
    font-size: 14px;
    opacity: 0.7;
}

.eai-followers-count {
    color: #666;
    font-weight: 400;
}

/* Follow Agent Button */
.eai-follow-agent-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    margin-top: 8px;
    background: #3e9799;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    direction: rtl;
    align-self: flex-start;
}

.eai-follow-agent-btn:hover:not(:disabled) {
    background: #2d7a7c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(62, 151, 153, 0.3);
}

.eai-follow-agent-btn:active:not(:disabled) {
    transform: translateY(0);
}

.eai-follow-agent-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.eai-follow-agent-btn.eai-following {
    background: #6b7280;
}

.eai-follow-agent-btn.eai-following:hover:not(:disabled) {
    background: #4b5563;
}

.eai-follow-agent-btn.eai-follow-login {
    background: #10b981;
}

.eai-follow-agent-btn.eai-follow-login:hover {
    background: #059669;
}

.eai-follow-btn-text {
    display: inline-block;
}

.eai-follow-btn-loader {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.eai-toast {
    font-family: inherit;
    direction: rtl;
    text-align: center;
    white-space: nowrap;
    max-width: 90%;
    word-wrap: break-word;
}

/* Divider */
.eai-organizer-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

/* Contact List */
.eai-organizer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eai-organizer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    direction: rtl;
}

.eai-contact-icon {
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.8;
}

.eai-contact-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eai-contact-label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eai-contact-link {
    font-size: 15px;
    font-weight: 500;
    color: #3e9799;
    text-decoration: none;
    transition: color 0.2s ease;
    word-break: break-word;
}

.eai-contact-link:hover {
    color: #2d7a7c;
    text-decoration: underline;
}

/* Location Section */
.eai-location-section {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.eai-location-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.eai-location-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3e9799, #4fb3b5);
    border-radius: 2px;
}

.eai-map-container {
    margin-top: 20px;
}

.eai-map-actions {
    text-align: center;
}

.eai-open-map-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #3e9799 0%, #4fb3b5 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(62, 151, 153, 0.3);
}

.eai-open-map-button:hover {
    background: linear-gradient(135deg, #2d7a7c 0%, #3e9799 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 151, 153, 0.4);
}

/* Location Tab - Professional Redesign */
.eai-location-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    direction: rtl;
}

/* Location Info Panel */
.eai-location-info-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eai-location-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    direction: rtl;
}

.eai-location-info-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
}

.eai-location-info-content {
    flex: 1;
    min-width: 0;
}

.eai-location-info-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 4px;
}

.eai-location-info-value {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

/* Map Card Container */
.eai-map-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

.eai-google-map-container {
    width: 100%;
    height: 500px;
    min-height: 400px;
    background: #f3f4f6;
    border-radius: 16px;
    overflow: hidden;
}

.eai-map-iframe-wrapper {
    width: 100%;
    height: 500px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.eai-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Call to Action Button */
.eai-map-cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    direction: rtl;
}

.eai-map-cta-wrapper .eai-open-map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: #3e9799;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(62, 151, 153, 0.25);
    border: none;
    cursor: pointer;
    min-width: 200px;
}

.eai-map-cta-wrapper .eai-open-map-button:hover {
    background: #2d7a7c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 151, 153, 0.35);
}

.eai-map-cta-wrapper .eai-open-map-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(62, 151, 153, 0.25);
}

.eai-map-button-icon {
    font-size: 18px;
    display: inline-block;
}

.eai-map-button-text {
    display: inline-block;
}

/* Gallery */
.eai-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.eai-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.eai-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.eai-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.eai-gallery-item:hover img {
    transform: scale(1.1);
}

.eai-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Terms */
.eai-terms-content {
    line-height: 1.9;
    color: #444;
    font-size: 16px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Bids Table - Professional */
/* Bids Table - Professional Design */
/* Bids Table - Complete Rewrite for Perfect Alignment */
.eai-bids-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    direction: rtl;
}

.eai-bids-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    direction: rtl;
    table-layout: auto;
    /* Ensure proper table rendering */
    display: table;
}

.eai-bids-table thead {
    display: table-header-group;
}

.eai-bids-table tbody {
    display: table-row-group;
}

.eai-bids-table tr {
    display: table-row;
}

.eai-bids-table th,
.eai-bids-table td {
    display: table-cell;
    padding: 18px 24px;
    text-align: right;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    /* Prevent vertical text flow */
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    /* Ensure proper text flow */
    word-break: normal;
    overflow-wrap: normal;
    /* Prevent any reordering */
    position: static;
    float: none;
}

.eai-bids-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    letter-spacing: 0;
    border-bottom: 2px solid #e5e7eb;
    text-transform: none;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: normal;
    word-break: normal;
}

.eai-bids-table tbody tr {
    transition: background-color 0.2s ease;
}

.eai-bids-table tbody tr:nth-child(even) {
    background: rgba(249, 250, 251, 0.5);
}

.eai-bids-table tbody tr:hover {
    background: rgba(62, 151, 153, 0.04) !important;
}

.eai-bids-table tbody tr:last-child td {
    border-bottom: none;
}

.eai-bids-table td {
    color: #374151;
    font-size: 15px;
}

/* Column-specific styling - Exact widths to prevent misalignment */
.eai-bid-number {
    width: 10%;
    min-width: 100px;
    max-width: 120px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eai-bidder-name {
    width: 18%;
    min-width: 150px;
    max-width: 200px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eai-bid-amount {
    width: 18%;
    min-width: 160px;
    max-width: 200px;
    text-align: right;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
}

.eai-bid-amount-value {
    font-size: 18px;
    font-weight: 700;
    color: #3e9799;
    font-family: inherit;
    letter-spacing: -0.02em;
    display: inline-block;
    /* Prevent vertical text */
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.eai-bid-amount-currency {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin-right: 6px;
    display: inline-block;
    /* Prevent vertical text */
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.eai-bid-datetime {
    width: 20%;
    min-width: 150px;
    color: #6b7280;
    font-size: 14px;
    white-space: normal;
    /* Prevent vertical text */
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    word-break: normal;
    overflow-wrap: normal;
}

.eai-bid-date {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    /* Prevent vertical text */
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.eai-bid-time {
    display: block;
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
    /* Prevent vertical text */
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.eai-bid-notes {
    width: 34%;
    min-width: 200px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    direction: rtl;
    text-align: right;
}

/* Latest Bid Highlight */
.eai-bid-latest {
    background: rgba(62, 151, 153, 0.08) !important;
    border-right: 4px solid #3e9799;
}

.eai-bid-latest .eai-bid-amount-value {
    color: #3e9799;
    font-size: 20px;
}

.eai-no-bids {
    text-align: center;
    color: #999;
    padding: 60px !important;
    font-size: 16px;
}

/* Fees Table */
/* Fees Card - Professional Design */
.eai-fees-card {
    max-width: 700px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.eai-fees-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.eai-fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
    direction: rtl;
    text-align: right;
}

.eai-fee-item:last-of-type {
    border-bottom: none;
}

.eai-fee-item:nth-child(even) {
    background: rgba(249, 250, 251, 0.5);
}

.eai-fee-label {
    font-size: 15px;
    color: #6b7280;
    font-weight: 500;
    flex: 1;
    padding-left: 20px;
}

.eai-fee-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    direction: ltr;
    text-align: left;
    flex-shrink: 0;
}

.eai-fee-amount {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    font-family: inherit;
    letter-spacing: -0.02em;
}

.eai-fee-currency {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Total Row - Highlighted */
.eai-fee-divider {
    height: 1px;
    background: linear-gradient(to left, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
    margin: 8px 28px;
}

.eai-fee-total {
    background: #f8fafc !important;
    border-top: 2px solid #e5e7eb;
    border-bottom: none;
    margin-top: 8px;
    padding: 28px;
    border-radius: 0 0 16px 16px;
}

.eai-fee-total .eai-fee-label {
    font-size: 18px;
    color: #1f2937;
    font-weight: 600;
}

.eai-fee-total .eai-fee-amount {
    font-size: 24px;
    font-weight: 700;
    color: #3e9799;
    letter-spacing: -0.03em;
}

.eai-fee-total .eai-fee-currency {
    font-size: 16px;
    color: #3e9799;
    font-weight: 600;
}

/* Video */
.eai-video-container {
    margin: 20px 0;
}

.eai-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.eai-video-wrapper iframe,
.eai-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.eai-video-wrapper video {
    object-fit: contain;
}

/* Catalog PDF */
.eai-catalog-pdf {
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.eai-catalog-pdf h3 {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 700;
}

.eai-download-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, #3e9799 0%, #4fb3b5 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(62, 151, 153, 0.3);
}

.eai-download-button:hover {
    background: linear-gradient(135deg, #2d7a7c 0%, #3e9799 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(62, 151, 153, 0.4);
}

/* Survey Upload Tab - Professional Redesign */
.eai-survey-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 20px;
    direction: rtl;
}

/* Survey Card Container */
.eai-survey-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    width: 100%;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.eai-survey-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #3e9799 0%, #4fb3b5 100%);
}

.eai-survey-card:hover {
    box-shadow: 0 4px 20px rgba(62, 151, 153, 0.12);
    transform: translateY(-2px);
}

/* Badge */
.eai-survey-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f0f7ff;
    border: 1px solid #cfe2ff;
    border-radius: 8px;
    margin-bottom: 24px;
    direction: rtl;
}

.eai-survey-badge-icon {
    font-size: 16px;
}

.eai-survey-badge-text {
    font-size: 13px;
    font-weight: 600;
    color: #3e9799;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* PDF Preview */
.eai-survey-pdf-preview {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    margin-bottom: 24px;
    border: 2px dashed #e5e7eb;
    position: relative;
}

.eai-survey-pdf-icon {
    font-size: 72px;
    margin-bottom: 16px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.eai-survey-official-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 6px;
    display: inline-block;
    border: 1px solid #e5e7eb;
}

/* Image Preview */
.eai-survey-image-preview {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.eai-survey-image-link {
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.eai-survey-image-link:hover {
    transform: scale(1.02);
}

.eai-survey-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: contain;
}

/* File Info */
.eai-survey-file-info {
    text-align: center;
    margin-bottom: 24px;
    direction: rtl;
}

.eai-survey-file-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    word-break: break-word;
    line-height: 1.4;
}

.eai-survey-file-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    direction: rtl;
    flex-wrap: wrap;
}

.eai-survey-file-type {
    font-weight: 500;
    color: #3e9799;
}

.eai-survey-file-separator {
    color: #d1d5db;
}

.eai-survey-file-size {
    color: #9ca3af;
}

/* CTA Button */
.eai-survey-cta {
    text-align: center;
}

.eai-survey-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    background: #3e9799;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(62, 151, 153, 0.25);
    border: none;
    cursor: pointer;
    min-width: 200px;
    direction: rtl;
}

.eai-survey-download-button:hover {
    background: #2d7a7c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 151, 153, 0.35);
}

.eai-survey-download-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(62, 151, 153, 0.25);
}

.eai-survey-download-icon {
    font-size: 18px;
    display: inline-block;
}

.eai-survey-download-text {
    display: inline-block;
}

/* Responsive */
@media (max-width: 992px) {
    .eai-auction-items-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .eai-header-top {
        flex-direction: column;
        align-items: stretch;
    }
    
    .eai-share-buttons {
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    /* Survey Tab Mobile */
    .eai-survey-wrapper {
        padding: 16px;
        min-height: auto;
    }
    
    .eai-survey-card {
        padding: 24px 20px;
        max-width: 100%;
    }
    
    .eai-survey-pdf-preview {
        padding: 30px 16px;
    }
    
    .eai-survey-pdf-icon {
        font-size: 56px;
        margin-bottom: 12px;
    }
    
    .eai-survey-official-label {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .eai-survey-file-name {
        font-size: 16px;
    }
    
    .eai-survey-file-meta {
        font-size: 13px;
    }
    
    .eai-survey-download-button {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
        min-width: auto;
    }
    
    .eai-auction-items-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .eai-card-image {
        aspect-ratio: 16 / 9;
    }
    
    .eai-countdown-item {
        min-width: 70px;
        padding: 15px 12px;
    }
    
    .eai-countdown-value {
        font-size: 28px;
    }
    
    .eai-single-title {
        font-size: 32px;
    }
    
    /* Location Tab Mobile */
    .eai-location-wrapper {
        gap: 20px;
    }
    
    .eai-location-info-panel {
        padding: 16px 20px;
        gap: 14px;
    }
    
    .eai-location-info-item {
        gap: 10px;
    }
    
    .eai-location-info-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .eai-location-info-label {
        font-size: 12px;
    }
    
    .eai-location-info-value {
        font-size: 14px;
    }
    
    .eai-map-card {
        border-radius: 12px;
    }
    
    .eai-google-map-container,
    .eai-map-iframe-wrapper {
        height: 350px !important;
        min-height: 300px !important;
        border-radius: 12px;
    }
    
    .eai-open-map-button {
        width: 100%;
        padding: 14px 24px;
        font-size: 14px;
        min-width: auto;
    }
    
    .eai-single-title {
        font-size: 28px;
    }
    
    .eai-tabs-nav {
        flex-wrap: nowrap;
        padding: 0 10px;
        overflow-x: auto;
    }
    
    .eai-tab-link {
        padding: 14px 18px;
        font-size: 13px;
    }
    
    .eai-tabs-content {
        padding: 25px 20px;
    }
    
    .eai-product-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .eai-data-grid {
        grid-template-columns: 1fr;
    }
    
    .eai-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .eai-countdown {
        gap: 8px;
    }
    
    .eai-countdown-item {
        min-width: 60px;
        padding: 12px 10px;
    }
    
    .eai-countdown-value {
        font-size: 24px;
    }
    
    /* Responsive adjustments for card meta and price */
    .eai-card-meta {
        font-size: 12px;
        gap: 5px;
    }
    
    .eai-card-meta-inline {
        gap: 8px;
    }
    
    .eai-card-meta-inline-all {
        gap: 10px !important;
        font-size: 12px !important;
        flex-wrap: wrap !important;
    }
    
    .eai-meta-item {
        gap: 3px !important;
        font-size: 12px !important;
        min-width: fit-content !important;
    }
    
    .eai-meta-item .eai-product-number,
    .eai-meta-item .eai-region,
    .eai-meta-item .eai-city {
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }
    
    .eai-meta-icon {
        font-size: 13px;
    }
    
    .eai-card-price-inline {
        flex-direction: column;
        align-items: flex-end;
        gap: 6px;
    }
    
    .eai-price-label {
        font-size: 12px;
    }
    
    .eai-price-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    /* Wishlist Mobile */
    .eai-wishlist-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .eai-wishlist-item-image {
        height: 200px;
    }
    
    .eai-wishlist-item-content {
        padding: 16px;
    }
    
    .eai-wishlist-item-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .eai-wishlist-item-meta {
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .eai-wishlist-meta-item {
        padding: 6px 0;
    }
    
    .eai-wishlist-meta-label {
        font-size: 12px;
    }
    
    .eai-wishlist-meta-value {
        font-size: 13px;
    }
    
    .eai-wishlist-price-value {
        font-size: 16px;
    }
    
    .eai-wishlist-item-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .eai-wishlist-item-view,
    .eai-wishlist-item-remove {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .eai-card-meta {
        font-size: 11px;
    }
    
    .eai-price-value {
        font-size: 15px;
    }
    
    .eai-slider-container {
        height: 400px;
    }
    
    .eai-slider-nav {
        opacity: 1;
        padding: 0 10px;
    }
    
    .eai-slider-prev,
    .eai-slider-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .eai-slider-dots {
        opacity: 0.8;
        bottom: 15px;
        padding: 6px 12px;
    }
    
    .eai-dot {
        width: 5px;
        height: 5px;
    }
    
    .eai-dot.active {
        width: 18px;
    }
    
    .eai-single-header {
        padding: 20px;
    }
    
    .eai-bids-table {
        font-size: 13px;
    }
    
    .eai-bids-table th,
    .eai-bids-table td {
        padding: 12px 15px;
    }
}

/* Print Styles */
@media print {
    .eai-slider-nav,
    .eai-slider-dots,
    /* Keep tabs visible but make them scrollable */
    .eai-tabs-nav {
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        /* Larger scrollbar for mobile */
        scrollbar-width: thin;
        scrollbar-color: #9ca3af #f3f4f6;
    }
    
    .eai-tabs-nav::-webkit-scrollbar {
        height: 8px;
    }
    
    .eai-tabs-nav::-webkit-scrollbar-thumb {
        background: #9ca3af;
        border-radius: 4px;
    }
    
    .eai-tab-link {
        padding: 12px 14px;
        font-size: 13px;
        gap: 5px;
        min-height: 44px;
        /* Larger touch target */
        min-width: 80px;
    }
    
    .eai-tabs-content {
        padding: 20px 15px;
    }
    
    /* Bids Table Mobile */
    .eai-bids-table {
        border-radius: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .eai-bids-table table {
        min-width: 600px;
        table-layout: auto;
    }
    
    .eai-bids-table th,
    .eai-bids-table td {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .eai-bids-table th {
        font-size: 13px;
        padding: 12px 16px;
    }
    
    /* Hide notes column on mobile */
    .eai-bid-notes {
        display: none !important;
    }
    
    .eai-bid-amount-value {
        font-size: 16px;
    }
    
    .eai-bid-amount-currency {
        font-size: 13px;
    }
    
    .eai-bid-latest .eai-bid-amount-value {
        font-size: 18px;
    }
    
    .eai-bid-number {
        width: auto !important;
        min-width: 80px;
    }
    
    .eai-bidder-name {
        width: auto !important;
        min-width: 100px;
    }
    
    .eai-bid-amount {
        width: auto !important;
        min-width: 120px;
    }
    
    .eai-bid-datetime {
        width: auto !important;
        min-width: 120px;
    }
    
    /* Fees Card Mobile */
    .eai-fees-card {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .eai-fee-item {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .eai-fee-label {
        font-size: 14px;
        padding-left: 0;
        width: 100%;
    }
    
    .eai-fee-value {
        width: 100%;
        justify-content: flex-end;
        direction: rtl;
        text-align: right;
    }
    
    .eai-fee-amount {
        font-size: 16px;
    }
    
    .eai-fee-currency {
        font-size: 13px;
    }
    
    .eai-fee-total {
        padding: 24px 20px;
    }
    
    .eai-fee-total .eai-fee-label {
        font-size: 16px;
    }
    
    .eai-fee-total .eai-fee-amount {
        font-size: 22px;
    }
    
    .eai-fee-total .eai-fee-currency {
        font-size: 15px;
    }
    
    .eai-fee-divider {
        margin: 8px 20px;
    }
}



/* Wishlist Container */
.eai-wishlist-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    direction: rtl;
}

.eai-wishlist-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: right;
}

/* Wishlist Grid - Professional Redesign */
.eai-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 24px;
    direction: rtl;
}

/* Wishlist Card */
.eai-wishlist-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.eai-wishlist-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

/* Image Area */
.eai-wishlist-item-image {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}

.eai-wishlist-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.eai-wishlist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.eai-wishlist-item:hover .eai-wishlist-image {
    transform: scale(1.08);
}

.eai-wishlist-image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eai-wishlist-item:hover .eai-wishlist-image-overlay {
    opacity: 1;
}

.eai-wishlist-heart-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    backdrop-filter: blur(4px);
}

/* Content Area */
.eai-wishlist-item-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.eai-wishlist-item-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    color: #1f2937;
    flex-shrink: 0;
}

.eai-wishlist-item-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.eai-wishlist-item-title a:hover {
    color: #3e9799;
}

/* Meta Information */
.eai-wishlist-item-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    flex: 1;
}

.eai-wishlist-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    direction: rtl;
}

.eai-wishlist-meta-item:last-child {
    border-bottom: none;
}

.eai-wishlist-meta-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.eai-wishlist-meta-value {
    font-size: 14px;
    color: #374151;
    font-weight: 600;
    direction: rtl;
    text-align: left;
}

.eai-wishlist-price-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border-bottom: none;
    margin-top: 4px;
}

.eai-wishlist-price-item .eai-wishlist-meta-label {
    color: #6b7280;
    font-size: 13px;
}

.eai-wishlist-price-value {
    font-size: 18px;
    font-weight: 700;
    color: #3e9799;
    direction: ltr;
    text-align: right;
}

.eai-wishlist-price-currency {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin-right: 4px;
}

/* Actions */
.eai-wishlist-item-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    flex-direction: row-reverse;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.eai-wishlist-item-view {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #3e9799;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    direction: rtl;
}

.eai-wishlist-item-view:hover {
    background: #2d7a7c;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 151, 153, 0.3);
}

.eai-wishlist-item-view:active {
    transform: translateY(0);
}

.eai-wishlist-item-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    color: #6b7280;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    direction: rtl;
    flex: 1;
}

.eai-wishlist-item-remove:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.eai-wishlist-item-remove:active {
    transform: translateY(0);
}

.eai-wishlist-button-icon {
    font-size: 16px;
    display: inline-block;
    line-height: 1;
}

.eai-wishlist-button-text {
    display: inline-block;
}

.eai-wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

.eai-wishlist-loading {
    text-align: center;
    padding: 60px 20px;
    color: #3e9799;
    font-size: 18px;
}

/* Wishlist Notification */
.eai-wishlist-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    direction: rtl;
    font-weight: 600;
}

.eai-wishlist-notification.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    /* Wishlist Grid Responsive */
    .eai-wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .eai-wishlist-item-image {
        height: 220px;
    }
    
    .eai-wishlist-item-content {
        padding: 18px;
    }
    
    .eai-wishlist-item-title {
        font-size: 17px;
        margin-bottom: 14px;
    }
    
    .eai-wishlist-item-meta {
        gap: 10px;
        margin-bottom: 18px;
    }
    
    .eai-wishlist-item-actions {
        flex-direction: row-reverse;
        gap: 8px;
    }
    
    .eai-wishlist-item-view,
    .eai-wishlist-item-remove {
        padding: 11px 16px;
        font-size: 13px;
    }
    
    .eai-wishlist-notification {
        right: 15px;
        bottom: 15px;
        left: 15px;
        right: auto;
    }
    
    .eai-wishlist-button {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ========================================
   ULTRA COMPACT FILTER BAR - Control Bar Style
   ======================================== */

.eai-auction-items-container {
    width: 100%;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.eai-filters-bar {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    direction: rtl;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Primary Search - Large */
.eai-search-primary {
    position: relative;
    width: 100%;
    direction: rtl;
}

.eai-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
    transition: color 0.2s ease;
}

.eai-search-primary:focus-within .eai-search-icon {
    color: #3e9799;
}

.eai-search-input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a1a;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    font-family: inherit;
    min-height: 46px;
    font-weight: 400;
}

.eai-search-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #3e9799;
    box-shadow: 0 0 0 3px rgba(62, 151, 153, 0.08);
}

.eai-search-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.eai-search-input:hover:not(:focus) {
    border-color: #d1d5db;
    background: #ffffff;
}

/* Filters Row - Compact Pills */
.eai-filters-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    direction: rtl;
    flex-wrap: wrap;
}

.eai-filters-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
    flex-wrap: wrap;
    flex: 1;
}

.eai-filter-pill {
    padding: 8px 14px 8px 32px;
    font-size: 12px;
    line-height: 1.4;
    color: #4b5563;
    background: #f3f4f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236b7280' d='M5 8L1 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    direction: rtl;
    text-align: right;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-sizing: border-box;
    font-family: inherit;
    min-height: 34px;
    font-weight: 500;
    white-space: nowrap;
    min-width: 90px;
}

.eai-filter-pill:hover {
    background-color: #ffffff;
    border-color: #d1d5db;
}

.eai-filter-pill:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #3e9799;
    box-shadow: 0 0 0 2px rgba(62, 151, 153, 0.1);
}

.eai-filter-pill[data-selected="true"] {
    background-color: #ffffff;
    border-color: #3e9799;
    color: #3e9799;
    font-weight: 600;
}

.eai-filter-pill option {
    direction: rtl;
    text-align: right;
    padding: 8px 12px;
    font-weight: 400;
    color: #1a1a1a;
}

.eai-filter-pill option:first-child {
    font-weight: 600;
    color: #6b7280;
}

/* Ghost Reset Icon */
.eai-reset-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #9ca3af;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    direction: rtl;
    box-sizing: border-box;
    opacity: 0.6;
    flex-shrink: 0;
}

.eai-reset-ghost:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
    opacity: 1;
}

.eai-reset-ghost:active {
    background: #e5e7eb;
    transform: scale(0.95);
}

.eai-reset-ghost svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.eai-reset-ghost:hover svg {
    transform: rotate(180deg);
}

/* Mobile Toggle */
.eai-filters-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    direction: rtl;
    width: 100%;
    min-height: 38px;
}

.eai-filters-mobile-toggle:hover {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.eai-filters-mobile-toggle.active {
    background: #3e9799;
    border-color: #3e9799;
    color: #ffffff;
}

.eai-filters-mobile-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}


/* Empty State */
.eai-empty-filter-state {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px dashed #e5e7eb;
    border-radius: 16px;
    margin-top: 32px;
}

.eai-empty-filter-state p {
    font-size: 17px;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .eai-filters-bar {
        padding: 12px 16px;
        gap: 10px;
    }
    
    .eai-search-input {
        padding: 12px 14px 12px 40px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .eai-search-icon {
        right: 12px;
        width: 16px;
        height: 16px;
    }
    
    .eai-filters-pills {
        gap: 6px;
    }
    
    .eai-filter-pill {
        padding: 7px 12px 7px 28px;
        font-size: 11px;
        min-height: 32px;
        min-width: 80px;
    }
    
    .eai-reset-ghost {
        width: 32px;
        height: 32px;
    }
    
    .eai-reset-ghost svg {
        width: 14px;
        height: 14px;
    }
    
    .eai-card-image {
        height: 200px;
    }
    
    .eai-card-content {
        padding: 16px;
        gap: 10px;
    }
    
    .eai-card-title {
        font-size: 16px;
    }
    
    .eai-price-value {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .eai-filters-bar {
        padding: 12px;
        border-radius: 10px;
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .eai-search-input {
        padding: 11px 12px 11px 38px;
        font-size: 13px;
        min-height: 42px;
        border-radius: 8px;
    }
    
    .eai-search-icon {
        right: 10px;
        width: 15px;
        height: 15px;
    }
    
    .eai-filters-row {
        display: none;
        width: 100%;
        padding-top: 10px;
        border-top: 1px solid #f3f4f6;
        gap: 8px;
    }
    
    .eai-filters-row.eai-mobile-open {
        display: flex;
        flex-direction: column;
    }
    
    .eai-filters-pills {
        flex-direction: column;
        width: 100%;
        gap: 8px;
        align-items: stretch;
    }
    
    .eai-filter-pill {
        width: 100%;
        padding: 10px 14px 10px 34px;
        font-size: 12px;
        min-height: 40px;
        border-radius: 10px;
        min-width: auto;
    }
    
    .eai-reset-ghost {
        width: 100%;
        height: 40px;
        border-radius: 10px;
        justify-content: center;
        align-self: stretch;
    }
    
    .eai-filters-mobile-toggle {
        display: flex;
    }
    
    .eai-card-image {
        height: 180px;
    }
    
    .eai-card-content {
        padding: 14px;
        gap: 10px;
    }
    
    .eai-card-title {
        font-size: 15px;
    }
    
    .eai-countdown-item {
        padding: 5px 7px;
        min-width: 44px;
    }
    
    .eai-countdown-value {
        font-size: 14px;
    }
    
    .eai-price-value {
        font-size: 18px;
    }
    
    .eai-view-button {
        padding: 10px 16px;
        font-size: 12px;
        min-height: 38px;
    }
    
    .eai-empty-filter-state {
        padding: 60px 20px;
        margin-top: 20px;
    }
    
    .eai-empty-filter-state p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .eai-filters-bar {
        padding: 14px;
    }
    
    .eai-search-primary-wrapper {
        margin-bottom: 12px;
    }
    
    .eai-search-input-primary {
        padding: 12px 14px 12px 44px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .eai-search-icon-primary {
        right: 12px;
        width: 15px;
        height: 15px;
    }
    
    .eai-filters-pills-wrapper {
        padding-top: 12px;
        margin-top: 12px;
    }
    
    .eai-filters-pills {
        gap: 8px;
    }
    
    .eai-filter-pill-select {
        padding: 11px 14px 11px 36px;
        font-size: 12px;
        min-height: 42px;
    }
    
    .eai-reset-filters-ghost {
        padding: 11px 14px;
        font-size: 11px;
        min-height: 42px;
    }
    
    .eai-filters-toggle-mobile {
        padding: 10px 14px;
        font-size: 12px;
        min-height: 40px;
    }
}

