.stlhc-calculator {
    --stlhc-ink: #050505;
    --stlhc-panel: #111111;
    --stlhc-panel-2: #171717;
    --stlhc-muted: #bdbdbd;
    --stlhc-line: #363636;
    --stlhc-gold: #e8a900;
    --stlhc-gold-bright: #ffc31c;
    --stlhc-white: #ffffff;
    color: var(--stlhc-white);
    background: var(--stlhc-ink);
    box-sizing: border-box;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 58px);
    font-family: Arial, Helvetica, sans-serif;
}

.stlhc-calculator *,
.stlhc-calculator *::before,
.stlhc-calculator *::after {
    box-sizing: border-box;
}

.stlhc-calculator button,
.stlhc-calculator a,
.stlhc-calculator h2,
.stlhc-calculator h3,
.stlhc-calculator h4,
.stlhc-calculator p {
    font-family: inherit;
}

.stlhc-calculator__header {
    max-width: 820px;
    margin: 0 0 clamp(24px, 3.4vw, 38px);
}

.stlhc-calculator__eyebrow,
.stlhc-gallery-panel__eyebrow,
.stlhc-summary__eyebrow,
.stlhc-summary__topline p,
.stlhc-total span,
.stlhc-tier__label {
    margin: 0;
    color: var(--stlhc-gold);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.stlhc-calculator h2 {
    margin: 8px 0 11px;
    color: var(--stlhc-white);
    font-size: clamp(2rem, 3.7vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.stlhc-calculator__intro {
    margin: 0;
    color: #d4d4d4;
    font-size: 1rem;
    line-height: 1.62;
}

.stlhc-calculator__layout {
    display: block;
}

.stlhc-explorer,
.stlhc-summary {
    overflow: hidden;
    border: 1px solid var(--stlhc-line);
    border-radius: 3px;
}

.stlhc-explorer {
    background: #0c0c0c;
}

.stlhc-gallery-panel__heading {
    position: relative;
    padding: 26px 30px 23px;
    overflow: hidden;
    border-bottom: 1px solid #856400;
    background:
        linear-gradient(110deg, rgba(232, 169, 0, 0.19), transparent 55%),
        linear-gradient(135deg, #171100, #101010 55%, #0a0a0a);
}

.stlhc-gallery-panel__heading::after {
    position: absolute;
    right: -30px;
    bottom: -100px;
    width: 225px;
    height: 225px;
    border: 1px solid rgba(232, 169, 0, 0.34);
    border-radius: 50%;
    content: '';
}

.stlhc-gallery-panel__heading h3,
.stlhc-summary h3 {
    position: relative;
    z-index: 1;
    margin: 4px 0 5px;
    color: var(--stlhc-white);
    font-size: clamp(1.28rem, 2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.stlhc-gallery-panel__heading > p:last-child {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0;
    color: #e0e0e0;
    font-size: 0.86rem;
    line-height: 1.55;
}

.stlhc-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--stlhc-line);
    background: #131313;
}

.stlhc-filter-bar__label {
    flex: 0 0 auto;
    margin: 0;
    color: #c9c9c9;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.stlhc-filter-list {
    display: flex;
    flex: 1 1 auto;
    gap: 7px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.stlhc-filter {
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 1px solid #4b4b4b;
    border-radius: 999px;
    color: #d6d6d6;
    background: transparent;
    cursor: pointer;
    font-size: 0.74rem;
    line-height: 1.15;
    text-align: left;
    transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
    white-space: nowrap;
}

.stlhc-filter::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 6px 1px 0;
    border: 1px solid #888;
    background: #222;
    content: '';
    vertical-align: middle;
}

.stlhc-filter:hover,
.stlhc-filter.is-active {
    border-color: var(--stlhc-gold);
    color: var(--stlhc-gold-bright);
}

.stlhc-filter.is-active {
    background: rgba(232, 169, 0, 0.1);
}

.stlhc-filter.is-active::before {
    border-color: var(--stlhc-gold);
    background: var(--stlhc-gold);
}

.stlhc-clear-filter,
.stlhc-clear,
.stlhc-remove {
    border: 0;
    padding: 0;
    color: #bcbcbc;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.stlhc-clear-filter:hover:not(:disabled),
.stlhc-clear:hover:not(:disabled),
.stlhc-remove:hover {
    color: var(--stlhc-gold-bright);
}

.stlhc-clear-filter:disabled,
.stlhc-clear:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.stlhc-feature-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
}

.stlhc-feature-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 254px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #535353;
    border-radius: 2px;
    background: #151515;
}

.stlhc-feature-card::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.48) 38%, rgba(0, 0, 0, 0.88) 100%),
        linear-gradient(135deg, rgba(232, 169, 0, 0.2), transparent 48%),
        var(--stlhc-card-image);
    background-position: var(--stlhc-card-position, center);
    background-size: var(--stlhc-card-size, cover);
    content: '';
}

