/* ================================================
   Aircraft Type Pages – Business Jet listing styles
   Used by: aircraftspecs/businessjet/index.html
   Dark mode overrides are in dark-mode.css
   ================================================ */

/* ── Aircraft grid ── */
.aircraft-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 3rem 0;
}

/* ── Aircraft cards ── */
.aircraft-card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    box-shadow:
        6px 6px 0 0 rgba(0, 0, 0, 0.12),
        12px 12px 0 0 var(--border-color),
        18px 18px 0 0 rgba(0, 0, 0, 0.04);
}

.aircraft-card.available:hover {
    transform: translateX(-5px) translateY(-5px);
    box-shadow:
        11px 11px 0 0 rgba(0, 0, 0, 0.18),
        17px 17px 0 0 rgba(0, 0, 0, 0.10),
        23px 23px 0 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.aircraft-card.unavailable {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ── Card image banner ── */
.aircraft-card-image {
    width: 140px;
    min-width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: var(--gradient-dark);
    border-radius: 10px 0 0 10px;
    flex-shrink: 0;
}

/* Cycle through three navy shades for visual variety */
.aircraft-grid .aircraft-card:nth-child(3n+1) .aircraft-card-image {
    background: linear-gradient(135deg, #3d3f6e 0%, var(--primary-color) 100%);
}

.aircraft-grid .aircraft-card:nth-child(3n+2) .aircraft-card-image {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #383a68 100%);
}

.aircraft-grid .aircraft-card:nth-child(3n) .aircraft-card-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e2040 100%);
}

/* ── Card content area ── */
.aircraft-card-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1.25rem;
    min-width: 0;
    flex-wrap: nowrap;
    overflow: hidden;
}

.aircraft-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    margin: 0;
    min-width: 160px;
    flex-shrink: 0;
}

.aircraft-card-specs {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.aircraft-card-spec {
    font-size: 0.9rem;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.aircraft-card-spec-label {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.aircraft-card-spec-value {
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.9rem;
}

@media (max-width: 1280px) {
    .aircraft-card-content {
        gap: 1.25rem;
    }
    .aircraft-card-name {
        min-width: 150px;
    }
    .aircraft-card-specs {
        gap: 1.25rem;
    }
}

@media (max-width: 1024px) {
    .aircraft-card-content {
        gap: 1rem;
    }
    .aircraft-card-name {
        min-width: 130px;
    }
    .aircraft-card-specs {
        gap: 1rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 767px) {
    .aircraft-card {
        flex-wrap: wrap;
    }
    .aircraft-card-image {
        width: 100%;
        min-width: auto;
        height: 160px;
        border-radius: 10px 10px 0 0;
        background-size: cover;
        background-position: center;
    }
    .aircraft-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .aircraft-card-content {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
        width: 100%;
    }
    .aircraft-card-name {
        width: 100%;
        min-width: auto;
        font-size: 1.1rem;
    }
    .aircraft-card-specs {
        flex-wrap: wrap;
        gap: 0.6rem 1.25rem;
        width: 100%;
    }
    .aircraft-card-spec { font-size: 0.975rem; }
    .aircraft-card-spec-label { font-size: 0.975rem; }
    .aircraft-card-spec-value { font-size: 0.975rem; }
}

/* ── Type overview panel ── */
.aircraft-type-overview {
    padding: 2rem;
    margin-bottom: 2rem;
}

.aircraft-type-overview h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.aircraft-type-overview p {
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1rem;
}

@media (max-width: 767px) {
  .aircraft-type-overview { padding: 1.5rem; }
  .aircraft-type-overview h2 { font-size: 1.25rem; }
  .aircraft-type-overview p { font-size: 1rem; line-height: 1.9; }
  .category-toggle { padding: 1.25rem; font-size: 1rem; }
  .category-content { padding: 1.25rem; }
  .category-description { font-size: 1rem; line-height: 1.9; }
}

/* ── Collapsible brand category sections ── */
.category-section {
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--light-bg);
}

.category-toggle {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 1.5rem;
    text-align: left;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.category-toggle:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    display: inline-block;
}

.toggle-icon.rotated {
    transform: rotate(-90deg);
}

.category-content {
    padding: 2rem;
    background: var(--light-bg);
}

.category-description {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    color: var(--text-dark);
    line-height: 1.8;
}
