/* =============================================
   INTERNATIONAL ISLANDER FERRIES — Header CSS
   ============================================= */

/* =============================================
   TOPBAR — Redes sociales (franja superior)
   ============================================= */

.swt-topbar {
    background: #1a3a6b;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 28px;
    gap: 4px;
}

.swt-topbar .follow {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.swt-topbar .follow li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.18s, background 0.18s;
    text-decoration: none;
}

.swt-topbar .follow li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.swt-topbar .follow svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Para el icono de TripAdvisor que usa stroke */
.swt-topbar .follow svg.icon-stroke {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9px;
}

/* =============================================
   HEADER PRINCIPAL
   ============================================= */

.header {
    background: #ffffff;
    border-bottom: 1px solid #e8edf2;
    /*height: 72px;*/
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 2px 16px rgba(26, 58, 107, 0.10);
}

/* ---- Container / Row ---- */
.swt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
}

.swt-row {
    height: 100%;
}

.swt-flex         { display: flex; }
.swt-flex__center { align-items: center; }
.swt-flex__end    { justify-content: flex-end; }
.swt-sp-btw       { justify-content: space-between; }
.swt-flex__grow-nav { flex: 1; justify-content: flex-end; }

/* ---- Logo ---- */
.swt-logo a {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
    user-select: none;
}

.swt-logo img {
    display: block;
    width: 170px;
    height: auto;
}

/* ---- Nav wrapper ---- */
.swt-nav {
    display: flex;
    align-items: center;
}

/* ---- Main navbar ---- */
.swt-navbar__list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
}

.swt-navbar__item a {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a3a6b;
    text-decoration: none;
    letter-spacing: 0.2px;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s;
}

.swt-navbar__item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4db8e8;
    border-radius: 2px;
    transition: width 0.25s ease;
}

.swt-navbar__item a:hover {
    color: #4db8e8;
}

.swt-navbar__item a:hover::after {
    width: 100%;
}

/* Language switcher badge */
.swt-navbar__item:last-child a {
    font-size: 15px;
    font-weight: 700;
    border: 1.5px solid #1a3a6b;
    border-radius: 4px;
    padding: 3px 9px;
    letter-spacing: 0.8px;
}

.swt-navbar__item:last-child a::after {
    display: none;
}

.swt-navbar__item:last-child a:hover {
    background: #1a3a6b;
    color: #ffffff;
}

/* Close button (mobile only, hidden on desktop) */
.close-menu {
    display: none;
}

/* ---- Hamburger button ---- */
.swt-navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
    margin-left: 16px;
}

.swt-navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a3a6b;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* =============================================
   RESPONSIVE — Mobile
   ============================================= */
@media (max-width: 900px) {
    .swt-topbar { padding: 0 16px; }

    /*.header { height: 64px; }*/

    .swt-navbar-toggle {
        display: flex;
    }

    .swt-navbar-main {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 0;
        box-shadow: -4px 0 24px rgba(0,0,0,0.12);
        transition: right 0.3s ease;
        z-index: 999;
    }

    .swt-navbar-main.open {
        right: 0;
    }

    .swt-navbar__item {
        width: 100%;
        border-bottom: 1px solid #e8edf2;
    }

    .swt-navbar__item a {
        display: block;
        padding: 14px 0;
        font-size: 15px;
    }

    .swt-navbar__item a::after { display: none; }

    .swt-navbar__item:last-child a {
        border: none;
        border-radius: 0;
        padding: 14px 0;
        font-size: 15px;
        letter-spacing: 0;
    }

    .close-menu {
        display: block;
        align-self: flex-end;
        cursor: pointer;
        font-size: 20px;
        font-weight: 700;
        color: #1a3a6b;
        margin-bottom: 16px;
    }
}

@media (max-width: 600px) {
    .swt-topbar { display: none; }
}