@charset "utf-8";
/* CSS Document */

.state-dun {
    xbackground: #e5e5e5;
    xpadding: 50px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #d6d6d6;
    border-bottom: 1px solid #d6d6d6;
}


.dun-section {
    width: 100%;
    background: #efefef;
    padding: 40px 0;
}

.dun-container {
    margin: auto;
    display: flex;
    gap: 36px;
    height: 760px;
}

.sidebar-sticky-top {
    width: 100%
}

.pin-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    color: var(--text);
}

    .pin-note .pin-btn {
        flex: 0 0 auto;
        width: 24px;
        height: 24px;
    }


.sidebar-sticky-top h2 {
    margin-bottom: 10px;
}

.state-dun-bg {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 0;
}


.state-dun .home-dun-grid {
    display: flex;
    height: 90vh; /* 700px*/
    align-items: stretch;
    position: relative;
    z-index: 1;
    gap: 0;
}

#all-seats {
    scroll-margin-top: 130px;
}

/* LEFT */

.state-dun-sidebar {
    gap: 16px;
    align-items: start;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 430px;
    padding: 30px 0;
    overflow-y: auto;
}

.dun-title {
    font-size: 38px;
    font-weight: 700;
    color: #444;
    margin-bottom: 22px;
}

.dun-search {
    height: 58px;
    background: white;
    border: 1px solid #d9d9d9;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 22px;
}

    .dun-search input {
        border: none;
        width: 100%;
        font-size: 17px;
        background: transparent;
        outline: none;
    }



/* =========================
   SCROLLABLE RESULTS
========================= */

.state-dun-sidebar {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 40px;
}

    /* SCROLLBAR */
    .state-dun-sidebar::-webkit-scrollbar {
        width: 8px;
    }

    .state-dun-sidebar::-webkit-scrollbar-thumb {
        background: #c2c2c2;
        border-radius: 100px;
    }


/* CARD */
.seat-card-state {
    background: #f5f5f5;
    border: 1px solid #d8d8d8;
    padding: 22px 20px;
    margin-bottom: 26px;
}

.seat-card-state__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seat-title {
    color: #444;
    font-size: 20px;
    font-weight: 700;
}

.seat-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.seat-title {
    flex: 1;
}

.pin-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

/* BAR */
.seat-progress {
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 100px;
    overflow: hidden;
    display: flex;
    margin: 15px 0 30px 0;
}

.bar-purple {
    width: 34%;
    background: #9544c8;
}

.bar-blue {
    width: 22%;
    background: #0067b8;
}

.bar-orange {
    width: 25%;
    background: #ff4b1f;
}

.bar-green {
    width: 1%;
    background: #1eb38a;
}

.party-ph {
    background: #ff4b1f;
}

.party-bn {
    background: #0067b8;
}

.party-pn {
    background: #9544c8;
}

.party-green {
    background: #1eb38a;
}

.party-ind {
    background: #939393;
}

.candidate-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.party-name {
    font-size: 13px;
    color: #666;
}

.dot {
    width: 10px;
    height: 10px;
    background: #f3b13f;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}


/* DIVIDER */
.seat-divider {
    width: 100%;
    height: 1px;
    background: #d5d5d5;
    margin: 24px 0;
}

.seat-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    color: #555;
}

.share-btn {
    text-align: center;
}

/* RIGHT */
.dun-map-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.state-map-area {
    position: sticky;
    top: 50px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 40px 0 0 40px;
}


/* EXTEND BG TO SCREEN EDGE */
.state-dun-sidebar::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: -100vw;
    background: #f3f3f3;
    z-index: -1;
}


.state-map-area::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: -100vw;
    background: var(--paper);
    z-index: -1;
}


.state-map-area.is-compact {
    xbox-shadow: 0 10px 22px rgba(0, 0, 0, .14);
}

.map-tabs {
    display: flex;
    gap: 20px;
    margin: 0 auto;
}

