:root {
    --argo-orange: #d7671b;
    --argo-dark: #1a1a1a;
    --argo-panel: #262626;
    --argo-stripe: var(--argo-orange);
    --argo-highlight: #ff8c42;
    --text-light: #f8f8f8;
    --control-bg-start: #1a1a1a;
    --control-bg-end: #1a1a1a;
    --control-border: rgba(255,255,255,0.28);
    --control-shadow: rgba(255,255,255,0.05);
    --control-surface: linear-gradient(135deg, var(--control-bg-start), var(--control-bg-end));
    --control-accent: rgba(215,103,27,0.45);
}

* {
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

body {
    margin: 0;
    font-family: "Rajdhani", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #2a2a2a 0%, #0c0c0c 70%);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    padding: 1.5rem 2rem 1rem;
    background: var(--argo-dark);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.site-nav {
    display: flex;
    gap: 1.25rem;
    padding: 0.75rem 2rem;
    background: #101010;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.site-nav a {
    color: #d6d6d6;
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid transparent;
}

.site-nav a.active {
    color: #ffffff;
    border-color: var(--argo-orange);
}

.status-bar-wrapper {
    background: #0f0f0f;
    border-top: 2px solid var(--argo-orange);
}

.status-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 0.4rem 2rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.75);
    justify-content: flex-end;
}

.status-bar__divider {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    align-items: flex-end;
    text-align: right;
}

.status-bar__item {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.status-bar__label {
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}

.status-bar__value {
    color: rgba(255,255,255,0.75);
    font-weight: 400;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
}

/* Data freshness indicators */
.status-bar__value time.data-fresh {
    color: #4ade80 !important;
    font-weight: 600;
}

.status-bar__value time.data-aging {
    color: #fbbf24 !important;
    font-weight: 600;
}

.status-bar__value time.data-stale {
    color: #f87171 !important;
    font-weight: 600;
}

.status-bar__value time.data-offline {
    color: #6b7280 !important;
    font-weight: 600;
}

.header__primary {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.brand:hover {
    opacity: 0.8;
}

.brand__tag {
    background: var(--argo-orange);
    padding: 0.25rem 0.75rem;
    font-weight: 600;
}

.brand__title {
    font-size: 1.5rem;
}

.header__sub {
    margin: 0;
    color: #c2c2c2;
}

.header__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-left: auto;
    text-align: right;
}

.header__stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 200px;
}

.header__stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c6c6c6;
}

.header__stat-value {
    font-weight: 600;
}

.content {
    padding: 2rem;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 2rem;
    flex: 1 0 auto;
}

.content[data-page="locations"] {
    grid-template-columns: 360px 1fr;
}

.content[data-page="locations"] .locations-controls {
    grid-column: 1;
}

.content[data-page="locations"] .locations-results {
    grid-column: 2;
}

