.hscqh-container {
    --hscqh-ink: #13213a;
    --hscqh-muted: #65748b;
    --hscqh-line: #dbe4ef;
    --hscqh-brand: #00a99d;
    --hscqh-danger: #ef4444;
    --hscqh-glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.34));
    --hscqh-glass-border: rgba(255, 255, 255, 0.54);
    --hscqh-glass-shadow: 0 18px 48px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.58);
    position: relative;
    min-height: var(--hscqh-map-height, 720px);
    border: 1px solid var(--hscqh-line);
    border-radius: 18px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.hscqh-container *,
.hscqh-container *::before,
.hscqh-container *::after {
    box-sizing: border-box;
}

.hscqh-container input,
.hscqh-container select,
.hscqh-container button {
    font: inherit;
}

.hscqh-map {
    width: 100%;
    height: var(--hscqh-map-height, 720px);
    min-height: 520px;
    background: #eef2f7;
    z-index: 1;
}

.hscqh-toolbar {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 390px;
    z-index: 700;
    display: flex;
    gap: 12px;
    align-items: stretch;
    pointer-events: none;
}

.hscqh-search,
.hscqh-provider-select,
.hscqh-parcel-card,
.hscqh-bottom-bar,
.hscqh-panel,
.hscqh-legend {
    pointer-events: auto;
}

.hscqh-search {
    display: flex;
    flex: 1;
    min-width: 260px;
    height: 58px;
    background: var(--hscqh-glass-bg);
    border: 1px solid var(--hscqh-glass-border);
    border-radius: 999px;
    box-shadow: var(--hscqh-glass-shadow);
    overflow: hidden;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.hscqh-search input {
    width: 100%;
    height: 100% !important;
    min-height: 0 !important;
    display: block;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    color: var(--hscqh-ink);
    font-size: 15px;
    line-height: 1.2;
    margin: 0 !important;
    padding: 0 18px;
    appearance: none;
}

.hscqh-search button,
#hscqh-legend-toggle {
    min-height: 0;
    border: 0;
    background: var(--hscqh-brand);
    color: #fff;
    font-weight: 800;
    padding: 0 22px;
    cursor: pointer;
    white-space: nowrap;
}

.hscqh-search button {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    line-height: 1;
}

.hscqh-search button:hover,
#hscqh-legend-toggle:hover {
    background: #008f84;
}

