.trip-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 12rem;
    height: 18rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background-color: white;
    cursor: pointer;
    transition: box-shadow 0.15s;
    color: inherit;
    text-decoration: none;
}

.card-action-btns {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 1;
    display: flex;
    gap: 0.25rem;
}

.card-remove-btn,
.card-edit-btn {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.card-remove-btn:hover {
    background: #c0392b;
}

.card-edit-btn:hover {
    background: #2471a3;
}

.trip-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.trip-card-image {
    width: 100%;
    height: 8rem;
    object-fit: cover;
}

.trip-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #adb5bd;
}

.trip-card-image-placeholder svg {
    width: 2.5rem;
    height: 2.5rem;
}

.trip-card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trip-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.trip-card-text {
    font-size: 0.875rem;
    color: #555;
    margin: 0;
}

@media (max-width: 640.98px) {
    .trip-card {
        width: 100%;
        height: auto;
        flex-direction: row;
    }

    .trip-card-image {
        width: 7rem;
        height: auto;
        flex-shrink: 0;
    }

    .trip-card-body {
        flex: 1;
        min-width: 0;
    }
}
