/* Car - Bike Info Box - Beautiful Modern Design */

.cew-car-bike-info-box {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Accordion Functionality */
.cew-cbib-accordion-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 18px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.cew-cbib-accordion-header:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.cew-cbib-accordion-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.cew-cbib-accordion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cew-cbib-accordion-icon svg {
    color: #ffffff;
    transition: transform 0.3s ease;
}

.cew-cbib-expanded .cew-cbib-accordion-icon svg {
    transform: rotate(180deg);
}

.cew-cbib-collapsed .cew-cbib-accordion-icon svg {
    transform: rotate(0deg);
}

.cew-cbib-accordion-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 1;
}

.cew-cbib-collapsed .cew-cbib-accordion-content {
    max-height: 0;
    opacity: 0;
}

.cew-cbib-accordion-wrapper .cew-cbib-header {
    border-radius: 0;
}

.cew-cbib-accordion-wrapper .cew-cbib-grid {
    border-radius: 0 0 12px 12px;
}

/* Size Variations */
.cew-cbib-small {
    transform: scale(0.8);
    transform-origin: top left;
}

.cew-cbib-medium {
    transform: scale(0.9);
    transform-origin: top left;
}

.cew-cbib-normal {
    transform: scale(1);
}

/* Header */
.cew-cbib-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.cew-cbib-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.cew-cbib-badge {
    background: #ffffff;
    color: #2c3e50;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Grid Container */
.cew-cbib-grid {
    display: grid;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.cew-cbib-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cew-cbib-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cew-cbib-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Grid Item */
.cew-cbib-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(248, 249, 250, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    border: 1px solid transparent;
}

.cew-cbib-item:hover {
    background: rgba(248, 249, 250, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Highlighted Item (Price) */
.cew-cbib-item-highlight {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(41, 128, 185, 0.08) 100%);
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.cew-cbib-item-highlight:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.12) 0%, rgba(41, 128, 185, 0.12) 100%);
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.15);
}

/* Icon Container */
.cew-cbib-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cew-cbib-item:hover .cew-cbib-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    transform: rotate(5deg) scale(1.05);
}

.cew-cbib-item-highlight .cew-cbib-icon {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.2) 100%);
    color: #2980b9;
}

.cew-cbib-item-highlight:hover .cew-cbib-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
}

.cew-cbib-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Content */
.cew-cbib-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cew-cbib-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6c757d;
    margin: 0;
    line-height: 1.2;
}

.cew-cbib-value {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cew-cbib-price {
    color: #2980b9;
    font-size: 15px;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cew-cbib-cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cew-cbib-header {
        padding: 16px 20px;
    }
    
    .cew-cbib-title {
        font-size: 18px;
    }
    
    .cew-cbib-badge {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .cew-cbib-grid {
        padding: 16px;
        gap: 10px;
    }
    
    .cew-cbib-cols-3,
    .cew-cbib-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cew-cbib-item {
        padding: 12px;
        gap: 10px;
    }
    
    .cew-cbib-icon {
        width: 36px;
        height: 36px;
    }
    
    .cew-cbib-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .cew-cbib-label {
        font-size: 10px;
    }
    
    .cew-cbib-value {
        font-size: 13px;
    }
    
    .cew-cbib-price {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cew-cbib-header {
        padding: 14px 16px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .cew-cbib-title {
        font-size: 16px;
    }
    
    .cew-cbib-grid {
        padding: 12px;
        gap: 8px;
    }
    
    .cew-cbib-cols-2,
    .cew-cbib-cols-3,
    .cew-cbib-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .cew-cbib-item {
        padding: 10px;
    }
    
    .cew-cbib-icon {
        width: 32px;
        height: 32px;
    }
    
    .cew-cbib-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Animation */
@keyframes cew-cbib-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cew-real-estate-info-box-5 {
    animation: cew-cbib-fade-in 0.5s ease-out;
}

.cew-cbib-item {
    animation: cew-cbib-fade-in 0.3s ease-out backwards;
}

.cew-cbib-item:nth-child(1) { animation-delay: 0.05s; }
.cew-cbib-item:nth-child(2) { animation-delay: 0.1s; }
.cew-cbib-item:nth-child(3) { animation-delay: 0.15s; }
.cew-cbib-item:nth-child(4) { animation-delay: 0.2s; }
.cew-cbib-item:nth-child(5) { animation-delay: 0.25s; }
.cew-cbib-item:nth-child(6) { animation-delay: 0.3s; }
.cew-cbib-item:nth-child(7) { animation-delay: 0.35s; }
.cew-cbib-item:nth-child(8) { animation-delay: 0.4s; }
.cew-cbib-item:nth-child(9) { animation-delay: 0.45s; }

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .cew-cbib-grid {
        background: #1a1a1a;
    }
    
    .cew-cbib-item {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .cew-cbib-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }
    
    .cew-cbib-label {
        color: #adb5bd;
    }
    
    .cew-cbib-value {
        color: #f8f9fa;
    }
}
