/* Стили для single-aircraft.php */

.single_aircraft .catalog-grid {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 30px;
}

@media (max-width: 870px) {
    .single_aircraft .catalog-grid {
        display: flex;
        flex-direction: column;
    }
    
    .single_aircraft .catalog-content {
        order: 1;
    }
    
    .single_aircraft .catalog-menu {
        order: 2;
    }
}

.single_aircraft .catalog-content {
    background-color: #FFF;
    border-radius: 16px;
    border: 1px solid #252B3A;
    padding: 46px 24px 46px 24px;
    position: relative;
    min-height: 151px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    order: 1;
}

.single_aircraft .catalog-menu {
    background-color: #FFF;
    border-radius: 16px;
    border: 1px solid #252B3A;
    padding: 46px 24px 46px 24px;
    position: relative;
    min-height: 151px;
    position: sticky;
    top: 20px;
    height: fit-content;
    order: 2;
}

.single_aircraft .aircraft-image {
    margin-bottom: 20px;
    position: relative;
}

.single_aircraft .main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #fff;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single_aircraft .main-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    background: #fff;
}

/* Галерея изображений */
.single_aircraft .aircraft-gallery {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 100%;
    justify-content: flex-start;
}

.single_aircraft .gallery-item {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.single_aircraft .gallery-item:hover {
    border-color: #3e66ab;
    transform: scale(1.05);
}

.single_aircraft .gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.single_aircraft .gallery-item:hover img {
    transform: scale(1.1);
}

.single_aircraft .gallery-item.active {
    border-color: #3e66ab;
    background: #e8f0ff;
}

.single_aircraft .aircraft-info {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: none;
    margin-bottom: 20px;
}

.single_aircraft .aircraft-info h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
}

.archive a.aircraft-card {
    text-decoration: none;
}

.single_aircraft .aircraft-info .description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

.single_aircraft .specifications {
    margin-top: 20px;
}

.single_aircraft .specs-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.single_aircraft .specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.single_aircraft .specs-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    padding-left: 0;
    margin-left: 0;
    border-bottom: 1px solid #eee;
}

.single_aircraft .specs-list li:last-child {
    border-bottom: none;
}

.single_aircraft .other-aircraft {
    margin-bottom: 30px;
}

.single_aircraft .other-aircraft h4 {
    font-size: 18px;
    color: #252B3A;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.single_aircraft .aircraft-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.single_aircraft .aircraft-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    background: #fff;
}

.single_aircraft .aircraft-link:hover {
    border-color: #3e66ab;
    box-shadow: 0 2px 8px rgba(62, 102, 171, 0.1);
    transform: translateY(-1px);
}

.single_aircraft .aircraft-link-image {
    flex-shrink: 0;
    width: 90px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single_aircraft .aircraft-link-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.single_aircraft .no-image {
    width: 100%;
    height: 100%;
    background: #3e66ab;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

.single_aircraft .aircraft-link-info {
    flex: 1;
    min-width: 0;
}

.single_aircraft .aircraft-link-info h5 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: #252B3A;
    line-height: 1.3;
}

.single_aircraft .aircraft-link-info .seats {
    font-size: 14px;
    color: #666;
    display: block;
}

.single_aircraft .no-other-aircraft,
.single_aircraft .no-class-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.single_aircraft .all-aircraft-link {
    margin-top: 20px;
    text-align: center;
}

.single_aircraft .btn-all-aircraft {
    display: inline-block;
    padding: 12px 24px;
    background: #3e66ab;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #3e66ab;
}

.single_aircraft .btn-all-aircraft:hover {
    background: #fff;
    color: #3e66ab;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 102, 171, 0.2);
}

/* Стили для taxonomy-aircraft_class.php (скопировано из catalog.css) */
.aircraft-cards {
    width: 100%;
    margin-top: 40px;
}

.aircraft-cards h2 {
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.aircraft-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 200px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #252b3a;
    padding: 0 24px 0 24px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-image {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 18px;
}

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

.card-info {
    text-align: center;
}

.card-class {
    font-size: 18px;
    color: #000;
    font-weight: normal;
}

.card-title {
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.45;
    color: #000;
    font-weight: bold;
}

.card-title a {
    color: #000;
    text-decoration: none;
}

@media (max-width: 1200px) {
    .aircraft-card {
        flex: 0 0 calc(33.333% - 15px);
    }
}

@media (max-width: 900px) {
    .aircraft-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .aircraft-card {
        flex: 0 0 100%;
    }
}

.term-description {
    line-height: 1.45;
}

/* Стили для других классов самолетов */
.taxonomy_aircraft_class .other-aircraft-classes {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
}

.other-aircraft-classes .class-item {
    display: inline-block;
    vertical-align: middle;
    margin: 0 5px 10px 5px;
    background: #252b3a;
    border-radius: 5px;
    font-size: 14px;
}
.other-aircraft-classes .class-item a {
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 5px;
    display: block;
}

/* Lightbox стили */
#lightbox.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

#lightbox.lightbox .lightbox-content {
    position: relative;
    margin: 0;
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

#lightbox.lightbox .lightbox-image {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    transition: opacity 0.3s ease;
}

#lightbox.lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#lightbox.lightbox .lightbox-close:hover,
#lightbox.lightbox .lightbox-close:focus {
    color: #ff6b6b;
    text-decoration: none;
}

#lightbox.lightbox .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 20px 25px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 28px;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#lightbox.lightbox .lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

#lightbox.lightbox .lightbox-prev {
    left: 30px;
}

#lightbox.lightbox .lightbox-next {
    right: 30px;
}

#lightbox.lightbox .lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 24px;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

/* Делаем изображения кликабельными */
.main-image img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-image img:hover {
    transform: scale(1.02);
}

/* Стили для миниатюр */
.gallery-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item.active {
    border: 3px solid #3e66ab;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(62, 102, 171, 0.3);
    transform: scale(1.05);
}

/* Блок с названием класса самолета */
.aircraft-class-badge {
    position: absolute;
    top: 0px;
    right: 15px;
    background: rgba(62, 102, 171, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.aircraft-class-badge:hover {
    background: rgba(62, 102, 171, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.aircraft-class-badge .class-name {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Позиционирование для main-image */
.main-image {
    position: relative;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    #lightbox.lightbox .lightbox-content {
        padding: 15px;
    }
    
    #lightbox.lightbox .lightbox-nav {
        padding: 15px 20px;
        font-size: 22px;
    }
    
    #lightbox.lightbox .lightbox-prev {
        left: 20px;
    }
    
    #lightbox.lightbox .lightbox-next {
        right: 20px;
    }
    
    #lightbox.lightbox .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }
    
    #lightbox.lightbox .lightbox-counter {
        bottom: 20px;
        font-size: 14px;
        padding: 10px 20px;
    }
    
    #lightbox.lightbox .lightbox-image {
        max-width: 95%;
        max-height: 95%;
    }
}