.hscqh-provider-select {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 58px;
    background: var(--hscqh-glass-bg);
    border: 1px solid var(--hscqh-glass-border);
    border-radius: 999px;
    padding: 6px 12px 6px 16px;
    box-shadow: var(--hscqh-glass-shadow);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.hscqh-provider-select label {
    margin: 0;
    color: var(--hscqh-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

.hscqh-provider-select select {
    min-width: 150px;
    height: 44px;
    min-height: 0;
    border: 0;
    background: transparent;
    color: var(--hscqh-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    margin: 0 !important;
    padding: 0 8px;
    outline: 0;
    box-shadow: none !important;
}

.hscqh-parcel-card {
    position: absolute;
    top: 88px;
    left: 18px;
    z-index: 695;
    width: min(760px, calc(100% - 426px));
    color: var(--hscqh-ink);
}

.hscqh-parcel-card[hidden] {
    display: none;
}

.hscqh-parcel-card__toggle {
    min-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hscqh-glass-border);
    border-radius: 999px;
    background: var(--hscqh-glass-bg);
    box-shadow: var(--hscqh-glass-shadow);
    color: var(--hscqh-ink);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    margin: 0 !important;
    padding: 14px 18px;
    cursor: pointer;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.hscqh-parcel-card__toggle.is-open {
    background: var(--hscqh-ink);
    color: #fff;
}

.hscqh-parcel-form {
    display: grid;
    grid-template-columns: minmax(168px, 1.15fr) minmax(168px, 1.15fr) minmax(92px, 0.65fr) minmax(92px, 0.65fr) minmax(112px, auto);
    gap: 10px;
    align-items: end;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--hscqh-glass-border);
    border-radius: 16px;
    background: var(--hscqh-glass-bg);
    box-shadow: var(--hscqh-glass-shadow);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.hscqh-parcel-form[hidden] {
    display: none;
}

.hscqh-parcel-form [hidden] {
    display: none !important;
}

.hscqh-parcel-mode {
    grid-column: 1 / -1;
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    padding: 4px;
    border: 1px solid rgba(219, 228, 239, 0.8);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

.hscqh-parcel-mode button {
    height: 34px;
    min-height: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--hscqh-muted);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    margin: 0 !important;
    padding: 0 14px;
    cursor: pointer;
    white-space: nowrap;
}

.hscqh-parcel-mode button.is-active {
    background: var(--hscqh-ink);
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.hscqh-parcel-form label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: var(--hscqh-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.hscqh-parcel-form select,
.hscqh-parcel-form input {
    width: 100%;
    height: 42px !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 1px solid var(--hscqh-line) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: none !important;
    color: var(--hscqh-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    padding: 0 12px;
    outline: 0;
    text-overflow: ellipsis;
}

.hscqh-parcel-form button[type="submit"] {
    width: 100%;
    min-width: 112px;
    height: 42px;
    min-height: 0;
    border: 0;
    border-radius: 12px;
    background: var(--hscqh-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    margin: 0 !important;
    padding: 0 16px;
    cursor: pointer;
    white-space: nowrap;
}

.hscqh-parcel-status {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--hscqh-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.hscqh-parcel-status.is-error {
    color: #dc2626;
}

.hscqh-panel {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 690;
    width: 350px;
    height: 440px;
    max-height: calc(var(--hscqh-map-height, 720px) - 36px);
    display: flex;
    flex-direction: column;
    background: var(--hscqh-glass-bg);
    border: 1px solid var(--hscqh-glass-border);
    border-radius: 24px;
    box-shadow: var(--hscqh-glass-shadow);
    overflow: hidden;
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
}

.hscqh-panel.is-collapsed .hscqh-panel__body {
    display: none;
}

.hscqh-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    color: var(--hscqh-ink);
    border-bottom: 1px solid rgba(219, 228, 239, 0.72);
    background: rgba(255, 255, 255, 0.3);
}

.hscqh-panel__header strong {
    font-size: 18px;
}

.hscqh-panel__close {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.78);
    color: var(--hscqh-ink);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.hscqh-panel__tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 10px;
    border-bottom: 1px solid rgba(219, 228, 239, 0.56);
    background: rgba(255, 255, 255, 0.18);
}

.hscqh-panel__tabs button {
    min-width: 0;
    min-height: 0;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--hscqh-muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    margin: 0 !important;
    padding: 0 8px;
    cursor: pointer;
    white-space: nowrap;
}

.hscqh-panel__tabs button.is-active {
    border-color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.68);
    color: var(--hscqh-ink);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.hscqh-panel__body {
    padding: 18px;
    overflow: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(101, 116, 139, 0.35) transparent;
}

.hscqh-panel__section {
    display: none;
}

.hscqh-panel__section.is-active {
    display: block;
}

.hscqh-panel__body::-webkit-scrollbar,
.hscqh-legend::-webkit-scrollbar,
.hscqh-container .leaflet-control-layers-list::-webkit-scrollbar {
    width: 6px;
}

.hscqh-panel__body::-webkit-scrollbar-thumb,
.hscqh-legend::-webkit-scrollbar-thumb,
.hscqh-container .leaflet-control-layers-list::-webkit-scrollbar-thumb {
    background: rgba(101, 116, 139, 0.35);
    border-radius: 999px;
}

.hscqh-muted,
.hscqh-note {
    color: var(--hscqh-muted);
    font-size: 14px;
    line-height: 1.55;
}

.hscqh-note {
    margin: 16px 0 0;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 247, 237, 0.72);
    color: #9a3412;
}

.hscqh-info-list {
    margin: 0;
}

.hscqh-info-list > div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

.hscqh-info-list dt {
    color: var(--hscqh-muted);
    font-size: 13px;
    font-weight: 800;
}

.hscqh-info-list dd {
    margin: 0;
    color: var(--hscqh-ink);
    font-size: 14px;
    font-weight: 700;
}

.hscqh-parcel-result {
    margin-top: 16px;
}

.hscqh-identify-result {
    margin-top: 14px;
}

.hscqh-identify-result:empty {
    display: none;
}

.hscqh-identify-card {
    padding: 12px;
    border: 1px solid rgba(238, 242, 247, 0.78);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
}

.hscqh-identify-card h4 {
    margin: 0 0 10px;
    color: var(--hscqh-ink);
    font-size: 15px;
    font-weight: 900;
}

.hscqh-identify-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
}

.hscqh-identify-card__head h4 {
    margin: 0;
}

.hscqh-identify-card dl {
    margin: 0 0 10px;
}

.hscqh-identify-card dl > div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(238, 242, 247, 0.78);
}

.hscqh-identify-card dl > div:last-child {
    border-bottom: 0;
}

.hscqh-identify-card dt {
    color: var(--hscqh-muted);
    font-size: 12px;
    font-weight: 900;
}

.hscqh-identify-card dd {
    margin: 0;
    color: var(--hscqh-ink);
    font-size: 13px;
    font-weight: 800;
}

.hscqh-identify-features {
    margin: 12px 0;
}

.hscqh-identify-features h4 {
    margin-top: 0;
}

.hscqh-identify-feature {
    margin: 0 0 10px;
    padding: 8px 10px;
    border: 1px solid rgba(219, 228, 239, 0.72);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.36);
}

.hscqh-identify-feature__badge {
    display: flex !important;
    justify-content: flex-end;
    grid-template-columns: 1fr !important;
    padding-top: 0 !important;
}

.hscqh-identify-feature:last-child {
    margin-bottom: 0;
}

.hscqh-parcel-result:empty {
    display: none;
}

.hscqh-parcel-result h4 {
    margin: 0 0 10px;
    color: var(--hscqh-ink);
    font-size: 15px;
    font-weight: 900;
}

.hscqh-parcel-result dl {
    margin: 0 0 14px;
    border: 1px solid rgba(238, 242, 247, 0.78);
    border-radius: 12px;
    overflow: hidden;
}

.hscqh-parcel-result dl > div {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
}

.hscqh-parcel-result dl > div:last-child {
    border-bottom: 0;
}

.hscqh-parcel-result dt {
    color: var(--hscqh-muted);
    font-size: 12px;
    font-weight: 900;
}

.hscqh-parcel-result dd {
    margin: 0;
    color: var(--hscqh-ink);
    font-size: 13px;
    font-weight: 800;
}

.hscqh-parcel-result ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hscqh-parcel-result li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    color: var(--hscqh-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    border-bottom: 1px solid #eef2f7;
}

.hscqh-parcel-result li span {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 3px;
    border-radius: 4px;
    background: var(--hscqh-plan-color, #94a3b8);
}

.hscqh-map-layer-control {
    position: absolute;
    left: 18px;
    bottom: 86px;
    z-index: 680;
    width: 268px;
    max-width: calc(100% - 420px);
    padding: 14px;
    border: 1px solid var(--hscqh-glass-border);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(19, 71, 43, 0.38), rgba(16, 78, 54, 0.2));
    box-shadow: var(--hscqh-glass-shadow);
    color: #fff;
    pointer-events: auto;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.hscqh-container.is-street-base .hscqh-map-layer-control {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28));
    color: var(--hscqh-ink);
}

.hscqh-map-layer-control label {
    min-height: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: inherit;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
}

.hscqh-map-layer-control input[type="radio"],
.hscqh-map-layer-control input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px !important;
    height: 16px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hscqh-map-layer-control__base,
.hscqh-map-layer-control__overlays {
    display: grid;
    gap: 8px;
}

.hscqh-map-layer-control__divider {
    height: 1px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.62);
}

.hscqh-container.is-street-base .hscqh-map-layer-control__divider {
    background: rgba(19, 33, 58, 0.18);
}

.hscqh-map-layer-control__opacity {
    margin-top: 12px;
}

.hscqh-map-layer-control__opacity input {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0 !important;
    padding: 0;
}

.hscqh-map-layer-control__empty {
    margin: 0;
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    opacity: 0.82;
}

.hscqh-bottom-bar {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 680;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 0;
    background: transparent;
    border: 0;
    border-radius: 999px;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hscqh-opacity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hscqh-opacity label {
    margin: 0;
    color: var(--hscqh-ink);
    font-size: 13px;
    font-weight: 800;
}

.hscqh-opacity input {
    width: 150px;
    height: auto;
    min-height: 0;
    margin: 0 !important;
    padding: 0;
}

#hscqh-legend-toggle {
    height: 44px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    line-height: 1;
    margin: 0 !important;
    box-shadow: 0 14px 28px rgba(0, 169, 157, 0.22);
}

.hscqh-legend {
    position: absolute;
    left: 18px;
    bottom: 78px;
    z-index: 685;
    width: 330px;
    max-height: 360px;
    overflow: auto;
    background: var(--hscqh-glass-bg);
    border: 1px solid var(--hscqh-glass-border);
    border-radius: 18px;
    box-shadow: var(--hscqh-glass-shadow);
    padding: 14px;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.hscqh-legend__title {
    color: var(--hscqh-ink);
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 10px;
}

.hscqh-legend__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--hscqh-ink);
    font-size: 13px;
    line-height: 1.35;
    padding: 6px 0;
}