.content[data-page="market"] {
    display: block;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.filters-toggle {
    display: none;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.4);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.filters-toggle__label {
    font-size: 0.85rem;
}

.controls {
    background: var(--argo-panel);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.route-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filters-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filters-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .filters-layout {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.locations-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.locations-filter-summary {
    margin-bottom: 0.25rem;
}

.locations-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.locations-field__label {
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
}

.locations-field__input,
.locations-field select {
    width: 100%;
    font-size: 1rem;
    border: 1px solid var(--control-border);
    border-radius: 12px;
    background: var(--control-surface);
    box-shadow: inset 0 0 0 1px var(--control-shadow);
    padding: 0.65rem 0.85rem;
    color: var(--text-light);
}

.locations-field__input:focus,
.locations-field select:focus {
    outline: none;
    border-color: var(--argo-stripe);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.08), inset 0 0 0 1px var(--control-shadow);
}

.locations-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.filter-summary {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(0,0,0,0.35);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.filter-summary__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.filter-summary__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: #b5b5b5;
}

.filter-summary__title {
    margin: 0;
    font-size: 1.35rem;
}

.filter-summary__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-summary__footer {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.filter-summary__value {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 2rem;
    font-weight: 600;
}

.filter-summary__value-meta {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.55);
}

.filter-summary__meta {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

.filter-card {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    background: rgba(0,0,0,0.35);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    display: flex;
    flex-direction: column;
}

.filter-card__header {
    padding: 1rem 1.25rem 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.filter-card__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: #c1c1c1;
}

.filter-card__title {
    margin: 0.1rem 0 0;
    font-size: 1.2rem;
}

.filter-card__meta {
    margin: 0;
    max-width: 220px;
    font-size: 0.85rem;
    color: #bababa;
}

.filter-card__body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filter-card__body--grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.filter-card__grid {
    display: grid;
    gap: 1rem;
}

.filter-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.filter-accordion__item {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(0,0,0,0.2);
    overflow: hidden;
}

.filter-accordion__toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    padding: 0.85rem 1rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    cursor: pointer;
}

.filter-accordion__chevron {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.filter-accordion__chevron::after {
    content: '';
    border: solid rgba(255,255,255,0.8);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 4px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.filter-accordion__item.is-open .filter-accordion__chevron::after {
    transform: rotate(-135deg);
}

.filter-accordion__panel {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.9rem 1rem 1.1rem;
    background: rgba(255,255,255,0.02);
}

.filter-accordion__panel > * + * {
    margin-top: 0.75rem;
}

.filter-accordion__hint {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    text-transform: none;
    letter-spacing: 0.02em;
}

.filter-card__grid--two {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.filter-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-presets__button {
    border: 1px solid var(--control-border);
    background: rgba(26,26,26,0.6);
    color: var(--text-light);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.filter-presets__button:hover {
    border-color: var(--argo-stripe);
    color: var(--argo-stripe);
}

.filter-presets__button--ghost {
    border-style: dashed;
    opacity: 0.7;
}


.filter-multiselect {
    position: relative;
}

.filter-multiselect__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid var(--control-border);
    border-radius: 10px;
    background: var(--control-surface);
    box-shadow: inset 0 0 0 1px var(--control-shadow);
    padding: 0.6rem 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
}

.filter-multiselect__label {
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.95rem;
    font-weight: 600;
}

.filter-multiselect__chevron {
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.filter-multiselect__chevron::before {
    content: "▾";
}

.filter-multiselect.is-open .filter-multiselect__chevron {
    transform: rotate(180deg);
}

.filter-multiselect.is-open .filter-multiselect__trigger {
    border-color: var(--argo-stripe);
}

.filter-multiselect__menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    background: var(--control-surface);
    border: 1px solid var(--control-border);
    box-shadow: 0 16px 40px rgba(0,0,0,0.65), inset 0 0 0 1px var(--control-shadow);
    border-radius: 12px;
    padding: 0.6rem 0.75rem 0.75rem;
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-multiselect__options {
    display: flex;
    flex-direction: column;
    max-height: 240px;
    overflow-y: auto;
    gap: 0.35rem;
}

.filter-multiselect__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.25rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-multiselect__option input {
    accent-color: var(--argo-stripe);
}

.filter-multiselect__option span {
    text-transform: none;
    letter-spacing: normal;
}

.filter-multiselect__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}

.filter-multiselect__menu[hidden] {
    display: none;
}

.filters-card {
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    overflow: hidden;
}

.filters-card[open] {
    border-color: var(--argo-stripe);
}

.filters-card__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.1rem;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-light);
    font-weight: 500;
    background: rgba(255,255,255,0.02);
}

.filters-card__summary::-webkit-details-marker,
.filters-card__summary::marker {
    display: none;
}

.filters-card__summary:focus-visible {
    outline: 2px solid var(--argo-stripe);
    outline-offset: 3px;
    border-radius: 10px;
}

.filters-card__summary-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.filters-card__summary-title {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.95rem;
    font-weight: 600;
}

.filters-card__summary-meta {
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.8rem;
    color: #b7b7b7;
}

.filters-card__chevron {
    width: 1.35rem;
    height: 1.35rem;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: rgba(255,255,255,0.05);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.filters-card__chevron-icon {
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.filters-card[open] .filters-card__chevron {
    border-color: var(--argo-orange);
    background: rgba(215,103,27,0.12);
}

.filters-card[open] .filters-card__chevron-icon {
    transform: rotate(225deg);
}

.filters-card__body {
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.filters-backdrop {
    display: none;
}

.filters-close {
    display: none;
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

label {
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.switch-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(0,0,0,0.25);
}

.switch-field__text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.switch-field__label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.switch-field__description {
    font-size: 0.8rem;
    color: #c0c0c0;
    text-transform: none;
    letter-spacing: normal;
}

.switch {
    --button-width: 3.5em;
    --button-height: 2em;
    --toggle-diameter: 1.5em;
    --button-toggle-offset: calc((var(--button-height) - var(--toggle-diameter)) / 2);
    --toggle-shadow-offset: 10px;
    --toggle-wider: 3em;
    --color-grey: #cccccc;
    --color-green: var(--argo-orange);
}

.switch input[type="checkbox"] {
    display: none;
}

.slider {
    display: inline-block;
    width: var(--button-width);
    height: var(--button-height);
    background-color: var(--color-grey);
    border-radius: calc(var(--button-height) / 2);
    position: relative;
    transition: 0.3s all ease-in-out;
}

.slider::after {
    content: "";
    display: inline-block;
    width: var(--toggle-diameter);
    height: var(--toggle-diameter);
    background-color: #fff;
    border-radius: calc(var(--toggle-diameter) / 2);
    position: absolute;
    top: var(--button-toggle-offset);
    transform: translateX(var(--button-toggle-offset));
    box-shadow: var(--toggle-shadow-offset) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
    transition: 0.3s all ease-in-out;
}

.switch input[type="checkbox"]:checked + .slider {
    background-color: var(--color-green);
}

.switch input[type="checkbox"]:checked + .slider::after {
    transform: translateX(calc(var(--button-width) - var(--toggle-diameter) - var(--button-toggle-offset)));
    box-shadow: calc(var(--toggle-shadow-offset) * -1) 0 calc(var(--toggle-shadow-offset) * 4) rgba(0, 0, 0, 0.1);
}

.switch input[type="checkbox"]:active + .slider::after {
    width: var(--toggle-wider);
}

.switch input[type="checkbox"]:checked:active + .slider::after {
    transform: translateX(calc(var(--button-width) - var(--toggle-wider) - var(--button-toggle-offset)));
}

select,
input[type="number"],
input[type="text"] {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--control-border);
    border-radius: 10px;
    background: var(--control-surface);
    box-shadow: inset 0 0 0 1px var(--control-shadow);
    color: var(--text-light);
    font-size: 1rem;
    letter-spacing: normal;
    text-transform: none;
    appearance: none;
}

select option {
    background: #1a1a1a;
    color: var(--text-light);
}

select option:checked,
select option:hover {
    background: var(--control-accent);
}

.ship-picker {
    gap: 0.5rem;
}

.ship-picker__combo {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ship-picker__input {
    width: 100%;
    text-transform: none;
    letter-spacing: normal;
    font-size: 1rem;
}

.ship-picker__suggestions {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    background: rgba(8,8,12,0.96);
    box-shadow: 0 10px 28px rgba(0,0,0,0.65);
    max-height: 220px;
    overflow-y: auto;
    z-index: 8;
}

.ship-picker__select {
    display: none;
}

.slider-field {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.slider-field__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.slider-field__label {
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.slider-field__value {
    font-weight: 600;
    font-size: 1rem;
}

.slider-field__range {
    width: 100%;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: transparent;
    outline: none;
    cursor: pointer;
    position: relative;
}

.slider-field__range::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--argo-orange), rgba(255,255,255,0.15));
}

.slider-field__range::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--argo-orange), rgba(255,255,255,0.15));
}

.slider-field__range::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--argo-orange);
    border: 2px solid #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.4);
    margin-top: -6px; /* center thumb on 6px track */
}

.slider-field__range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--argo-orange);
    border: 2px solid #000;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.4);
    transform: translateY(-6px); /* Firefox lacks margins; lift to center thumb */
}

