:root {
    --brand: #0044d9;
    --bg: #f6f8ff;
    --panel: #ffffff;
    --text: #0b1220;
    --muted: rgba(15, 23, 42, 0.62);
    --border: rgba(2, 6, 23, 0.10);
    --shadow: 0 10px 25px rgba(2, 6, 23, 0.10);
    --supplier: #6d28d9;
    --engineering: #0044d9;
    --contractor: #f59e0b;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
    color: var(--brand);
    border-bottom: none;
    box-shadow: none;
    flex: 0 0 auto;
    backdrop-filter: none;
    overflow: visible;
}

.top-nav-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 18px;
    border-radius: 0;
    box-sizing: border-box;
    border: 1px solid rgba(2, 6, 23, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.top-nav-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-nav-row--main {
    padding: 2px 0 12px;
    gap: 14px;
}

.top-nav-row--main .nav-links {
    flex: 1 1 0;
}

.top-nav-row--main .brand {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
}

.top-nav-row--main .nav-links--right {
    justify-content: flex-end;
    flex: 1 1 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 700px) {
    .nav-hide-mobile {
        display: none !important;
    }

    body.ai-app .nav-open-map {
        display: none !important;
    }
}

.nav-links--right {
    justify-content: flex-end;
}

.nav-controls {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.nav-controls-main {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.favorites-empty {
    display: none;
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.10);
    color: rgba(15, 23, 42, 0.86);
    font-weight: 800;
    font-size: 13px;
    text-align: center;
}

@media (min-width: 1001px) {
    #favorites-empty.favorites-empty {
        display: none !important;
    }
}

#favorites-only.nav-button {
    margin-left: auto;
}

.nav-control {
    display: grid;
    gap: 4px;
}

.nav-label {
    font-size: 11px;
    color: rgba(15, 23, 42, 0.60);
    letter-spacing: 0.02em;
}

.nav-input,
.nav-select {
    height: 48px;
    border-radius: 10px;
    border: 2px solid rgba(0, 68, 217, 0.38);
    background: #ffffff;
    padding: 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.86);
    outline: none;
    min-width: 220px;
}

.nav-select {
    padding-right: 12px;
}

.nav-select option {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.nav-input::placeholder {
    color: rgba(15, 23, 42, 0.45);
}

.nav-input:focus,
.nav-select:focus {
    border-color: rgba(0, 68, 217, 0.65);
    box-shadow: 0 0 0 4px rgba(0, 68, 217, 0.16);
}

.nav-input:hover,
.nav-select:hover {
    border-color: rgba(0, 68, 217, 0.55);
}

.top-nav-row--controls .nav-button {
    height: 48px;
    font-size: 15px;
    font-weight: 700;
    padding: 0 16px;
}

.custom-select {
    position: relative;
    display: grid;
}

.custom-select__native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.custom-select__button {
    height: 48px;
    border-radius: 10px;
    border: 2px solid rgba(0, 68, 217, 0.38);
    background: #ffffff;
    padding: 0 42px 0 12px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.86);
    outline: none;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: none;
    position: relative;
}

.custom-select__button::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(0, 68, 217, 0.85);
    border-bottom: 2px solid rgba(0, 68, 217, 0.85);
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.custom-select__button:hover {
    border-color: rgba(0, 68, 217, 0.55);
}

.custom-select__button:focus {
    border-color: rgba(0, 68, 217, 0.65);
    box-shadow: 0 0 0 4px rgba(0, 68, 217, 0.16);
}

.custom-select__menu {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(0, 68, 217, 0.28);
    border-radius: 12px;
    box-shadow: 0 16px 35px rgba(2, 6, 23, 0.14);
    padding: 8px;
    z-index: 1300;
    display: none;
    max-height: 320px;
    overflow: auto;
    backdrop-filter: blur(10px);
}

.custom-select.is-open .custom-select__menu {
    display: block;
}

.custom-select__option {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 10px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.90);
    cursor: pointer;
    line-height: 1.25;
}

.custom-select__option:hover {
    background: rgba(0, 68, 217, 0.08);
}

.custom-select__option.is-selected {
    background: rgba(0, 68, 217, 0.12);
    box-shadow: inset 0 0 0 2px rgba(0, 68, 217, 0.25);
}

