/* Save this file as trip-history.css in your plugin folder */

.trip-history {
    margin: 2rem 0;
}

.trip-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.trip-history-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trip-history-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.trip-history-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.trip-history-item h3 {
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 1.1rem;
}

.trip-history-item .trip-excerpt {
    padding: 0 1rem 1rem;
    color: #666;
    font-size: 0.9rem;
}

.trip-history-empty,
.trip-history-error,
.loading {
    text-align: center;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 8px;
    color: #666;
}

.trip-history-error {
    background: #fff0f0;
    color: #d32f2f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .trip-history-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .trip-history-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}