.slider-field__hint {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

.exclude-picker {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exclude-picker__combo {
    position: relative;
    border: 1px solid var(--control-border);
    border-radius: 12px;
    background: var(--control-surface);
    box-shadow: inset 0 0 0 1px var(--control-shadow);
    padding: 0.35rem 0.5rem 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-height: 52px;
}

.exclude-picker__input {
    flex: 1 1 160px;
    min-width: 140px;
    text-transform: none;
    letter-spacing: normal;
    font-size: 1rem;
    border: none;
    background: transparent;
    color: var(--text-light);
    padding: 0.35rem 0.25rem;
}

.exclude-picker__input:focus {
    outline: none;
}

.exclude-picker__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.exclude-picker__suggestion,
.ship-picker__suggestion {
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    color: var(--text-light);
}

.exclude-picker__suggestion-title {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ship-picker__suggestion:hover,
.ship-picker__suggestion.is-active {
    background: rgba(255,255,255,0.08);
}

.exclude-picker__suggestion-meta {
    font-size: 0.75rem;
    color: #b5b5b5;
    display: block;
}

.exclude-picker__actions {
    display: flex;
    justify-content: flex-end;
}

.pill-button {
    border: 1px solid rgba(255,255,255,0.35);
    background: transparent;
    color: var(--text-light);
    border-radius: 999px;
    padding: 0.2rem 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    cursor: pointer;
}

.pill-button:hover {
    border-color: var(--argo-stripe);
    color: var(--argo-stripe);
}

.exclude-picker__select {
    display: none;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    background: linear-gradient(135deg, #1d1d27, #13131b);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    font-size: 0.85rem;
}

.chip--summary {
	background: rgba(26,26,26,0.75);
	border-color: rgba(255,255,255,0.22);
	padding: 0.3rem 0.8rem;
}

.chip__remove {
    background: none;
    border: none;
    color: #f0f0f0;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.chip__remove:hover {
    color: var(--argo-stripe);
}

.chip-list__placeholder {
    color: #7d7d7d;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.25rem;
}

.multi-select--tall {
    min-height: 260px;
}

.multi-select optgroup {
    color: var(--argo-stripe);
    font-weight: 600;
    padding: 0.15rem 0;
}

.multi-select optgroup option {
    color: var(--text-light);
    font-weight: 400;
}

.filters__hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #b5b5b5;
    text-transform: none;
    letter-spacing: normal;
}

button[type="submit"] {
    background: repeating-linear-gradient(135deg, var(--argo-orange), var(--argo-orange) 10px, #b25212 10px, #b25212 20px);
    border: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
}

button[type="submit"]:hover {
    filter: brightness(1.1);
}

.note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #b5b5b5;
}

.results {
    background: rgba(0,0,0,0.25);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.quick-filter-inputs {
    display: none;
}

.route-quick-filters {
    margin: 0.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.route-quick-filters__label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
}

.route-quick-filters__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.route-quick-filters__button {
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.route-quick-filters__button.is-active {
    background: var(--argo-orange);
    border-color: var(--argo-orange);
    color: #0a0a0a;
    box-shadow: 0 0 14px rgba(215,103,27,0.4);
}


.route-results {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.pagination__button {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-light);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    cursor: pointer;
}

.pagination__button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination__summary {
    font-size: 0.85rem;
    color: #bdbdbd;
}

/* Shared data table system */
.data-table-wrapper {
    --data-table-surface: rgba(8,8,8,0.75);
    --data-table-border: rgba(255,255,255,0.08);
    --data-table-shadow: 0 18px 35px rgba(0,0,0,0.55);
    border: 1px solid var(--data-table-border);
    border-radius: 12px;
    background: var(--data-table-surface);
    box-shadow: var(--data-table-shadow);
    overflow: auto;
}

.data-table {
    --data-table-min-width: 0;
    --data-table-header-bg: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
    --data-table-header-font-size: 0.75rem;
    --data-table-header-letter-spacing: 0.08em;
    --data-table-header-transform: uppercase;
    --data-table-header-padding: 0.95rem 0.75rem;
    --data-table-header-color: rgba(255,255,255,0.75);
    --data-table-cell-padding: 0.85rem 0.75rem;
    --data-table-row-border: rgba(255,255,255,0.06);
    --data-table-row-alt-bg: rgba(255,255,255,0.015);
    --data-table-row-hover-bg: rgba(255,255,255,0.04);
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: var(--data-table-min-width);
}

.data-table thead tr {
    background: var(--data-table-header-bg);
}

.data-table th {
    text-align: left;
    font-size: var(--data-table-header-font-size);
    letter-spacing: var(--data-table-header-letter-spacing);
    text-transform: var(--data-table-header-transform);
    padding: var(--data-table-header-padding);
    color: var(--data-table-header-color);
    white-space: nowrap;
}

.data-table td {
    padding: var(--data-table-cell-padding);
    border-top: 1px solid var(--data-table-row-border);
    vertical-align: middle;
    overflow: hidden;
}

.data-table tbody tr:nth-child(even) {
    background: var(--data-table-row-alt-bg);
}

.data-table tbody tr:hover {
    background: var(--data-table-row-hover-bg);
}

.data-table__sort {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
    text-transform: inherit;
    letter-spacing: inherit;
    text-align: left;
    text-decoration: none;
}

.data-table__sort:focus-visible {
    outline: 2px solid var(--argo-stripe);
    outline-offset: 3px;
}

.data-table__sort-indicator {
    font-size: 0.85rem;
    color: var(--argo-orange);
    min-width: 1.25rem;
    text-align: left;
    display: inline-block;
}

.data-table__sort-indicator.is-placeholder {
    visibility: hidden;
}

.data-table__numeric {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.route-table-wrapper {
    --data-table-surface: rgba(8,8,8,0.75);
    --data-table-border: rgba(255,255,255,0.08);
    --data-table-shadow: 0 18px 35px rgba(0,0,0,0.55);
}

.route-table {
    --data-table-min-width: 1100px;
}

.route-table th:nth-child(6),
.route-table td:nth-child(6) {
    width: 110px;
    text-align: left;
}

.route-table th:nth-child(7),
.route-table td:nth-child(7) {
    width: 140px;
    text-align: left;
}

.route-table th:nth-child(8),
.route-table td:nth-child(8) {
    width: 110px;
    text-align: left;
}

.route-table th:nth-child(9),
.route-table td:nth-child(9) {
    width: 140px;
    text-align: left;
}

.route-table th:nth-child(10),
.route-table td:nth-child(10) {
    width: 140px;
    text-align: left;
}

.route-table__commodity {
    font-weight: 600;
    letter-spacing: 0.04em;
    min-width: 180px;
}

.route-table__commodity-link {
    color: #d7671b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.route-table__commodity-link:hover {
    color: var(--argo-highlight);
    text-decoration: underline;
}

.route-table__subtext {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
    text-transform: none;
    letter-spacing: normal;
}

.route-table__location {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 180px;
}

.route-table__location-name {
    font-weight: 600;
}

.route-table__location-link {
    color: var(--argo-orange);
    text-decoration: none;
    transition: color 0.15s ease;
}

.route-table__location-link:hover,
.route-table__location-link:focus-visible {
    color: var(--argo-highlight);
    text-decoration: underline;
}

.route-table__numeric {
    text-align: left;
    min-width: 110px;
}

.status-chip {
    --status-color: rgba(255,255,255,0.45);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255,255,255,0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
    border: 1px solid var(--status-color);
}

.status-chip__range {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    text-transform: none;
    letter-spacing: normal;
}

.status-chip--muted {
    opacity: 0.6;
}
.advanced-filters__grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.picker-section {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
}

.picker-section__header {
    padding: 0.6rem 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--argo-stripe);
}

.picker-section__content {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.75rem 0.9rem 0.9rem;
}

.filter-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.filter-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.filter-chip span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.03);
    text-transform: none;
    letter-spacing: 0.02em;
    font-size: 0.85rem;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-chip input:checked + span {
    border-color: var(--argo-stripe);
    background: rgba(255,255,255,0.15);
    color: var(--argo-stripe);
}

.filter-chip__empty {
    margin: 0;
    font-size: 0.85rem;
    color: #a9a9a9;
}

.jurisdiction-select {
    width: 100%;
}

.level-switch {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.level-switch__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.level-switch__option {
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 0.85rem;
    text-align: left;
    cursor: pointer;
    color: var(--text-light);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.level-switch__option.is-active {
    border-color: var(--argo-stripe);
    background: rgba(255,255,255,0.12);
    color: var(--argo-stripe);
}

.level-switch__label {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.level-switch__meta {
    display: block;
    font-size: 0.8rem;
    letter-spacing: normal;
    text-transform: none;
    color: #c2c2c2;
}

.level-switch__clear {
    align-self: flex-start;
    border-color: rgba(255,255,255,0.35);
}

.level-switch__clear.is-active {
    border-color: var(--argo-orange);
    background: var(--argo-orange);
    color: #0a0a0a;
    box-shadow: 0 0 12px rgba(215,103,27,0.35);
}

.location-card {
    background: #181818;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.location-card__title {
    font-size: 0.95rem;
    font-weight: 600;
}

.location-card__system {
    font-size: 0.8rem;
    color: #a9a9a9;
}

.location-card__status {
    margin-top: 0.2rem;
}

.location-card__stat {
    font-size: 0.9rem;
}

.location-card__meta {
    font-size: 0.75rem;
    color: #bdbdbd;
    text-transform: none;
    letter-spacing: normal;
}

.status-badge {
    --status-color: var(--argo-stripe);
    display: inline-flex;
    flex-direction: column;
    gap: 0.1rem;
    background: rgba(255,255,255,0.04);
    border-left: 4px solid var(--status-color);
    border-radius: 6px;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    line-height: 1.2;
}

.status-badge__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

.status-badge__label {
    font-weight: 600;
    color: #ffffff;
}

.status-badge__range {
    font-size: 0.7rem;
    color: #d0d0d0;
}

.market {
    background: var(--argo-panel);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.market__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.market__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b8b8b8;
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
}

.market__title {
    margin: 0;
    font-size: 2rem;
}

.market__description {
    margin: 0.4rem 0 0;
    max-width: 46ch;
    color: #d5d5d5;
}

.market__summary {
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    min-width: 220px;
}

.market__summary-label {
    display: block;
    font-size: 0.75rem;
    color: #bdbdbd;
    margin-bottom: 0.25rem;
}

.market__summary-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.market__form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.market__control {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.market__control select {
    flex: 1 1 260px;
    min-width: 0;
}

.market__submit {
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    border: none;
    background: var(--argo-orange);
    color: #0a0a0a;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.market__table-wrapper {
    --data-table-surface: #141414;
    --data-table-border: rgba(255,255,255,0.08);
    --data-table-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.market-table {
    --data-table-min-width: 800px;
    --data-table-header-bg: rgba(255,255,255,0.04);
    --data-table-header-font-size: 0.8rem;
    --data-table-header-letter-spacing: 0.08em;
    --data-table-header-color: #b6b6b6;
    --data-table-header-padding: 0.85rem 1rem;
    --data-table-cell-padding: 0.85rem 1rem;
    --data-table-row-border: rgba(255,255,255,0.08);
    --data-table-row-alt-bg: rgba(255,255,255,0.02);
    --data-table-row-hover-bg: rgba(255,255,255,0.05);
}

.market-table th:nth-child(1) {
    width: 28%;
}

.market-table th:nth-child(2) {
    width: 15%;
}

.market-table th:nth-child(3) {
    width: 22%;
}

.market-table th:nth-child(4) {
    width: 20%;
    text-align: right;
}

.market-table th:nth-child(5) {
    width: 15%;
}

.market-table__title {
    font-weight: 600;
}

.market-table__meta {
    font-size: 0.8rem;
    color: #b1b1b1;
    text-transform: none;
    letter-spacing: normal;
}

.market-table__price,
.market-table__price-heading {
    text-align: right;
}

.market-table__price {
    font-weight: 700;
}

.market-sort {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    width: 100%;
    white-space: nowrap;
    justify-content: flex-start;
}

.market-sort.is-active {
    color: #ffffff;
}

.market__table-footer {
    margin-top: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.market__results-range {
    font-size: 0.9rem;
    color: #c2c2c2;
}

.market__footer-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.market-sort__label {
    flex: 0 0 auto;
    min-width: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
}

.market-page-size-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}

.market-page-size-form__control {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: normal;
}

.market-page-size-form__control select {
    min-width: 90px;
}

.market-pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.market-pagination__button {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-light);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.market-pagination__button:hover:not(.is-disabled) {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

.market-pagination__button.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.market-pagination__status {
    font-size: 0.85rem;
    color: #bdbdbd;
    white-space: nowrap;
}


@media (max-width: 900px) {
    .market {
        padding: 1.25rem;
    }

    .market__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .market__summary {
        width: 100%;
    }

    .site-nav {
        flex-wrap: wrap;
    }

    .site-nav a {
        padding-bottom: 0.15rem;
    }
}

.placeholder {
    opacity: 0.6;
}

@media (max-width: 900px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header__stats {
        width: 100%;
        margin-left: 0;
        text-align: left;
    }

    .header__stat {
        min-width: 0;
    }

    .content {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .content[data-page="locations"] .locations-controls,
    .content[data-page="locations"] .locations-results {
        grid-column: 1;
    }

    .switch-field {
        align-items: flex-start;
        flex-direction: column;
    }

    .switch {
        align-self: flex-start;
    }

    .filters-toggle {
        display: inline-flex;
        margin: 1rem 0 0.5rem;
    }

    .filters-close {
        display: inline-flex;
    }

    .controls {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(420px, 85vw);
        max-width: 420px;
        z-index: 25;
        overflow-y: auto;
        border-radius: 0;
        transform: translateX(-110%);
        transition: transform 0.3s ease;
    }

    .filters-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.65);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 20;
        display: block;
    }

    body.filters-open .controls {
        transform: translateX(0);
    }

    body.filters-open .filters-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .content {
        gap: 1rem;
    }

    .route-card__header {
        flex-direction: column;
        text-align: left;
    }

    .route-card__profit {
        text-align: left;
    }

}

/* Catalog */

.catalog-view {
    display: contents;
}

.catalog-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

.catalog-controls__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.catalog-controls__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.65);
}

.catalog-controls__lead {
    margin: 0;
    color: rgba(255,255,255,0.75);
}

.catalog-controls__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.catalog-facet-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.catalog-controls__toggles {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.catalog-controls__clear {
    width: 100%;
}

.catalog-panel {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.catalog-panel__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.catalog-results-card {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.catalog-results {
    min-height: 320px;
}

.catalog-hero {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-start;
    justify-content: space-between;
}

.catalog-hero__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.65);
}

.catalog-hero__lead {
    margin-top: 0.5rem;
    max-width: 520px;
    color: #cfcfcf;
}

.catalog-hero__stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    min-width: 240px;
}

.catalog-hero__stats div {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.catalog-hero__stats dt {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.catalog-hero__stats dd {
    margin: 0.25rem 0 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.catalog-search {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-transform: none;
}

.catalog-search__label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.catalog-search input[type="search"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(0,0,0,0.35);
    color: var(--text-light);
    letter-spacing: normal;
}

.catalog-search--wide {
    flex: 1;
}

.catalog-search--compact {
    max-width: 220px;
}

.catalog-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-transform: none;
    min-width: 200px;
}

.catalog-filter__label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.catalog-filter select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    background: rgba(0,0,0,0.35);
    color: var(--text-light);
    letter-spacing: normal;
    cursor: pointer;
}

.catalog-filter select:focus {
    outline: none;
    border-color: var(--argo-orange);
}

.catalog-select {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.9rem;
}

.catalog-select select {
    width: 100%;
}

.catalog-category {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.2);
    color: var(--text-light);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.catalog-category:hover {
    border-color: rgba(255,255,255,0.35);
}

.catalog-category.is-active {
    border-color: var(--argo-orange);
    box-shadow: 0 0 0 1px rgba(215,103,27,0.4);
}

.catalog-category__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.catalog-category__meta {
    margin: 0.15rem 0 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

.catalog-category__count {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.catalog-table__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.catalog-table__eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
}

.catalog-table__count {
    margin: 0;
    color: rgba(255,255,255,0.7);
}

.catalog-table__wrap {
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.catalog-table th,
.catalog-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.catalog-table th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
}

.catalog-item__name {
    font-weight: 600;
    margin: 0;
}

.catalog-item__name-link {
    color: inherit;
    text-decoration: none;
}

.catalog-item__name-link:hover {
    color: var(--argo-highlight);
}

.catalog-item__meta,
.catalog-item__company {
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.catalog-item__vehicle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.catalog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.catalog-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.catalog-item__link {
    margin-left: 0.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--argo-highlight);
    text-decoration: none;
}

.catalog-item__actions {
    text-align: center;
    width: 60px;
}

.catalog-add-to-cart {
    padding: 0.5rem 0.75rem;
    background: rgba(215, 103, 27, 0.15);
    border: 1px solid var(--argo-orange);
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.catalog-add-to-cart:hover:not(:disabled) {
    background: rgba(215, 103, 27, 0.3);
    border-color: var(--argo-highlight);
    transform: scale(1.1);
}

.catalog-add-to-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.item-detail-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.item-detail-results {
    margin-top: 1.5rem;
}

.item-detail__hero {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-detail__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

.item-detail__subtitle {
    margin: 0;
    color: rgba(255,255,255,0.75);
}

.item-detail__tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.item-detail__tag {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.item-detail__footnote {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.item-detail__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.item-detail__card {
    background: rgba(15, 15, 15, 0.85);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem;
    box-shadow: 0 24px 40px rgba(0,0,0,0.45);
}

.item-detail__chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    grid-column: 1 / -1;
}

.item-detail__chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.item-detail__chart-note {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    max-width: 320px;
}

.price-history {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-history__canvas-wrap {
    position: relative;
    width: 100%;
    min-height: 260px;
}

.price-history__canvas-wrap canvas {
    width: 100%;
    height: 260px;
    display: block;
    border-radius: 12px;
    background: rgba(0,0,0,0.3);
}

.price-history__status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    border-radius: 12px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    text-align: center;
    padding: 0 1rem;
}

.price-history__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.price-history__legend-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
}

.price-history__legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

.price-history__legend-swatch--buy {
    background: #ffffff;
}

.price-history__legend-swatch--sell {
    background: #d7671b;
}

.price-history__legend-value {
    font-weight: 700;
}

.price-history__legend-meta {
    margin: 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
}

.item-detail__stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem 1rem;
}

.item-detail__stats div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.item-detail__stats dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.6);
}

.item-detail__stats dd {
    margin: 0;
    font-weight: 600;
}

.item-detail__stats dd a,
.item-detail__link {
    color: var(--argo-orange);
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-detail__stats dd a:hover,
.item-detail__link:hover {
    color: var(--argo-highlight);
    text-decoration: underline;
}

.item-detail__markets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.item-detail__market-card {
    background: rgba(10, 10, 10, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem;
    box-shadow: 0 24px 40px rgba(0,0,0,0.4);
}

.item-detail__table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
}

.item-detail__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.item-detail__table th,
.item-detail__table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
}

.item-detail__table th {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.65);
}

.item-detail__table-price {
    text-align: right;
    white-space: nowrap;
}

.item-detail__terminal {
    font-weight: 600;
}

.item-detail__terminal-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.65);
}

.catalog-pagination__label {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}

.catalog-pagination__button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .catalog-controls__list {
        max-height: none;
    }
    .catalog-facet-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 680px) {
    .catalog-panel {
        padding: 1.25rem;
    }
    .catalog-table__summary {
        flex-direction: column;
        align-items: flex-start;
    }
    .catalog-facet-group {
        flex-direction: column;
    }
    .catalog-controls__toggles {
        flex-direction: column;
        align-items: stretch;
    }
    .catalog-search--compact {
        max-width: none;
    }
}

/* ============================================
   SHOPPING CART
   ============================================ */

/* Cart Badge in Header */
.cart-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(215, 103, 27, 0.15);
    border: 2px solid var(--argo-orange);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-badge:hover {
    background: rgba(215, 103, 27, 0.25);
    border-color: var(--argo-highlight);
}

.cart-badge__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.cart-badge__count {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    min-width: 1.5rem;
    text-align: center;
}

.cart-badge.has-items .cart-badge__count {
    color: var(--argo-orange);
}

@keyframes cart-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cart-badge--pulse {
    animation: cart-pulse 0.6s ease-out;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
}

.cart-drawer[hidden] {
    display: none;
}

.cart-drawer__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.cart-drawer__panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--argo-dark);
    border-left: 2px solid var(--argo-orange);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.5);
    animation: slide-in-right 0.3s ease-out;
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-drawer__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--argo-orange);
}

