/* ===================================
   SHIP TRACKING STYLES
   Matching website design aesthetic
   System fonts only (no external)
   =================================== */

.ship-tracking-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.ship-header {
    margin-bottom: 2rem;
    text-align: center;
}

.ship-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
}

.ship-subtitle {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

/* Ship Search */
.ship-search {
    margin: 1.5rem auto;
    max-width: 500px;
}

#ship-search-input {
    width: 100%;
    padding: 0.75rem 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

#ship-search-input:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
    background: transparent;
    box-shadow: none;
}

#ship-search-input::placeholder {
    color: var(--text-dimmed);
    font-style: italic;
}

.ship-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    font-family: var(--font-sans);
}

/* Map Container */
.ship-map {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ship Markers */
.ship-marker {
    background: transparent;
}

.ship-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-gold);
    font-size: 20px;
    text-align: center;
    line-height: 20px;
    filter: drop-shadow(0 0 3px rgba(212, 165, 116, 0.8));
    transition: all 0.3s ease;
}

.ship-marker:hover .ship-icon {
    transform: scale(1.3) !important;
    filter: drop-shadow(0 0 8px rgba(212, 165, 116, 1));
}

/* Ship Info Panel */
.ship-info {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    min-height: 150px;
}

.info-text {
    color: var(--text-dimmed);
    text-align: center;
    font-style: italic;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.ship-detail h3 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: -0.02em;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.detail-grid .label {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    background: var(--bg-secondary);
    color: var(--text-main);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-tip {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.ship-popup {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.6;
}

.ship-popup strong {
    color: var(--accent-gold);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Leaflet Control Styling */
.leaflet-control-zoom a {
    background: var(--bg-secondary) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--bg-tertiary) !important;
    border-color: var(--accent-gold) !important;
    color: var(--accent-gold) !important;
}

/* Tab-specific override */
#tab-ships:checked~.tab-content #panel-ships {
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ship-tracking-container {
        padding: 1.5rem;
    }

    .ship-title {
        font-size: 1.5rem;
    }

    .ship-stats {
        gap: 1.5rem;
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .ship-map {
        height: 400px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations matching website */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.stat-value {
    animation: pulse 2s ease-in-out infinite;
}