/* Global Styles - Common CSS for all pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0A4C6F;
    --accent-blue: #1E88E5;
    --light-blue: #E3F2FD;
    --dark-navy: #002B47;
    --gray-dark: #2C3E50;
    --gray-medium: #546E7A;
    --gray-light: #ECEFF1;
    --white: #FFFFFF;
    --orange-accent: #FF6B35;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background: var(--accent-blue);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.2);
}

.cta-button:hover {
    background: var(--orange-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.cta-button::after {
    display: none;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: 0.3s;
}

/* Footer */
footer {
    background: var(--dark-navy);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: white;
    font-weight: 700;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    line-height: 2;
    display: block;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--orange-accent);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--orange-accent);
}

/* Common Page Elements */
.page-hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--dark-navy), var(--primary-blue));
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--gray-medium);
}

/* Buttons */
.btn-primary {
    background: var(--orange-accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #FF8A5C;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }

    .nav-links .cta-button::before {
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

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

    .section-title h2 {
        font-size: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mobile-nav .cta-button {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
        background: linear-gradient(135deg, var(--accent-blue, #1E88E5), var(--primary-blue, #0A4C6F)) !important;
        color: white !important;
        padding: 1rem 2rem !important;
        border-radius: 10px !important;
        font-size: 1.1rem !important;
        box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3) !important;
    }
    
    .mobile-nav .cta-button:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 6px 25px rgba(30, 136, 229, 0.5) !important;
    }

}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(30, 136, 229, 0.4);
    }
}

.nav-links .cta-button.initial-load {
    animation: pulse-glow 2s ease-in-out 3;
}

/* Optional: Add a small badge/indicator for 24/7 availability */
.nav-links .cta-button {
    position: relative;
}

.nav-links .cta-button::before {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}



@media (max-width: 480px) {
    nav {
        padding: 1rem;
    }

    .logo img {
        height: 45px;
    }

    .page-hero {
        padding: 2rem 1rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }
}

/* ===== MODERN HEADER & NAVIGATION STYLES ===== */

/* Override and enhance existing header styles */
#header {
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.main-nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    position: relative;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    z-index: 10;
}

.logo img {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    color: var(--gray-dark, #2C3E50);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links > li > a:hover {
    color: var(--accent-blue, #1E88E5);
}

/* Underline effect for main nav items */
.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue, #1E88E5);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links > li > a:hover::after {
    width: 100%;
}

/* Dropdown Arrow Animation */
.dropdown-arrow {
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mega Dropdown Menu - FIXED VERSION */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 1.5rem; /* Added padding instead to keep visual spacing */
    min-width: 900px;
    max-width: 1100px;
    z-index: 100;
}

/* Add a pseudo-element to bridge the gap */
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 1.5rem; /* Bridge the gap */
    background: transparent;
    z-index: 99;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    padding: 1.5rem;
}

.dropdown-section {
    padding: 1rem;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.dropdown-section:last-child {
    border-right: none;
}

.dropdown-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-blue, #1E88E5);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-blue, #1E88E5);
}

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

.dropdown-list li {
    margin-bottom: 0.25rem;
}

.dropdown-list a {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-list a:hover {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.08), rgba(30, 136, 229, 0.04));
    transform: translateX(4px);
}

.dropdown-list a::after {
    display: none;
}

.service-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.service-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-dark, #2C3E50);
    line-height: 1.3;
}

.service-desc {
    font-size: 0.75rem;
    color: var(--gray-medium, #546E7A);
    line-height: 1.2;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, var(--accent-blue, #1E88E5), #1565C0) !important;
    color: white !important;
    padding: 0.75rem 1.75rem !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.3) !important;
    transition: all 0.3s ease !important;
}

.cta-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(30, 136, 229, 0.4) !important;
}

.cta-button::after {
    display: none !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--gray-dark, #2C3E50);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Panel */
.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu-panel.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.05), rgba(30, 136, 229, 0.02));
}

.mobile-logo {
    height: 45px;
    width: auto;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-dark, #2C3E50);
    transition: all 0.3s ease;
}

.mobile-menu-close:hover {
    transform: rotate(90deg);
    color: var(--accent-blue, #1E88E5);
}

/* Mobile Navigation */
.mobile-nav-list {
    list-style: none;
    padding: 1rem;
    margin: 0;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: var(--gray-dark, #2C3E50);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-link:hover {
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.08), rgba(30, 136, 229, 0.04));
    color: var(--accent-blue, #1E88E5);
    transform: translateX(4px);
}

.nav-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
}

