/* =========================
   SCOT Filter Dropdowns
========================= */

.dropdown-container {
    display: inline-flex;
    align-items: center;
    margin: 0 8px 8px;
    position: relative;
}

/* Match SD-chip / ghost button feel */
.styled-dropdown {
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.35rem 2.0rem 0.35rem 0.9rem; /* extra right for arrow */
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(7, 29, 39, 0.95);
    color: var(--white70, #c3d1e0);
    cursor: pointer;
    outline: none;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.1s ease;
}

/* Hover / focus – similar to sd-chip-button / ghost button */
.styled-dropdown:hover,
.styled-dropdown:focus {
    background: rgba(27, 76, 101, 0.95);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.5);
}

/* Options inside the dropdown */
.styled-dropdown option {
    background: #050812;
    color: #e5edf0;
}

/* Custom arrow – drawn on the container, not the <select> */
.dropdown-container::after {
    content: "▾";
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.7rem;
    color: var(--white60, #b5c4d7);
}

/* Small-screen tweak: stack nicely */
@media (max-width: 600px) {
    .dropdown-container {
        display: block;
        margin: 0 0 8px;
    }

    .styled-dropdown {
        width: 100%;
    }
}
