.planned-map {
    height: 700px;
}

.current-tours {
    height: 700px;
    overflow-y: auto;
}

.planned-tours {
    height: 700px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}

.anomaly-alert {
    color: #ff0000;
}

/**
 * The dnd-list should always have a min-height,
 * otherwise you can't drop to it once it's empty
 */
ul[dnd-list] {
    min-height: 42px;
    padding-left: 0px;
}

/**
 * The dndDraggingSource class will be applied to
 * the source element of a drag operation. It makes
 * sense to hide it to give the user the feeling
 * that he's actually moving it.
 */
ul[dnd-list] .dndDraggingSource {
    display: none;
}

/**
 * An element with .dndPlaceholder class will be
 * added to the dnd-list while the user is dragging
 * over it.
 */
ul[dnd-list] .dndPlaceholder {
    background-color: #ddd;
    display: block;
    min-height: 42px;
}

ul[dnd-list] li {
    background-color: #fff;
    border: 1px solid #ddd;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    display: block;
    padding: 10px 15px;
    margin-bottom: -1px;
}

/**
 * Show selected elements in green
 */
ul[dnd-list] li.selected {
    background-color: #dff0d8;
    color: #3c763d;
}

.panel-default-warning {
    background-color: #f0f00b;
}

.panel-default-error {
    background-color: #dc3545;
}

/* Resizable split container for multi-day planning */
.planning-split-container {
    display: flex;
    flex-direction: row;
    height: 700px;
    width: 100%;
}

.planning-split-container .planned-map {
    height: 100%;
}

.planning-split-container .planned-tours {
    height: 100%;
}

.planning-map-pane {
    width: 66.67%;
    min-width: 200px;
    flex-shrink: 0;
}

.planning-divider {
    flex: 0 0 8px;
    background: #d0d0d0;
    cursor: col-resize;
    z-index: 10;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.planning-divider:hover,
.planning-divider-active {
    background: #999;
}

.planning-divider::after {
    content: '⋮';
    color: #555;
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
}

.planning-days-pane {
    flex: 1 1 0;
    min-width: 150px;
    max-width: 2108px; /* 4 × 527px */
    overflow: hidden;
}

/* Prevent text selection during divider drag */
.planning-no-select {
    user-select: none !important;
    -webkit-user-select: none !important;
}

/* Multi-day planning panel */
.multi-day-planning-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.multi-day-global-controls {
    flex-shrink: 0;
}

.multi-day-panel {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.day-column {
    flex: 0 0 527px;
    width: 527px;
    padding: 0 6px;
    border-right: 1px solid #ddd;
    cursor: pointer;
    box-sizing: border-box;
    scroll-snap-align: start;
    overflow-y: auto;
    height: 100%;
}


.day-column:last-child {
    border-right: none;
}

.day-column-selected {
    background-color: #f0f8ff;
    border-left: 3px solid #337ab7;
}

.day-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px;
    margin-bottom: 4px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    border-radius: 3px 3px 0 0;
    flex-wrap: wrap;
    gap: 4px;
}

.day-column-header strong {
    font-size: 13px;
    flex: 1;
}

.day-cycle-marker {
    font-size: 16px;
    margin-left: 4px;
    vertical-align: middle;
}