.custom-select__option:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ai-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(0, 68, 218, 1), rgba(0, 68, 218, 0.90));
    border: 1px solid rgba(0, 68, 218, 0.40);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.18);
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #ffffff;
    z-index: 1400;
}

@media (min-width: 1001px) {
    .ai-fab {
        right: calc(30% + 18px);
    }
}

.ai-fab:hover {
    background: linear-gradient(180deg, rgba(0, 68, 218, 1), rgba(0, 68, 218, 0.96));
    border-color: rgba(0, 68, 218, 0.60);
}

.ai-fab__icon svg {
    width: 26px;
    height: 26px;
}

.ai-fab__popup {
    position: absolute;
    right: 72px;
    bottom: 8px;
    width: min(320px, calc(100vw - 120px));
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 68, 218, 0.18);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.18);
    color: rgba(15, 23, 42, 0.92);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.ai-fab__popup.is-open {
    opacity: 1;
    transform: translateY(0);
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(2, 6, 23, 0.10);
    background: rgba(2, 6, 23, 0.02);
    color: rgba(15, 23, 42, 0.86);
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    transition: background 160ms ease, border-color 160ms ease, transform 140ms ease;
}

.top-nav-row--main .nav-button {
    background: transparent;
    border-color: transparent;
    color: rgba(15, 23, 42, 0.84);
    font-weight: 600;
}

.top-nav-row--main .nav-button:hover {
    background: rgba(2, 6, 23, 0.05);
    border-color: rgba(2, 6, 23, 0.06);
}

.top-nav-row--main .nav-button:focus {
    border-color: rgba(12, 75, 215, 0.35);
    box-shadow: 0 0 0 4px rgba(12, 75, 215, 0.12);
}

.top-nav-row--main .nav-button.nav-button--primary {
    background: #0c4bd7;
    border-color: rgba(12, 75, 215, 0.45);
    color: #ffffff;
}

.top-nav-row--main .nav-button.nav-button--primary:hover {
    background: #0a3fb3;
    border-color: rgba(12, 75, 215, 0.65);
}

.top-nav-row--main .nav-links--left .nav-button {
    background: linear-gradient(180deg, rgba(0, 68, 218, 0.96), rgba(0, 68, 218, 0.86));
    border-color: rgba(0, 68, 218, 0.40);
    color: #ffffff;
    font-weight: 800;
}

.top-nav-row--main .nav-links--left .nav-button:hover {
    background: linear-gradient(180deg, rgba(0, 68, 218, 1), rgba(0, 68, 218, 0.92));
    border-color: rgba(0, 68, 218, 0.60);
}

.top-nav-row--main .nav-links--left .nav-button:focus {
    border-color: rgba(0, 68, 218, 0.70);
    box-shadow: 0 0 0 4px rgba(0, 68, 218, 0.20);
}

.top-nav-row--main .nav-links--left .nav-button.nav-button--ai {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(0, 68, 218, 0.96), rgba(0, 68, 218, 0.86));
    border-color: rgba(0, 68, 218, 0.40);
    color: #ffffff;
    font-weight: 800;
    overflow: hidden;
}

.top-nav-row--mobile-secondary .nav-button.nav-button--ai {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(0, 68, 218, 0.96), rgba(0, 68, 218, 0.86));
    border-color: rgba(0, 68, 218, 0.40);
    color: #ffffff;
    font-weight: 800;
    overflow: hidden;
}

.top-nav-row--main .nav-links--left .nav-button.nav-button--ai::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: conic-gradient(
        rgba(168, 85, 247, 0) 0turn,
        rgba(255, 255, 255, 0.95) 0.10turn,
        rgba(168, 85, 247, 0) 0.22turn,
        rgba(168, 85, 247, 0) 1turn
    );
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
    z-index: 0;
    animation: aiNeonSpin 2.2s linear infinite;
}

.top-nav-row--mobile-secondary .nav-button.nav-button--ai::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: conic-gradient(
        rgba(168, 85, 247, 0) 0turn,
        rgba(255, 255, 255, 0.95) 0.10turn,
        rgba(168, 85, 247, 0) 0.22turn,
        rgba(168, 85, 247, 0) 1turn
    );
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
    z-index: 0;
    animation: aiNeonSpin 2.2s linear infinite;
}