.map-tab {
    xheight: 44px;
    padding: 10px 24px;
    border: none;
    border-radius: 100px;
    background: #979797;
    color: var(--paper);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

    .map-tab.active {
        background: var(--brand-red);
        color: white;
    }

/* MAP */
.map-wrapper {
    width: 100%;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.map-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center center;
    transition: transform 0.15s ease;
    cursor: grab;
    position: relative;
}

    .map-inner img {
        width: 100%;
        max-width: 950px;
        user-select: none;
        pointer-events: none;
    }

.small-box {
    cursor: pointer;
}

.seat-hotspot {
    position: absolute;
    left: 12%;
    top: 8%;
    width: 70px;
    height: 50px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.seat-result-card.active-seat {
    box-shadow: 0 4px 10px rgba(147,147,147,1);
    transform: translateY(-2px);
    transition: all .25s ease;
}

.seat-hotspot.active-map-seat {
    background: rgba(255,255,255,.35);
    box-shadow: 0 0 0 4px rgba(255,255,255,.5), 0 0 20px rgba(255,255,255,.7);
}


.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    xmargin-bottom: 30px;
    width: 100%;
}

    .map-header.for-state {
        justify-content: center;
    }

.map-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.map-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}


/*CUSTOM DROPDOWN SELECT LIST*/
.state-select {
    position: relative;
}

.state-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 180px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.select-state-arrow::before {
    content: "expand_more";
    font-family: "Material Symbols Rounded";
    font-size: 22px;
    color: var(--text);
}



.state-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    overflow: hidden;
    display: none;
    z-index: 100;
}

.state-select.open .state-select-menu {
    display: block;
}

.state-option {
    width: 100%;
    padding: 12px 18px;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
}

    .state-option:hover {
        background: #f5f5f5;
    }

    .state-option.active {
        font-weight: 700;
        background: #fafafa;
    }

/*CONTROL BUTTONS*/
.map-controls {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-control {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 4px;
    background: #939393;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-in::before {
    content: "zoom_in";
}

.zoom-out::before {
    content: "zoom_out";
}

.zoom-reset::before {
    content: "close";
}

.map-control::before {
    font-family: "Material Symbols Rounded";
    font-size: 22px;
    color: #fff;
}

.result-card-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 991px) {

    .map-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .map-header-left {
        justify-content: center;
    }

    .map-tabs {
        justify-content: center;
    }
}

/* CANDIDATE */
/* ROW */
.candidate-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 20px;
}

/* LEFT */
.candidate-left {
    flex: 1;
    min-width: 0;
}

/* NAME ROW */
.candidate-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* META */
.candidate-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* RIGHT */
.candidate-right {
    flex-shrink: 0;
    text-align: right;
}

/* COUNT */
.vote-count {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 0;
}

/* PERCENT */
.vote-percent {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}


.candidate-info {
    flex: 1;
    min-width: 0;
}

.candidate-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 4px;
}

.party-name {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}



/* RESPONSIVE */
@media (max-width: 1100px) {

    .dun-container {
        flex-direction: column;
        height: auto;
    }

    .dun-sidebar {
        width: 100%;
        min-width: 100%;
    }

    .dun-results {
        max-height: 500px;
    }

    .map-wrapper {
        height: 500px;
    }
}


/* MATERIAL FONT */
.pin-btn::after,
.seat-title::after {
    font-family: "Material Symbols Rounded";
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    display: inline-block;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}