.stlhc-feature-card:nth-child(3n + 2)::before {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.49) 38%, rgba(0, 0, 0, 0.88) 100%),
        linear-gradient(135deg, rgba(161, 78, 13, 0.28), transparent 48%),
        var(--stlhc-card-image);
}

.stlhc-feature-card:nth-child(3n)::before {
    background-image:
        linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.47) 38%, rgba(0, 0, 0, 0.88) 100%),
        linear-gradient(135deg, rgba(232, 169, 0, 0.15), transparent 48%),
        var(--stlhc-card-image);
}

.stlhc-feature-card > * {
    position: relative;
    z-index: 1;
}

.stlhc-feature-card__header {
    min-height: 132px;
    padding: 16px 15px 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.stlhc-feature-card__number {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--stlhc-gold-bright);
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.stlhc-feature-card h4 {
    margin: 0;
    color: var(--stlhc-white);
    font-size: clamp(0.96rem, 1.4vw, 1.12rem);
    font-weight: 800;
    letter-spacing: -0.018em;
    line-height: 1.1;
    text-shadow: 0 2px 6px #000;
}

.stlhc-tier-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 12px 9px;
    background: rgba(0, 0, 0, 0.38);
}

.stlhc-tier {
    min-width: 0;
    min-height: 44px;
    padding: 6px 3px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 1px;
    color: var(--stlhc-white);
    background: rgba(0, 0, 0, 0.39);
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.stlhc-tier:hover {
    border-color: var(--stlhc-gold-bright);
    transform: translateY(-1px);
}

.stlhc-tier.is-selected {
    border-color: var(--stlhc-gold-bright);
    color: var(--stlhc-ink);
    background: var(--stlhc-gold-bright);
}

.stlhc-tier__label,
.stlhc-tier__value {
    display: block;
}

.stlhc-tier__label {
    color: currentColor;
    font-size: 0.42rem !important;
    font-weight: 800;
    letter-spacing: 0.05em;
    opacity: 0.84;
}

.stlhc-tier__value {
    margin-top: 3px;
    color: currentColor;
    font-size: clamp(0.5rem, 0.66vw, 0.57rem) !important;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.stlhc-add-feature {
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    border: 0;
    border-top: 1px solid #6e5100;
    color: var(--stlhc-ink);
    background: var(--stlhc-gold);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    transition: background-color 150ms ease;
}

.stlhc-add-feature:hover:not(:disabled) {
    background: var(--stlhc-gold-bright);
}

.stlhc-add-feature:disabled {
    cursor: not-allowed;
    color: #8b710f;
    background: #5a4a14;
}

.stlhc-status {
    min-height: 34px;
    padding: 0 20px 20px;
    margin: 0;
    color: var(--stlhc-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.stlhc-summary {
    display: grid;
    grid-template-columns: minmax(210px, 0.9fr) minmax(210px, 0.82fr) minmax(240px, 1.2fr) minmax(220px, 0.95fr);
    gap: 25px;
    align-items: center;
    margin-top: 20px;
    padding: 27px clamp(20px, 3vw, 34px);
    background:
        linear-gradient(115deg, rgba(232, 169, 0, 0.14), transparent 37%),
        var(--stlhc-panel);
}

.stlhc-summary__intro h3 {
    margin-top: 5px;
    font-size: clamp(1.22rem, 2vw, 1.7rem);
}

.stlhc-summary__copy {
    margin: 8px 0 0;
    color: #c8c8c8;
    font-size: 0.83rem;
    line-height: 1.5;
}

.stlhc-total {
    padding: 7px 0;
}

.stlhc-total__amount {
    display: block;
    margin-top: 5px;
    color: var(--stlhc-white);
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
}

.stlhc-summary__items {
    padding: 0 25px;
    border-right: 1px solid var(--stlhc-line);
    border-left: 1px solid var(--stlhc-line);
}

.stlhc-summary__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--stlhc-line);
}

.stlhc-selected-list {
    max-height: 150px;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    list-style: none;
}

.stlhc-selected-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #2a2a2a;
}

.stlhc-selected-list li:last-child {
    border-bottom: 0;
}

.stlhc-selected-item__name,
.stlhc-selected-item__range {
    display: block;
}

.stlhc-selected-item__name {
    color: var(--stlhc-white);
    font-size: 0.86rem;
    font-weight: 700;
}

.stlhc-selected-item__range {
    margin-top: 3px;
    color: var(--stlhc-gold);
    font-size: 0.76rem;
    font-weight: 700;
}

.stlhc-empty-state {
    display: block !important;
    padding: 16px 0 !important;
    color: #a9a9a9;
    font-size: 0.83rem;
    line-height: 1.45;
    text-align: center;
}

.stlhc-disclaimer {
    margin: 0 0 14px;
    color: #bfbfbf;
    font-size: 0.78rem;
    line-height: 1.48;
}

.stlhc-contact-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 0;
    padding: 15px 18px !important;
    border: 1px solid var(--stlhc-gold) !important;
    border-radius: 5px;
    color: var(--stlhc-ink) !important;
    background: var(--stlhc-gold) !important;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.22);
    font-size: 0.79rem !important;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.stlhc-contact-button:hover {
    border-color: var(--stlhc-gold-bright) !important;
    background: var(--stlhc-gold-bright) !important;
    box-shadow: 0 10px 20px rgba(232, 169, 0, 0.22);
    transform: translateY(-2px);
}

