.trips-board {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding: 1.5rem;
}

/* The "+" add card — same size as a trip-card */
.trip-add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12rem;
    height: 18rem;
    border-radius: 8px;
    border: 2px dashed #bbb;
    color: #bbb;
    font-size: 3rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    user-select: none;
}

.trip-add-card:hover {
    border-color: rgb(5, 39, 103);
    color: rgb(5, 39, 103);
}

.trip-import-card {
    font-size: 1rem;
    font-weight: 600;
}

@media (max-width: 640.98px) {
    .trips-board {
        padding: 1rem;
        gap: 0.75rem;
    }

    .trip-add-card {
        width: 100%;
        height: 3.5rem;
        font-size: 1.75rem;
    }

    .trip-form {
        padding: 1.25rem;
    }
}

/* Modal overlay */
.trip-form-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

/* Modal form card */
.trip-form {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    width: 22rem;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.trip-form-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trip-form-dates label {
    flex: 1 1 8rem;
}

.trip-form h2 {
    margin: 0;
    font-size: 1.25rem;
}

.trip-form input,
.trip-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
    font-family: inherit;
}

.trip-form input:focus,
.trip-form textarea:focus {
    outline: none;
    border-color: rgb(5, 39, 103);
    box-shadow: 0 0 0 2px rgba(5, 39, 103, 0.15);
}

.trip-form textarea {
    resize: vertical;
    min-height: 5rem;
}

.trip-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.trip-form-actions button {
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.trip-form-actions .btn-cancel {
    background: #f0f0f0;
    color: #333;
}

.trip-form-actions .btn-cancel:hover {
    background: #e0e0e0;
}

.trip-form-actions .btn-confirm {
    background-image: linear-gradient(90deg, rgb(5, 39, 103) 0%, #3a0647 70%);
    color: white;
}

.trip-form-actions .btn-confirm:hover {
    opacity: 0.9;
}

/* Image pick / paste zone */
.image-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 6px;
    height: 9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.image-drop-zone:hover {
    border-color: rgb(5, 39, 103);
}

.image-drop-zone span {
    color: #888;
    font-size: 0.875rem;
    text-align: center;
    padding: 0.5rem;
    pointer-events: none;
}

.image-drop-zone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
