/* Shortcode - Status 3 Days
   All styling is scoped to #hullo-3days-container to avoid affecting the rest of the site */

   #hullo-3days-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    font-family: inherit;
}

#hullo-3days-container .hullo-3days-heading {
    margin-top: 0;
    font-size: 1.5em;
    font-weight: bold;
}

#hullo-3days-container .hullo-3days-subtitle {
    margin: 0 0 10px;
    font-size: 1em;
}

#hullo-3days-container .hullo-3days-nav {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
    overflow: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Center the three day buttons as default (optional; or you can do it only in mobile if you wish) */
#hullo-3days-container .hullo-3days-nav {
    justify-content: flex-start; /* or center if you want them centered by default on desktop as well */
}

/* Buttons (Today, Tomorrow, Day After) */
#hullo-3days-container .hullo-3days-tab {
    background: #ebebeb;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    color: #000;
    flex: 1 1 0;
    text-align: center;
    margin: 0!important;
}
#hullo-3days-container .hullo-3days-tab-active {
    background: #004137;
    color: #fff;
}

/* Port wrapper and select styling */
#hullo-3days-container .hullo-3days-port-wrapper {
    margin-left: auto;
    margin-top: 3px!important;
    display: flex;
    flex-basis: 100%;
    text-align: right;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    white-space: nowrap; /* ensures "Departing From:" doesn't break into multiple lines */
}

/* Make the select visually similar to the buttons */
#hullo-3days-container .hullo-3days-port-wrapper select {
    background: #ebebeb;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    color: #000;
}

select#hullo-3days-port {
    font-size: 1em;
}

#hullo-3days-container #hullo-3days-results {
    margin-top: 20px;
}

/* Schedule Styles */
#hullo-3days-container .hullo-3days-schedule {
    font-family: inherit;
}

#hullo-3days-container .hullo-3days-date-heading {
    margin-bottom: 5px;
    font-size: 1.1em;
    font-weight: bold;
}

#hullo-3days-container .hullo-3days-row {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid #ccc;
}
#hullo-3days-container .hullo-3days-row:last-child {
    border-bottom: none;
}

#hullo-3days-container .hullo-3days-time-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#hullo-3days-container .hullo-3days-time {
    font-size: 1em;
    color: #000;
}

#hullo-3days-container .hullo-3days-status {
    font-size: 1em;
    font-weight: bold;
    position: relative;
}
#hullo-3days-container .hullo-3days-status.hullo-3days-on-time {
    color: #127041;
}
#hullo-3days-container .hullo-3days-status.hullo-3days-warning {
    color: orange;
    cursor: pointer;
}
#hullo-3days-container .hullo-3days-status.hullo-3days-not-sailing {
    color: #FF3503;
    cursor: pointer;
}
#hullo-3days-container .hullo-3days-indicator {
    margin-left: 5px;
}
#hullo-3days-container .hullo-3days-description {
    display: none;
    margin-top: 5px;
    color: #333;
    line-height: 1.4;
    white-space: normal;      /* Allows the text to wrap onto the next line */
    word-wrap: break-word;    /* Breaks long words if needed */
    overflow-wrap: break-word;/* Additional support for modern browsers */
    box-sizing: border-box;   /* Includes padding/border in the element’s total width */
}
#hullo-3days-container .hullo-3days-description a {
    color: blue;
    text-decoration: underline;
}

/* ========================= */
/*   MOBILE ADJUSTMENTS     */
/* ========================= */
@media (max-width: 600px) {
    /* Stack everything vertically for mobile */
    #hullo-3days-container .hullo-3days-nav {
        border-bottom: 1px solid #ccc;
        padding-bottom: 10px;
        margin-bottom: 10px;
        overflow: auto;
        display: flex;
        align-items: center;
        gap: 7px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    /* Make the 'Departing From' section take full width and appear above the buttons */
    #hullo-3days-container .hullo-3days-port-wrapper {
        margin-left: auto;
        margin-top: 3px!important;
        display: flex;
        flex-basis: 100%;
        text-align: right;
        align-items: center;
        gap: 10px;
        font-size: 1em;
        white-space: nowrap; /* ensures "Departing From:" doesn't break into multiple lines */
    }

    /* Center the text of the wrapper */
    #hullo-3days-container .hullo-3days-port-wrapper {
        text-align: center;
    }

    /* Make the select take the full width for easier tapping */
    #hullo-3days-container .hullo-3days-port-wrapper select {
        width: 100%;
        max-width: 300px;  /* optional, so it doesn't get too wide on large screens */
    }

    /* Buttons full width (optional). If you don't want them full width, remove width: 100%. */
    #hullo-3days-container .hullo-3days-tab {
        background: #ebebeb;
        border: none;
        padding: 8px 15px;
        cursor: pointer;
        border-radius: 4px;
        color: #000;
        flex: 1 1 0;
        text-align: center;
        margin: 0!important;
    }
    #hullo-3days-container .hullo-3days-tab-active {
        background: #004137;
        color: #fff;
    }
}

