.itep-ctcmap-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.itep-ctcmap-program-btn.active {
    background-color: hsl(215, 62.5%, 18.8%);
    border-color: hsl(215, 62.5%, 18.8%);
    color: #ffffff;
}

.itep-ctcmap-play {
    min-width: 88px;
}

.itep-ctcmap-play.active {
    background-color: hsl(199, 30.3%, 43.3%);
    border-color: hsl(199, 30.3%, 43.3%);
}

.itep-ctcmap-slider-caption {
    white-space: nowrap;
}

.itep-ctcmap-year-label {
    min-width: 3.5em;
    display: inline-block;
    font-size: 1.1rem;
}

.itep-ctcmap-slider {
    flex: 1 1 auto;
}

.itep-ctcmap-map-wrap {
    width: 100%;
}

.itep-ctcmap-svg-host {
    width: 100%;
}

.itep-ctcmap-svg-host svg {
    width: 100%;
    height: auto;
    display: block;
    touch-action: none;
    cursor: grab;
}

.itep-ctcmap-svg-host svg:active {
    cursor: grabbing;
}

.itep-ctcmap-state {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.itep-ctcmap-state:hover {
    opacity: 0.8;
}

.itep-ctcmap-tooltip {
    position: absolute;
    pointer-events: none;
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: opacity 0.1s ease;
    z-index: 10;
    white-space: nowrap;
}

.itep-ctcmap-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--swatch-color);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.itep-ctcmap-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 16px;
    padding: 14px 18px;
    background: #fbfbfc;
    border: 1px solid #e3e5e8;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.itep-ctcmap-legend-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
    margin-right: 4px;
}

.itep-ctcmap-legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.itep-ctcmap-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #374151;
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 6px;
    cursor: default;
    transition: background 0.12s ease;
}

.itep-ctcmap-legend-item:hover,
.itep-ctcmap-legend-item:focus-visible {
    background: rgba(0, 0, 0, 0.045);
    outline: none;
}

.itep-ctcmap-legend-label {
    white-space: nowrap;
}

.itep-ctcmap-zoom-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    flex-direction: row;
    gap: 2px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    padding: 3px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.itep-ctcmap-zoom-controls button {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1;
    color: #374151;
    cursor: pointer;
    transition: background 0.12s ease;
}

.itep-ctcmap-zoom-controls button:hover,
.itep-ctcmap-zoom-controls button:focus-visible {
    background: rgba(0, 0, 0, 0.06);
    outline: none;
}

.itep-ctcmap-zoom-reset {
    font-size: 0.8rem !important;
    border-left: 1px solid #e5e7eb;
    border-radius: 0 5px 5px 0 !important;
    margin-left: 1px;
}