.top-nav-row--main .nav-links--left .nav-button.nav-button--ai::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(0, 68, 218, 0.96), rgba(0, 68, 218, 0.86));
    z-index: 1;
}

.top-nav-row--mobile-secondary .nav-button.nav-button--ai::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(0, 68, 218, 0.96), rgba(0, 68, 218, 0.86));
    z-index: 1;
}

.top-nav-row--main .nav-links--left .nav-button.nav-button--ai > * {
    position: relative;
    z-index: 2;
}

.top-nav-row--mobile-secondary .nav-button.nav-button--ai > * {
    position: relative;
    z-index: 2;
}

.top-nav-row--main .nav-links--left .nav-button.nav-button--ai:hover {
    background: linear-gradient(180deg, rgba(0, 68, 218, 1), rgba(0, 68, 218, 0.92));
    border-color: rgba(0, 68, 218, 0.60);
    box-shadow: 0 0 0 4px rgba(0, 68, 217, 0.18);
}

.top-nav-row--mobile-secondary .nav-button.nav-button--ai:hover {
    background: linear-gradient(180deg, rgba(0, 68, 218, 1), rgba(0, 68, 218, 0.92));
    border-color: rgba(0, 68, 218, 0.60);
    box-shadow: 0 0 0 4px rgba(0, 68, 217, 0.18);
}

.top-nav-row--main .nav-links--left .nav-button.nav-button--ai:focus {
    border-color: rgba(0, 68, 218, 0.70);
    box-shadow: 0 0 0 4px rgba(0, 68, 217, 0.20);
}

.top-nav-row--mobile-secondary .nav-button.nav-button--ai:focus {
    border-color: rgba(0, 68, 218, 0.70);
    box-shadow: 0 0 0 4px rgba(0, 68, 217, 0.20);
}

@keyframes aiNeonSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.nav-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    flex: 0 0 auto;
}

.top-nav-row--main .nav-button {
    gap: 8px;
}

.nav-inline-form {
    display: inline;
}

.nav-auth-link--mobile-signin {
    display: none;
}

.top-nav-row--mobile-secondary {
    display: none;
}

.nav-button:hover {
    background: rgba(0, 68, 217, 0.08);
    border-color: rgba(0, 68, 217, 0.22);
}

.nav-button:active {
    transform: translateY(1px);
}

.search-bar {
    display: none;
}

@media (min-width: 900px) {
    .top-nav-row--main {
        flex-wrap: nowrap;
    }

    .top-nav-row--main .nav-links {
        flex-wrap: nowrap;
        min-width: 0;
    }

    .top-nav-row--main .brand {
        min-width: 0;
        flex: 0 1 auto;
    }
}

@media (max-width: 1200px) and (min-width: 900px) {
    .top-nav-row--main {
        gap: 10px;
    }

    .top-nav-row--main .nav-button {
        padding: 0 12px;
        font-size: 13px;
    }

    .top-nav-row--main .nav-button {
        gap: 6px;
    }
}

@media (max-width: 1050px) and (min-width: 900px) {
    .brand {
        gap: 12px;
    }
}

.search-icon {
    width: 16px;
    height: 16px;
    color: rgba(15, 23, 42, 0.52);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-icon svg {
    width: 16px;
    height: 16px;
}

.search-input {
    border: none;
    outline: none;
    background: transparent;
    height: 38px;
    width: 100%;
    min-width: 140px;
    font-size: 13px;
    color: rgba(15, 23, 42, 0.86);
}

.search-input::placeholder {
    color: rgba(15, 23, 42, 0.45);
}

.search-advanced-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(2, 6, 23, 0.10);
    background: rgba(2, 6, 23, 0.02);
    color: rgba(15, 23, 42, 0.72);
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease, transform 140ms ease;
}

.search-advanced-btn:hover {
    background: rgba(2, 6, 23, 0.06);
    border-color: rgba(2, 6, 23, 0.16);
}

.search-advanced-btn:active {
    transform: translateY(1px);
}

.search-advanced-btn svg {
    width: 18px;
    height: 18px;
}

#locate-me.nav-button {
    border-color: rgba(0, 68, 217, 0.22);
    background: linear-gradient(180deg, rgba(0, 68, 217, 0.92), rgba(37, 99, 235, 0.92));
    color: #ffffff;
}

