body {
    margin: 0;
    padding: 0;
}

/* Custom Marker Colors */
.marker-icon {
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.marker-siupal { background-color: #0F62FE; }
.marker-siupkk { background-color: #24A148; }
.marker-both { background-color: #8A3FFC; }

/* Detail Drawer Open Class */
#detail-drawer.open {
    right: 0 !important;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .leaflet-bottom.leaflet-right {
        bottom: 20px;
    }
}

/* Hide scrollbar for horizontal scrolling menus */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* ============================================
   VESSEL PAGE STYLES
   ============================================ */

/* Vessel card hover animation */
.vessel-card {
    will-change: transform, box-shadow;
}

.vessel-card:hover {
    box-shadow: 0 10px 40px -10px rgba(15, 98, 254, 0.15);
}

/* Owner drawer animation */
#owner-drawer {
    will-change: transform;
}

#owner-drawer-overlay {
    transition: opacity 0.3s ease;
}

/* Custom gradient for navy/ocean */
.bg-gradient-to-br.from-navy {
    background: linear-gradient(135deg, #0a1628 0%, #0c2d6b 50%, #1e40af 100%);
}

/* HTMX loading indicator */
.htmx-request #vessel-results {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

/* Smooth page transitions */
.vessel-card,
.owner-detail {
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered card animation */
.vessel-card:nth-child(1) { animation-delay: 0.02s; }
.vessel-card:nth-child(2) { animation-delay: 0.04s; }
.vessel-card:nth-child(3) { animation-delay: 0.06s; }
.vessel-card:nth-child(4) { animation-delay: 0.08s; }
.vessel-card:nth-child(5) { animation-delay: 0.10s; }
.vessel-card:nth-child(6) { animation-delay: 0.12s; }
.vessel-card:nth-child(7) { animation-delay: 0.14s; }
.vessel-card:nth-child(8) { animation-delay: 0.16s; }
.vessel-card:nth-child(9) { animation-delay: 0.18s; }

/* Pagination button active state */
button:focus-visible {
    outline: 2px solid #0F62FE;
    outline-offset: 2px;
}

/* Scrollbar styling for owner drawer */
#owner-drawer-content::-webkit-scrollbar {
    width: 4px;
}
#owner-drawer-content::-webkit-scrollbar-track {
    background: transparent;
}
#owner-drawer-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}
#owner-drawer-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
