/* ── Global & Layout ── */

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#performer-graph svg {
    background-color: #ffffff;
}

#top-half {
    position: relative;
    width: 100%;
    height: 50%;
}

#bottom-half {
    position: relative;
    width: 100%;
    height: 50%;
    border-top: 2px solid #ccc;
}

#performer-graph,
#map-container {
    width: 100%;
    height: 100%;
}

/* ── Search & Filters ── */

#search-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 320px;
}

#artist-search {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    outline: none;
}

#date-filters {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ── Side Panels ── */

#side-panels-container {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    z-index: 10;
}

.side-panel {
    width: 260px;
    height: 100%;
    background: #f8f9fa;
    border-left: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: white;
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.panel-header h3 {
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
}

/* ── Lists ── */

#show-picker-items,
#itinerary-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

/* ── Show Picker ── */

.artist-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 10px;
}

.artist-header {
    padding: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.artist-header:hover {
    background: #f1f8ff;
}

.show-option-list {
    background: #fafafa;
    border-top: 1px solid #eee;
}

.show-row {
    padding: 8px 12px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
}

.show-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.show-row-date {
    font-size: 11px;
    font-weight: 600;
}

.show-row-location {
    font-size: 10px;
    color: #7f8c8d;
}

/* ── Buttons (Show Picker) ── */

.add-show-btn {
    background: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 10px;
    cursor: pointer;
}

.add-show-btn:hover {
    background: #27ae60;
}

/* ── Itinerary Entries ── */

.itinerary-entry {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    margin-bottom: 8px;
    position: relative;
}

.itinerary-entry strong {
    display: block;
    font-size: 12px;
}

.itinerary-entry span {
    font-size: 10px;
    color: #7f8c8d;
}

.remove-show-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
}

/* ── Action Buttons (IMPORTANT FIX AREA) ── */

#itinerary-actions {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    opacity: 1; /* prevents accidental dimming */
}

#itinerary-actions button {
    flex: 1 1 45%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}

/* Hover behavior (no opacity confusion anymore) */
#itinerary-actions button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* Specific buttons */
#clear-btn {
    background: #e74c3c;
}

#export-btn {
    background: #3498db;
}

/* ── Map Markers ── */

.custom-marker {
    background-color: #3498db;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.6);
}

.custom-marker-selected {
    background-color: #e74c3c;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.8);
}

.cluster-route-label div {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #6c5ce7;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 24px;
    border: 2px solid white;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
}
.tsp-stop-marker {
    background: transparent;
    border: none;
}

.tsp-stop-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2ecc71;
    border: 2px solid white;
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
	pointer-events: auto;
	cursor: pointer;
}