/* CSS Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.4;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

/* Status Bar */
.status-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.status-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 28px;
}

.status-text {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

.progress-bar {
    height: 3px;
    background: linear-gradient(90deg, #007cba, #0056b3, #007cba);
    background-size: 200% 100%;
    border-radius: 2px;
    flex: 1;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.container {
    max-width: 1210px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Title and Stats Wrapper */
.title-stats-wrapper {
    max-width: 1210px;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Title Section Outside Container */
.title-section-outer {
    flex-shrink: 0;
    width: 520px;
}

.title-section-outer h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 10px;
    color: #333;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 630px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.stat .label {
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
    letter-spacing: 1px;
}

.stat .value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    margin-top: 2px;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    height: 600px;
}

/* Map Container */
.map-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#map {
    width: 100%;
    height: 100%;
}

/* Controls Panel */
.controls {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.control-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    overflow: visible;
}

.control-section:last-child {
    border-bottom: none;
}

/* Header Section in Control Panel */
.header-section {
    text-align: center;
}

.header-section h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 12px;
    letter-spacing: 2px;
    color: #333;
}

.header-section .subtitle {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.header-section .subtitle-list {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
    padding-left: 0;
    list-style: none;
    text-align: left;
    display: block;
}

.header-section .subtitle-list li {
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.header-section .subtitle-list li::before {
    content: attr(data-number);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #999;
    color: white;
    font-weight: 600;
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Completed step styling */
.header-section .subtitle-list li.completed {
    opacity: 0.6;
    text-decoration: line-through;
    color: #999;
}

.header-section .subtitle-list li.completed::before {
    background: #ccc;
    color: #fff;
}

.header-section .hint {
    font-size: 0.75rem;
    color: #888;
    font-style: italic;
    line-height: 1.3;
}

.control-section h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

/* Control Groups */
.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Input Styles */
input[type="range"] {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 2px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #007cba;
    cursor: pointer;
    border: none;
}

input[type="number"],
input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
}

input[type="text"]::placeholder {
    color: #999;
}

/* Select Styles */
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.8rem;
    background-color: white;
    color: #333;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 1.2em;
    padding-right: 32px;
}

select:hover {
    border-color: #999;
}

select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 0.7rem;
    color: #666;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 14px;
    height: 14px;
}

/* Button Styles */
button {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

button:hover {
    background: #005a87;
    transform: translateY(-1px);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

button:disabled:hover {
    background: #ccc;
    transform: none;
}

/* Icon Buttons */
#clearPoints,
#saveMilestone,
#runAlgorithm,
#pauseAlgorithm,
#stopAlgorithm {
    font-size: 1.2rem;
    padding: 10px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Points Container */
.points-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 15px;
    gap: 15px;
}

.points-container .points-info {
    display: flex;
    gap: 20px;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.points-container .points-info p {
    font-size: 0.7rem;
    color: #666;
    margin: 0;
}

.points-container .points-info p strong {
    font-weight: 600;
}

#clearPoints {
    padding: 8px 12px;
    font-size: 1rem;
    width: auto;
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 4px;
    text-transform: none;
    letter-spacing: 0;
    flex-shrink: 0;
}

#clearPoints:hover {
    background: #e9ecef;
    border-color: #bbb;
    color: #333;
}

#saveMilestone {
    padding: 8px 12px;
    font-size: 1rem;
    width: auto;
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    border-radius: 4px;
    text-transform: none;
    letter-spacing: 0;
    flex-shrink: 0;
}

#saveMilestone:hover {
    background: #e9ecef;
    border-color: #bbb;
    color: #333;
}

.milestone-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.milestone-input-group input {
    flex: 1;
}

.milestone-input-group button {
    padding: 8px 12px;
    width: auto;
}

/* Routing Buttons */
.routing-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 15px;
}

.routing-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.routing-btn:hover {
    background: #e9ecef;
    border-color: #999;
}

.routing-btn.active {
    background: #444;
    color: white;
    border-color: #444;
}

/* Algorithm Buttons */
.algorithm-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    overflow: visible;
}

.algorithm-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: visible;
}

.algorithm-group h4 {
    font-size: 0.65rem;
    color: #666;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.algorithm-group:first-child h4 {
    margin-top: 0;
}

.algorithm-btn {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.algorithm-name {
    flex: 1;
}

.algorithm-play {
    font-size: 0.9rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.algorithm-btn:hover {
    background: #e9ecef;
    color: #333;
}

.algorithm-btn:hover .algorithm-play {
    opacity: 1;
}

.algorithm-btn.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.algorithm-btn.active .algorithm-play {
    opacity: 1;
}

/* Algorithm Tooltip */
.algorithm-btn {
    position: relative;
}

.algorithm-tooltip {
    position: fixed;
    bottom: auto;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 12px;
    font-size: 0.8rem;
    color: #333;
    line-height: 1.5;
    max-width: 360px;
    width: 360px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
}

.algorithm-tooltip-label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    margin-bottom: 6px;
}

.algorithm-tooltip-value {
    font-size: 0.75rem;
    color: #333;
    font-weight: 400;
    margin-bottom: 10px;
    line-height: 1.4;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.algorithm-tooltip-sections {
    display: flex;
    gap: 12px;
}

.algorithm-tooltip-section {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.algorithm-tooltip-section-label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    margin-bottom: 3px;
}

.algorithm-tooltip-section-value {
    font-size: 0.75rem;
    color: #333;
    font-weight: 400;
    line-height: 1.4;
}

.algorithm-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: white;
}

/* Execution Controls */
.execution-controls {
    display: flex;
    gap: 8px;
}

.execution-controls button {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.7rem;
}



/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .map-container {
        height: 400px;
    }
    
    .stats-bar {
        gap: 15px;
    }
    
    .stat {
        min-width: 80px;
    }
    
    .execution-controls {
        flex-direction: column;
    }
}

