/* ==========================================================================
   PNW Auto-Suggestion Search Dropdown Styles
   ========================================================================== */

.pnw-autosuggest-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    min-width: 320px;
    max-height: 420px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.15), 0 5px 15px -5px rgba(0, 0, 0, 0.08);
    z-index: 10000;
    text-align: left;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header Search specific alignment */
.header-search .pnw-autosuggest-dropdown {
    right: 0;
    left: auto;
    width: 360px;
    max-width: 90vw;
}

/* Hero Search specific alignment */
.hero-search-bar .pnw-autosuggest-dropdown,
.hero-search-form .pnw-autosuggest-dropdown {
    left: 0;
    right: 0;
    width: 100%;
}

.pnw-as-loading {
    padding: 18px 20px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pnw-as-results-list {
    display: flex;
    flex-direction: column;
}

.pnw-as-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: #1e293b;
    border-bottom: 1px solid #f8fafc;
    transition: background-color 0.15s ease;
}

.pnw-as-item:hover,
.pnw-as-item.is-selected {
    background-color: #f1f5f9;
}

.pnw-as-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    overflow: hidden;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2563eb;
    font-size: 15px;
    border: 1px solid #e2e8f0;
}

.pnw-as-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pnw-as-info {
    flex-grow: 1;
    min-width: 0;
}

.pnw-as-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pnw-as-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pnw-as-title mark {
    background: #fef08a;
    color: #0f172a;
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 700;
}

.pnw-as-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.pnw-as-badge.badge-politician {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.pnw-as-badge.badge-party {
    background: #faf5ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.pnw-as-badge.badge-state {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.pnw-as-badge.badge-constituency {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.pnw-as-desc {
    font-size: 11.5px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.pnw-as-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    color: #2563eb;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 12px 12px;
    transition: background 0.15s ease;
}

.pnw-as-footer:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.pnw-as-empty {
    padding: 25px 18px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.pnw-as-empty p {
    margin: 0 0 8px 0;
    color: #0f172a;
    font-weight: 500;
}

.pnw-as-empty a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 12.5px;
}

.pnw-as-empty a:hover {
    text-decoration: underline;
}
