.wc-popover-floating input[type="text"] {
    pointer-events: auto !important;
    opacity: 1 !important;
    background: #fff !important;
    color: #222 !important;
    z-index: 2100 !important;
    position: relative;
    border: 2px solid #f00 !important; /* DEBUG: red border to confirm input is rendered */
}
.wc-popover-floating input[type="text"] {
    pointer-events: auto !important;
    opacity: 1 !important;
    background: #fff !important;
    color: #222 !important;
    z-index: 2100 !important;
    position: relative;
}
.wc-body { 
    position: relative;
}
.wc-main {
    margin-bottom: 2px;
}
.wc-footer-bs {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #1B406A;
    color: white;
    text-align: center;
    z-index: 1030;
    pointer-events: none;
}
.wc-footer-bs * {
    pointer-events: auto;
}
.wc-footer-bs .container {
    max-width: 1100px;
}
.wc-footer-bs .footer-heading {
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.75rem;
}
.wc-footer-bs .footer-links li + li {
    margin-top: 0.35rem;
}
.wc-footer-bs .footer-links a {
    color: rgba(255,255,255,0.9) !important;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.wc-footer-bs .footer-links a::before {
    content: '\f285';
    font-family: 'bootstrap-icons';
    font-size: 0.85rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.wc-footer-bs .footer-links a:hover,
.wc-footer-bs .footer-links a:focus {
    color: #fff !important;
    padding-left: 0.25rem;
}
.wc-footer-bs .footer-links a:hover::before,
.wc-footer-bs .footer-links a:focus::before {
    opacity: 1;
    transform: translateX(0);
}
.wc-footer-bs .footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    color: white;
    transition: background 0.3s ease, transform 0.3s ease;
}
.wc-footer-bs .footer-social-link:hover,
.wc-footer-bs .footer-social-link:focus {
    background: rgba(255,255,255,0.35);
    color: #1B406A;
    transform: translateY(-2px);
}
.wc-footer-bs .footer-newsletter input {
    min-width: 0;
}
.wc-footer-bs .footer-newsletter .btn {
    white-space: nowrap;
}
.wc-footer-bs .footer-divider {
    border-color: rgba(255,255,255,0.1) !important;
}
.wc-footer-bs .footer-brand p {
    max-width: 360px;
}
.wc-footer-bs .footer-brand #wc-racing-sans-logo {
    color: #fff;
}
.wc-footer-bs .footer-brand,
.wc-footer-bs .footer-nav,
.wc-footer-bs .footer-support,
.wc-footer-bs .footer-social {
    min-height: 100%;
}

@media (max-width: 575.98px) {
    .wc-footer-bs .footer-newsletter {
        flex-direction: column !important;
    }
}
.wc-navbar {
    background-color: #003366;
    color: white;
}
#wecaptain-navbar-links {
    color: white;
}

/* Avatar utility: circular profile images */
.wc-avatar {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    display: inline-block;
}

/* Job card thumbnail (left-side image) */
.job-thumb {
    width: 160px;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
    flex: 0 0 160px;
}
#jobCarousel img {
    max-height: 360px;
    object-fit: cover;
}

.wc-yacht-summary {
    border-radius: .75rem;
    background: rgba(0, 64, 118, 0.06);
    box-shadow: inset 0 0 0 1px rgba(0, 119, 204, 0.12);
}

.wc-yacht-summary .badge {
    font-weight: 500;
    text-transform: capitalize;
}
#wc-racing-sans-logo {
    font-family: 'Racing Sans One', Arial, sans-serif !important;
}

/* Alerts: show only a colored left border, remove the other borders */
.alert {
    border: none; /* remove bootstrap full border */
    border-left-width: 4px;
    border-left-style: solid;
    border-left-color: transparent;
    padding: .75rem 1rem;
    border-radius: 0rem;
}

