/* Navigation Tiles */
#navigationTiles {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

#navigationTiles.show {
    opacity: 1;
    pointer-events: auto;
}

.nav-tile {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    border: 2px solid transparent;
}

.nav-tile:hover {
    background: rgba(76, 175, 80, 0.8);
    border-color: #4CAF50;
    transform: translateX(5px);
}

.nav-tile-icon {
    font-size: 24px;
    line-height: 1;
}

.nav-tile-text {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
}

/* Hide Cesium UI elements and credits */
.cesium-viewer-toolbar,
.cesium-viewer-animationContainer,
.cesium-viewer-timelineContainer,
.cesium-viewer-bottom,
.cesium-credit-logoContainer,
.cesium-credit-textContainer,
.cesium-widget-credits,
.cesium-viewer-cesiumWidgetContainer .cesium-widget-credits {
    display: none !important;
}

/* Ensure full screen coverage */
html, body {
    width: 100%; 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    overflow: hidden;
    font-family: sans-serif;
    background: #000;
}

#cesiumContainer {
    width: 100%; 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Experience Navigation */
#experienceNavigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    pointer-events: none;
}

/* Navigation Arrows */
.nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 1001;
}

.nav-arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-arrow-left {
    left: 30px;
}

.nav-arrow-right {
    right: 30px;
}

.nav-arrow span {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

/* Navigation Dots */
#navigationDots {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    pointer-events: auto;
    z-index: 1001;
}

.nav-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.nav-dot.active {
    background: white;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Experience Content */
#experienceContent {
    position: relative;
    width: 100%;
    height: 100vh;
}

.experience-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.experience-section.active {
    opacity: 1;
}

.section-content {
    text-align: center;
    padding: 40px 60px;
    pointer-events: auto;
}

.section-title {
    font-size: 4rem;
    font-weight: 300;
    margin: 0;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 20px 40px;
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: top 0.8s cubic-bezier(0.4,0,0.2,1), font-size 0.8s cubic-bezier(0.4,0,0.2,1), padding 0.8s cubic-bezier(0.4,0,0.2,1), background 0.8s, border 0.8s, color 0.8s, box-shadow 0.8s, border-radius 0.8s, left 0.8s, transform 0.8s;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    z-index: 1002;
}

.section-title.animation-active {
    top: 40px;
    left: 50%;
    transform: translate(-50%, 0);
    font-size: 2.5rem;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
    border-radius: 25px;
}

.section-title::before {
    content: none;
}

.section-description {
    display: none;
}

.exit-experience-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.exit-experience-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* My Journey Button */
.my-journey-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 1001;
}

.my-journey-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

#controlPanel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 280px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

#controlPanel.show {
    opacity: 1;
    pointer-events: auto;
}

#controlPanel.collapsed {
    width: 80px;
    padding: 10px;
    text-align: center;
}

#controlPanel.collapsed .tab-navigation,
#controlPanel.collapsed .tab-content {
    display: none;
}

#controlPanel.collapsed #pauseBtnCollapsed {
    display: block !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    margin: 0 auto;
    padding: 0;
}

#controlPanel:not(.collapsed) #pauseBtnCollapsed {
    display: none;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.tab-button {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: none;
    padding: 12px 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.tab-button.active {
    background: rgba(76, 175, 80, 0.8);
    color: white;
    border-bottom-color: #4CAF50;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

.control-content {
    display: block;
}

#controlPanel h3 {
    margin: 0 0 15px 0;
    text-align: center;
    color: #4CAF50;
    font-size: 18px;
}

#controlPanel h4 {
    margin: 15px 0 8px 0;
    color: #81C784;
    font-size: 14px;
    border-bottom: 1px solid #333;
    padding-bottom: 3px;
}

.control-group {
    margin-bottom: 15px;
}

.control-group:first-of-type {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin: 8px 0 4px 0;
    font-size: 12px;
    color: #ccc;
}

.control-group input[type="range"] {
    width: 100%;
    margin: 4px 0 8px 0;
    background: #333;
    outline: none;
    border-radius: 5px;
    height: 6px;
}

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

.control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
}

/* Coordinate input styling */
.control-group input[type="number"] {
    width: 100%;
    padding: 8px 12px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: white;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.control-group input[type="number"]:focus {
    outline: none;
    border-color: #4CAF50;
    background: rgba(255, 255, 255, 0.15);
}

.control-group input[type="number"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.coordinate-button {
    margin: 5px 5px 5px 0;
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #4CAF50;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coordinate-button:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.coordinate-button.secondary {
    background: transparent;
    color: #4CAF50;
}

.coordinate-button.secondary:hover {
    background: rgba(76, 175, 80, 0.1);
}

.coordinate-button.map-button {
    background: #2196F3;
    border-color: #2196F3;
    width: 100%;
    margin-top: 10px;
}

.coordinate-button.map-button:hover {
    background: #1976D2;
    border-color: #1976D2;
}

/* Coordinate modal specific styling */
.coordinate-info {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 4px;
    border-left: 4px solid #2196F3;
}

.coordinate-display {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #2196F3;
    font-weight: bold;
}

#coordinateMap {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin: 15px 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 2px 4px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s;
}

button:hover:not(:disabled) {
    background: #45a049;
}

button:disabled {
    background: #666;
    cursor: not-allowed;
}

select {
    width: 100%;
    padding: 6px;
    background: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 12px;
}

#pauseBtn {
    background: #ff9800;
}

#pauseBtn:hover:not(:disabled) {
    background: #e68900;
}

#resetBtn {
    background: #f44336;
}

#resetBtn:hover {
    background: #da190b;
}

.error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    z-index: 2000;
}

/* Route-specific styling */
.route-button {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    font-size: 14px;
    font-weight: 500;
}

/* Modal Popup Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #2a2a2a;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-button {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-button:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 20px;
    color: white;
}

.modal-body p {
    margin: 0 0 15px 0;
    color: #ccc;
}

#googleMap {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin: 15px 0;
}

.modal-controls {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.modal-controls button {
    padding: 10px 20px;
    font-size: 14px;
}

.modal-controls button.primary {
    background: #4CAF50;
}

.modal-controls button.primary:hover {
    background: #45a049;
}

/* Waypoints list styling */
#waypointsContainer {
    max-height: 200px;
    overflow-y: auto;
}

.waypoint-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.waypoint-item .waypoint-info {
    flex: 1;
}

.waypoint-item .waypoint-remove {
    background: #f44336;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
}

.waypoint-item .waypoint-remove:hover {
    background: #d32f2f;
}

.waypoint-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.waypoint-item .waypoint-info {
    flex: 1;
} 