.hscqh-legend__item span {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(15, 23, 42, 0.14);
}

.hscqh-legend__image {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.hscqh-nearby-projects {
    margin-top: 16px;
}

.hscqh-nearby-projects h4 {
    margin: 0 0 10px;
    color: var(--hscqh-ink);
    font-size: 15px;
}

.hscqh-nearby-project {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
    color: var(--hscqh-ink);
    text-decoration: none;
}

.hscqh-nearby-project span {
    font-size: 14px;
    font-weight: 800;
}

.hscqh-nearby-project small {
    color: var(--hscqh-muted);
    white-space: nowrap;
}

.hscqh-popup {
    width: 190px;
}

.hscqh-popup img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.hscqh-popup strong,
.hscqh-popup span,
.hscqh-popup a {
    display: block;
}

.hscqh-popup strong {
    color: var(--hscqh-ink);
    font-size: 14px;
    line-height: 1.35;
}

.hscqh-popup span {
    color: var(--hscqh-danger);
    font-weight: 900;
    margin-top: 4px;
}

.hscqh-popup a {
    color: var(--hscqh-brand);
    font-weight: 800;
    margin-top: 6px;
    text-decoration: none;
}

.hscqh-container .leaflet-control-layers {
    margin-left: 18px;
    margin-bottom: 104px;
    border: 1px solid var(--hscqh-glass-border);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(19, 71, 43, 0.42), rgba(16, 78, 54, 0.26));
    box-shadow: var(--hscqh-glass-shadow);
    overflow: hidden;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.hscqh-container.is-street-base .leaflet-control-layers {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.36));
}