.stlhc-contact-button span {
    font-size: 1.2rem;
}

.stlhc-calculator button:focus-visible,
.stlhc-calculator a:focus-visible {
    outline: 3px solid var(--stlhc-gold-bright);
    outline-offset: 3px;
}

@media (max-width: 1230px) {
    .stlhc-feature-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stlhc-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stlhc-summary__items {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 800px) {
    .stlhc-feature-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stlhc-filter-bar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .stlhc-filter-list {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }

    .stlhc-feature-card {
        min-height: 235px;
    }
}

@media (max-width: 560px) {
    .stlhc-calculator {
        padding: 24px 15px;
    }

    .stlhc-gallery-panel__heading {
        padding: 21px 18px;
    }

    .stlhc-filter-bar {
        gap: 9px;
        padding: 13px 15px;
    }

    .stlhc-filter-bar__label {
        width: 100%;
    }

    .stlhc-feature-gallery {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .stlhc-feature-card {
        min-height: 228px;
    }

    .stlhc-feature-card__header {
        min-height: 112px;
    }

    .stlhc-tier__value {
        font-size: 0.58rem !important;
    }

    .stlhc-summary {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 23px 20px;
    }

    .stlhc-summary__items {
        padding: 20px 0;
        border-top: 1px solid var(--stlhc-line);
        border-right: 0;
        border-bottom: 1px solid var(--stlhc-line);
    }
}

/* Mobile image-priority treatment for the Water Features source photo. */
@media (max-width: 560px) {
    .stlhc-feature-card--water-features::before {
        background-position: center 100% !important;
        background-size: auto 124% !important;
        background-image:
            linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0.72) 100%),
            linear-gradient(135deg, rgba(232, 169, 0, 0.10), transparent 52%),
            var(--stlhc-card-image) !important;
    }
}
