.car-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.car-card:hover {
    transform: translateY(-5px);
}

.car-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image {
    transform: scale(1.05);
}

/* تنسيق معلومات المالك */
.owner-info {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.owner-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-left: 8px;
    border: 2px solid #fff;
}

.owner-name {
    font-size: 0.9rem;
    color: #333;
}

/* تنسيق شريط السعر الشفاف */
.price-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.5) 30%,
            rgba(0, 0, 0, 0.85));
    padding: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.original-price {
    color: #ff0000;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.current-price {
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
}

/* تنسيق تفاصيل السيارة */
.car-details {
    padding: 20px;
}

.car-header {
    margin-bottom: 15px;
}

.car-name {
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 8px 0;
}

.car-meta {
    display: flex;
    gap: 10px;
}

.model-info {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #666;
}

.rental-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-row i {
    color: #45b98d;
}

.driver-price {
    background: #fff3e0;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 8px;
    color: #f39c12;
    font-size: 0.9rem;
}

.available {
    color: #2ecc71;
}

.unavailable {
    color: #e74c3c;
}

/* تجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .car-image-container {
        height: 180px;
    }

    .car-details {
        padding: 15px;
    }

    .car-name {
        font-size: 1.1rem;
    }
}

/* تنسيق حالة وجود عرض */
.has-offer .price-value {
    color: #45b98d;
}

/* تجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .car-image-container {
        width: 100%;
        height: 180px;
    }

    .price-tag {
        padding: 6px 12px;
    }

    .price-value {
        font-size: 1.1rem;
    }
}

/* price tag design */
.price-tag {
    background: #000000;
    padding: 2px 8px;
    border-radius: 12px;
    margin-right: 8px;
    color: #f39c12;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.price-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.original-day-price {
    font-size: 0.9em;
    opacity: 0.8;
}

.current-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-value {
    font-size: 1.5em;
    font-weight: 700;
}

.price-details {
    display: flex;
    gap: 4px;
    font-size: 0.9em;
    opacity: 0.9;
}

