﻿/* Status colors */
.status-badge-active { background: #28a745; }
.status-badge-maintenance { background: #ffc107; color: #333; }
.status-badge-inactive { background: #6c757d; }
.status-badge-grounded { background: #dc3545; }

/* Tour banner (άσχετο με fleet, το αφήνουμε) */
.tour-banner {
  max-height: 220px;
  width: auto;
  margin: 0 auto;
  display: block;
}
.tour-title-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 8px 12px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* ===========================
   FLEET PUBLIC CARD MODULE
=========================== */

.fleetPublic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

/* Κάρτα (layout ONLY — no colors, no shadows) */
.fleetPublic-card {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease;
}

/* Hover lift (shadow removed — handled by .tile) */
.fleetPublic-card:hover {
    transform: translateY(-4px);
}

/* Φωτογραφία */
.fleetPublic-photo-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.fleetPublic-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Status badge */
.fleetPublic-status-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    border-radius: 6px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* Status colors */
.fleetPublic-status-active { background: #28a745; }
.fleetPublic-status-maintenance { background: #ffc107; color: #333; }
.fleetPublic-status-inactive { background: #6c757d; }
.fleetPublic-status-grounded { background: #dc3545; }

/* Σώμα κάρτας */
.fleetPublic-card-body {
    padding: 14px 16px;
    text-align: center;
}

.fleetPublic-type {
    font-size: 18px;
    font-weight: 600;
}

.fleetPublic-reg {
    font-size: 15px;
    margin-top: 4px;
}

/* Empty card */
.fleetPublic-card-empty .fleetPublic-photo-wrapper {
    opacity: 0.4;
}

/* ===========================
   FLEET PUBLIC EXPANDABLE DETAILS
=========================== */

.fleetPublic-details {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height 0.25s ease, padding-top 0.25s ease, padding-bottom 0.25s ease;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
}

.fleetPublic-card.open .fleetPublic-details {
    max-height: 600px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.fleetPublic-details h3 {
    margin-top: 0;
    font-size: 16px;
    font-weight: 600;
}

.fleetPublic-details p {
    margin: 4px 0;
}
