html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    counter-reset: waypoint;
}

#map {
    height: 100vh !important;
}

.container-fluid.fill {
    display: flex;
    height: 100vh;
}

.route-left-block {
    flex: 1;
}

.route-right-block {
    width: 32rem;
    overflow-y: auto;
}


#directions-panel {
    margin-top: 10px;
    background-color: #F5F5F5;
    padding: 10px;
    overflow: scroll;
    height: 174px;
}

.waypoint-label::before {
    counter-increment: waypoint;
    content: counter(waypoint, upper-alpha);
}

#floating-panel {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
    background-color: #fff;
    padding: 5px;
    border: 1px solid #999;
    border-radius: 4px;
    text-align: center;
    line-height: 30px;
}

.map-marker-type-0 {
    background-image: url('/static/assets/img/svg/marker-initial-2.svg');
    color: black;
}

.map-marker-type-1 {
    background-image: url('/static/assets/img/svg/marker-2.svg');
    color: white;
}

.map-marker-positioning-leg {
    color: white;
}

.map-marker {
    z-index: 10;
    width: 33px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.map-marker span {
    font-size: 16px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    --bs-gutter-x: 0;
}

.row {
    --bs-gutter-x: 0;
}

.map-title-block {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 62px;
    padding: 8px 12px;
    gap: 8px;
    background-color: var(--night-sky, #052332);
    color: var(--white, #FFFFFF);
    font-size: 16px;
    font-weight: 600;
    line-height: 100%;
    flex-shrink: 0;
    text-align: center;
}

.map-title-icon {
    width: 24px;
    height: 24px;
    background-image: url('/static/assets/img/svg/shipment-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/*
.route-left-block {
    width: 53rem;
}
 */

.route-right-block {
    background-color: var(--gray-200, #E2E8EB)
}

/* Container to hold waypoints and timeline */
.waypoint-container {
    position: relative;
}

/* Vertical Line (Timeline) */
.timeline {
    z-index: 5;
    position: absolute;
    top: 50%;
    left: 40px;
    width: 2px;
    height: 100%;
    background-color: var(--gray-600, #8C9A9F);
    transform: translateY(-50%);
}

@media (max-width: 800px) {
    .timeline {
        left: 40.5px;
    }
}

/* Waypoint List Styling */
.list-group {
    margin-top: 10px;
    z-index: 5;
}

.list-group-item {
    position: relative;
    background-color: var(--white, #FFFFFF);
    border: 1px solid var(--gray-400, #D1D5DB);
    border-radius: 8px !important;
    padding: 12px;
    margin: 8px 12px;
    display: flex;
    gap: 12px;
}

.list-group-item.waypoint-item:first-child {
    margin-top: 0;
}

.list-group-item.waypoint-item:last-child {
    margin-bottom: 0;
}

/* Align text content next to the marker */
.waypoint-content {
    flex-grow: 1;
}

.results-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--gray-200, #E2E8EB);
    padding: 16px;
    border-radius: 8px;
}

.results-item {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 6px;
    flex: 1;
}

.results-label {
    color: #000;
    font-size: 11px;
    font-style: normal;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.results-value {
    color: #000;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}

.btn-refresh-text {
    font-weight: 400;
    font-size: 11px;
    margin: -5px 12px 12px;
}

#route-buttons {
    margin: 12px 12px 2rem;
}

.btn-save-route {
    background: var(--northern-light) !important;
}

.btn-refresh-route {
    background: rgba(3, 15, 24, 0.10) !important;
}

.btn-refresh-route,
.btn-save-route {
    border-radius: 8px;
    width: 150px;
    font-weight: 550 !important;
    display: inline-block;
    background: rgba(3, 15, 24, 0.10);
    white-space: nowrap;
}

.btn-refresh-route:hover,
.btn-save-route:hover {
    background: var(--gray-600) !important;
}


.cluster-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

.stop-duration {
    font-weight: 600;
}

.waypoint-title {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

.time-arrival {
    font-size: 0.875rem;
    font-weight: 400;
}

.time-arrival-dash {
    font-size: 1rem
}

.waypoint-info {
    font-size: 13px;
    margin-bottom: 0;
}

.waypoint-info-hidden {
    font-size: 0.6875rem;
}

.waypoint-details {
    margin-top: 0.25rem;
    display: none;
    transition: all 0.3s ease;
}

.waypoint-item {
    position: relative;
    cursor: pointer;
}

.waypoint-item.expanded .waypoint-details {
    display: block;
}

.waypoint-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
}

.waypoint-item.expanded .waypoint-toggle {
    transform: rotate(180deg);
}

input:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
}

.list-group .waypoint-item:not(.non-draggable) .map-marker {
    cursor: move;
}