#locate-me.nav-button:hover {
    background: linear-gradient(180deg, rgba(0, 68, 217, 0.98), rgba(37, 99, 235, 0.98));
    border-color: rgba(0, 68, 217, 0.35);
}

@media (max-width: 1200px) {
    .nav-input,
    .nav-select {
        min-width: 130px;
    }
}

@media (max-width: 900px) {
    .top-nav {
        align-items: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }

    .top-nav-card {
        padding: 10px 12px;
    }

    .brand {
        width: 100%;
        justify-content: space-between;
    }

    .brand-controls {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .top-nav-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .top-nav-row--main .nav-links {
        flex: 0 0 auto;
    }

    .nav-links--right {
        justify-content: flex-start;
    }

    .nav-controls {
        width: 100%;
    }

    .nav-input,
    .nav-select {
        width: 100%;
        min-width: 0;
    }

    .nav-control {
        flex: 1 1 160px;
    }

    .ai-app .top-nav-row--main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .ai-app .top-nav-row--main .nav-links--left {
        display: none;
    }

    .ai-app .top-nav-row--main .brand {
        flex: 1 1 auto;
    }

    .ai-app .top-nav-row--main .brand a {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .ai-app .top-nav-row--main .nav-links--right {
        flex: 0 0 auto;
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .top-nav:not(.top-nav--map) .top-nav-row--main {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 0 0 10px;
    }

    .top-nav:not(.top-nav--map) .top-nav-row--main .nav-links--right {
        width: 100%;
        justify-content: center;
    }

    body.ai-app .top-nav:not(.top-nav--map) .top-nav-row--main {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 14px;
        padding: 2px 0 12px;
    }

    body.ai-app .top-nav:not(.top-nav--map) .top-nav-row--main .nav-links--left {
        display: flex;
        flex: 1 1 0;
    }

    body.ai-app .top-nav:not(.top-nav--map) .top-nav-row--main .brand {
        width: auto;
        flex: 0 1 auto;
        justify-content: center;
    }

    body.ai-app .top-nav:not(.top-nav--map) .top-nav-row--main .brand a {
        width: auto;
    }

    body.ai-app .top-nav:not(.top-nav--map) .top-nav-row--main .nav-links--right {
        width: auto;
        flex: 1 1 0;
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .top-nav--map .top-nav-row--main {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 0 0 10px;
    }

    .top-nav--map .top-nav-row--main .nav-links {
        display: none;
    }

    .top-nav--map .top-nav-row--main .brand {
        flex: 0 0 auto;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .top-nav--map .top-nav-row--main .brand a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .top-nav--map .top-nav-row--mobile-secondary {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 0 0 10px;
    }

    .top-nav--map .top-nav-row--mobile-secondary .nav-links--mobile {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .top-nav--map .top-nav-row--mobile-secondary .nav-button {
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
        gap: 6px;
        min-width: 0;
    }

    .top-nav--map .top-nav-row--mobile-secondary .nav-button--ai-mobile {
        flex: 1 1 auto;
        max-width: calc(100% - 120px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .top-nav--map .top-nav-row--mobile-secondary .nav-button--ai-mobile .nav-icon {
        width: 16px;
        height: 16px;
    }

    .top-nav--map .top-nav-row--mobile-secondary .nav-auth-link--signin {
        display: inline-flex;
    }
}

@media (max-width: 600px) {
    .top-nav--map .top-nav-row.top-nav-row--main {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
    }

    .top-nav--map .top-nav-row.top-nav-row--main .nav-links {
        display: none;
    }

    .top-nav--map .top-nav-row.top-nav-row--main .brand {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .top-nav.top-nav--mobile-secondary:not(.top-nav--map) .top-nav-row--main {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0 0 10px;
    }

    .top-nav.top-nav--mobile-secondary:not(.top-nav--map) .top-nav-row--main .nav-links--left,
    .top-nav.top-nav--mobile-secondary:not(.top-nav--map) .top-nav-row--main .nav-links--right {
        display: none !important;
    }

    .top-nav.top-nav--mobile-secondary:not(.top-nav--map) .top-nav-row--main .brand {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .top-nav.top-nav--mobile-secondary:not(.top-nav--map) .top-nav-row--mobile-secondary {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 0 0 10px;
    }

    .top-nav.top-nav--mobile-secondary:not(.top-nav--map) .top-nav-row--mobile-secondary .nav-links--mobile {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: nowrap;
        min-width: 0;
    }
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.brand-controls {
    width: 100%;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.brand-logo {
    height: clamp(36px, 4.2vw, 56px);
    width: auto;
    display: block;
    filter: drop-shadow(0 6px 10px rgba(2, 6, 23, 0.10));
}

 .top-nav-row--controls {
    border-top: 1px solid rgba(2, 6, 23, 0.06);
    padding-top: 12px;
 }

 .top-nav-row--controls {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
 }

 .top-nav-row--controls .nav-control {
    min-width: 160px;
 }

 .top-nav-row--controls .nav-control:first-child {
    min-width: 220px;
 }

.brand-title {
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 14px;
    color: var(--brand);
}

.app-shell {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

/* Keep Leaflet controls below fixed overlays (mobile bottom sheet + filters FAB) */
.leaflet-control-container {
    z-index: 10;
}

#map {
    flex: 0 0 70%;
    height: 100%;
}

#map .leaflet-tile {
    filter: saturate(0.75) contrast(0.92) brightness(1.16);
}

#map .leaflet-marker-icon.atlas-map-marker {
    background: transparent;
    border: none;
}

#map .atlas-pin {
    position: relative;
    width: 100%;
    height: 100%;
    line-height: 0;
}

#map .atlas-pin > svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 6px 10px rgba(2, 6, 23, 0.22));
}

#map .atlas-pin__inner {
    position: absolute;
    left: 50%;
    top: 43.5%;
    width: 60%;
    height: 52%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#map .atlas-pin__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#map .atlas-pin--wood .atlas-pin__img {
    filter: brightness(0) saturate(100%) invert(29%) sepia(92%) saturate(2400%) hue-rotate(18deg) brightness(1.12) contrast(1.22)
        drop-shadow(0 0 2px rgba(180, 83, 9, 0.22));
}

#map .atlas-pin--steel .atlas-pin__img {
    filter: brightness(0) saturate(100%) invert(22%) sepia(96%) saturate(3400%) hue-rotate(205deg) brightness(1.18) contrast(1.24)
        drop-shadow(0 0 2px rgba(0, 68, 217, 0.24));
}

#map .atlas-pin--contractor .atlas-pin__img {
    filter: brightness(0) saturate(100%) invert(38%) sepia(94%) saturate(2400%) hue-rotate(10deg) brightness(1.16) contrast(1.22)
        drop-shadow(0 0 2px rgba(245, 158, 11, 0.22));
}

#shop-sidebar {
    flex: 0 0 30%;
    height: 100%;
    overflow-y: auto;
    background: #ffffff;
    border-left: 1px solid rgba(2, 6, 23, 0.10);
}

#sidebar-list {
    background: #ffffff;
}

.sidebar-header {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 16px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(2, 6, 23, 0.10);
}

.sidebar-handle {
    display: none;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0 0 10px;
    cursor: pointer;
}

.sidebar-handle-bar {
    display: block;
    width: 48px;
    height: 5px;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.18);
}

.sidebar-title {
    font-size: 18px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0044da;
    font-weight: 900;
    margin: 0;
}

.sidebar-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.72);
}

