/* ==========================================================================
   Local Charges page (templates/local-charges.php)
   Layout modelled on cma-cgm.com/ebusiness/local-charges (client request 2026-11-22):
   no banner, title + intro, country filter, region tabs, two-column country lists with PDF links.
   Loaded only on that template. Brand: Montserrat, navy #000d55, orange #ff9400.
   Icons are URL-encoded data URIs (inline <svg> in uploads is blocked by the WAF).
   ========================================================================== */

.lc-page {
    /* The site header is position:fixed and there is no banner on this page, so clear it here.
       --lc-header-h is refined by assets/js/local-charges.js from the real header height. */
    padding: calc(var(--lc-header-h, 90px) + 40px) 0 70px;
    background: #fff;
    color: #000d55;
    font-family: 'Montserrat', sans-serif;
}

.lc-page .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Title + intro ----------------------------------------------------- */
.lc-page .lc-title {
    margin: 0 0 34px;
    color: #000d55;
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
}

.lc-page .lc-intro {
    margin: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid #e3e6ee;
    color: #000d55;
    font-size: 15px;
    line-height: 1.6;
}

/* --- Filter box -------------------------------------------------------- */
.lc-tools {
    margin: 18px 0 30px;
}

.lc-search {
    position: relative;
    width: 300px;
    max-width: 100%;
}

.lc-page .lc-search__input {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 38px 0 36px;
    border: 1px solid #596591;
    border-radius: 0;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 12px center;
    background-size: 15px 15px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000d55%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%3E%3Ccircle%20cx%3D%2210.5%22%20cy%3D%2210.5%22%20r%3D%226.5%22%2F%3E%3Cpath%20d%3D%22m15.5%2015.5%205%205%22%2F%3E%3C%2Fsvg%3E");
    color: #000d55;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.lc-page .lc-search__input::placeholder {
    color: #596591;
    font-style: italic;
    opacity: 1;
}

.lc-page .lc-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: none;
}

.lc-page .lc-search__input:focus {
    border-color: #000d55;
    box-shadow: 0 0 0 1px #000d55;
}

.lc-search__clear {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 24px;
    height: 24px;
    margin-top: -12px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000d55%22%20stroke-width%3D%222.4%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M5%205l14%2014M19%205%205%2019%22%2F%3E%3C%2Fsvg%3E");
}

.lc-search__clear:hover {
    background-color: #eef1f7;
}

.lc-search__clear[hidden] {
    display: none;
}

/* --- Region tabs ------------------------------------------------------- */
.lc-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0 18px;
    margin: 0 0 40px;
    box-shadow: inset 0 -1px 0 #596591;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.lc-tabs::-webkit-scrollbar {
    display: none;
}

.lc-page .lc-tab {
    flex: 0 0 auto;
    margin: 0;
    padding: 16px 8px 14px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: #000d55;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.lc-page .lc-tab:hover {
    border-bottom-color: #c7cde0;
}

.lc-page .lc-tab.is-active {
    border-bottom-color: #ff9400;
    font-weight: 700;
}

.lc-page .lc-tab:focus-visible {
    outline: 2px solid #ff9400;
    outline-offset: -2px;
}

/* --- Regions and countries -------------------------------------------- */
.lc-region {
    margin: 0 0 30px;
}

.lc-region[hidden] {
    display: none;
}

.lc-page .lc-region__title {
    margin: 0 0 26px;
    color: #000d55;
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
}

.lc-countries {
    margin: 0;
    padding: 0;
    list-style: none;
    column-count: 2;
    column-gap: 30px;
}

.lc-country {
    margin: 0;
    padding: 0 0 24px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.lc-country[hidden] {
    display: none;
}

.lc-page .lc-country__name {
    margin: 0 0 10px;
    color: #000d55;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: uppercase;
}

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

.lc-docs li {
    margin: 0 0 12px;
    padding: 0;
}

.lc-docs li::before,
.lc-countries > li::before {
    content: none;
}

.lc-page .lc-doc,
.lc-page .lc-doc:visited {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: #1a3ccf;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
}

.lc-doc__text {
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.lc-page .lc-doc:hover,
.lc-page .lc-doc:focus-visible {
    color: #ff9400;
}

.lc-doc__icon {
    flex: 0 0 auto;
    width: 16px;
    height: 18px;
    margin-top: 1px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 18px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2018%22%3E%3Cpath%20d%3D%22M2.5%20.75h7.2l3.8%203.8v11.95a.75.75%200%200%201-.75.75H2.5a.75.75%200%200%201-.75-.75V1.5a.75.75%200%200%201%20.75-.75z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23000d55%22%20stroke-width%3D%221.2%22%2F%3E%3Cpath%20d%3D%22M9.7.75v3.8h3.8%22%20fill%3D%22none%22%20stroke%3D%22%23000d55%22%20stroke-width%3D%221.2%22%2F%3E%3Crect%20x%3D%22.5%22%20y%3D%228.2%22%20width%3D%2211.5%22%20height%3D%225.6%22%20rx%3D%22.8%22%20fill%3D%22%23ff9400%22%2F%3E%3Ctext%20x%3D%226.25%22%20y%3D%2212.55%22%20font-family%3D%22Arial%2Csans-serif%22%20font-size%3D%224.4%22%20font-weight%3D%22700%22%20fill%3D%22%23fff%22%20text-anchor%3D%22middle%22%3EPDF%3C%2Ftext%3E%3C%2Fsvg%3E");
}

.lc-country__empty {
    margin: 0;
    color: #6b7489;
    font-size: 14px;
}

/* --- No match / empty / disclaimer ------------------------------------ */
.lc-nomatch,
.lc-empty {
    margin: 0 0 30px;
    color: #000d55;
    font-size: 15px;
}

.lc-nomatch[hidden] {
    display: none;
}

.lc-page .lc-disclaimer {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e3e6ee;
    color: #6b7489;
    font-size: 13px;
    line-height: 1.6;
}

/* --- RTL (/ar/) -------------------------------------------------------- */
[dir="rtl"] .lc-page .lc-search__input {
    padding: 0 36px 0 38px;
    background-position: calc(100% - 12px) center;
}

[dir="rtl"] .lc-search__clear {
    right: auto;
    left: 8px;
}

/* --- Responsive -------------------------------------------------------- */
@media (max-width: 767px) {
    .lc-page {
        padding: calc(var(--lc-header-h, 70px) + 28px) 0 50px;
    }

    .lc-page .lc-title {
        margin-bottom: 22px;
        font-size: 26px;
    }

    .lc-search {
        width: 100%;
    }

    .lc-tabs {
        gap: 0 6px;
        margin-bottom: 28px;
    }

    .lc-page .lc-tab {
        font-size: 14px;
        padding: 14px 8px 12px;
    }

    .lc-page .lc-region__title {
        margin-bottom: 18px;
        font-size: 22px;
    }

    .lc-countries {
        column-count: 1;
    }

    .lc-country {
        padding-bottom: 16px;
    }

    .lc-region {
        margin-bottom: 20px;
    }
}
