/* NWG Ship Tracker Styles */

.nwg-ship-tracker-container {
    position: relative;
    border: 2px solid #2c3e50;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: #1a1a1a;
}

#nwg-ship-tracker-map {
    width: 100%;
    height: 100%;
    background: #0a4d68;
}

/* Info Panel */
.tracker-info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    z-index: 1000;
}

.info-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.cruise-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.cruise-status.status-active {
    background: #10b981;
    color: white;
    animation: pulse 2s infinite;
}

.cruise-status.status-docked {
    background: #6b7280;
    color: white;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.info-body {
    padding: 15px;
    background: white;
}

.info-body p {
    margin: 8px 0;
    font-size: 14px;
    color: #374151;
}

.info-body strong {
    color: #1f2937;
    font-weight: 600;
}

.info-footer {
    padding: 15px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.teleport-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.teleport-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.teleport-button.disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.teleport-button.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.leaflet-popup-content {
    margin: 12px;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tracker-info-panel {
        position: static;
        width: 100%;
        margin-top: 15px;
    }
    
    .nwg-ship-tracker-container {
        height: auto !important;
    }
    
    #nwg-ship-tracker-map {
        height: 400px;
    }
}

/* Loading Animation */
.tracker-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 999;
}

.tracker-loading::after {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 10px auto;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