.shop-card {
    border-radius: 12px;
    box-shadow: none;
    padding: 15px;
    margin: 10px;
    background: rgba(0, 68, 218, 0.06);
    border: 1px solid rgba(0, 68, 218, 0.22);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

@keyframes cardEdgeSweep {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateX(-120%);
        opacity: 0;
    }
}

.shop-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    padding: 2px;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 68, 218, 0) 58%, rgba(0, 68, 218, 0.70) 74%, rgba(0, 68, 218, 0) 88%),
        linear-gradient(90deg, rgba(0, 68, 218, 0) 0%, rgba(0, 68, 218, 0.95) 50%, rgba(0, 68, 218, 0) 100%);
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.shop-card:hover::before {
    animation: cardEdgeSweep 650ms linear 1;
}

.shop-card:hover {
    background: rgba(0, 68, 218, 0.08);
    transform: scale(1.01);
    border-color: rgba(0, 68, 218, 0.45);
    box-shadow: none;
}

.shop-card.active-highlight {
    outline: 2px solid rgba(0, 68, 218, 0.85);
    background: rgba(0, 68, 218, 0.08);
}

.shop-card.active-card {
    outline: 3px solid rgba(0, 68, 218, 1);
    box-shadow: none;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.card-title {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
}

.card-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.card-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 68, 217, 0.22);
    background: rgba(0, 68, 217, 0.06);
    color: rgba(0, 68, 217, 0.95);
    text-decoration: none;
    font-weight: 900;
    font-size: 12px;
    line-height: 1;
}

