/* ===== Page Header ===== */
.info-hero {
    position: relative;
    background: linear-gradient(135deg, #1461b5 0%, #0a3d6e 100%);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
    overflow: hidden;
}

.info-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.info-hero-content {
    position: relative;
    z-index: 1;
}

.info-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.info-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Dashboard Container ===== */
.info-dashboard {
    max-width: 1200px;
    margin: -2rem auto 3rem;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* ===== Info Cards Grid ===== */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ===== Info Card ===== */
.info-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(20, 97, 181, 0.15);
}

/* Card Header with Image */
.info-card-header {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.info-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.info-card:hover .info-card-header img {
    transform: scale(1.05);
}

.info-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
}

.info-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    margin-bottom: auto;
}

.info-card-icon.weather {
    background: rgba(0, 119, 190, 0.8);
}

.info-card-icon.stars {
    background: rgba(10, 14, 39, 0.8);
}

.info-card-icon.marine {
    background: rgba(0, 119, 182, 0.8);
}

.info-card-icon.customs {
    background: rgba(220, 53, 69, 0.8);
}

.info-card-icon.bridge {
    background: rgba(255, 159, 67, 0.8);
}

.info-card-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Card Body with Summary */
.info-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info-card-summary {
    flex: 1;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.summary-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.summary-label {
    color: #666;
    font-size: 0.9rem;
}

.summary-value {
    color: #333;
    font-weight: 600;
    margin-left: auto;
}

/* Card Button */
.info-card-btn {
    display: block;
    width: 100%;
    padding: 0.875rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 1rem;
}

.info-card-btn.weather-btn {
    background: linear-gradient(135deg, #0077be 0%, #004e8c 100%);
    color: white;
}

.info-card-btn.weather-btn:hover {
    background: linear-gradient(135deg, #0063a0 0%, #003d73 100%);
}

.info-card-btn.stars-btn {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f4e 100%);
    color: white;
}

.info-card-btn.stars-btn:hover {
    background: linear-gradient(135deg, #0d1130 0%, #232860 100%);
}

.info-card-btn.marine-btn {
    background: linear-gradient(135deg, #0077b6 0%, #023e8a 100%);
    color: white;
}

.info-card-btn.marine-btn:hover {
    background: linear-gradient(135deg, #005f8a 0%, #012a5e 100%);
}

.info-card-btn.bridge-btn {
    background: linear-gradient(135deg, #ff9f43 0%, #e67e22 100%);
    color: white;
}

.info-card-btn.bridge-btn:hover {
    background: linear-gradient(135deg, #e68a2e 0%, #cf6f18 100%);
}

.info-card-btn.customs-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.info-card-btn.customs-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* ===== Modal Styles ===== */
.info-modal .modal-dialog {
    max-width: 800px;
}

.info-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.info-modal .modal-header {
    padding: 1.5rem;
    border: none;
}

.info-modal .modal-header.weather-header {
    background: linear-gradient(135deg, #0077be 0%, #004e8c 100%);
    color: white;
}

.info-modal .modal-header.stars-header {
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f4e 100%);
    color: white;
}

.info-modal .modal-header.marine-header {
    background: linear-gradient(135deg, #0077b6 0%, #023e8a 100%);
    color: white;
}

.info-modal .modal-header.bridge-header {
    background: linear-gradient(135deg, #ff9f43 0%, #e67e22 100%);
    color: white;
}

.info-modal .modal-header.customs-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.info-modal .modal-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.info-modal .btn-close {
    filter: brightness(0) invert(1);
}

.info-modal .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.info-modal .modal-body::-webkit-scrollbar {
    width: 8px;
}

.info-modal .modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.info-modal .modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.info-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modal Content Styles */
.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.modal-weather-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.modal-temp {
    font-size: 3rem;
    font-weight: 700;
    color: #0077be;
}

.modal-icon {
    font-size: 4rem;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.modal-detail-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.modal-detail-item .detail-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-detail-item .detail-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.modal-detail-item .detail-value {
    font-weight: 600;
    color: #333;
}

.modal-surf-calm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-surf-card,
.modal-calm-card {
    padding: 1rem;
    border-radius: 12px;
    color: white;
}

.modal-surf-card {
    background: linear-gradient(135deg, #ff6b35 0%, #d63a00 100%);
}

.modal-calm-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.modal-forecast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.modal-forecast-day {
    text-align: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.modal-forecast-day .day-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.modal-forecast-day .day-icon {
    font-size: 1.5rem;
    margin: 0.25rem 0;
}

.modal-forecast-day .day-temps {
    font-size: 0.9rem;
}

/* Marine Modal */
.modal-marine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.modal-marine-item {
    text-align: center;
    padding: 1rem;
    background: #f0f8ff;
    border-radius: 10px;
    border: 1px solid #d0e8f7;
}

.modal-marine-item .marine-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-marine-item .marine-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.modal-marine-item .marine-value {
    font-weight: 600;
    color: #0077b6;
    font-size: 1.1rem;
}

.modal-marine-forecast {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.forecast-wind-day {
    padding: 1rem;
    background: #f0f8ff;
    border-radius: 10px;
    border: 1px solid #d0e8f7;
    text-align: center;
}

.forecast-wind-day .forecast-wind-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.forecast-wind-day .forecast-wind-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.forecast-wind-day .forecast-wind-speed,
.forecast-wind-day .forecast-wind-gusts,
.forecast-wind-day .forecast-wind-dir {
    font-size: 0.9rem;
    color: #555;
    margin: 0.25rem 0;
}

/* Stars Modal */
.modal-moon-phase {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef0ff 100%);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.modal-moon-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.modal-moon-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1f4e;
}

.modal-constellation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.modal-constellation-card {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-constellation-card:hover {
    background: #e9ecef;
}

.modal-constellation-icon {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.modal-constellation-name {
    font-weight: 600;
    color: #1a1f4e;
    font-size: 0.9rem;
}

.modal-star-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.modal-star-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.modal-star-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.modal-star-name {
    font-weight: 600;
    color: #333;
}

.modal-star-magnitude {
    margin-left: auto;
    font-weight: 600;
    color: #1a1f4e;
    font-size: 0.9rem;
}

.modal-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-tips-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.modal-tips-list li:last-child {
    border-bottom: none;
}

.modal-tip-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Bridge Modal */
.modal-schedule-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.modal-schedule-table th {
    background: #1461b5;
    color: white;
    padding: 0.875rem;
    font-weight: 600;
}

.modal-schedule-table td {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-schedule-table tr:last-child td {
    border-bottom: none;
}

.modal-schedule-table tr:nth-child(even) {
    background: #f8f9fa;
}

.modal-bridge-specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.modal-spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.modal-spec-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1461b5 0%, #48BCE2 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-spec-icon i {
    color: white;
    font-size: 1rem;
}

.modal-spec-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
}

.modal-spec-value {
    font-weight: 600;
    color: #333;
}

/* Loading State */
.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-placeholder .spinner-border {
    width: 3rem;
    height: 3rem;
    color: #0077be;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .info-hero {
        padding: 2.5rem 0 2rem;
    }

    .info-hero h1 {
        font-size: 2rem;
    }

    .info-hero p {
        font-size: 1rem;
    }

    .info-cards-grid {
        grid-template-columns: 1fr;
    }

    .modal-details-grid,
    .modal-surf-calm,
    .modal-bridge-specs,
    .modal-marine-grid,
    .modal-marine-forecast {
        grid-template-columns: 1fr;
    }

    .modal-forecast-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

}

/* ===== Mobile Modal Styles (applied outside media query for higher specificity) ===== */
@media (max-width: 767.98px) {
    /* Make the modal itself fill viewport */
    .modal.info-modal.show,
    .modal.marine-modal.show {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    /* Remove backdrop padding */
    .modal.info-modal.show .modal-backdrop,
    .modal.marine-modal.show .modal-backdrop {
        position: fixed !important;
    }

    /* Force fullscreen modals - classes are on SAME element: class="modal fade info-modal show" */
    .modal.info-modal.show .modal-dialog,
    .modal.marine-modal.show .modal-dialog {
        margin: 0 !important;
        max-width: none !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
    }

    .info-modal .modal-content,
    .marine-modal .modal-content {
        border-radius: 0 !important;
        height: 100% !important;
        max-height: 100% !important;
        max-width: none !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .info-modal .modal-header {
        padding: 1rem !important;
        position: relative !important;
    }

    .info-modal .modal-header .close {
        position: absolute !important;
        top: 50% !important;
        right: 1rem !important;
        transform: translateY(-50%) !important;
        font-size: 1.8rem !important;
        opacity: 1 !important;
        color: white !important;
        text-shadow: none !important;
        z-index: 10 !important;
        padding: 0.5rem !important;
        line-height: 1 !important;
        min-width: 32px !important;
        min-height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(0,0,0,0.15) !important;
        border-radius: 50% !important;
    }

    .info-modal .modal-title {
        font-size: 1.2rem !important;
        padding-right: 3rem !important;
    }

    .info-modal .modal-body {
        padding: 1rem !important;
        max-height: none !important;
        flex: 1 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Marine modal fullscreen */
    .marine-modal .modal-dialog {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        height: 100% !important;
    }

    .marine-modal .modal-content {
        height: 100% !important;
        border-radius: 0 !important;
    }

    .marine-modal .modal-header {
        padding: 0.75rem 1rem !important;
        position: relative !important;
    }

    .marine-modal .modal-header .close {
        position: absolute !important;
        top: 50% !important;
        right: 1rem !important;
        transform: translateY(-50%) !important;
        font-size: 1.8rem !important;
        opacity: 1 !important;
        color: white !important;
        text-shadow: none !important;
        z-index: 10 !important;
        padding: 0.5rem !important;
        line-height: 1 !important;
        min-width: 32px !important;
        min-height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(0,0,0,0.15) !important;
        border-radius: 50% !important;
    }

    .marine-modal .modal-title {
        font-size: 1.1rem !important;
        padding-right: 3rem !important;
    }

    .marine-modal .modal-body {
        padding: 0 !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .marine-modal .marine-map-container {
        flex: 1 !important;
        min-height: 0 !important;
    }

    .marine-modal #marine-map {
        height: 100% !important;
        width: 100% !important;
    }

    .marine-modal .marine-time-selector {
        top: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 0.35rem 0.75rem !important;
        max-width: 280px !important;
    }

    .marine-modal .time-btn {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.5rem !important;
    }

    /* Hide info panel on mobile - data available via clickable markers */
    .marine-modal .marine-info-panel {
        display: none !important;
    }
    .marine-modal .marine-info-panel.visible {
        display: none !important;
    }

    .marine-modal .marine-legend {
        display: none !important;
    }

    /* Leaflet zoom buttons - below time selector on mobile */
    .marine-modal .leaflet-control-zoom {
        top: 80px !important;
        left: 8px !important;
    }
    .marine-modal .leaflet-control-zoom a {
        width: 28px !important;
        height: 28px !important;
        line-height: 28px !important;
        font-size: 1rem !important;
    }

    .marine-modal .marine-layer-toggle {
        top: 80px !important;
        right: 8px !important;
        padding: 3px 6px !important;
    }

    .marine-modal .layer-toggle-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 1rem !important;
        padding: 2px 4px !important;
    }
}

/* ===== Map Skeleton / Loading State ===== */
.map-skeleton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #e8f4fd 0%, #d0e8f7 100%);
    border-radius: 12px;
    color: #666;
    font-size: 0.9rem;
}
.map-skeleton-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #d0e8f7;
    border-top-color: #0077b6;
    border-radius: 50%;
    animation: map-skeleton-spin 0.8s linear infinite;
    margin-bottom: 0.75rem;
}
@keyframes map-skeleton-spin {
    to { transform: rotate(360deg); }
}
.map-skeleton.hidden { display: none !important; }

/* ===== Marine Map in Info Page ===== */
.marine-map-wrapper {
    padding: 1.5rem;
    padding-top: 0;
}
/* Time selector — inline in the flow, not absolute */
.marine-map-wrapper .marine-time-selector {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 0.5rem 1rem !important;
    border-radius: 30px !important;
    margin-bottom: 1rem;
    display: inline-flex;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.marine-map-wrapper .time-btn {
    background: transparent !important;
    border: 2px solid rgba(0, 97, 181, 0.3) !important;
    color: #0061b5 !important;
    font-size: 0.85rem !important;
}
.marine-map-wrapper .time-btn.active {
    background: #0061b5 !important;
    border-color: #0061b5 !important;
    color: white !important;
}
#marine-map {
    z-index: 1;
}
/* Ensure Leaflet tiles load properly */
#marine-map .leaflet-tile-pane {
    border-radius: 12px;
}
/* Info panel — position on the map */
.marine-info-panel {
    top: 10px !important;
    left: 60px !important;
    font-size: 0.8rem !important;
    min-width: 180px !important;
}
/* Legend — bottom left of map */
.marine-legend {
    bottom: 10px !important;
    left: 10px !important;
}
/* Layer toggle — top right of map */
.marine-layer-toggle {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 1000 !important;
    display: flex !important;
    gap: 5px !important;
    background: rgba(255,255,255,0.95) !important;
    padding: 5px 8px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}
.layer-toggle-btn {
    background: transparent !important;
    border: none !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 10px !important;
    transition: all 0.2s !important;
}
.layer-toggle-btn.active {
    background: rgba(0, 97, 181, 0.15) !important;
}
/* Loading overlay */
.marine-loading {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1001 !important;
}

/* Marine modal styles */
.marine-modal .modal-dialog {
    max-width: 95vw !important;
    margin: 1vh auto !important;
}
.marine-modal .modal-content {
    height: 95vh !important;
    display: flex !important;
    flex-direction: column !important;
}
.marine-modal .modal-header {
    background: linear-gradient(135deg, #0c2340 0%, #1a5276 100%);
    color: white;
    border-bottom: none;
}
.marine-modal .modal-header .close {
    color: white;
    opacity: 0.8;
}
.marine-modal .modal-body {
    flex: 1 !important;
    position: relative !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.marine-modal .marine-map-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}
.marine-modal #marine-map {
    width: 100% !important;
    height: 100% !important;
}
.marine-modal .marine-time-selector {
    position: absolute !important;
    top: 15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    display: flex !important;
    gap: 8px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    padding: 8px 12px !important;
    border-radius: 30px !important;
    backdrop-filter: blur(10px) !important;
}
.marine-modal .time-btn {
    background: transparent !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    color: white !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}
.marine-modal .time-btn.active {
    background: #2e86c1 !important;
    border-color: #2e86c1 !important;
}
.marine-modal .marine-info-panel {
    position: absolute !important;
    top: 60px !important;
    left: 60px !important;
    z-index: 1000 !important;
    background: rgba(0,0,0,0.85) !important;
    padding: 12px 15px !important;
    border-radius: 12px !important;
    color: white !important;
    min-width: 200px !important;
    backdrop-filter: blur(10px) !important;
    font-size: 0.85rem !important;
    display: none !important;
}
.marine-modal .marine-info-panel.visible {
    display: block !important;
}
.marine-modal .marine-legend {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 1000 !important;
    background: rgba(0,0,0,0.85) !important;
    padding: 15px !important;
    border-radius: 12px !important;
    color: white !important;
    min-width: 200px !important;
    backdrop-filter: blur(10px) !important;
}
.marine-modal .marine-legend h6 {
    margin: 0 0 10px 0 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
    padding-bottom: 8px !important;
}
.marine-modal .legend-scale {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.marine-modal .legend-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.8rem !important;
}
.marine-modal .legend-color {
    width: 20px !important;
    height: 14px !important;
    border-radius: 3px !important;
    flex-shrink: 0 !important;
}
.marine-modal .marine-layer-toggle {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 1000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    background: rgba(0,0,0,0.7) !important;
    padding: 8px !important;
    border-radius: 10px !important;
    backdrop-filter: blur(10px) !important;
}
.marine-modal .layer-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: white !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.marine-modal .layer-toggle-btn.active {
    background: #2e86c1 !important;
    border-color: #2e86c1 !important;
}
.marine-modal .map-skeleton {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f0f4f8 !important;
    z-index: 500 !important;
}
.marine-modal .map-skeleton.hidden {
    display: none !important;
}
.marine-btn {
    background: linear-gradient(135deg, #1a5276, #2e86c1) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    margin-top: auto !important;
}
.marine-btn:hover {
    background: linear-gradient(135deg, #0c2340, #1a5276) !important;
    transform: translateY(-2px) !important;
}