.pin-btn.pinned::after {
    color: var(--brand-red);
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* =========================
   TITLE
========================= */

.seat-title {
    position: relative;
    color: #444;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

    /* CHEVRON */
    .seat-title::after {
        xcontent: "chevron_right";
        font-size: 20px;
        position: relative;
        top: 4px;
    }

/* =========================
   PIN BUTTON
========================= */

.pin-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* DEFAULT PIN */
    .pin-btn::after {
        content: "keep";
        font-size: 24px;
        color: #9a9a9a;
        transition: 0.2s ease;
        transform: rotate(-35deg);
        font-variation-settings: 'FILL' 1;
    }

    /* ACTIVE */
    .pin-btn.active::after {
        color: #bb0000;
        font-variation-settings: 'FILL' 1;
        transform: rotate(-35deg);
    }

/* =========================================
   TABLET
   768px - 1120px
========================================= */

@media (max-width: 1120px) {

    .home-dun-grid {
        height: auto;
        gap: 0;
    }

    /* =========================
     SIDEBAR
  ========================= */

    .state-dun-sidebar {
        width: 360px;
        min-width: 360px;
        padding: 40px 30px 40px 0px;
        max-height: 860px;
    }

    /* =========================
     MAP AREA
  ========================= */

    .state-map-area {
        padding: 32px 24px;
    }

    /* MAP IMAGE */
    .map-inner img {
        max-width: 100%;
        max-height: 620px;
    }

    /* TITLE */
    .seat-title {
        font-size: 18px;
    }
}



@media (max-width: 687px) {
    .map-header {
        flex-direction: column;
    }
}


@media (max-width: 440px) {
    .map-tab {
        padding: 10px 20px;
    }
}


/* =========================================
   MOBILE
   BELOW 768px
========================================= */

@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {

    /* SECTION */
    .state-dun {
        overflow: visible;
    }

        .state-dun .home-dun-grid {
            height: 100%;
            margin: 0;
            width: 100%;
            flex-direction: column;
        }

    /* =========================
     MAP FIRST
  ========================= */

    .state-map-area {
        order: 1;
        width: 100%;
        padding: 40px 10px 0 10px;
        min-height: auto;
        position: relative;
        top: auto;
        z-index: 1;
        transition: height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
        height: auto;
        xpadding: 20px 16px;
        overflow: visible;
    }

    /* =========================
     SIDEBAR SECOND
  ========================= */

    .state-dun-sidebar {
        order: 2;
        width: 100%;
        min-width: 100%;
        max-height: none;
        overflow: visible;
        padding: 20px 0 0 0;
    }

    /* =========================
     MAP
  ========================= */

    .map-wrapper {
        min-height: auto;
        height: auto;
    }

    .map-inner img {
        width: 100%;
        max-width: 100%;
        max-height: none;
    }

    /* =========================
     TABS
  ========================= */

    .map-tabs {
        gap: 15px;
        justify-content: center;
    }

    .map-header {
        align-items: stretch;
        gap: 14px;
        margin-bottom: 20px;
    }

    .map-header-left {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .map-label {
        flex: 0 0 auto;
    }

    .state-select {
        flex: 1 1 auto;
        min-width: 0;
    }

    .state-select-trigger {
        width: 100%;
    }

    .map-tabs {
        width: 100%;
        gap: 8px;
    }

    .map-tab {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 8px;
        font-size: clamp(11px, 3.2vw, 12px);
        line-height: 1.1;
        white-space: nowrap;
    }

    .pin-note {
        margin: 0;
    }

    /* =========================
     CARD
  ========================= */

    /* PROGRESS */
    .seat-progress {
        margin: 18px 0;
    }

    /* CANDIDATE */
    .candidate-row {
        gap: 12px;
        margin-bottom: 18px;
    }

    .candidate-name {
        font-size: 14px;
    }

    .party-name {
        font-size: 12px;
    }

    .vote-count {
        font-size: 13px;
    }

    .vote-percent {
        font-size: 15px;
    }

    /* BUTTON */
    .btn {
        width: 100%;
    }

    /* MAP WRAPPER */
    .map-wrapper {
        height: auto;
    }

    /* MAP INNER */
    .map-inner {
        transition: transform 0.3s ease;
    }

    /* TABS */
    .map-tabs {
        transition: margin 0.3s ease;
    }


    /* STICKY TITLE + SEARCH */
    .sidebar-sticky-top {
        position: sticky;
        top: calc(var(--global-bar-height) + var(--mobile-masthead-height) + var(--state-nav-height));
        z-index: 25;
        background: #f3f3f3;
        transition: padding 0.3s ease, box-shadow 0.3s ease;
    }

    .state-dun-sidebar .sidebar-sticky-top {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* ONLY WHEN STICKY */
    .sidebar-sticky-top.is-sticky {
        padding-top: 5px;
        padding-bottom: 10px;
    }

    /* SEARCH WRAPPER */
    .sidebar-sticky-top {
        width: 100%;
    }

        .sidebar-sticky-top .search-panel {
            margin-top: 0;
        }

    .search-field {
        position: relative;
    }

    .result-card-wrap {
        padding: 0 20px 40px 20px;
        width: 100%;
    }
}
/* ICON */
.search-field::before {
    content: "search";
    font-family: "Material Symbols Rounded";
    font-weight: normal;
    font-style: normal;
    font-size: 22px;
    line-height: 1;
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9a9a9a;
    pointer-events: none;
    -webkt-font-smoothing: antialiased;
}

/* INPUT */
.field {
    width: 100%;
    height: 40px;
    padding-left: 46px;
    border: 1px solid #cfcfcf;
    background: white;
    font-size: 16px;
    border-radius: 4px;
}

    /* PLACEHOLDER */
    .field::placeholder {
        color: #8d8d8d;
    }

.mobile-seat-nav {
    display: none;
}

@media (max-width: 767px), (max-width: 1024px) and (orientation: portrait) {
    body.has-mobile-seat-nav {
        padding-bottom: 58px;
    }

    [data-seat-nav-section] {
        scroll-margin-top: calc(var(--global-bar-height) + var(--mobile-masthead-height) + var(--state-nav-height) + 58px);
    }

    .mobile-seat-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 120;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-height: 40px;
        overflow: hidden;
        border-top: 1px solid #cfcfcf;
        border-radius: 6px 6px 0 0;
        background: #efefef;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, .18);
    }

        .mobile-seat-nav a {
            display: flex;
            min-width: 0;
            align-items: center;
            justify-content: center;
            border-right: 1px solid #d0d0d0;
            color: var(--text);
            font-size: 13px;
            font-weight: 700;
            line-height: 1.1;
            text-align: center;
            transition: background .18s ease, color .18s ease;
        }

            .mobile-seat-nav a:last-child {
                border-right: 0;
            }

            .mobile-seat-nav a.is-active {
                background: var(--brand-red);
                color: #fff;
            }

    .state-dun > .wrap.home-dun-grid {
        display: flex !important;
        width: 100% !important;
        max-width: none;
        height: auto !important;
        margin: 0;
        padding: 0 8px;
        flex-direction: column;
        align-items: stretch;
    }

    .state-dun-sidebar,
    .state-map-area {
        flex: 0 0 auto;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none;
    }

    .state-map-area {
        padding: 24px 0 0;
    }

    .state-dun-sidebar {
        height: auto;
        padding: 0;
        overflow: visible;
    }

    .state-dun {
        background: #f3f3f3;
    }

    .state-dun-sidebar::before,
    .state-map-area::before {
        display: none;
    }

    .sidebar-sticky-top,
    .sidebar-sticky-top .search-panel,
    .result-card-wrap,
    .seat-result-card {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .result-card-wrap {
        padding: 0 0 40px;
    }

    .state-dun-sidebar .sidebar-sticky-top {
        padding-right: 0;
        padding-left: 0;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .state-dun-sidebar.search-is-fixed {
        padding-top: var(--seat-search-height, 50px);
    }

        .state-dun-sidebar.search-is-fixed .sidebar-sticky-top {
            position: fixed;
            top: calc(var(--global-bar-height) + var(--mobile-masthead-height) + var(--state-nav-height));
            left: 0;
            width: 100%;
            z-index: 94;
            padding-top: 5px;
            padding-bottom: 5px;
            padding-left: var(--seat-search-left, 0);
            padding-right: max(var(--seat-search-left, 0), calc(100vw - var(--seat-search-left, 0) - var(--seat-search-width, 100%)));
            background: #f3f3f3;
            box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
        }
}
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .state-dun-sidebar .result-card-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-rows: 8px;
    gap: 18px;
    padding: 0 0 40px;
  }

  .state-dun-sidebar .seat-result-card {
    display: grid;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
}