.mobile-nav-cta {
    background: linear-gradient(135deg, var(--accent-blue, #1E88E5), #1565C0) !important;
    color: white !important;
    margin-top: 1rem;
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.3);
}

.mobile-nav-cta:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(30, 136, 229, 0.4) !important;
}

/* Mobile Services Accordion */
.mobile-nav-trigger {
    justify-content: space-between;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-nav-accordion.active .accordion-arrow {
    transform: rotate(180deg);
}

.mobile-services-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-left: 1rem;
}

.mobile-nav-accordion.active .mobile-services-list {
    max-height: 1200px;
}

.mobile-services-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-services-group:last-child {
    border-bottom: none;
}

.mobile-services-group-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-blue, #1E88E5);
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
}

.mobile-services-group a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--gray-dark, #2C3E50);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.mobile-services-group a:hover {
    background: rgba(30, 136, 229, 0.06);
    color: var(--accent-blue, #1E88E5);
    transform: translateX(4px);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Only enable hover on devices that support hover (not touch screens) */
@media (hover: hover) and (pointer: fine) {
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }
    
    .nav-dropdown:hover .dropdown-arrow {
        transform: rotate(180deg);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dropdown-menu {
        min-width: 800px;
    }
    
    .dropdown-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    .main-nav {
        padding: 1rem 1.5rem !important;
    }
    
    .logo img {
        height: 45px !important;
    }

    .dropdown-menu {
        display: none !important;
    }

    /* Services link should go directly to services page on mobile */
    .nav-dropdown > a {
        pointer-events: auto !important;
    }
}

/* iPhone specific fixes */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific fixes */
    .dropdown-menu {
        -webkit-transform: translateX(-50%) translateY(10px);
    }
    
    @media (max-width: 768px) {
        .dropdown-menu {
            display: none !important;
            visibility: hidden !important;
            opacity: 0 !important;
        }
    }
    
    /* Prevent iOS from adding tap highlight */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Fix for iOS sticky hover states */
    .nav-links a,
    .dropdown-list a {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .dropdown-menu {
        min-width: 700px;
    }
    
    .dropdown-content {
        grid-template-columns: repeat(3, 1fr);
        font-size: 0.9rem;
    }
    
    .service-name {
        font-size: 0.8rem;
    }
    
    .service-desc {
        font-size: 0.7rem;
    }
}

/* Override the default .cta-button styling for a more modern look */
.nav-links .cta-button {
    background: rgb(255, 101, 18) !important;
    color: #ffffff !important;
    padding: 0.75rem 2rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border: 2px solid transparent !important;
}

.nav-links .cta-button:hover {
    background: linear-gradient(135deg, var(--accent-blue, #1E88E5), var(--primary-blue, #0A4C6F)) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4) !important;
    border-color: var(--accent-blue, #1E88E5) !important;
}

/* Disable the ::after underline effect for the Contact button */
.nav-links .cta-button::after {
    display: none !important;
}

.nav-links > li:last-child {
    margin-left: 0.5rem;
}

/* Fix for iPhone/iPad - prevent hover states from sticking */
@media (hover: none) {
    .dropdown-menu {
        display: none !important;
    }
    
    .nav-links a:hover {
        color: var(--gray-dark, #2C3E50) !important;
    }
    
    .nav-links a:active {
        color: var(--accent-blue, #1E88E5) !important;
    }

    .nav-links a,
    .mobile-nav-link,
    .mobile-menu-btn {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

@media (max-width: 480px) {
    .mobile-menu-panel {
        width: 90%;
    }
    
    .main-nav {
        padding: 1rem;
    }
}

/* ===== VESSEL SEARCH STYLES ===== */

/* ===== PROFESSIONAL VESSEL SEARCH STYLES ===== */

/* Desktop Vessel Search Container */
.vessel-search-nav {
    position: relative;
    margin-left: auto;
}

/* Search Wrapper - Professional Design */
.vessel-search-wrapper {
    position: relative;
    min-width: 280px;
}

/* Beautiful Search Input with Icon */
.vessel-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border: 2px solid #e0e7ef;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #2C3E50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.vessel-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.vessel-search-input:focus {
    outline: none;
    border-color: #1E88E5;
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.12), 0 0 0 3px rgba(30, 136, 229, 0.08);
    background: #ffffff;
}

/* Search Icon */
.vessel-search-wrapper::before {
    content: '🔍';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

/* Dropdown Results - Modern Card Design */
.vessel-search-results {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    max-height: 420px;
    overflow-y: auto;
    display: none;
    z-index: 2000;
    animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

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

/* Result Item - Premium Design */
.vessel-result-item {
    padding: 1rem 1.3rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.vessel-result-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1E88E5;
    transform: scaleY(0);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vessel-result-item:hover::before {
    transform: scaleY(1);
}

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

.vessel-result-item:hover {
    background: linear-gradient(to right, #E3F2FD 0%, #ffffff 100%);
    padding-left: 1.5rem;
}

.vessel-result-item:active {
    transform: scale(0.98);
}

/* Flag in results */
.vessel-flag {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Vessel name in results */
.vessel-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* No results / Error states */
.vessel-no-results,
.vessel-error {
    padding: 2rem 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

.vessel-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.vessel-no-results::before {
    content: '🔍';
    font-size: 2rem;
    opacity: 0.5;
}

.vessel-error {
    color: #dc2626;
    background: #fef2f2;
    border-radius: 12px;
    margin: 0.5rem;
}

.vessel-error::before {
    content: '⚠️';
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Selected Vessel Display - Premium Badge Design */
.selected-vessel-display {
    display: none;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.2rem;
    background: linear-gradient(135deg, #E3F2FD 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #1E88E5;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.15);
    position: relative;
    overflow: hidden;
    min-width: 280px;
}

.selected-vessel-display::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #1E88E5, #0D47A1);
}

.selected-vessel-display::after {
    content: '✓';
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Flag in selected display */
.selected-vessel-flag {
    font-size: 1.8rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Vessel name in selected display */
.selected-vessel-name {
    font-weight: 700;
    color: #0D47A1;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Clear/Delete Button - Modern Design */
.clear-vessel-btn {
    background: #ffffff;
    border: 1.5px solid #ef4444;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    color: #ef4444;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
    flex-shrink: 0;
}

.clear-vessel-btn:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.clear-vessel-btn:active {
    transform: rotate(90deg) scale(0.95);
}

/* Loading State */
.vessel-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #64748b;
}

.vessel-search-loading::after {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid #E3F2FD;
    border-top-color: #1E88E5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Scrollbar Styling - Premium */
.vessel-search-results::-webkit-scrollbar {
    width: 10px;
}

.vessel-search-results::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 0 16px 16px 0;
}

.vessel-search-results::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
    border-radius: 10px;
    border: 2px solid #f8fafc;
}

.vessel-search-results::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #94a3b8, #64748b);
}

/* Mobile Vessel Search - Premium Design */
.vessel-search-mobile {
    padding: 1.2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    margin: 0.5rem 0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mobile-vessel-search-wrapper {
    position: relative;
}

.mobile-vessel-search-input {
    width: 100%;
    padding: 1rem 1.2rem 1rem 3rem;
    border: 2px solid #e0e7ef;
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mobile-vessel-search-wrapper::before {
    content: '🔍';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    z-index: 1;
}

.mobile-vessel-search-input:focus {
    outline: none;
    border-color: #1E88E5;
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.15);
}

/* Mobile Selected Vessel */
.mobile-selected-vessel {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, #E3F2FD 0%, #ffffff 100%);
    border-radius: 14px;
    border: 2px solid #1E88E5;
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.15);
}

.mobile-selected-vessel-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: #0D47A1;
    font-size: 1.05rem;
}

.mobile-clear-vessel-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.mobile-clear-vessel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.mobile-clear-vessel-btn:active {
    transform: translateY(0);
}

/* Result counter badge */
.vessel-results-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #1E88E5;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3);
    animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .vessel-search-wrapper {
        min-width: 220px;
    }
    
    .selected-vessel-display {
        min-width: 220px;
    }
}

@media (max-width: 992px) {
    .vessel-search-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .vessel-search-results {
        max-height: 350px;
    }
}

/* Accessibility improvements */
.vessel-result-item:focus,
.clear-vessel-btn:focus,
.mobile-clear-vessel-btn:focus {
    outline: 3px solid #1E88E5;
    outline-offset: 2px;
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Print styles */
@media print {
    .vessel-search-nav,
    .vessel-search-mobile {
        display: none;
    }
}