:root {
    --blue: #003087;
    --green: #4A7043;
}

.dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    z-index: 50;
    margin-top: 8px;
}
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    display: none;
}
.dropdown:hover .dropdown-menu,
.dropdown:hover::after {
    display: block;
}

/* ============================================= */
/* Rollover enlarged photo for councillor tables */
/* Re-usable on any page that needs it          */
/* ============================================= */
.photo-cell {
    position: relative;
    z-index: 20;
}

.dg-rollover {
    position: absolute;
    bottom: 100%;              /* Positions directly above the small thumbnail */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 14px;       /* Small, clean gap – exactly what you asked for */
    width: 220px;
    height: 330px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 35px 60px -15px rgb(0 0 0 / 0.3);
    overflow: hidden;
    border: 6px solid #fff;
    z-index: 999999 !important;
    display: none;
    pointer-events: none;
}
.dg-rollover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-cell:hover .dg-rollover {
    display: block;
}

.rollover-wrapper {
    position: relative;
    z-index: 10;
    overflow: visible !important;
}

/* Public directory index: area pills + typeahead */
.directory-area-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #0A3D62;
    text-decoration: none;
}
.directory-area-pill:hover {
    border-color: #003087;
    color: #003087;
}
.directory-area-pill.is-active,
.directory-area-pill[aria-current="true"] {
    background: #003087;
    border-color: #003087;
    color: #fff;
}
.directory-area-pill.is-active:hover,
.directory-area-pill[aria-current="true"]:hover {
    background: #00205f;
    border-color: #00205f;
    color: #fff;
}
.directory-area-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

/* Tailwind utilities such as .flex beat the HTML hidden attribute.
   Keep filtered listings, empty groups and the empty state actually gone. */
.js-directory-listing[hidden],
.js-directory-group[hidden],
.js-directory-no-matches[hidden],
.js-directory-search-clear[hidden] {
    display: none !important;
}