.hscqh-container.is-satellite-base .leaflet-control-layers {
    background: linear-gradient(135deg, rgba(19, 71, 43, 0.42), rgba(16, 78, 54, 0.26));
}

.hscqh-container .leaflet-control-layers-expanded {
    padding: 10px 12px;
    background: transparent;
}

.hscqh-container .leaflet-control-layers-list {
    max-height: 310px;
    overflow: auto;
}

.hscqh-container .leaflet-control-layers label {
    margin-bottom: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.hscqh-container .leaflet-control-layers-base,
.hscqh-container .leaflet-control-layers-overlays,
.hscqh-container .leaflet-control-layers-selector + span {
    color: #fff;
}

.hscqh-container .leaflet-control-layers-separator {
    border-top-color: rgba(255, 255, 255, 0.68);
}

.hscqh-container.is-street-base .leaflet-control-layers label,
.hscqh-container.is-street-base .leaflet-control-layers-base,
.hscqh-container.is-street-base .leaflet-control-layers-overlays,
.hscqh-container.is-street-base .leaflet-control-layers-selector + span {
    color: var(--hscqh-ink);
}

.hscqh-container.is-street-base .leaflet-control-layers-separator {
    border-top-color: rgba(19, 33, 58, 0.22);
}

.hscqh-container.is-satellite-base .leaflet-control-layers label,
.hscqh-container.is-satellite-base .leaflet-control-layers-base,
.hscqh-container.is-satellite-base .leaflet-control-layers-overlays,
.hscqh-container.is-satellite-base .leaflet-control-layers-selector + span {
    color: #fff;
}

@media (max-width: 900px) {
    .hscqh-container {
        min-height: 680px;
        border-radius: 14px;
    }

    .hscqh-map {
        height: 680px;
        min-height: 680px;
    }

    .hscqh-toolbar {
        top: 12px;
        left: 12px;
        right: 12px;
        flex-direction: column;
    }

    .hscqh-parcel-card {
        top: 144px;
        left: 12px;
        right: 12px;
        width: auto;
    }

    .hscqh-parcel-card__toggle {
        width: 100%;
        border-radius: 14px;
    }

    .hscqh-parcel-form {
        grid-template-columns: 1fr 1fr;
    }

    .hscqh-parcel-mode {
        width: 100%;
    }

    .hscqh-parcel-mode button {
        flex: 1;
        padding: 0 10px;
    }

    .hscqh-parcel-form button[type="submit"],
    .hscqh-parcel-status {
        grid-column: 1 / -1;
    }

    .hscqh-search,
    .hscqh-provider-select {
        border-radius: 14px;
    }

    .hscqh-panel {
        top: auto;
        left: 10px;
        right: 10px;
        bottom: 76px;
        height: min(440px, 42%);
        width: auto;
        max-height: 42%;
        border-radius: 16px;
    }

    .hscqh-map-layer-control {
        left: 10px;
        bottom: 72px;
        width: 300px;
        max-width: calc(100% - 20px);
    }

    .hscqh-bottom-bar {
        left: auto;
        right: 10px;
        bottom: 10px;
        justify-content: space-between;
    }

    .hscqh-opacity input {
        width: 100px;
    }

    .hscqh-legend {
        left: 10px;
        right: 10px;
        bottom: 76px;
        width: auto;
    }

    .hscqh-container .leaflet-control-layers {
        max-width: calc(100vw - 28px);
        margin-left: 10px;
        margin-bottom: 92px;
    }
}

@media (max-width: 560px) {
    .hscqh-container {
        min-height: 720px;
    }

    .hscqh-map {
        height: 720px;
        min-height: 720px;
    }

    .hscqh-search {
        height: 52px;
    }

    .hscqh-search button {
        padding: 0 18px;
    }

    .hscqh-provider-select {
        height: 52px;
        width: 100%;
        justify-content: space-between;
    }

    .hscqh-provider-select select {
        min-width: 0;
        flex: 1;
        text-align: right;
    }

    .hscqh-parcel-card {
        top: 136px;
    }

    .hscqh-parcel-form {
        grid-template-columns: 1fr;
        max-height: 330px;
        overflow: auto;
    }

    .hscqh-parcel-mode,
    .hscqh-parcel-form button[type="submit"],
    .hscqh-parcel-status {
        grid-column: auto;
    }

    .hscqh-panel {
        bottom: 72px;
        height: min(390px, 46%);
        max-height: 46%;
    }

    .hscqh-map-layer-control {
        width: calc(100% - 20px);
        bottom: 66px;
        padding: 12px;
    }

    .hscqh-map-layer-control__base,
    .hscqh-map-layer-control__overlays {
        grid-template-columns: 1fr 1fr;
        gap: 8px 10px;
    }

    .hscqh-map-layer-control label {
        font-size: 12px;
    }

    .hscqh-bottom-bar {
        min-height: 0;
        padding: 0;
    }

    .hscqh-opacity label {
        display: none;
    }

    .hscqh-container .leaflet-control-layers {
        margin-bottom: 88px;
    }

    .hscqh-container .leaflet-control-layers-list {
        max-height: 260px;
    }
}
