.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    flex: 1;
    justify-content: center;
    align-content: start;
    margin: auto;
    max-width: 70%;
    padding: 20px;
}

.grid-item {
    background-color: #f1f1f1;
    padding: 20px;
    border: 1px solid black;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    border-radius: 60px;
}

.grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.grid-item div {
    width: 100%;
    height: 100%;
}

.fleet-filter-bar {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 80%;
    margin: 0 auto 30px;
    padding: 10px 0;
}

.fleet-filter-bar .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.fleet-filter-bar label {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.7rem;
}

.fleet-filter-bar select {
    background-color: #0f1d32;
    color: #e8f0ff;
    border: 1px solid #e8f0ff;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fleet-filter-bar select:focus {
    outline: none;
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.25);
}

@media (max-width: 640px) {
    .fleet-filter-bar {
        max-width: 95%;
        align-items: stretch;
    }

    .fleet-filter-bar .filter-group {
        min-width: 100%;
    }
}

/* ── Fleet page: uniform tile sizing ─────────────────── */
.fleet-grid {
    align-items: start;
}

.fleet-grid .grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 320px;              /* fixed card height */
}

.fleet-grid .grid-item div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.fleet-grid .grid-item h3 {
    font-size: 1rem;
    height: 48px;               /* fixed name area — fits 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;      /* max 2 lines then clip */
    -webkit-box-orient: vertical;
    margin: 0 0 8px;
    width: 100%;
}

.fleet-grid .grid-item img {
    height: 160px;
    width: 100%;
    max-width: 85%;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;             /* image never squishes */
}

.fleet-grid .grid-item p {
    margin-top: auto;           /* boat type pushed to bottom */
    font-size: 0.9rem;
}