/* Leaflet Map Marker Styles */
.custom-marker {
    background: transparent;
    border: none;
}

.marker-pin {
    width: 16px;
    height: 16px;
    background-color: #ff4444;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
}

.marker-pin:hover {
    background-color: #ff6666;
    transform: scale(1.2);
}

/* Ensure Leaflet controls are visible */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.leaflet-control-zoom a {
    background-color: white !important;
    color: #333 !important;
}

.leaflet-control-attribution {
    font-size: 10px !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Search Results */
.search-results {
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 0.75rem;
    transition: background-color 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f0f0f0;
}

.search-result-item .place-name {
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 2px;
}

.search-result-item .place-address {
    color: #666;
    font-size: 0.7rem;
}

/* Milestones Panel */
.milestones-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 0;
}

.milestones-preview-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.milestones-panel h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.milestone-preview-panel {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: auto;
}

.milestone-preview-panel h3 {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.preview-map-container {
    flex: 0 0 auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
    height: 450px;
    min-height: 450px;
    position: relative;
}

#previewMap {
    width: 100% !important;
    height: 100% !important;
}

.preview-info {
    margin-top: 15px;
    padding: 12px;
    background: transparent;
    border-radius: 6px;
    border: none;
    flex: 0 0 auto;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

#previewName {
    font-size: 1.25rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 5px;
    color: #333;
    text-transform: uppercase;
}

#closePreview {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #999;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#closePreview:hover {
    color: #333;
}

.preview-stats {
    font-size: 0.75rem;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preview-stats div {
    display: flex;
    justify-content: space-between;
}

.preview-stats-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: -5px;
}

.stat-item {
    background: transparent;
    padding: 12px;
    border-radius: 6px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 0.7rem;
    color: #666;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    word-wrap: break-word;
}

.milestones-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.no-milestones {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.milestone-card {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    position: relative;
}

.milestone-card.best-milestone {
    background: #fff8e1;
    border-color: #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.milestone-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
}

.milestone-actions {
    display: flex;
    gap: 5px;
}

.milestone-action-btn {
    background: transparent;
    color: #007cba;
    padding: 4px 8px;
    font-size: 0.7rem;
    border: 1px solid #007cba;
}

.milestone-action-btn:hover {
    background: #007cba;
    color: white;
}

.milestone-action-btn.delete {
    color: #dc3545;
    border-color: #dc3545;
}

.milestone-action-btn.delete:hover {
    background: #dc3545;
    color: white;
}

.milestone-info {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 4px;
}

.milestone-info strong {
    color: #333;
}

.milestone-date {
    font-size: 0.65rem;
    color: #888;
    margin-top: 6px;
}

.milestone-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

.milestone-footer .milestone-date {
    margin-top: 0;
    flex: 1;
}

.milestone-efficiency {
    font-size: 0.7rem;
    color: #28a745;
    font-weight: 600;
    text-align: right;
}

.milestone-places {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

.milestone-places-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.milestone-places-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 80px;
    overflow: hidden;
    position: relative;
}

.milestone-places-list::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(248, 249, 250, 0), #f8f9fa);
    pointer-events: none;
}

.milestone-card.best-milestone .milestone-places-list::after {
    background: linear-gradient(to bottom, rgba(255, 248, 225, 0), #fff8e1);
}

.milestone-place-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    color: #666;
    line-height: 1.4;
}

.milestone-place-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #999;
    color: white;
    font-weight: 600;
    font-size: 0.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.milestone-place-name {
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
}

/* Leaflet Tooltip Styling - Match Control Panel Design */
.leaflet-tooltip {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0;
    font-size: 0.8rem;
    color: #333;
    line-height: 1.5;
    max-width: 280px;
    width: 280px;
}

.leaflet-tooltip-top::before {
    border-top-color: white;
}

.leaflet-tooltip-bottom::before {
    border-bottom-color: white;
}

/* Tooltip Content Styling */
.tooltip-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.tooltip-label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    margin-bottom: 6px;
}

.tooltip-value {
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    line-height: 1.4;
    white-space: normal;
    max-width: 256px;
    min-width: 0;
}

.tooltip-coords {
    display: flex;
    gap: 12px;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.tooltip-coord-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.tooltip-coord-label {
    font-size: 0.6rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 3px;
}

.tooltip-coord-value {
    font-size: 0.75rem;
    color: #333;
    font-weight: 500;
    word-wrap: break-word;
}

/* Preview Places List */
.preview-places-section {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.preview-places-section strong {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Preview Algorithms List */
.preview-algorithms-section {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.preview-algorithms-section strong {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.algorithms-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.algorithms-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #333;
    text-align: left;
    margin-bottom: 0;
}

.algo-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #999;
    color: white;
    font-weight: 600;
    font-size: 0.65rem;
    flex-shrink: 0;
}

.places-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    width: 100%;
}

.places-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: #333;
    text-align: left;
}

.place-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #999;
    color: white;
    font-weight: 600;
    font-size: 0.65rem;
    flex-shrink: 0;
}