.card-view:hover {
    background: rgba(0, 68, 217, 0.10);
    border-color: rgba(0, 68, 217, 0.35);
}

.badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(2, 6, 23, 0.14);
    color: rgba(15, 23, 42, 0.70);
    background: rgba(2, 6, 23, 0.02);
    white-space: nowrap;
}

.badge.verified {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.15);
    color: rgba(187, 247, 208, 0.95);
}

.badge.cat-supplier {
    border-color: rgba(109, 40, 217, 0.35);
    background: rgba(109, 40, 217, 0.08);
}

.badge.cat-engineering {
    border-color: rgba(0, 68, 217, 0.35);
    background: rgba(0, 68, 217, 0.08);
}

.badge.cat-contractor {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.12);
}

 .badge.badge-subcat {
     border-color: rgba(0, 68, 217, 0.22);
     background: rgba(0, 68, 217, 0.06);
     color: rgba(15, 23, 42, 0.76);
 }

 .card-address {
     margin-top: 8px;
     font-size: 12px;
     color: rgba(15, 23, 42, 0.62);
     line-height: 1.35;
 }

 .card-rows {
     margin-top: 10px;
     display: grid;
     gap: 8px;
 }

 .card-row {
     display: grid;
     grid-template-columns: 18px 1fr;
     align-items: center;
     gap: 8px;
     font-size: 12px;
     color: rgba(15, 23, 42, 0.82);
 }

.card-row a {
    color: inherit;
    text-decoration: none;
}

.card-row a:hover {
    text-decoration: underline;
}

.card-row .icon {
    width: 14px;
    height: 14px;
    color: rgba(15, 23, 42, 0.55);
}

.card-badges-bottom {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.card-fav {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(2, 6, 23, 0.12);
    background: rgba(2, 6, 23, 0.02);
    color: rgba(15, 23, 42, 0.75);
    cursor: pointer;
    flex: 0 0 auto;
}

.card-fav:hover {
    background: rgba(0, 68, 217, 0.06);
    border-color: rgba(0, 68, 217, 0.22);
    color: rgba(0, 68, 217, 0.95);
}

.card-fav.is-favorite {
    background: rgba(0, 68, 217, 0.10);
    border-color: rgba(0, 68, 217, 0.35);
    color: rgba(0, 68, 217, 0.95);
}

.card-fav .icon {
    width: 18px;
    height: 18px;
}

.badge.rr-high {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.14);
    color: rgba(20, 83, 45, 0.90);
}

.badge.rr-mid {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.14);
    color: rgba(120, 53, 15, 0.90);
}

.badge.rr-low {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.14);
    color: rgba(127, 29, 29, 0.90);
}

.sidebar-empty {
    margin: 14px 10px;
    border-radius: 12px;
    border: 1px dashed rgba(2, 6, 23, 0.18);
    background: rgba(2, 6, 23, 0.02);
    padding: 16px;
    color: rgba(15, 23, 42, 0.70);
    font-size: 13px;
}

.skeleton-card {
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 15px;
    margin: 10px;
    background: #ffffff;
    border: 1px solid var(--border);
}

.skeleton-line {
    height: 12px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(2,6,23,0.06), rgba(2,6,23,0.12), rgba(2,6,23,0.06));
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

.skeleton-line.sm { width: 55%; }
.skeleton-line.md { width: 75%; }
.skeleton-line.lg { width: 90%; }

.skeleton-stack { display: grid; gap: 10px; }

@keyframes shimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: -200% 0%; }
}

.meta {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.stars {
    color: rgba(250, 204, 21, 0.95);
    font-size: 12px;
    letter-spacing: 1px;
}

.rating-text {
    font-size: 12px;
    color: rgba(15, 23, 42, 0.60);
}

.progress-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.60);
}

.progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.10);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0,68,217,0.85), rgba(37, 99, 235, 0.85));
    width: 0;
}

.actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(15, 23, 42, 0.82);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(2, 6, 23, 0.12);
    background: rgba(2, 6, 23, 0.02);
}

.action-link:hover {
    background: rgba(0, 68, 217, 0.04);
    border-color: rgba(0, 68, 217, 0.22);
}

.icon {
    width: 14px;
    height: 14px;
    display: inline-block;
}

#map .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 10px;
}

#map .leaflet-popup-content {
    margin: 0;
}

#map .leaflet-popup-close-button {
    display: none;
}

#map .leaflet-popup-close-button:hover {
    display: none;
}

.atlas-popup__header {
    position: relative;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 10px 10px 0 0;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

 .atlas-popup__header-inner {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 10px;
 }

 .atlas-popup__title {
     min-width: 0;
     flex: 1 1 auto;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: nowrap;
 }

 .atlas-popup__header-actions {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     flex: 0 0 auto;
 }

.atlas-popup__view {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.atlas-popup__view:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.atlas-fav {
    position: static;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

.atlas-fav:hover {
    background: rgba(255, 255, 255, 0.36);
    border-color: rgba(255, 255, 255, 0.55);
}

.atlas-fav.is-favorite {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 68, 217, 0.55);
    color: rgba(0, 68, 217, 0.95);
}

.atlas-fav .atlas-popup__icon {
    width: 18px;
    height: 18px;
}

 .atlas-popup__view .atlas-popup__icon {
     width: 18px;
     height: 18px;
 }

.atlas-popup__body {
    padding: 10px 12px 12px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.35;
}

.atlas-popup__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.atlas-popup__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.06);
    border: 1px solid rgba(2, 6, 23, 0.10);
    color: rgba(15, 23, 42, 0.92);
    font-weight: 700;
    font-size: 12px;
}

.atlas-popup__chip .atlas-popup__icon {
    width: 14px;
    height: 14px;
}

.atlas-popup__chip-text {
    display: inline-block;
}

.atlas-popup__section {
    display: grid;
    gap: 6px;
}

.atlas-popup__row {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: center;
    padding: 7px 0;
}

.atlas-popup__row a {
    color: inherit;
    text-decoration: none;
}

.atlas-popup__row a:hover {
    text-decoration: underline;
}

