/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(15, 23, 42, 0.58);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.95));
    margin: 8% auto;
    padding: 0;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.75);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.modal-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.close-modal {
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.close-modal:hover {
    color: #0f172a;
    transform: scale(1.06);
}

.modal-body {
    padding: 20px 22px 22px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.liked-vehicles-container {
    flex: 1;
    margin-bottom: 20px;
}

.vehicle-card {
    display: flex;
    margin-bottom: 14px;
    border-radius: 20px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.vehicle-image {
    width: 132px;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-color: #e5e7eb;
}

.vehicle-details {
    flex: 1;
    padding: 12px 14px;
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.vehicle-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
}

.remove-vehicle-btn {
    background: linear-gradient(180deg, #f36e67, #df5149);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 17px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 0;
    margin-left: 6px;
    box-shadow: 0 8px 18px rgba(223, 81, 73, 0.24);
}

.remove-vehicle-btn:hover {
    transform: scale(1.08);
}

.vehicle-card.removing {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.vehicle-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    max-width: 90%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.vehicle-price {
    color: #1f6feb;
    font-weight: 800;
    margin: 0 0 5px 0;
}

.vehicle-specs {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.pagination-btn {
    background: linear-gradient(180deg, #4aa6ea, #1f6feb);
    color: white;
    border: none;
    padding: 9px 15px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 18px rgba(31, 111, 235, 0.18);
}

.pagination-btn:hover {
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

#page-info {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

.no-favorites {
    text-align: center;
    padding: 30px;
    color: #64748b;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        border-radius: 22px;
    }

    .vehicle-image {
        width: 98px;
        height: 82px;
    }

    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}
