﻿.blueprint-maps-shell {
    --bg-color: #0f1115;
    --sidebar-bg: #15181e;
    --sidebar-border: rgba(255, 255, 255, 0.05);
    --text-primary: #f0f0f0;
    --text-secondary: #9ba1a6;
    --accent: #ff6b35;
    --accent-hover: #e45b29;
    --accent-glow: rgba(255, 107, 53, 0.4);
    --rarity-legendary: #ffd700;
    --rarity-epic: #a335ee;
    --rarity-rare: #0070dd;
    --rarity-uncommon: #2fd36b;
    --rarity-common: #b0b0b0;
    --glass-bg: rgba(21, 24, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius-lg: 16px;
    --radius-md: 8px;
    --radius-sm: 4px;
}

.blueprint-maps-shell,
.blueprint-maps-shell *,
.blueprint-maps-shell *::before,
.blueprint-maps-shell *::after {
    box-sizing: border-box;
}

.blueprint-maps-page {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
}

.blueprint-maps-page .main-content {
    padding: 0;
    min-height: auto;
    overflow: visible;
}

.blueprint-maps-shell .page-shell {
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.blueprint-maps-shell .app-container {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    position: relative;
}

.blueprint-maps-shell .mobile-sidebar-toggle,
.blueprint-maps-shell .sidebar-backdrop,
.blueprint-maps-shell .sidebar-mobile-header {
    display: none;
}

.blueprint-maps-shell .sidebar {
    width: 320px;
    min-width: 320px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: min(78vh, 960px);
    min-height: 640px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.blueprint-maps-shell .sidebar-mobile-header {
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--sidebar-border);
    background: rgba(10, 12, 16, 0.96);
    position: sticky;
    top: 0;
    z-index: 3;
}

.blueprint-maps-shell .sidebar-mobile-header span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 700;
}

.blueprint-maps-shell .sidebar-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.blueprint-maps-shell .logo-container {
    padding: 24px;
    border-bottom: 1px solid var(--sidebar-border);
}

.blueprint-maps-shell .logo-container h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    letter-spacing: -0.5px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.blueprint-maps-shell .logo-container h1 span {
    color: var(--accent);
}

.blueprint-maps-shell .logo-container .subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blueprint-maps-shell .filter-section {
    padding: 24px;
    border-bottom: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blueprint-maps-shell .filter-section h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin: 0 0 4px;
}

.blueprint-maps-shell .map-selector,
.blueprint-maps-shell .layer-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blueprint-maps-shell .map-select-container select,
.blueprint-maps-shell .condition-container select {
    width: 100%;
    padding: 12px 14px;
    background: #11151b;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
}

.blueprint-maps-shell .map-select-container select:focus,
.blueprint-maps-shell .condition-container select:focus,
.blueprint-maps-shell .search-container input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(41, 121, 255, 0.15);
}

.blueprint-maps-shell .map-select-container select option,
.blueprint-maps-shell .condition-container select option {
    background: #11151b;
    color: #fff;
}