.atlas-popup__label {
    color: rgba(15, 23, 42, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.atlas-popup__icon {
    width: 16px;
    height: 16px;
    display: block;
}

.atlas-popup__value {
    color: rgba(15, 23, 42, 0.92);
    font-weight: 600;
    word-break: break-word;
}

.atlas-popup__location {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(2, 6, 23, 0.10);
    font-weight: 650;
    color: rgba(15, 23, 42, 0.92);
}

.atlas-popup__contact {
    margin-top: 8px;
}

.atlas-popup__section--contact {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(2, 6, 23, 0.08);
}

@media (max-width: 1000px) {
    html, body {
        overflow: hidden;
    }

    :root {
        --mobile-sheet-peek: 0px;
    }

    .app-shell {
        flex-direction: column;
        position: relative;
    }

    #map {
        flex-basis: auto;
        height: calc(100vh - var(--top-nav-height, 0px));
        min-height: 320px;
    }

    #shop-sidebar {
        display: none;
    }

    #shop-sidebar.is-open {
        display: none;
    }

    .sidebar-header {
        position: sticky;
        top: 0;
        border-bottom: 1px solid rgba(2, 6, 23, 0.10);
        padding: 10px 16px 14px;
        min-height: var(--mobile-sheet-peek);
        box-sizing: border-box;
    }

    .sidebar-title,
    .sidebar-subtitle {
        display: none;
    }

    .sidebar-handle {
        display: block;
    }

    #sidebar-list {
        height: calc(100% - var(--mobile-sheet-peek));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 600px) {
    .top-nav-card {
        padding: 10px 12px;
    }

    .nav-control--subcat .custom-select__button {
        font-size: 12px;
        line-height: 1.15;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        padding-top: 8px;
        padding-bottom: 8px;
        text-align: center;
        padding-right: 34px;
    }

    .nav-control--state .custom-select__button {
        text-align: center;
        padding-left: 34px;
        padding-right: 34px;
    }

    .nav-control--subcat .custom-select__option {
        font-size: 12px;
        line-height: 1.15;
        padding: 8px 10px;
        margin-bottom: 6px;
    }

    .nav-control--subcat .custom-select__option:last-child {
        margin-bottom: 0;
    }

    .nav-control--subcat .custom-select__option[data-material="steel"] {
        background: rgba(0, 68, 217, 0.08);
        border: 1px solid rgba(0, 68, 217, 0.18);
    }

    .nav-control--subcat .custom-select__option[data-material="wood"] {
        background: rgba(180, 83, 9, 0.12);
        border: 1px solid rgba(180, 83, 9, 0.22);
    }

    .nav-control--subcat .custom-select__option[data-material="steel"]:hover {
        background: rgba(0, 68, 217, 0.14);
        border-color: rgba(0, 68, 217, 0.28);
    }

    .nav-control--subcat .custom-select__option[data-material="wood"]:hover {
        background: rgba(180, 83, 9, 0.18);
        border-color: rgba(180, 83, 9, 0.32);
    }

    .nav-control--subcat .custom-select__option.is-selected[data-material="steel"] {
        background: rgba(0, 68, 217, 0.18);
        box-shadow: inset 0 0 0 2px rgba(0, 68, 217, 0.22);
        border-color: rgba(0, 68, 217, 0.36);
    }

    .nav-control--subcat .custom-select__option.is-selected[data-material="wood"] {
        background: rgba(180, 83, 9, 0.22);
        box-shadow: inset 0 0 0 2px rgba(180, 83, 9, 0.24);
        border-color: rgba(180, 83, 9, 0.42);
    }

    #map .leaflet-popup-content {
        max-width: calc(100vw - 36px);
        max-height: calc(100vh - var(--top-nav-height, 0px) - 120px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    #map .atlas-popup {
        min-width: 0 !important;
        max-width: calc(100vw - 36px) !important;
    }

    .atlas-popup__header {
        padding: 8px 10px;
        font-size: 14px;
    }

    .atlas-popup__view {
        width: 28px;
        height: 28px;
        border-radius: 9px;
    }

    .atlas-popup__body {
        padding: 8px 10px 10px;
        font-size: 12px;
    }

    .atlas-popup__chip {
        padding: 5px 8px;
        font-size: 11px;
    }

    .atlas-popup__row {
        gap: 8px;
        padding: 6px 0;
    }

    .atlas-fav {
        width: 28px;
        height: 28px;
    }

    .top-nav-row--main .nav-button {
        height: 32px;
        padding: 0 10px;
        font-size: 12px;
        gap: 6px;
    }

    .top-nav-row--controls .nav-button {
        font-size: 13px;
    }

    .nav-input {
        font-size: 13px;
    }

    .custom-select__button {
        font-size: 12px;
        padding: 0 34px 0 10px;
    }

    .brand-logo {
        height: 34px;
    }

    .nav-auth-link--signin,
    .nav-auth-link--signup {
        display: none;
    }

    .nav-auth-link--mobile-signin {
        display: inline-flex;
    }

    .nav-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .nav-controls-main {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .nav-controls-main > * {
        flex: 0 0 auto;
        min-width: 0;
    }

    .nav-control--search {
        flex: 1 1 220px;
        min-width: 180px;
    }

    .nav-control--subcat {
        flex: 0 1 220px;
        min-width: 130px;
    }

    .top-nav-row--controls .nav-button,
    .nav-input,
    .custom-select__button {
        height: 40px;
        font-size: 12px;
    }

    .top-nav-row--controls .nav-button {
        padding: 0 12px;
    }

    .custom-select__button {
        padding: 0 34px 0 10px;
    }

    .top-nav-row--controls .nav-control {
        min-width: 0;
    }

    .top-nav-row--controls .nav-control:first-child {
        min-width: 0;
    }

    #favorites-only.nav-button {
        width: 48px;
        min-width: 48px;
        height: 40px;
        padding: 0;
        margin-left: 0;
        justify-content: center;
        align-items: center;
        font-size: 0;
    }

    #favorites-empty {
        display: none;
    }

    #favorites-only.nav-button::before {
        content: "";
        width: 20px;
        height: 20px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230044d9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8l1 1L12 21l7.8-7.6 1-1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");
    }
}

@media (max-width: 1000px) {
    #advanced-search-panel {
        display: flex;
    }
}
