/* ----------------------------------------------------
   NAVBAR OVERRIDES FOR RESULTS PAGE
   (forces white nav + dark logo + dark links)
---------------------------------------------------- */

.ud-nav {
    background: #fff !important;
    padding: 10px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.ud-nav .logo-light {
    display: none !important;
}

.ud-nav .logo-dark {
    display: block !important;
}

.ud-nav .nav-link {
    color: #000 !important;
}

.ud-nav .nav-link:hover {
    color: var(--ud-red) !important;
}

/* ----------------------------------------------------
   RESULTS PAGE LAYOUT
---------------------------------------------------- */
body {
    padding-top: 90px;
    overflow: hidden;
}

.ud-results-layout {
    position: relative;
    width: 100%;
    height: calc(100vh - 90px);
}

#ud-results-map {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 420px;
}

.ud-results-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-left: 1px solid #dee2e6;
    z-index: 3;
}

/* ----------------------------------------------------
   FIXED SEARCH BAR
---------------------------------------------------- */
.ud-results-searchbar {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
    z-index: 5;
}

.ud-results-searchbar .input-group-lg > .form-control,
.ud-results-searchbar .input-group-lg > .btn {
    font-size: 0.95rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

/* ----------------------------------------------------
   RESULTS LIST
---------------------------------------------------- */
.ud-results-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 18px;
}

.ud-results-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

/* ----------------------------------------------------
   RESULTS AUTOCOMPLETE
---------------------------------------------------- */
#ud-results-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 60px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 10;
    display: none;
}

#ud-results-suggestions li {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.9rem;
}

#ud-results-suggestions li:hover,
#ud-results-suggestions li.active {
    background: #f5f5f5;
}

/* ----------------------------------------------------
   RESULTS CARDS (OVERRIDES)
---------------------------------------------------- */
.pilot-card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 22px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #eee;
    transition: box-shadow 0.25s ease, transform 0.15s ease;
    position: relative;
}

.pilot-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.pilot-card.highlight {
    background: #fff7f5;
    box-shadow: 0 0 0 2px var(--ud-red);
}

.pilot-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.pilot-card .card-body {
    padding: 1rem 1.25rem;
}

/* ----------------------------------------------------
   MOBILE (RESULTS PAGE)
---------------------------------------------------- */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
        overflow: auto;
    }

    .ud-results-layout {
        height: auto;
    }

    #ud-results-map {
        display: none;
        position: static;
        width: 100%;
        height: 300px;
    }

    .ud-results-panel {
        position: static;
        width: 100%;
        border-left: none;
        height: auto;
    }

    #ud-showMapBtn {
        display: block;
    }
}

/* ----------------------------------------------------
   MOBILE MAP BUTTON
---------------------------------------------------- */
#ud-showMapBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}