/* Variant left border colors */
.alert-primary { border-left-color: #0d6efd; }
.alert-secondary { border-left-color: #6c757d; }
.alert-success { border-left-color: #198754; }
.alert-danger { border-left-color: #dc3545; }
.alert-warning { border-left-color: #ffc107; }
.alert-info { border-left-color: #0dcaf0; }
.alert-light { border-left-color: #f8f9fa; }
.alert-dark { border-left-color: #212529; }

/* Keep the original background and text from Bootstrap but ensure no duplicate inner borders */
.alert .alert-link {
    font-weight: 600;
}

/* WeCaptain theme colors (expanded) - primary provided: #0077CC */

/* Jobs hero: header + filters background image */
.wc-jc-hero {
    background-size: cover;
    background-position: center center;
    color: #fff;
    border-radius: .5rem;
}
.wc-captain-hero {
    background-image: linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.38)), url('/img/boat_sailboat_bar_navigation-718021-880df5d664e1fe892f68e4b1ab886a49.jpeg');
}
.wc-jobs-hero {
    background-image: linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.38)), url('/img/sailboat_hawaii_sunset_colors_sea_ocean_boat_vacation-612823-07d27c16b41d85370384893482abab96.jpeg');
}
.wc-jc-hero .card {
    background: rgba(255,255,255,0.92); /* keep controls readable */
}
.wc-jc-hero h3 {
    color: #fff;
}
.wc-popover-floating {
  position: absolute;
  z-index: 2000;
  min-width: 220px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  padding: 0.75rem 1rem 0.75rem 1rem;
  margin-top: 0.25rem;
}
.wc-popover-floating .form-label {
  font-size: 0.9em;
  margin-bottom: 0.25rem;
}

.wc-empty-hero {
    background: linear-gradient(135deg, rgba(0, 119, 204, 0.08), rgba(27, 64, 106, 0.08));
    border: 1px solid rgba(0, 119, 204, 0.12);
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(13, 110, 253, 0.08);
}

.wc-empty-hero h4 {
    color: #0a2f58;
    font-weight: 600;
}

.wc-empty-hero p {
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.wc-empty-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.12);
    color: #0a2f58;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#countries-suggestions {
    position: absolute;
    z-index: 1050;
    width: 100%;
    left: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.form-group {
    position: relative;
}

/* Captain Membership Card - Gradient Button */
.btn-gradient-primary {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 102, 204, 0.3);
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 102, 204, 0.4);
    color: white;
}

.btn-gradient-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 102, 204, 0.3);
}

/* Gamification Icons Hover Effects */
.bg-light.rounded:hover {
    background-color: #e9ecef !important;
    transition: background-color 0.2s ease;
    cursor: default;
}

/* ── Reset legacy 'nav a' overrides for dropdown menu items ───────── */
nav .dropdown-menu a,
nav .dropdown-menu .dropdown-item,
.dropdown-menu .dropdown-item {
    margin-left: 0 !important;
    font-weight: 400 !important;
    background: transparent;
    padding: 0.375rem 1rem !important;
    color: #212529 !important;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

nav .dropdown-menu .dropdown-item:hover,
nav .dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background-color: #e9ecef !important;
    color: #1e2125 !important;
}

/* ── Dropdown menu sizing and positioning ────────────────────────── */
.dropdown-menu {
    min-width: 200px !important;
}

.dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
    margin-top: 0.25rem !important;
}

/* ── Logout item: light-red hover to distinguish from nav items ──── */
.dropdown-menu .dropdown-item.text-danger,
nav .dropdown-menu .dropdown-item.text-danger {
    color: #dc3545 !important;
}

.dropdown-menu .dropdown-item.text-danger:hover,
.dropdown-menu .dropdown-item.text-danger:focus,
nav .dropdown-menu .dropdown-item.text-danger:hover,
nav .dropdown-menu .dropdown-item.text-danger:focus {
    background-color: #f8d7da !important;
    color: #dc3545 !important;
}

/* ──────────────────────────────────────────────────────────────────
   Fix 5: sec-navbar responsive overrides for narrow phones (<576px)
   Prevents "Find a Job" / "Find a Captain" buttons from crowding the
   user dropdown and keeps the entire bar on one row.
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
    /* Tighten outer padding of the sec-navbar container */
    .navbar .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Remove the excessive pe-5 from the user-account flex wrapper */
    .navbar .d-flex.align-items-start.pe-5 {
        padding-right: 0 !important;
    }

    /* Shrink the action buttons (Find a Job / Find a Captain) */
    .navbar .d-flex.gap-2.ms-auto.me-3 .btn {
        font-size: 0.78rem;
        padding: 0.3rem 0.55rem;
        white-space: nowrap;
    }

    /* Ensure the user dropdown button also stays compact */
    .navbar .btn.dropdown-toggle {
        font-size: 0.78rem;
        padding: 0.3rem 0.55rem;
    }

    /* Reduce margin between button groups on very small screens */
    .navbar .d-flex.gap-2.ms-auto.me-3 {
        margin-right: 0.35rem !important;
        gap: 0.35rem !important;
    }
}

/* ── L2: Cookie banner — full-width bottom bar on narrow phones ──── */
@media (max-width: 575px) {
    .wc-cookie-banner {
        /* Override end-0 + margin to stretch full width */
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        /* Remove top border-radius so it looks like a docked bar */
        border-radius: 0 !important;
        /* Reduce padding slightly */
        padding: 1rem !important;
    }
}