/* Shortcode - Status 3 Days Popup Version
   All styling is scoped to #hullo-3days-popup-container to avoid affecting the rest of the site */

   #hullo-3days-popup-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 8px;
    font-family: inherit;
}

#hullo-3days-popup-container .hullo-3days-heading {
    margin-top: 0;
    font-size: 1.5em;
    font-weight: bold;
}

#hullo-3days-popup-container .hullo-3days-subtitle {
    margin: 0 0 10px;
    font-size: 1em;
}

#hullo-3days-popup-container .hullo-3days-nav {
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 10px;
    overflow: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Center the three day buttons as default (optional; or you can do it only in mobile if you wish) */
#hullo-3days-popup-container .hullo-3days-nav {
    justify-content: flex-start; /* or center if you want them centered by default on desktop as well */
}

/* Buttons (Today, Tomorrow, Day After) */
#hullo-3days-popup-container .hullo-3days-tab {
    background: #ebebeb;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    color: #000;
    flex: 1 1 0;
    text-align: center;
    margin: 0!important;
}
#hullo-3days-popup-container .hullo-3days-tab-active {
    background: #004137;
    color: #fff;
}

/* Port wrapper and select styling */
#hullo-3days-popup-container .hullo-3days-port-wrapper {
    margin-left: auto;
    margin-top: 3px!important;
    display: flex;
    flex-basis: 100%;
    text-align: right;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    white-space: nowrap; /* ensures "Departing From:" doesn't break into multiple lines */
}

/* Make the select visually similar to the buttons */
#hullo-3days-popup-container .hullo-3days-port-wrapper select {
    background: #ebebeb;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    color: #000;
}

select#hullo-3days-port {
    font-size: 1em;
}

#hullo-3days-popup-container #hullo-3days-results {
    margin-top: 20px;
}

/* Schedule Styles */
#hullo-3days-popup-container .hullo-3days-schedule {
    font-family: inherit;
}

#hullo-3days-popup-container .hullo-3days-date-heading {
    margin-bottom: 5px;
    font-size: 1.1em;
    font-weight: bold;
}

#hullo-3days-popup-container .hullo-3days-row {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid #ccc;
}
#hullo-3days-popup-container .hullo-3days-row:last-child {
    border-bottom: none;
}

#hullo-3days-popup-container .hullo-3days-time-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#hullo-3days-popup-container .hullo-3days-time {
    font-size: 1em;
    color: #000;
}

#hullo-3days-popup-container .hullo-3days-status {
    font-size: 1em;
    font-weight: bold;
    position: relative;
}
#hullo-3days-popup-container .hullo-3days-status.hullo-3days-on-time {
    color: #127041;
}
#hullo-3days-popup-container .hullo-3days-status.hullo-3days-warning {
    color: orange;
    cursor: pointer;
}
#hullo-3days-popup-container .hullo-3days-status.hullo-3days-not-sailing {
    color: #FF3503;
    cursor: pointer;
}
#hullo-3days-popup-container .hullo-3days-indicator {
    margin-left: 5px;
}
#hullo-3days-popup-container .hullo-3days-description {
    display: none;
    margin-top: 5px;
    color: #333;
    line-height: 1.4;
    white-space: normal;      /* Allows the text to wrap onto the next line */
    word-wrap: break-word;    /* Breaks long words if needed */
    overflow-wrap: break-word;/* Additional support for modern browsers */
    box-sizing: border-box;   /* Includes padding/border in the element’s total width */
}
#hullo-3days-popup-container .hullo-3days-description a {
    color: blue;
    text-decoration: underline;
}

/* ========================= */
/*   MOBILE ADJUSTMENTS     */
/* ========================= */
@media (max-width: 600px) {
    /* Stack everything vertically for mobile */
    #hullo-3days-popup-container .hullo-3days-nav {
        border-bottom: 1px solid #ccc;
        padding-bottom: 10px;
        margin-bottom: 10px;
        overflow: auto;
        display: flex;
        align-items: center;
        gap: 7px;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    /* Make the 'Departing From' section take full width and appear above the buttons */
    #hullo-3days-popup-container .hullo-3days-port-wrapper {
        margin-left: auto;
        margin-top: 3px!important;

        display: flex;
        flex-basis: 100%;
        text-align: right;
        align-items: center;
        gap: 10px;
        font-size: 1em;
        white-space: nowrap; /* ensures "Departing From:" doesn't break into multiple lines */
}

    /* Make the select take the full width for easier tapping */
    #hullo-3days-popup-container .hullo-3days-port-wrapper select {
        width: 100%;
        max-width: 300px;  /* optional, so it doesn't get too wide on large screens */
    }

    /* Buttons full width (optional). If you don't want them full width, remove width: 100%. */
    #hullo-3days-popup-container .hullo-3days-tab {
        background: #ebebeb;
        border: none;
        padding: 8px 15px;
        cursor: pointer;
        border-radius: 4px;
        color: #000;
        flex: 1 1 0;
        text-align: center;
        margin: 0!important;
    }
    #hullo-3days-popup-container .hullo-3days-tab-active {
        background: #004137;
        color: #fff;
    }
}