.cart-drawer__close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cart-drawer__close:hover {
    color: var(--argo-orange);
}

.cart-drawer__location {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.cart-drawer__location-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"].cart-drawer__location-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0,0,0,0.35) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 10px;
    box-shadow: none !important;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

input[type="text"].cart-drawer__location-input:focus {
    outline: none;
    border-color: var(--argo-orange);
}

input[type="text"].cart-drawer__location-input::placeholder {
    color: var(--text-light);
}

.cart-drawer__location-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 2rem;
    right: 2rem;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(20, 20, 25, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.cart-drawer__location-dropdown[hidden] {
    display: none;
}

.cart-drawer__location-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-drawer__location-option:last-child {
    border-bottom: none;
}

.cart-drawer__location-option:hover {
    background: rgba(255, 138, 0, 0.15);
}

.cart-drawer__location-option-name {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
}

.cart-drawer__location-option-hierarchy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

.cart-drawer__content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.cart-drawer__empty {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.cart-drawer__empty p {
    margin: 0 0 0.5rem 0;
}

.cart-drawer__hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.cart-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Cart Item */
.cart-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    transition: background 0.2s;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cart-item__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cart-item__info {
    flex: 1;
    min-width: 0;
}

.cart-item__name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item__meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.cart-item__category,
.cart-item__manufacturer {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-item__remove {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-item__remove:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.5);
    color: #ff4444;
}

.cart-item__routes {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item__routes-loading {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 0.5rem;
}

/* Cart Routes Section */
.cart-drawer__routes {
    padding: 1rem 2rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
}

.cart-drawer__routes-title {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.cart-drawer__routes-loading {
    padding: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.cart-route {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
}

.cart-route:last-child {
    margin-bottom: 0;
}

.cart-route__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-route__strategy {
    font-size: 0.75rem;
    color: var(--argo-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.cart-route__stats {
    display: flex;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.cart-route__stat strong {
    color: var(--text-light);
}

.cart-route__location {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-route__location:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-route__location-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.cart-route__location-hierarchy {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.4rem;
}

.cart-route__items {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0 0;
}

.cart-route__item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.75rem;
}

.cart-route__item-name {
    color: rgba(255, 255, 255, 0.8);
}

.cart-route__item-price {
    color: var(--argo-highlight);
    font-weight: 500;
}

/* Cart Footer */
.cart-drawer__footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
}

.cart-drawer__action {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.cart-drawer__action--secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.cart-drawer__action--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.cart-drawer__action--primary {
    background: var(--argo-orange);
    border: 2px solid var(--argo-orange);
    color: white;
}

.cart-drawer__action--primary:hover:not(:disabled) {
    background: var(--argo-highlight);
    border-color: var(--argo-highlight);
}

.cart-drawer__action--primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cart-drawer__panel {
        max-width: 100%;
    }
    
    .cart-badge {
        padding: 0.4rem 0.75rem;
        font-size: 1rem;
    }
    
    .cart-badge__icon {
        font-size: 1.25rem;
    }
}

/* Shopping Routes Modal */
.shopping-routes-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.shopping-routes-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.shopping-routes-modal__content {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.shopping-routes-modal__header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shopping-routes-modal__header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.shopping-routes-modal__close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.shopping-routes-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.shopping-routes-modal__body {
    padding: 1.5rem;
    overflow-y: auto;
}

.shopping-route {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
}

.shopping-route__header {
    margin-bottom: 1.5rem;
}

.shopping-route__stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.shopping-route__stat {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.shopping-route__stat strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.shopping-route__strategy {
    margin-left: auto;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 138, 0, 0.1);
    border: 1px solid rgba(255, 138, 0, 0.3);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--argo-orange);
}

.shopping-route__locations {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shopping-route__location {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
}

.shopping-route__location-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.shopping-route__stop-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: var(--argo-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.shopping-route__location-info {
    flex: 1;
}

.shopping-route__location-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.shopping-route__location-hierarchy {
    font-size: 0.85rem;
    color: var(--text-light);
}

.shopping-route__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.shopping-route__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.shopping-route__item-name {
    color: var(--text-secondary);
}

.shopping-route__item-price {
    color: var(--argo-orange);
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .shopping-routes-modal__content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .shopping-route__stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .shopping-route__strategy {
        margin-left: 0;
    }
}