.blueprint-maps-shell .map-btn,
.blueprint-maps-shell .layer-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blueprint-maps-shell .map-btn:hover,
.blueprint-maps-shell .layer-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.blueprint-maps-shell .map-btn.active,
.blueprint-maps-shell .layer-btn.active {
    background: rgba(41, 121, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.blueprint-maps-shell .layer-overlay {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1000;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
    background: rgba(15, 17, 21, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.blueprint-maps-shell .layer-overlay .layer-btn {
    min-width: 88px;
    justify-content: center;
    text-align: center;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.03);
}

.blueprint-maps-shell .hidden {
    display: none !important;
}

.blueprint-maps-shell .search-container input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.blueprint-maps-shell .blueprint-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-right: -10px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 220px;
    max-height: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.blueprint-maps-shell .sidebar::-webkit-scrollbar,
.blueprint-maps-shell .blueprint-list::-webkit-scrollbar,
.blueprint-maps-shell .popup-blueprint-list-extra::-webkit-scrollbar,
.blueprint-maps-shell .popup-chip-list-extra::-webkit-scrollbar {
    width: 6px;
}

.blueprint-maps-shell .sidebar::-webkit-scrollbar-track,
.blueprint-maps-shell .blueprint-list::-webkit-scrollbar-track,
.blueprint-maps-shell .popup-blueprint-list-extra::-webkit-scrollbar-track,
.blueprint-maps-shell .popup-chip-list-extra::-webkit-scrollbar-track {
    background: transparent;
}

.blueprint-maps-shell .sidebar::-webkit-scrollbar-thumb,
.blueprint-maps-shell .blueprint-list::-webkit-scrollbar-thumb,
.blueprint-maps-shell .popup-blueprint-list-extra::-webkit-scrollbar-thumb,
.blueprint-maps-shell .popup-chip-list-extra::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.blueprint-maps-shell .sidebar::-webkit-scrollbar-thumb:hover,
.blueprint-maps-shell .blueprint-list::-webkit-scrollbar-thumb:hover,
.blueprint-maps-shell .popup-blueprint-list-extra::-webkit-scrollbar-thumb:hover,
.blueprint-maps-shell .popup-chip-list-extra::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
}

.blueprint-maps-shell .bp-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blueprint-maps-shell .bp-item.summary-item {
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
    min-height: 58px;
}

.blueprint-maps-shell .bp-item.summary-item .bp-main {
    flex: 1;
    min-width: 0;
    gap: 4px;
}

.blueprint-maps-shell .bp-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.blueprint-maps-shell .bp-meta {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.blueprint-maps-shell .bp-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.blueprint-maps-shell .bp-item.active {
    background: rgba(255, 255, 255, 0.08);
}

.blueprint-maps-shell .bp-item .bp-name {
    font-size: 14px;
    font-weight: 500;
}

.blueprint-maps-shell .bp-item .bp-count {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 10px;
}

.blueprint-maps-shell .bp-item.legendary { border-left-color: var(--rarity-legendary); }
.blueprint-maps-shell .bp-item.legendary.active { background: rgba(255, 215, 0, 0.1); }
.blueprint-maps-shell .bp-item.epic { border-left-color: var(--rarity-epic); }
.blueprint-maps-shell .bp-item.epic.active { background: rgba(163, 53, 238, 0.1); }
.blueprint-maps-shell .bp-item.rare { border-left-color: var(--rarity-rare); }
.blueprint-maps-shell .bp-item.rare.active { background: rgba(0, 112, 221, 0.1); }
.blueprint-maps-shell .bp-item.uncommon { border-left-color: var(--rarity-uncommon); }
.blueprint-maps-shell .bp-item.uncommon.active { background: rgba(47, 211, 107, 0.1); }
.blueprint-maps-shell .bp-item.common { border-left-color: var(--rarity-common); }

.blueprint-maps-shell .bp-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #000;
    min-width: 0;
    overflow: hidden;
    min-height: 0;
}

.blueprint-maps-shell .topbar {
    position: absolute;
    top: 24px;
    left: 92px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    max-width: min(320px, calc(100% - 220px));
}

.blueprint-maps-shell .selected-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    line-height: 1.15;
}

.blueprint-maps-shell .selected-info span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.blueprint-maps-shell .selected-blueprint {
    color: var(--rarity-uncommon);
    font-size: 14px;
    font-weight: 700;
}

.blueprint-maps-shell .selected-separator {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
    font-weight: 700;
    flex: 0 0 auto;
}

.blueprint-maps-shell .selected-condition {
    color: #47a6ff;
    font-size: 13px;
    font-weight: 600;
}

.blueprint-maps-shell .map-wrapper {
    flex: 1;
    width: 100%;
    height: min(78vh, 960px);
    min-height: 640px;
    max-height: calc(100vh - 24px);
    background-color: #111;
    position: relative;
    overflow: hidden;
}

.blueprint-maps-shell #map-container,
.blueprint-maps-shell .leaflet-container {
    width: 100%;
    height: 100%;
    min-height: 640px;
    background: #111;
    overflow: hidden;
}

.blueprint-maps-shell .leaflet-pane img,
.blueprint-maps-shell img.leaflet-image-layer,
.blueprint-maps-shell .leaflet-container img {
    max-width: none !important;
    width: auto !important;
}
.blueprint-maps-shell .leaflet-control-zoom {
    margin-top: 16px !important;
    margin-left: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.blueprint-maps-shell .leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 34px !important;
    font-size: 18px !important;
    border: 0 !important;
    background: rgba(15, 17, 21, 0.86) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.blueprint-maps-shell .leaflet-control-zoom a + a {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.blueprint-maps-shell .leaflet-control-zoom a:hover,
.blueprint-maps-shell .leaflet-control-zoom a:focus {
    background: rgba(255, 107, 53, 0.18) !important;
    color: #fff !important;
}

.blueprint-maps-shell .leaflet-control-zoom a {
    width: 42px !important;
    height: 42px !important;
    line-height: 42px !important;
    font-size: 22px !important;
}

.blueprint-maps-shell .leaflet-popup-content-wrapper {
    background: rgba(12, 14, 18, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.blueprint-maps-shell .leaflet-popup-content {
    margin: 14px 14px 12px;
}

.blueprint-maps-shell .leaflet-popup-tip {
    background: rgba(12, 14, 18, 0.92);
}

.blueprint-maps-shell .leaflet-container a.leaflet-popup-close-button {
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 22px;
    line-height: 24px;
}

.blueprint-maps-shell .leaflet-container a.leaflet-popup-close-button:hover {
    color: #fff;
}

.blueprint-maps-shell .marker-popup {
    width: min(320px, 78vw);
}

.blueprint-maps-shell .popup-section + .popup-section {
    margin-top: 14px;
}

.blueprint-maps-shell .popup-section-title {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.blueprint-maps-shell .popup-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blueprint-maps-shell .popup-chip {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.blueprint-maps-shell .popup-blueprint-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blueprint-maps-shell .popup-blueprint-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid transparent;
}

.blueprint-maps-shell .popup-blueprint-card.rarity-legendary { border-left-color: var(--rarity-legendary); }
.blueprint-maps-shell .popup-blueprint-card.rarity-epic { border-left-color: var(--rarity-epic); }
.blueprint-maps-shell .popup-blueprint-card.rarity-rare { border-left-color: var(--rarity-rare); }
.blueprint-maps-shell .popup-blueprint-card.rarity-uncommon { border-left-color: var(--rarity-uncommon); }
.blueprint-maps-shell .popup-blueprint-card.rarity-common { border-left-color: var(--rarity-common); }

.blueprint-maps-shell .popup-blueprint-thumb {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
    background-color: #0a1d78;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(28, 76, 220, 0.22), rgba(10, 29, 120, 0.12) 55%, rgba(4, 12, 56, 0.2) 100%);
    background-size: 8px 8px, 8px 8px, 100% 100%;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blueprint-maps-shell .popup-blueprint-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.blueprint-maps-shell .popup-blueprint-thumb span {
    font-size: 16px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
}

.blueprint-maps-shell .popup-blueprint-body {
    min-width: 0;
    flex: 1;
}

.blueprint-maps-shell .popup-blueprint-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.blueprint-maps-shell .popup-blueprint-line {
    margin-top: 3px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.76);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.blueprint-maps-shell .popup-blueprint-meta {
    color: rgba(255, 255, 255, 0.5);
}

.blueprint-maps-shell .popup-rarity { font-weight: 700; }
.blueprint-maps-shell .popup-rarity.rarity-legendary { color: var(--rarity-legendary); }
.blueprint-maps-shell .popup-rarity.rarity-epic { color: var(--rarity-epic); }
.blueprint-maps-shell .popup-rarity.rarity-rare { color: var(--rarity-rare); }
.blueprint-maps-shell .popup-rarity.rarity-uncommon { color: var(--rarity-uncommon); }
.blueprint-maps-shell .popup-rarity.rarity-common { color: var(--rarity-common); }

.blueprint-maps-shell .popup-dot {
    color: rgba(255, 255, 255, 0.32);
}

.blueprint-maps-shell .popup-more {
    padding-top: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    list-style: none;
}

.blueprint-maps-shell .popup-more::-webkit-details-marker {
    display: none;
}

.blueprint-maps-shell .popup-more-details {
    margin-top: 8px;
}

.blueprint-maps-shell .popup-more-details[open] .popup-more {
    color: rgba(255, 255, 255, 0.72);
}

.blueprint-maps-shell .popup-blueprint-list-extra {
    margin-top: 10px;
    max-height: min(260px, 34vh);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.blueprint-maps-shell .popup-chip-list-extra {
    margin-top: 10px;
    max-height: min(160px, 24vh);
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.blueprint-maps-shell .popup-coords {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.blueprint-maps-shell .seo-section {
    position: relative;
    z-index: 2;
    padding: 32px 24px 48px;
    background:
        radial-gradient(circle at top left, rgba(255, 107, 53, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(71, 166, 255, 0.12), transparent 24%),
        linear-gradient(180deg, #101319 0%, #0d1015 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.blueprint-maps-shell .seo-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: min(1400px, calc(100vw - 48px));
    margin: 0 auto;
}

.blueprint-maps-shell .seo-card {
    position: relative;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.blueprint-maps-shell .seo-card-sidebar,
.blueprint-maps-shell .seo-card-main {
    width: 100%;
}

.blueprint-maps-shell .seo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 107, 53, 0.08), transparent 36%),
        linear-gradient(315deg, rgba(71, 166, 255, 0.08), transparent 34%);
    pointer-events: none;
}

.blueprint-maps-shell .seo-card > * {
    position: relative;
    z-index: 1;
}

.blueprint-maps-shell .seo-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffb08d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blueprint-maps-shell .seo-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    color: #fff;
}

.blueprint-maps-shell .seo-card p {
    color: rgba(240, 240, 240, 0.74);
    font-size: 15px;
    line-height: 1.72;
    margin: 0;
}

.blueprint-maps-shell .seo-card p + p {
    margin-top: 14px;
}

@media (max-width: 900px) {
    .blueprint-maps-shell .app-container {
        display: block;
        width: 100%;
        margin-bottom: 18px;
    }

    .blueprint-maps-shell .seo-section {
        padding: 24px 16px 36px;
    }

    .blueprint-maps-shell .seo-grid {
        width: 100%;
        gap: 16px;
    }

    .blueprint-maps-shell .seo-card {
        padding: 20px;
        border-radius: 18px;
    }

    .blueprint-maps-shell .seo-card h2 {
        font-size: 24px;
    }

    .blueprint-maps-shell .seo-card p {
        font-size: 14px;
        line-height: 1.65;
    }

    .blueprint-maps-shell .sidebar {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(360px, 86vw);
        min-width: 0;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        border-right: 0;
        border-left: 1px solid var(--sidebar-border);
        box-shadow: -12px 0 28px rgba(0, 0, 0, 0.45);
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        z-index: 1200;
    }

    .blueprint-maps-shell .sidebar.is-open {
        transform: translateX(0);
    }

    .blueprint-maps-shell .sidebar-mobile-header {
        display: flex;
    }

    .blueprint-maps-shell .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        border: 0;
        z-index: 1100;
    }

    .blueprint-maps-shell .mobile-sidebar-toggle {
        display: flex;
        position: fixed;
        top: 72px;
        right: 12px;
        z-index: 1050;
        width: 48px;
        height: 48px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        background: rgba(15, 17, 21, 0.88);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
    }

    .blueprint-maps-shell .mobile-sidebar-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
    }

    .blueprint-maps-shell .filter-section,
    .blueprint-maps-shell .logo-container {
        padding: 18px;
    }

    .blueprint-maps-shell .bp-main-content {
        width: 100%;
        min-height: 68svh;
    }

    .blueprint-maps-shell .map-wrapper {
        height: 68svh;
        min-height: 68svh;
        max-height: none;
        margin-bottom: 0;
    }

    .blueprint-maps-shell .layer-overlay {
        top: 16px;
        right: 16px;
        border-radius: 16px;
    }

    .blueprint-maps-shell .layer-overlay .layer-btn {
        min-width: 82px;
        min-height: 42px;
        font-size: 14px;
        padding: 10px 14px;
    }

    .blueprint-maps-shell .topbar {
        top: 16px;
        left: 72px;
        right: 72px;
        max-width: none;
        padding: 10px 14px;
        text-align: center;
        align-items: center;
    }

    .blueprint-maps-shell .selected-info {
        width: 100%;
        pointer-events: auto;
        justify-content: center;
    }

    .blueprint-maps-shell .map-select-container select,
    .blueprint-maps-shell .condition-container select,
    .blueprint-maps-shell .search-container input {
        min-height: 48px;
        font-size: 16px;
        padding: 13px 15px;
    }

    .blueprint-maps-shell .bp-item {
        min-height: 48px;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .blueprint-maps-shell .bp-item .bp-name {
        font-size: 15px;
    }

    .blueprint-maps-shell .bp-item .bp-count {
        font-size: 13px;
        padding: 3px 8px;
    }

    .blueprint-maps-shell .blueprint-list {
        min-height: 240px;
        max-height: 42svh;
        margin-right: 0;
        padding-right: 0;
    }

    .blueprint-maps-shell .marker-popup {
        width: min(300px, 72vw);
    }
}

@media (max-width: 640px) {
    .blueprint-maps-shell .logo-container {
        padding: 16px;
    }

    .blueprint-maps-shell .logo-container h1 {
        font-size: 24px;
    }

    .blueprint-maps-shell .seo-section {
        padding: 20px 12px 32px;
    }

    .blueprint-maps-shell .seo-card {
        padding: 18px;
    }

    .blueprint-maps-shell .seo-card h2 {
        font-size: 21px;
    }

    .blueprint-maps-shell .seo-eyebrow {
        margin-bottom: 12px;
    }

    .blueprint-maps-shell .filter-section {
        padding: 16px;
        gap: 10px;
    }

    .blueprint-maps-shell .blueprint-list {
        min-height: 220px;
        max-height: 36svh;
    }

    .blueprint-maps-shell .bp-main-content {
        min-height: 64svh;
    }

    .blueprint-maps-shell .map-wrapper {
        min-height: 64svh;
        height: 64svh;
    }

    .blueprint-maps-shell .layer-overlay {
        top: auto;
        right: 50%;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        transform: translateX(50%);
        gap: 8px;
        padding: 8px;
        width: calc(100% - 24px);
        max-width: 220px;
        justify-content: center;
    }

    .blueprint-maps-shell .layer-overlay .layer-btn {
        min-width: 0;
        flex: 1;
        font-size: 13px;
        padding: 10px 12px;
    }

    .blueprint-maps-shell .mobile-sidebar-toggle {
        top: 72px;
        right: 10px;
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .blueprint-maps-shell .topbar {
        display: flex;
        top: 12px;
        left: 64px;
        right: 64px;
        padding: 9px 12px;
        max-width: calc(100% - 128px);
        min-height: 44px;
        justify-content: center;
        border-radius: 12px;
        text-align: center;
    }

    .blueprint-maps-shell .selected-info {
        gap: 6px;
        align-items: center;
    }

    .blueprint-maps-shell .selected-blueprint {
        font-size: 13px;
    }

    .blueprint-maps-shell .selected-separator,
    .blueprint-maps-shell .selected-condition {
        font-size: 12px;
    }
    .blueprint-maps-shell .leaflet-control-zoom {
        margin-top: 10px !important;
        margin-left: 10px !important;
    }

    .blueprint-maps-shell .leaflet-control-zoom a {
        width: 34px !important;
        height: 34px !important;
        line-height: 32px !important;
        font-size: 17px !important;
    }

    .blueprint-maps-shell .leaflet-popup-content {
        margin: 12px 12px 10px;
    }

    .blueprint-maps-shell .marker-popup {
        width: min(276px, 76vw);
    }

    .blueprint-maps-shell .popup-chip {
        font-size: 11px;
        padding: 5px 8px;
    }

    .blueprint-maps-shell .popup-blueprint-card {
        gap: 10px;
        padding: 9px 10px;
        border-radius: 14px;
    }

    .blueprint-maps-shell .popup-blueprint-thumb {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 10px;
    }

    .blueprint-maps-shell .popup-blueprint-name {
        font-size: 14px;
    }

    .blueprint-maps-shell .popup-blueprint-line {
        font-size: 12px;
        line-height: 1.35;
    }

    .blueprint-maps-shell .popup-more {
        font-size: 13px;
    }

    .blueprint-maps-shell .popup-blueprint-list-extra {
        max-height: min(220px, 30vh);
    }
}

@media (max-width: 420px) {
    .blueprint-maps-shell .filter-section,
    .blueprint-maps-shell .logo-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .blueprint-maps-shell .map-select-container select,
    .blueprint-maps-shell .condition-container select,
    .blueprint-maps-shell .search-container input {
        padding-left: 13px;
        padding-right: 13px;
    }

    .blueprint-maps-shell .bp-item {
        padding: 11px 12px;
    }

    .blueprint-maps-shell .seo-section {
        padding: 18px 12px 30px;
    }

    .blueprint-maps-shell .seo-card {
        padding: 16px;
        border-radius: 16px;
    }

    .blueprint-maps-shell .seo-card h2 {
        font-size: 19px;
    }

    .blueprint-maps-shell .seo-card p {
        font-size: 13px;
    }

    .blueprint-maps-shell .marker-popup {
        width: min(250px, 78vw);
    }

    .blueprint-maps-shell .popup-section-title {
        margin-bottom: 7px;
        font-size: 10px;
    }

    .blueprint-maps-shell .popup-chip-list {
        gap: 6px;
    }

    .blueprint-maps-shell .popup-chip {
        max-width: 100%;
    }

    .blueprint-maps-shell .popup-blueprint-list-extra {
        max-height: min(180px, 28vh);
    }

    .blueprint-maps-shell .selected-info {
        gap: 5px;
    }

    .blueprint-maps-shell .selected-blueprint,
    .blueprint-maps-shell .selected-condition,
    .blueprint-maps-shell .selected-separator {
        font-size: 11px;
    }
}







