.aircraft-view-container {
    display: flex;
    flex-direction: column;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.aircraft-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}
.aircraft-title {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.aircraft-price-section {
    text-align: right;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.price-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c5aa0;
}

/* Preview badge */
.preview-badge {
    background: #f39c12;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1.25rem;
    margin: 10px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-red-border-accent {
    border: 2px solid #e74c3c;
}

/* Card base */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Images: full width, no extra work needed */
.aircraft-images-section {
    width: 100%;
}

.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #999;
}

/* Details + Contact: two columns */
.aircraft-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
}

/* Make both cards in the row equal height */
.aircraft-details-grid .card {
    margin-bottom: 20px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.spec-value {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.spec-value a {
    color: #2c5aa0;
    text-decoration: none;
}

.spec-value a:hover {
    text-decoration: underline;
}

.no-details-info {
    color: #999;
    font-style: italic;
    text-align: center;
    margin: 20px 0;
}

/* Contact actions centred vertically in the card */
.aircraft-contact-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Description */
/* 1. Set the overall text readability */
.description-text {
    line-height: 1.65; /* Increases space between standard lines for better legibility */
    color: #333;
    font-size: 1.05rem;
}

/* 2. Customise the 'gap' of the <br> tags */
.description-text br {
    display: block; /* Turns the break into a block element */
    content: "";    /* Required for some browsers to render the block */
    margin-top: 10px; /* This is your 'spacer' control—adjust this value up or down */
}

/* 3. Handling double-breaks */
/* If you have <br><br>, this prevents the gap from becoming too massive */
.description-text br + br {
    margin-top: 5px;
}
/* Global Hyperlink Styling for the Aircraft View */
.description-text a {
    color: #2c5aa0;            /* AFORS Primary Blue */
    text-decoration: none;
    font-weight: 600;
    padding: 1px 4px;
    border-radius: 3px;
    background-color: #f0f4ff; /* Very soft blue tint */
    border-bottom: 2px solid #cbd5e0;
    transition: all 0.2s ease-in-out;
}

/* Hover and Focus States */
.description-text a:hover,
.description-text a:focus {
    background-color: #2c5aa0;
    color: #ffffff;
    border-bottom-color: #1a3a6d;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(44, 90, 160, 0.2);
}

/* Special Case: External Links */
/* Adds a small 'external' icon after links that go to other domains */
.description-text a[href^="http"]:not([href*="afors.uk"])::after {
    content: "\f35d";

    font-weight: 900;
    font-size: 0.75rem;
    margin-left: 6px;
    opacity: 0.7;
}

/* Leaderboard ad slot */
.leaderboard-ad-slot {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.leaderboard-ad-placeholder {
    width: 728px;
    height: 90px;
    background: #f0f4ff;
    border: 2px dashed #b0c0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background: #234a85;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline {
    background: none;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

a.btn.btn-outline:visited {
    color: #2c5aa0;
}

a.btn.btn-outline:hover {
    background: #2c5aa0;
    color: white;
}

.back-to-listings {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .aircraft-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .aircraft-price-section {
        text-align: left;
    }

    .aircraft-details-grid {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    /* Hide the standard leaderboard on mobile, too wide */
    .leaderboard-ad-slot {
        display: none;
    }
}