.offer-details {
    display: flex;
    flex-direction: column;
    font-size: 0.85em;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.days-count {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.total-price {
    color: rgba(255, 255, 255, 0.9);
}

.strike-price {
    text-decoration: line-through;
}

/* car info */
.car-info {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.car-header {
    margin-bottom: 15px;
}

.car-name {
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    color: #2d3436;
}

.car-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-info {
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: #666;
}

.model-info i {
    color: #45b98d;
    margin-right: 5px;
}

.car-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    background: #f8f9fa;
}

.info-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #45b98d;
}

.info-label {
    color: #666;
    font-size: 0.9rem;
    min-width: 80px;
}

.info-value {
    color: #2d3436;
    font-weight: 500;
}

.available {
    color: #2ecc71;
}

.unavailable {
    color: #e74c3c;
}

.details-button {
    width: 100%;
    padding: 10px;
    margin-top: 15px;
    background: #45b98d;
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.details-button:hover {
    background: #3ca17c;
}

/* تحسين العرض في الشاشات الصغيرة */
@media (max-width: 768px) {
    .car-card {
        padding: 12px;
    }

    .car-name {
        font-size: 1.1rem;
    }

    .info-row {
        padding: 6px;
    }

    .info-icon {
        width: 25px;
        height: 25px;
    }
}

.car-price-calculation {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2d3436;
}

.calculated-price {
    font-weight: 600;
    color: #2ecc71;
    margin-right: auto;
}

.driver-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.driver-option, .driver-price {
    flex: 1;
    min-width: 200px;
}

.driver-option {
    background: #e8f5e9;
}

.driver-option i {
    color: #2ecc71;
}

.driver-price {
    background: #fff3e0;
}

.driver-price i {
    color: #f39c12;
}

/* offers design */
.offers-container {
    padding: 20px;
}

.offers-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #2d3436;
    font-weight: 600;
}

.offer-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.offer-card:hover {
    background: #fff;
    border-color: #2ecc71;
    transform: translateX(-5px);
}

.offer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.offer-badge {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.discount-percent {
    font-size: 1.1em;
    font-weight: 700;
}

.discount-label {
    font-size: 0.8em;
    opacity: 0.9;
}

.offer-title-container {
    flex: 1;
}

.offer-title {
    margin: 0;
    font-size: 0.95em;
    color: #2d3436;
}

.days-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2ecc71;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-top: 4px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

.original-price {
    color: #a0a0a0;
    text-decoration: line-through;
    font-size: 0.9em;
}

.final-price {
    color: #2ecc71;
    font-weight: 600;
    font-size: 1em;
}

/* no results message */
.no-results {
    text-align: center;
    padding: 50px 20px;
    background: #f8f9fa;
    border-radius: 20px;
}

.no-results-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.no-results i {
    font-size: 3rem;
    color: #e41749;
}

.no-results h3 {
    margin: 0;
    color: #2d3436;
}

.no-results p {
    color: #636e72;
    margin: 0;
}

.offer-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.days-badge {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.per-day {
    color: #2ecc71;
    font-weight: 500;
}

.total-days {
    color: #666;
}

.offer-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.2s ease;
    border: 1px solid #e9ecef;
}

.offer-card:hover {
    transform: translateX(-5px);
    border-color: #2ecc71;
}

.new-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.final-price {
    font-size: 1.5rem;
    color: #2ecc71;
    font-weight: 700;
}

.price-currency {
    font-size: 1rem;
    color: #2ecc71;
}

.strikethrough {
    color: #e74c3c;
    text-decoration: line-through;
    margin-right: 5px;
}

/* offer ribbon */
.offer-ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    z-index: 2;
    transform: rotate(45deg);
}

.ribbon-content {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    padding: 8px 40px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ribbon-content i {
    font-size: 0.9em;
}

/* add gradient effect to the image */
.car-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    pointer-events: none;
}

/* new discount badge style */
.discount-badge {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 2;
}

.discount-content {
    background: linear-gradient(135deg, #45b98d, #1cb6ca);
    color: white;
    padding: 8px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.discount-text {
    font-size: 0.9em;
    font-weight: 500;
}

.discount-value {
    font-weight: 700;
    font-size: 1.1em;
}

/* update offer card style */
.offer-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.offer-card:hover {
    background: #fff;
    border-color: #2ecc71;
    transform: translateX(-5px);
}

.offer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.offer-badge {
    background: linear-gradient(135deg, #45b98d, #1cb6ca);
    color: white;
    padding: 4px 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.discount-percent {
    font-size: 1.1em;
    font-weight: 700;
}

.discount-label {
    font-size: 0.8em;
    opacity: 0.9;
}

.offer-title-container {
    flex: 1;
}

.offer-title {
    margin: 0;
    font-size: 0.95em;
    color: #2d3436;
}

.days-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2ecc71;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-top: 4px;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
}

.original-price {
    color: #a0a0a0;
    text-decoration: line-through;
    font-size: 0.9em;
}

.final-price {
    color: #2ecc71;
    font-weight: 600;
    font-size: 1em;
}

/* selected offer style */
.offer-card.selected {
    background: #e8f5e9;
    border-color: #2ecc71;
}

.offer-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #2ecc71;
    font-weight: bold;
}

.driver-options-badge {
    position: absolute;
    left: 20px;
    top: 20px;
    z-index: 3;
}

.driver-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 15px;
    color: white;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.driver-status.with_driver {
    background: linear-gradient(135deg, #27ae60dd, #2ecc71dd);
}

.driver-status.without_driver {
    background: linear-gradient(135deg, #e74c3cdd, #c0392bdd);
}

.driver-status.both {
    background: linear-gradient(135deg, #3498dbdd, #2980b9dd);
}

.driver-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.driver-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.driver-type {
    font-weight: 600;
    font-size: 0.95em;
}

.driver-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 8px;
}

.driver-price .price {
    font-weight: 700;
}

.driver-price .currency {
    opacity: 0.9;
}

/* تحريك البادج عند المرور عليه */
.driver-status:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* تأثير نبض للأيقونة */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.driver-icon i {
    animation: pulse 2s infinite;
}

.rental-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.days-info,
.car-price-calculation {
    display: flex;
    align-items: center;
    gap: 12px;
}

.days-info i,
.car-price-calculation i {
    background: #e9ecef;
    padding: 10px;
    border-radius: 50%;
    color: #2ecc71;
    font-size: 1.2em;
}

.days-content,
.price-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.label {
    color: #6c757d;
    font-size: 0.9em;
}

.value,
.calculated-price {
    font-size: 1.1em;
    font-weight: 600;
    color: #2d3436;
}

.currency {
    font-size: 0.9em;
    color: #6c757d;
    margin-right: 4px;
}

.calculated-price {
    color: #2ecc71;
}

.toggle-offers-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    border-top: 1px solid #eee;
}

.toggle-offers-btn:hover {
    background: #e9ecef;
}

.toggle-offers-btn .toggle-icon {
    margin-right: auto;
    transition: transform 0.3s ease;
}

.toggle-offers-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.offers-container {
    transition: all 0.3s ease;
}

@keyframes priceUpdate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes badgeUpdate {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.price-updated {
    animation: priceUpdate 0.5s ease;
}

.badge-updated {
    animation: badgeUpdate 0.5s ease;
}

/* improve offer card interactivity */
.offer-card {
    cursor: pointer;
}

.offer-card:active {
    transform: scale(0.98);
}

.highlight-search {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: rgba(255, 193, 7, 0.2);
    }

    100% {
        background-color: transparent;
    }
}

.required-field {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.delivery-address {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

.text-success {
    color: #28a745;
}

.text-muted {
    color: #6c757d;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.meta-item:hover {
    transform: translateX(-5px);
    background: #f1f3f5;
}

.meta-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2em;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.current-location i {
    color: #3498db;
}

.location-details, .delivery-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.location-label, .delivery-label {
    font-size: 0.85em;
    color: #666;
}

.location-value, .delivery-value {
    font-weight: 500;
    color: #2d3436;
}

.delivery-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.delivery-status i {
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    font-size: 1em;
}

.text-success {
    color: #2ecc71;
}

.text-success i {
    color: #2ecc71;
}

.delivery-location {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #dee2e6;
}

/* تحسين العرض في الشاشات الصغيرة */
@media (max-width: 768px) {
    .driver-info {
        flex-direction: column;
    }

    .driver-option, .driver-price {
        min-width: 100%;
    }

    .meta-item {
        padding: 12px;
    }

    .meta-item i {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
}

/* تأثيرات إضافية */
.meta-item i {
    transition: transform 0.3s ease;
}

.meta-item:hover i {
    transform: scale(1.1);
}

/* تنسيق حالة عدم التوصيل */
.delivery-status.text i.fa-times-circle {
    color: #e74c3c;
}

.delivery-status.text {
    color: #666;
}

/* تحسين قراءة النص */
.meta-item span {
    line-height: 1.5;
}

/* إضافة ظل خفيف */
.meta-item {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}