﻿/* =========================================
   Pro Hero Section (Purple Gradient)
   ========================================= */

.pro-hero-section {
    background: linear-gradient(135deg, #1a0a2e 0%, #3d1a5c 40%, #5c2d82 70%, #8a3995 100%);
    padding: 64px 0 48px;
    margin-top: 0;
    font-family: Inter, -apple-system, sans-serif;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.pro-hero-title {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.2;
}

.pro-hero-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Integrated Search Bar - white pill over gradient */
.pro-hero-search {
    background-color: #fff;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

.pro-hero-search .form-control {
    border: none;
    box-shadow: none;
    height: 46px;
    font-size: 15px;
    border-radius: 8px 0 0 8px;
}

.pro-hero-search .form-control:focus {
    box-shadow: none;
    border: none;
}

.pro-hero-search #proSearchTerm {
    padding-left: 18px;
}

/* Dropdown menu inside hero pill */
.pro-hero-search .dropdown-menu {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    margin-top: 12px;
    padding: 16px;
    z-index: 1050;
}

.pro-hero-search .dropdown-menu .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    height: auto;
    color: #111827;
}

/* Search buttons inside the hero pill */
.pro-hero-search .btn-primary,
.pro-hero-search .btn-default.dropdown-toggle {
    background-color: #8a3995;
    border-color: #8a3995;
    color: #fff;
    height: 46px;
    border-radius: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pro-hero-search .input-group-btn .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.pro-hero-search .btn-primary:hover,
.pro-hero-search .btn-primary:focus,
.pro-hero-search .btn-primary:active,
.pro-hero-search .btn-default.dropdown-toggle:hover,
.pro-hero-search .btn-default.dropdown-toggle:focus {
    background-color: #7a2d85;
    border-color: #7a2d85;
    color: #fff;
}

.pro-hero-search .btn-group .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* CTA Button - white on gradient */
.pro-hero-actions .btn-purple {
    display: inline-block;
    background-color: #fff;
    color: #8a3995 !important;
    border: 2px solid #fff;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: Inter, -apple-system, sans-serif;
    font-size: 15px;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pro-hero-actions .btn-purple:hover {
    background-color: transparent;
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.purple-text {
    color: #8a3995;
}

.pro-icons {
    text-align: right;
}

/* Hero responsive */
@media (max-width: 767px) {
    .pro-hero-section {
        padding: 40px 15px 40px;
    }
    .pro-hero-title {
        font-size: 26px;
    }
    .pro-hero-search {
        padding: 4px;
    }
    .pro-hero-search .form-control,
    .pro-hero-search .btn-primary,
    .pro-hero-search .btn-default.dropdown-toggle {
        height: 42px;
    }
}

.dropdown.dropdown-lg .dropdown-menu {
    margin-top: -1px;
    padding: 6px 20px;
}

.input-group-btn .btn-group {
    display: flex !important;
}

.btn-group .btn {
    border-radius: 0;
    margin-left: -1px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.btn-group .form-horizontal .ddSearchBut {
    border-radius: 4px;
    border-radius: 4px;
    margin-bottom: 8px
}

.form-horizontal .form-group {
    margin-left: 0;
    margin-right: 0;
}

.form-group .form-control:last-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

/* Force input group to fill the pill wrapper */
.pro-hero-search #adv-search {
    width: 100%;
}

.pro-hero-search .input-group-btn {
    vertical-align: top;
}

@media screen and (min-width: 768px) {
    #adv-search {
        width: 500px;
        margin: 0 auto;
    }

    .dropdown.dropdown-lg {
        position: static !important;
    }

    .dropdown.dropdown-lg .dropdown-menu {
        min-width: 500px;
    }
}

/**/

/* Unified card: parent wraps both .pro-listing-container and .pro-footer */
.col-lg-12:has(> .pro-listing-container) {
    margin-top: 20px;
    margin-bottom: 40px;
    background-color: #fff;
    border-bottom: 3px solid #8a3995;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.col-lg-12:has(> .pro-listing-container):hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Strip redundant styles from inner container */
.pro-listing-container {
    margin-top: 0;
    margin-bottom: 0;
    background-color: #fff;
    border-bottom: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.pro-listing-container:hover {
    box-shadow: none;
    transform: none;
}

.pro-logo {
    border-right: solid 1px #eee;
    background-color: #fff;
    min-height: 160px;
}

.pro-logo img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.pro-content-block {
    padding-left: 30px;
    padding-right: 20px;
}

.pro-name {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.pro-name a {
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.15s ease;
}

.pro-name a:hover {
    color: #8a3995;
    border-bottom: solid 2px #8a3995;
}

.pro-description {
    padding-top: 5px;
    background-color: #fff;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.pro-links {
    padding-top: 15px;
    padding-bottom: 15px;
}

/* "View Aircraft" styled as refined CTA button */
a.pro-link {
    display: inline-block;
    background-color: #8a3995;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 8px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

a.pro-link:hover {
    background-color: #7a2d85;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Footer attached to card - no margin-bottom */
.pro-footer {
    padding: 12px 18px;
    background-color: #fafafa;
    border-top: 1px solid #eee;
    text-align: center;
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.pro-footer .thetele {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.15s ease;
}

.pro-footer .thetele:hover {
    color: #8a3995;
}

.pro-icons {
    padding-top: 5px;
    font-size: initial;
    font-weight: normal;
    text-transform: initial;
}

.label {
    font-weight: 500;
}

.lb-sm {
    font-size: 12px;
}

.label-featured {
    background-color: #f2cf26;
    color: #333;
}

.label-purple {
    background-color: #8a3995
}

/* Override Bootstrap primary blue for badges */
.label-primary {
    background-color: #8a3995;
    border-color: #8a3995;
    color: #fff;
}

.label-primary:hover {
    background-color: #7a2d85;
    border-color: #7a2d85;
}

@media only screen and (max-width : 700px) {

    .pro-icons {
        text-align: left;
    }

    .pro-footer {
        margin: 0;
        text-align: center;
    }
}

/* Bottom CTA Card */
.pro-bottom-cta {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 40px 48px;
    margin: 48px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: Inter, -apple-system, sans-serif;
}

.pro-cta-content {
    flex: 1;
    padding-right: 32px;
}

.pro-cta-title {
    color: #1a1a2e;
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.3;
}

.pro-cta-subtitle {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.5;
}

.btn-cta-primary {
    display: inline-block;
    background-color: #8a3995;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta-primary:hover,
.btn-cta-primary:focus {
    background-color: #7a2d85;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

@media (max-width: 767px) {
    .pro-bottom-cta {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    .pro-cta-content {
        padding-right: 0;
        margin-bottom: 24px;
    }
    .btn-cta-primary {
        width: 100%;
        text-align: center;
    }
}

