/* Zozotravel Directory - isolated frontend styles */
.lthd-directory-filter-wrap {
    width: 100%;
    font-family: "Open Sans", Arial, sans-serif;
    color: #00192e;
    box-sizing: border-box;
}
.lthd-directory-filter-wrap * {
    box-sizing: border-box;
}
.lthd-directory-filter-heading {
    text-align: center;
    margin: 0 auto 24px;
    max-width: 1400px;
}
.lthd-directory-filter-heading h2 {
    margin: 0 0 8px;
    color: inherit;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}
.lthd-directory-filter-heading p {
    margin: 0;
    color: inherit;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
}
.lthd-directory-filter-heading.has-heading-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    max-width: none;
    text-align: left;
}
.lthd-directory-filter-heading.has-heading-actions .lthd-directory-filter-heading__title {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
    min-width: 0;
}
.lthd-directory-filter-heading.has-heading-actions .lthd-directory-filter-heading__actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
}
.lthd-directory-filter-heading.has-heading-actions .lthd-portal-fiche-actions {
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
}
.lthd-directory-filter-heading.has-heading-actions .lthd-portal-fiche-action {
    white-space: nowrap;
}
.lthd-directory-filters {
    width: 100%;
}
.lthd-search-row {
    position: relative;
    width: 100%;
    margin: 0 0 12px;
}
.lthd-search-row input {
    display: block;
    width: 100%;
    height: 48px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    background-color: #fff;
    color: #121212;
    outline: 0;
    padding: 0 16px 0 44px;
    font:
        400 15px/48px "Open Sans",
        Arial,
        sans-serif;
    box-shadow: none;
}
.lthd-search-row input::placeholder {
    color: #707070;
    opacity: 1;
}
.lthd-search-row input:focus {
    border-color: #01649a;
    box-shadow: 0 0 0 2px rgba(1, 100, 154, 0.1);
}
.lthd-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: #707070;
    pointer-events: none;
}
.lthd-filter-bar {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}
.lthd-filter {
    position: relative;
    flex: 1 1 180px;
    min-width: 170px;
}
.lthd-filter-trigger {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    gap: 9px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    background-color: #fff;
    color: #121212;
    padding: 0 12px;
    text-align: left;
    cursor: pointer;
    font:
        600 14px/1.3 "Open Sans",
        Arial,
        sans-serif;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.lthd-filter-trigger:hover,
.lthd-filter.is-open .lthd-filter-trigger {
    border-color: #01649a;
}
.lthd-filter-label {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lthd-filter-count {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background-color: #01649a;
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    font-weight: 700;
    flex: 0 0 auto;
}
.lthd-filter-arrow {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: #121212;
    transition: transform 0.18s ease;
}
.lthd-filter.is-open .lthd-filter-arrow {
    transform: rotate(180deg);
}
.lthd-filter-menu {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 6px);
    left: 0;
    width: min(360px, calc(100vw - 32px));
    background-color: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    padding: 10px;
}
.lthd-filter-menu-search {
    position: relative;
    margin-bottom: 8px;
}
.lthd-filter-menu-search svg {
    position: absolute;
    left: 10px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    color: #707070;
    pointer-events: none;
}
.lthd-filter-menu-search input {
    width: 100%;
    height: 38px;
    border: 1px solid #e5e5e5;
    background-color: #fff;
    padding: 0 10px 0 34px;
    outline: 0;
    color: #121212;
    font:
        400 13px/38px "Open Sans",
        Arial,
        sans-serif;
}
.lthd-filter-menu-search input:focus {
    border-color: #01649a;
}
.lthd-filter-options {
    max-height: 280px;
    overflow: auto;
}
.lthd-filter-option {
    display: flex;
    position: relative;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 8px;
    cursor: pointer;
    color: #414141;
    font:
        400 13px/1.4 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-filter-option:hover {
    background-color: #f2f7f9;
}
.lthd-filter-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.lthd-checkbox {
    position: relative;
    display: inline-flex;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 1px;
    border: 1px solid #ccc;
    background-color: #fff;
    align-items: center;
    justify-content: center;
}
.lthd-filter-option input:checked + .lthd-checkbox {
    border-color: #01649a;
    background-color: #01649a;
}
.lthd-filter-option input:checked + .lthd-checkbox:after {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}
.lthd-filter-option input:focus-visible + .lthd-checkbox {
    outline: 2px solid rgba(1, 100, 154, 0.3);
    outline-offset: 2px;
}
.lthd-option-text {
    min-width: 0;
}
.lthd-filter-empty {
    display: block;
    padding: 12px;
    color: #707070;
    font-size: 13px;
}
.lthd-mobile-filter-toggle {
    display: none;
}
.lthd-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}
.lthd-apply {
    min-height: 42px;
    border: 0;
    border-radius: 0;
    background-color: #01649a;
    color: #fff;
    padding: 0 20px;
    cursor: pointer;
    font:
        600 14px/42px "Open Sans",
        Arial,
        sans-serif;
}
.lthd-apply:hover {
    background-color: #00507b;
}
.lthd-clear {
    color: #00507b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.lthd-clear:hover {
    text-decoration: underline;
}
.lthd-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.lthd-card {
    border: 1px solid #e7e5e1;
    background-color: #f5f3ee;
    overflow: hidden;
}
.lthd-card a,
.lthd-publication a {
    text-decoration: none;
    color: #00192e;
}
.lthd-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}
.lthd-card-body {
    padding: 20px;
}
.lthd-card h3,
.lthd-publication h3 {
    margin: 0 0 8px;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
}
.lthd-zone {
    color: #c96f4a;
    font-size: 14px;
}
.lthd-publications {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.lthd-publication {
    padding: 24px;
    border: 1px solid #e7e5e1;
}
.lthd-empty {
    grid-column: 1/-1;
}
.lthd-pagination {
    margin-top: 28px;
}
.lthd-pagination ul {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.lthd-pagination a,
.lthd-pagination span {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd8d0;
    text-decoration: none;
    color: #00192e;
}
.lthd-pagination .current {
    background-color: #00192e;
    color: #fff;
    border-color: #00192e;
}
@media (max-width: 900px) {
    .lthd-filter {
        flex: 1 1 calc(50% - 5px);
    }
}
@media (max-width: 767px) {
    .lthd-directory-filter-heading {
        text-align: left;
        margin-bottom: 18px;
    }
    .lthd-directory-filter-heading.has-heading-actions {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .lthd-directory-filter-heading.has-heading-actions .lthd-directory-filter-heading__title {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
    }
    .lthd-directory-filter-heading.has-heading-actions .lthd-directory-filter-filter-heading__actions {
        grid-column: 1;
        grid-row: 2;
    }
    .lthd-directory-filter-heading.has-heading-actions .lthd-directory-filter-heading__actions {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
        width: 100%;
    }
    .lthd-directory-filter-heading.has-heading-actions .lthd-portal-fiche-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .lthd-directory-filter-heading.has-heading-actions .lthd-portal-fiche-action {
        white-space: normal;
    }
    .lthd-directory-filter-heading h2 {
        font-size: 22px;
    }
    .lthd-directory-filter-heading p {
        font-size: 14px;
    }
    .lthd-mobile-filter-toggle {
        display: flex;
        width: 100%;
        min-height: 46px;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #e5e5e5;
        background-color: #fff;
        color: #121212;
        padding: 0 14px;
        cursor: pointer;
        font:
            600 14px/46px "Open Sans",
            Arial,
            sans-serif;
    }
    .lthd-mobile-filter-toggle svg {
        width: 18px;
        height: 18px;
    }
    .lthd-mobile-filter-toggle[aria-expanded="true"] {
        border-color: #01649a;
    }
    .lthd-filter-bar {
        display: none;
        padding: 10px 0 0;
    }
    .lthd-filter-bar.is-mobile-open {
        display: flex;
    }
    .lthd-filter {
        flex: 1 1 100%;
        min-width: 0;
    }
    .lthd-filter-menu {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin-top: 5px;
        box-shadow: none;
    }
    .lthd-filter-actions {
        margin-top: 12px;
    }
    .lthd-grid,
    .lthd-publications {
        grid-template-columns: 1fr;
    }
}

/* v1.5 Directory results + create-record UI */
.lthd-directory-filter-wrap {
    background-color: #fff;
}
.lthd-search-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lthd-search-row input {
    flex: 1;
    min-width: 0;
}
.lthd-create-button {
    height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background-color: #01649a;
    color: #fff;
    padding: 0 18px;
    white-space: nowrap;
    cursor: pointer;
    font:
        600 14px/1 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-create-button:hover {
    background-color: #00507b;
}
.lthd-results-head {
    margin: 26px 0 14px;
    color: #00192e;
    font:
        400 14px/1.4 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-results-head strong {
    font-weight: 700;
}
.lthd-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.lthd-card {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.lthd-card-link {
    display: block;
    height: 100%;
}
.lthd-card-image {
    height: 220px;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.lthd-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.lthd-card-image--empty {
    background-color: #f5f5f5;
}
.lthd-card-body {
    padding: 16px;
}
.lthd-card h3 {
    font-size: 17px;
    line-height: 1.35;
    margin: 0 0 10px;
    color: #414141;
}
.lthd-card-country {
    font-size: 13px;
    color: #707070;
    margin-bottom: 10px;
}
.lthd-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.lthd-card-tags li {
    background-color: #dcdcdc;
    color: #121212;
    border: 1px solid #cfcfcf;
    padding: 3px 7px;
    font:
        500 11px/1.2 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-create-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.lthd-create-modal[hidden] {
    display: none;
}
.lthd-create-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 25, 46, 0.55);
}
.lthd-create-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: 90vh;
    overflow: auto;
    background-color: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 1;
}
.lthd-create-close {
    position: absolute;
    right: 14px;
    top: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    background-color: transparent;
    color: #00192e;
    font-size: 28px;
    line-height: 34px;
    cursor: pointer;
}
.lthd-create-header h3 {
    margin: 0 30px 24px;
    color: #00192e;
    font:
        600 21px/1.3 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-create-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.lthd-form-field label {
    display: block;
    margin-bottom: 7px;
    color: #00192e;
    font:
        400 14px/1.35 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-form-field input {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    background-color: #f2f2f2;
    padding: 0 14px;
    color: #121212;
    font:
        400 14px/48px "Open Sans",
        Arial,
        sans-serif;
    outline: 0;
}
.lthd-form-field input:focus {
    background-color: #fff;
    box-shadow: 0 0 0 2px #01649a;
}
.lthd-form-field input.is-invalid {
    box-shadow: 0 0 0 2px #c96f4a;
}
.lthd-create-submit {
    height: 46px;
    border: 0;
    border-radius: 8px;
    background-color: #01649a;
    color: #fff;
    cursor: pointer;
    font:
        600 14px/46px "Open Sans",
        Arial,
        sans-serif;
}
.lthd-create-submit:hover {
    background-color: #00507b;
}
.lthd-create-submit span {
    font-size: 18px;
    margin-right: 6px;
}
.lthd-create-message {
    font-size: 13px;
    line-height: 1.45;
}
.lthd-create-message.is-error {
    color: #b91b1c;
}
.lthd-create-message.is-success {
    padding: 10px 12px;
    background-color: #eef8f1;
    color: #166534;
    border-radius: 6px;
}
html.lthd-modal-open {
    overflow: hidden;
}
@media (max-width: 1100px) {
    .lthd-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lthd-filter {
        min-width: 145px;
    }
}
@media (max-width: 767px) {
    .lthd-search-row {
        display: flex;
        flex-wrap: wrap;
    }
    .lthd-search-row input {
        flex: 1 1 100%;
    }
    .lthd-create-button {
        width: 100%;
        justify-content: center;
    }
    .lthd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .lthd-card-image {
        height: 170px;
    }
    .lthd-create-modal {
        padding: 12px;
    }
    .lthd-create-dialog {
        padding: 22px 18px;
        border-radius: 12px;
        max-height: 94vh;
    }
}
@media (max-width: 520px) {
    .lthd-grid {
        grid-template-columns: 1fr;
    }
    .lthd-card-image {
        height: 210px;
    }
}

/* v1.6 Directory editor/detail page */
.lthd-single-directory {
    background-color: #f5f3ee;
    padding: 56px 20px;
}
.lthd-single-container {
    max-width: 1180px;
    margin: 0 auto;
}
.lthd-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #00192e;
    text-decoration: none;
    font:
        600 14px/1.4 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-single-card {
    background-color: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 28px rgba(0, 25, 46, 0.08);
    padding: 34px;
}
.lthd-single-top {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 40px;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 30px;
}
.lthd-single-logo {
    min-height: 260px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lthd-single-logo img {
    width: 100%;
    height: 260px;
    object-fit: contain;
}
.lthd-single-logo-empty {
    color: #777;
    font:
        400 14px/1.4 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-single-heading h1 {
    margin: 0 0 12px;
    color: #00192e;
    font:
        600 34px/1.2 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-single-country {
    margin-bottom: 16px;
    color: #555;
    font:
        400 15px/1.5 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-single-website {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background-color: #c96f4a;
    padding: 10px 15px;
    text-decoration: none;
    font:
        600 14px/1.2 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-single-content {
    padding-top: 30px;
}
.lthd-single-description {
    margin-bottom: 30px;
    color: #333;
    font:
        400 15px/1.7 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #e5e5e5;
}
.lthd-detail-row {
    padding: 16px 18px;
    border-bottom: 1px solid #e5e5e5;
}
.lthd-detail-label {
    margin-bottom: 5px;
    color: #00192e;
    font:
        600 13px/1.4 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-detail-value {
    color: #444;
    font:
        400 14px/1.6 "Open Sans",
        Arial,
        sans-serif;
    overflow-wrap: anywhere;
}
.lthd-single-directory .site-main {
    margin: 0;
}
@media (max-width: 767px) {
    .lthd-single-directory {
        padding: 30px 14px;
    }
    .lthd-single-card {
        padding: 20px;
    }
    .lthd-single-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .lthd-single-logo,
    .lthd-single-logo img {
        height: 220px;
        min-height: 220px;
    }
    .lthd-single-heading h1 {
        font-size: 26px;
    }
    .lthd-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* v1.6.1 Directory card detail popup - Softr-style centered modal */
.lthd-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 18px;
}
.lthd-detail-modal[hidden] {
    display: none;
}
.lthd-detail-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.62);
}
.lthd-detail-dialog {
    position: relative;
    z-index: 1;
    width: min(930px, 100%);
    max-height: calc(100vh - 84px);
    overflow: hidden;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.lthd-detail-modal-content {
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    padding: 0 16px 26px;
}
.lthd-detail-close {
    position: absolute;
    right: -14px;
    top: -14px;
    z-index: 4;
    width: 30px;
    height: 30px;
    border: 1px solid #aaa;
    border-radius: 50%;
    background-color: #fff;
    color: #111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    font:
        400 22px/28px Arial,
        sans-serif;
}
.lthd-popup-detail {
    font-family: "Open Sans", Arial, sans-serif;
    color: #00192e;
}
.lthd-popup-title-row {
    padding: 16px 2px 12px;
    border-bottom: 1px solid #e7e7e7;
}
.lthd-popup-title-row h2 {
    margin: 0;
    font:
        700 24px/1.25 "Open Sans",
        Arial,
        sans-serif;
    color: #00192e;
}
.lthd-popup-cover {
    margin-top: 12px;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 14px;
    background-color: #f3f3f3;
}
.lthd-popup-cover img {
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.lthd-popup-brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 6px;
    border-bottom: 1px solid #e7e7e7;
}
.lthd-popup-logo {
    width: 100px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 100px;
    background-color: #f4f4f4;
}
.lthd-popup-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.lthd-popup-country {
    margin-bottom: 9px;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}
.lthd-popup-website {
    display: inline-block;
    background-color: #c96f4a;
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    font:
        600 13px/1.2 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-popup-description {
    padding: 18px 6px;
    border-bottom: 1px solid #e7e7e7;
    color: #333;
    font:
        400 14px/1.7 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-popup-details {
    margin-top: 4px;
}
.lthd-popup-detail-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    padding: 13px 6px;
    border-bottom: 1px solid #ededed;
}
.lthd-popup-detail-label {
    color: #00192e;
    font:
        600 13px/1.4 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-popup-detail-value {
    color: #444;
    font:
        400 14px/1.55 "Open Sans",
        Arial,
        sans-serif;
    overflow-wrap: anywhere;
}
.lthd-detail-source {
    display: none !important;
}
html.lthd-detail-modal-open {
    overflow: hidden;
}
.lthd-card-link {
    cursor: pointer;
}
@media (max-width: 767px) {
    .lthd-detail-modal {
        padding: 28px 8px;
    }
    .lthd-detail-dialog {
        max-height: calc(100vh - 56px);
        border-radius: 8px;
    }
    .lthd-detail-modal-content {
        max-height: calc(100vh - 56px);
        padding: 0 10px 18px;
    }
    .lthd-detail-close {
        right: 8px;
        top: 8px;
    }
    .lthd-popup-title-row {
        padding-right: 42px;
    }
    .lthd-popup-title-row h2 {
        font-size: 19px;
    }
    .lthd-popup-cover img {
        height: 260px;
    }
    .lthd-popup-brand-row {
        align-items: flex-start;
    }
    .lthd-popup-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 11px 4px;
    }
}

/* v1.7 Softr-source-mapped Directory detail popup */
.lthd-softr-detail {
    font-family: "Inter", "Open Sans", Arial, sans-serif;
    color: #121212;
    background-color: #fff;
}
.lthd-softr-heading {
    padding: 20px 8px 14px;
}
.lthd-softr-heading h2 {
    margin: 0;
    color: #fff;
    background-color: #00192e;
    padding: 16px 18px;
    border-radius: 8px;
    font:
        700 22px/1.25 "Inter",
        "Open Sans",
        Arial,
        sans-serif;
}
.lthd-softr-main-image {
    height: 280px;
    margin: 0 8px 16px;
    overflow: hidden;
    background-color: #f2f2f2;
    border-radius: 10px;
}
.lthd-softr-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lthd-softr-section {
    margin: 0 8px 14px;
}
.lthd-softr-summary {
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.lthd-softr-summary h1 {
    margin: 0 0 14px;
    color: #121212;
    font:
        700 28px/1.25 "Inter",
        "Open Sans",
        Arial,
        sans-serif;
}
.lthd-softr-small-logo {
    width: 48px;
    height: 48px;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f2f2f2;
    border-radius: 6px;
}
.lthd-softr-small-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.lthd-softr-validation {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: #414141;
    font:
        400 14px/1.65 "Inter",
        "Open Sans",
        Arial,
        sans-serif;
}
.lthd-softr-card {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}
.lthd-softr-card-title {
    padding: 16px 18px;
    background-color: #f2f7f9;
    color: #00283d;
    font:
        700 17px/1.3 "Inter",
        "Open Sans",
        Arial,
        sans-serif;
}
.lthd-softr-row {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(0, 4fr);
    gap: 20px;
    padding: 14px 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    align-items: start;
}
.lthd-softr-label {
    color: #414141;
    font:
        500 13px/1.45 "Inter",
        "Open Sans",
        Arial,
        sans-serif;
}
.lthd-softr-value {
    color: #414141;
    font:
        700 14px/1.6 "Inter",
        "Open Sans",
        Arial,
        sans-serif;
    overflow-wrap: anywhere;
}
.lthd-softr-value a {
    color: #121212;
    text-decoration: underline;
}
.lthd-softr-tags-row {
    align-items: center;
}
.lthd-softr-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.lthd-softr-tags-row > .lthd-softr-label:empty {
    display: none;
}
.lthd-softr-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #d1d1d1;
    border-radius: 6px;
    background-color: #dedede;
    color: #000;
    font:
        500 12px/1.25 "Inter",
        "Open Sans",
        Arial,
        sans-serif;
}
.lthd-softr-summary > .lthd-softr-tags-row {
    display: block;
    border: 0;
    padding: 0 0 6px;
}
.lthd-softr-summary > .lthd-softr-tags-row .lthd-softr-label {
    display: none;
}
.lthd-softr-summary > .lthd-softr-tags-row .lthd-softr-tags {
    gap: 5px;
}
.lthd-softr-summary > .lthd-softr-tags-row .lthd-softr-tags span {
    font-size: 11px;
    min-height: 24px;
}
.lthd-detail-dialog {
    width: min(920px, 100%);
}
.lthd-detail-modal-content {
    padding: 0 12px 26px;
}
.lthd-detail-close {
    right: 8px;
    top: 8px;
    z-index: 10;
}
.lthd-softr-card + .lthd-softr-card {
    margin-top: 14px;
}
@media (max-width: 767px) {
    .lthd-softr-heading {
        padding: 14px 4px 10px;
    }
    .lthd-softr-heading h2 {
        font-size: 18px;
        padding: 13px 14px;
    }
    .lthd-softr-main-image {
        height: 230px;
        margin: 0 4px 12px;
    }
    .lthd-softr-section {
        margin-left: 4px;
        margin-right: 4px;
    }
    .lthd-softr-summary h1 {
        font-size: 21px;
    }
    .lthd-softr-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 12px 14px;
    }
    .lthd-softr-card-title {
        padding: 14px;
    }
    .lthd-softr-tags {
        gap: 5px;
    }
    .lthd-softr-tags span {
        font-size: 11px;
    }
    .lthd-detail-modal {
        padding: 20px 6px;
    }
    .lthd-detail-dialog {
        max-height: calc(100vh - 40px);
    }
    .lthd-detail-modal-content {
        max-height: calc(100vh - 40px);
        padding: 0 6px 18px;
    }
}

/* v1.8 field completeness and image fallback */
.lthd-card-image img {
    object-fit: contain;
    background-color: #f2f2f2;
}
.lthd-card-image img[src$="directory-placeholder.svg"] {
    object-fit: cover;
}
.lthd-empty-value {
    color: #777;
    font-weight: 400;
}
.lthd-softr-validation {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* v1.9 AJAX search + full details button */
.lthd-ajax-results {
    position: relative;
    min-height: 20px;
    transition: opacity 0.18s ease;
}
.lthd-ajax-results.is-loading {
    opacity: 0.48;
    pointer-events: none;
}
.lthd-ajax-results.is-loading:after {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border: 3px solid rgba(0, 25, 46, 0.18);
    border-top-color: #00192e;
    border-radius: 50%;
    animation: lthd-spin 0.7s linear infinite;
}
.lthd-ajax-error {
    padding: 22px;
    text-align: center;
}
.lthd-popup-full-details {
    display: flex;
    justify-content: center;
    padding: 20px 8px 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.lthd-popup-full-details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    background-color: #00192e;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 3px;
    font:
        600 14px/1.2 "Open Sans",
        Arial,
        sans-serif;
    transition:
        background 0.18s ease,
        transform 0.18s ease;
}
.lthd-popup-full-details-button:hover {
    background-color: #c96f4a;
    color: #fff !important;
    transform: translateY(-1px);
}
@keyframes lthd-spin {
    to {
        transform: rotate(360deg);
    }
}
.lthd-filter-menu[hidden] {
    display: none !important;
}
.lthd-filter-menu:not([hidden]) {
    display: block !important;
}
/* v2.1 native interaction fallback */
.lthd-filter:focus-within > .lthd-filter-menu[hidden] {
    display: block !important;
}

/* Portal navigation + Zones */
.lthd-portal-nav {
    width: 100%;
    font-family: "Open Sans", Arial, sans-serif;
}
.lthd-portal-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lthd-portal-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 12px;
    color: #00192e;
    text-decoration: none;
    border-radius: 6px;
}
.lthd-portal-nav a:hover,
.lthd-portal-nav a:focus-visible {
    background-color: #e5eff4;
    color: #00507b;
    outline: none;
}
.lthd-portal-nav-icon {
    width: 20px;
    text-align: center;
    flex: 0 0 20px;
}
.lthd-zones-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.lthd-zone-card {
    border: 1px solid #e5e5e5;
    background-color: #fff;
}
.lthd-zone-card a {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: #00192e;
}
.lthd-zone-card a:hover {
    border-color: #01649a;
}
.lthd-zone-card-icon {
    display: block;
    font-size: 28px;
    line-height: 1;
    color: #c96f4a;
    margin-bottom: 14px;
}
.lthd-zone-card h3 {
    margin: 0 0 7px;
    font-size: 17px;
    line-height: 1.35;
}
.lthd-zone-card-count {
    font-size: 13px;
    color: #707070;
}
@media (max-width: 767px) {
    .lthd-zones-grid {
        grid-template-columns: 1fr;
    }
}

/* v2.2.3 same-page Airtable tabs */
.lthd-portal-tabs {
    width: 100%;
    font-family: "Open Sans", Arial, sans-serif;
    color: #00192e;
}
.lthd-portal-tab-list {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    border-bottom: 1px solid #e5e5e5;
}
.lthd-portal-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    margin: 0;
    border: 1px solid #e5e5e5;
    border-bottom-width: 2px;
    background-color: #fff;
    color: #00192e;
    cursor: pointer;
    text-decoration: none;
    font:
        600 14px/1.25 "Open Sans",
        Arial,
        sans-serif;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.lthd-portal-tab:hover,
.lthd-portal-tab:focus-visible {
    background-color: #e5eff4;
    color: #00507b;
    border-color: #01649a;
    outline: none;
}
.lthd-portal-tab.is-active {
    background-color: #00192e;
    color: #fff;
    border-color: #00192e;
}
.lthd-portal-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
}
.lthd-portal-tab-panel {
    width: 100%;
}
.lthd-portal-tab-panel:not(.is-active) {
    display: none !important;
}
.lthd-portal-panel[hidden] {
    display: none !important;
}
.lthd-portal-results {
    position: relative;
    min-height: 20px;
}
.lthd-portal-results.is-loading {
    opacity: 0.5;
    pointer-events: none;
}
.lthd-portal-results.is-loading:after {
    content: "";
    position: absolute;
    top: 18px;
    left: 50%;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    border: 3px solid rgba(0, 25, 46, 0.18);
    border-top-color: #00192e;
    border-radius: 50%;
    animation: lthd-spin 0.7s linear infinite;
}
.lthd-portal-cards .lthd-portal-card {
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}
.lthd-portal-cards .lthd-portal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #01649a;
}
.lthd-portal-pagination {
    margin-top: 24px;
}
.lthd-portal-panel .lthd-clear {
    border: 0;
    background-color: transparent;
    padding: 0;
    cursor: pointer;
}
.lthd-portal-panel .lthd-filter-bar {
    margin-top: 0;
}
.lthd-portal-panel .lthd-results-head {
    margin: 0 0 16px;
    color: #414141;
    font:
        400 14px/1.5 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-portal-panel .lthd-results-head strong {
    color: #00192e;
    font-weight: 700;
}
.lthd-portal-panel .lthd-zones-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lthd-portal-panel .lthd-zone-card {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: #00192e;
    border: 1px solid #e5e5e5;
    background-color: #fff;
}
.lthd-portal-panel .lthd-zone-card h3 {
    margin: 0 0 7px;
}
.lthd-portal-panel .lthd-zone-card-icon {
    display: block;
}
.lthd-portal-panel .lthd-publications {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 767px) {
    .lthd-portal-tab-list {
        gap: 5px;
        margin-bottom: 16px;
    }
    .lthd-portal-tab {
        flex: 1 1 auto;
        min-width: 0;
        padding: 10px 12px;
        font-size: 13px;
    }
    .lthd-portal-tab-list {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .lthd-portal-tab {
        white-space: nowrap;
    }
    .lthd-portal-panel .lthd-zones-grid,
    .lthd-portal-panel .lthd-publications {
        grid-template-columns: 1fr;
    }
}

/* v2.2.6 live Publications/Zones cards + details modal */
.lthd-live-widget,
.lthd-portal-panel {
    width: 100%;
}
.lthd-portal-cards {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}
.lthd-live-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}
.lthd-live-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
    border-color: #01649a;
}
.lthd-live-card-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
    background-color: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lthd-live-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lthd-live-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}
.lthd-live-card-body h3 {
    margin: 0 0 8px;
    color: #00192e;
    font:
        700 20px/1.3 "Open Sans",
        Arial,
        sans-serif;
    overflow-wrap: anywhere;
}
.lthd-live-card-excerpt {
    margin: 0 0 16px;
    color: #414141;
    font:
        400 14px/1.55 "Open Sans",
        Arial,
        sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lthd-live-card-toggle {
    align-self: flex-start;
    margin-top: auto;
    min-height: 38px;
    border: 1px solid #c96f4a;
    background-color: #c96f4a;
    color: #fff;
    padding: 8px 14px;
    cursor: pointer;
    font:
        600 13px/1.2 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-live-card-toggle:hover,
.lthd-live-card-toggle:focus-visible {
    background-color: #00192e;
    border-color: #00192e;
    color: #fff;
    outline: none;
}
.lthd-live-details {
    display: none !important;
}
.lthd-live-modal[hidden] {
    display: none !important;
}
.lthd-live-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: rgba(0, 19, 30, 0.68);
}
.lthd-live-modal-backdrop {
    position: absolute;
    inset: 0;
}
.lthd-live-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    max-height: min(88vh, 900px);
    overflow: hidden;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}
.lthd-live-modal-content {
    max-height: min(88vh, 900px);
    overflow: auto;
    padding: 26px 30px 30px;
    color: #414141;
    font:
        400 14px/1.6 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-live-modal-close {
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background-color: #00192e;
    color: #fff;
    cursor: pointer;
    font:
        400 24px/38px Arial,
        sans-serif;
}
.lthd-live-modal-close:hover,
.lthd-live-modal-close:focus-visible {
    background-color: #c96f4a;
    outline: none;
}
.lthd-live-modal-heading {
    padding: 0 52px 18px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #e7e7e7;
}
.lthd-live-modal-heading h2 {
    margin: 0;
    color: #00192e;
    font:
        700 28px/1.25 "Open Sans",
        Arial,
        sans-serif;
}
.lthd-live-detail-row {
    display: grid;
    grid-template-columns: minmax(180px, 32%) minmax(0, 1fr);
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid #ededed;
}
.lthd-live-detail-row strong {
    color: #00192e;
    font:
        600 13px/1.45 "Open Sans",
        Arial,
        sans-serif;
    overflow-wrap: anywhere;
}
.lthd-live-detail-row span {
    color: #414141;
    font:
        400 14px/1.6 "Open Sans",
        Arial,
        sans-serif;
    overflow-wrap: anywhere;
}
.lthd-live-attachments {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.lthd-live-attachment-image {
    display: inline-flex;
    max-width: 100%;
    align-items: flex-start;
}
.lthd-live-attachment-image img {
    display: block;
    width: auto;
    max-width: min(100%, 360px);
    max-height: 240px;
    height: auto;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #fff;
}
.lthd-live-attachment-file {
    overflow-wrap: anywhere;
    text-decoration: underline;
}
.lthd-live-detail-row span .lthd-live-attachments {
    margin: 2px 0;
}
html.lthd-live-modal-open {
    overflow: hidden;
}
@media (max-width: 1024px) {
    .lthd-portal-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .lthd-portal-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .lthd-live-card-image {
        height: 190px;
    }
    .lthd-live-modal {
        padding: 12px;
    }
    .lthd-live-modal-dialog,
    .lthd-live-modal-content {
        max-height: calc(100vh - 24px);
    }
    .lthd-live-modal-content {
        padding: 22px 16px 22px;
    }
    .lthd-live-modal-heading h2 {
        font-size: 22px;
    }
    .lthd-live-detail-row {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 11px 0;
    }
}

/* v2.4.28 Zones card refinements */
.lthd-portal-panel .lthd-zone.lthd-live-card {
    height: 100%;
    border-radius: 8px;
}
.lthd-portal-panel .lthd-zone.lthd-live-card .lthd-live-card-image {
    height: 220px;
}
.lthd-portal-panel .lthd-zone.lthd-live-card .lthd-live-card-body {
    gap: 2px;
}
.lthd-portal-panel .lthd-zone.lthd-live-card .lthd-live-card-toggle {
    border-radius: 4px;
}
.lthd-portal-panel .lthd-zone.lthd-live-card .lthd-live-card-toggle:focus-visible {
    outline: 2px solid #01649a;
    outline-offset: 3px;
}
@media (max-width: 767px) {
    .lthd-portal-panel .lthd-zone.lthd-live-card .lthd-live-card-image {
        height: 200px;
    }
    .lthd-portal-panel .lthd-zone.lthd-live-card .lthd-live-card-body {
        padding: 16px;
    }
}

/* v2.4.30 visual polish — CSS only; preserves all existing behavior */
.lthd-portal-tabs {
    --lthd-ui-ink: #102b3f;
    --lthd-ui-muted: #667786;
    --lthd-ui-line: #e2e8ee;
    --lthd-ui-soft: #f6f8fa;
    --lthd-ui-accent: #c96f4a;
    color: var(--lthd-ui-ink);
}
.lthd-portal-tab-list {
    gap: 8px;
    margin: 0 0 26px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--lthd-ui-line);
}
.lthd-portal-tab {
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid var(--lthd-ui-line);
    border-radius: 10px;
    background-color: #fff;
    color: var(--lthd-ui-ink);
    box-shadow: 0 1px 2px rgba(16, 43, 63, 0.03);
    font-weight: 650;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.lthd-portal-tab:hover,
.lthd-portal-tab:focus-visible {
    transform: translateY(-1px);
    background-color: #f3f7fa;
    color: var(--lthd-ui-ink);
    border-color: #b9cbd8;
    box-shadow: 0 4px 12px rgba(16, 43, 63, 0.07);
}
.lthd-portal-tab.is-active {
    background-color: var(--lthd-ui-ink);
    color: #fff;
    border-color: var(--lthd-ui-ink);
    box-shadow: 0 5px 14px rgba(16, 43, 63, 0.16);
}
.lthd-portal-panel .lthd-search-row {
    gap: 12px;
    margin-bottom: 14px;
}
.lthd-portal-panel .lthd-search-row input {
    height: 50px;
    border: 1px solid var(--lthd-ui-line);
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(16, 43, 63, 0.025);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.lthd-portal-panel .lthd-search-row input:focus {
    border-color: #8aaabd;
    box-shadow: 0 0 0 4px rgba(1, 100, 154, 0.09);
}
.lthd-portal-panel .lthd-create-button,
.lthd-portal-panel .lthd-apply {
    border-radius: 9px;
    background-color: var(--lthd-ui-ink);
    box-shadow: 0 2px 5px rgba(16, 43, 63, 0.1);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}
.lthd-portal-panel .lthd-create-button:hover,
.lthd-portal-panel .lthd-apply:hover {
    background-color: #244c65;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(16, 43, 63, 0.14);
}
.lthd-portal-panel .lthd-filter-trigger {
    min-height: 46px;
    border-color: var(--lthd-ui-line);
    border-radius: 9px;
    background-color: #fff;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}
.lthd-portal-panel .lthd-filter-trigger:hover,
.lthd-portal-panel .lthd-filter.is-open .lthd-filter-trigger {
    border-color: #9db7c7;
    color: #fff;
    background-color: #00192E;
    box-shadow: 0 0 0 3px rgba(1, 100, 154, 0.06);
}
.lthd-portal-panel .lthd-filter-menu {
    border-color: var(--lthd-ui-line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(16, 43, 63, 0.14);
}
.lthd-portal-panel .lthd-results-head {
    margin: 4px 0 16px;
    color: var(--lthd-ui-muted);
    font-size: 13px;
    letter-spacing: 0.01em;
}
.lthd-portal-panel .lthd-results-head strong {
    color: var(--lthd-ui-ink);
}
.lthd-portal-cards {
    gap: 22px;
    align-items: stretch;
}
.lthd-portal-cards .lthd-portal-card,
.lthd-portal-panel .lthd-live-card,
.lthd-portal-panel .lthd-zone.lthd-live-card {
    border: 1px solid var(--lthd-ui-line);
    border-radius: 13px;
    background-color: #fff;
    box-shadow: 0 3px 12px rgba(16, 43, 63, 0.045);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.lthd-portal-cards .lthd-portal-card:hover,
.lthd-portal-panel .lthd-live-card:hover,
.lthd-portal-panel .lthd-zone.lthd-live-card:hover {
    transform: translateY(-3px);
    border-color: #c6d5df;
    box-shadow: 0 12px 28px rgba(16, 43, 63, 0.1);
}
.lthd-portal-panel .lthd-live-card-image {
    background-color: var(--lthd-ui-soft);
}
.lthd-portal-panel .lthd-live-card-body {
    padding: 20px;
    gap: 4px;
}
.lthd-portal-panel .lthd-live-card-body h3 {
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: var(--lthd-ui-ink);
}
.lthd-portal-panel .lthd-live-card-excerpt {
    color: #596b78;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 18px;
}
.lthd-portal-panel .lthd-live-card-toggle {
    min-height: 39px;
    padding: 10px 15px;
    border: 1px solid var(--lthd-ui-accent);
    border-radius: 8px;
    background-color: var(--lthd-ui-accent);
    font-weight: 650;
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}
.lthd-portal-panel .lthd-live-card-toggle:hover,
.lthd-portal-panel .lthd-live-card-toggle:focus-visible {
    background-color: var(--lthd-ui-ink);
    border-color: var(--lthd-ui-ink);
    transform: translateY(-1px);
}
.lthd-portal-panel .lthd-zone.lthd-live-card .lthd-live-card-image img {
    object-fit: cover;
}
.lthd-portal-panel .lthd-portal-pagination,
.lthd-portal-panel .lthd-pagination {
    margin-top: 28px;
}
.lthd-portal-panel .lthd-portal-pagination a,
.lthd-portal-panel .lthd-pagination a,
.lthd-portal-panel .lthd-pagination span {
    min-width: 40px;
    height: 40px;
    border-color: var(--lthd-ui-line);
    border-radius: 8px;
    background-color: #fff;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease;
}
.lthd-portal-panel .lthd-portal-pagination a:hover,
.lthd-portal-panel .lthd-pagination a:hover {
    border-color: #a9bfcd;
    background-color: #f3f7fa;
}
.lthd-portal-panel .lthd-pagination .current {
    background-color: var(--lthd-ui-ink);
    border-color: var(--lthd-ui-ink);
    color: #fff;
}
.lthd-live-modal {
    background-color: rgba(9, 25, 38, 0.64);
    backdrop-filter: blur(3px);
}
.lthd-live-modal-dialog {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
}
.lthd-live-modal-content {
    padding: 30px 34px 34px;
}
.lthd-live-modal-heading {
    border-bottom-color: var(--lthd-ui-line);
}
.lthd-live-modal-heading h2 {
    color: var(--lthd-ui-ink);
    letter-spacing: -0.025em;
}
.lthd-live-modal-close {
    background-color: var(--lthd-ui-ink);
    transition:
        background 0.18s ease,
        transform 0.18s ease;
}
.lthd-live-modal-close:hover,
.lthd-live-modal-close:focus-visible {
    background-color: var(--lthd-ui-accent);
    transform: rotate(4deg);
}
.lthd-live-detail-row {
    border-bottom-color: #edf1f4;
}
.lthd-portal-panel a:focus-visible,
.lthd-portal-panel button:focus-visible {
    outline: 2px solid #6d9db7;
    outline-offset: 3px;
}
@media (max-width: 1024px) {
    .lthd-portal-cards {
        gap: 18px;
    }
    .lthd-portal-tab-list {
        margin-bottom: 22px;
    }
}
@media (max-width: 767px) {
    .lthd-portal-tab-list {
        gap: 7px;
        padding-bottom: 8px;
        margin-bottom: 20px;
    }
    .lthd-portal-tab {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 9px 13px;
        border-radius: 8px;
        font-size: 12px;
    }
    .lthd-portal-cards {
        gap: 16px;
    }
    .lthd-portal-panel .lthd-live-card-body {
        padding: 16px;
    }
    .lthd-portal-panel .lthd-live-card-body h3 {
        font-size: 17px;
    }
    .lthd-live-modal-content {
        padding: 22px 16px 22px;
    }
    .lthd-live-modal-heading {
        padding-right: 44px;
    }
    .lthd-live-modal-heading h2 {
        font-size: 22px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .lthd-portal-tab,
    .lthd-portal-panel .lthd-create-button,
    .lthd-portal-panel .lthd-apply,
    .lthd-portal-cards .lthd-portal-card,
    .lthd-portal-panel .lthd-live-card,
    .lthd-portal-panel .lthd-live-card-toggle {
        transition: none !important;
        transform: none !important;
    }
}

/* v1.0.1 — Directory fiche form visual refinement (CSS only) */
.lthd-fiche-modal {
    padding: clamp(10px, 2.5vw, 28px);
    backdrop-filter: blur(3px);
}
.lthd-fiche-modal__dialog {
    width: min(1120px, 96vw);
    border: 1px solid #e7edf1;
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 25, 46, 0.24);
}
.lthd-fiche-modal__head {
    padding: 20px clamp(18px, 3vw, 30px);
    background-color: #fff;
    border-bottom: 1px solid #e8edf1;
}
.lthd-fiche-modal__title {
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.lthd-fiche-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}
.lthd-fiche-modal__close:hover,
.lthd-fiche-modal__close:focus-visible {
    background-color: #f0f5f8;
    color: #12649a;
}
.lthd-fiche-modal__body {
    padding: clamp(16px, 3vw, 30px);
}
.lthd-fiche-form {
    gap: 22px;
}
.lthd-fiche-form__fields {
    column-gap: clamp(16px, 2.2vw, 26px);
    row-gap: 22px;
}
.lthd-fiche-form__section-title {
    padding: 0 0 10px;
    border-bottom: 1px solid #e9eef2;
    font-size: clamp(18px, 1.8vw, 21px);
    letter-spacing: -0.015em;
}
.lthd-fiche-form__field {
    gap: 8px;
}
.lthd-fiche-form label,
.lthd-fiche-record-picker label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #344b5b;
}
.lthd-fiche-form input:not([type="checkbox"]),
.lthd-fiche-form input[type="file"],
.lthd-fiche-form select,
.lthd-fiche-form textarea,
.lthd-fiche-record-picker select {
    min-height: 44px;
    border: 1px solid #dce4ea;
    border-radius: 9px;
    background-color: #f7f9fb;
    color: #173247;
    padding: 11px 13px;
    font-size: 14px;
    line-height: 1.5;
    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}
.lthd-fiche-form input:not([type="checkbox"]):hover,
.lthd-fiche-form input[type="file"]:hover,
.lthd-fiche-form select:hover,
.lthd-fiche-form textarea:hover,
.lthd-fiche-record-picker select:hover {
    border-color: #c2d1dc;
}
.lthd-fiche-form input:not([type="checkbox"]):focus,
.lthd-fiche-form input[type="file"]:focus,
.lthd-fiche-form select:focus,
.lthd-fiche-form textarea:focus,
.lthd-fiche-record-picker select:focus {
    background-color: #fff;
    border-color: #7ba5bd;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(18, 100, 154, 0.09);
}
.lthd-fiche-form textarea {
    min-height: 120px;
}
.lthd-fiche-form__hint {
    color: #687985;
    font-size: 12px;
    line-height: 1.55;
}
.lthd-fiche-linked-options {
    gap: 4px;
    padding: 10px;
    border-color: #dce4ea;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: inset 0 1px 2px rgba(16, 43, 63, 0.025);
}
.lthd-fiche-linked-options .lthd-fiche-form__check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 7px;
    color: #294253;
    line-height: 1.5;
    transition: background 0.15s ease;
}
.lthd-fiche-linked-options .lthd-fiche-form__check:hover {
    background-color: #f3f7fa;
}
.lthd-fiche-form__check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #12649a;
    margin: 3px 0 0;
    flex: 0 0 16px;
}
.lthd-fiche-form__footer {
    position: sticky;
    bottom: -1px;
    z-index: 2;
    margin: 8px calc(clamp(16px, 3vw, 30px) * -1) calc(clamp(16px, 3vw, 30px) * -1);
    padding: 16px clamp(16px, 3vw, 30px);
    border-top: 1px solid #e8edf1;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
}
.lthd-fiche-form__submit {
    min-height: 46px;
    border-radius: 9px;
    padding: 12px 24px;
    background-color: #102b3f;
    box-shadow: 0 3px 8px rgba(16, 43, 63, 0.13);
    transition:
        transform 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}
.lthd-fiche-form__submit:hover,
.lthd-fiche-form__submit:focus-visible {
    background-color: #244c65;
    box-shadow: 0 6px 14px rgba(16, 43, 63, 0.17);
    transform: translateY(-1px);
}
.lthd-fiche-form__status {
    border: 1px solid #e0e7ec;
    border-radius: 9px;
    line-height: 1.55;
}
.lthd-fiche-form__status.is-error {
    border-color: #f4c9c1;
}
.lthd-fiche-form__status.is-success {
    border-color: #cbe8d2;
}
.lthd-fiche-form .lthd-fiche-logo-control {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: 0;
    width: 100%;
}
.lthd-fiche-form .lthd-fiche-logo-preview {
    display: block;
    width: min(100%, 320px);
    height: 140px;
    object-fit: contain;
    align-self: center;
    padding: 10px;
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    background-color: #f7f9fa;
}
.lthd-fiche-form .lthd-fiche-logo-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-width: 0;
}
.lthd-fiche-form .lthd-fiche-logo-actions input[type="file"] {
    grid-column: 1/-1;
    min-width: 0;
    max-width: 100%;
    font-size: 13px;
}
.lthd-fiche-form .lthd-fiche-logo-default,
.lthd-fiche-form .lthd-fiche-logo-clear {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #d7e0e7;
    border-radius: 8px;
    background-color: #fff;
    color: #294253;
    font: 600 12px/1.3 inherit;
    cursor: pointer;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease;
}
.lthd-fiche-form .lthd-fiche-logo-default:hover {
    background-color: #f1f6f9;
    border-color: #b7cbd8;
}
.lthd-fiche-form .lthd-fiche-logo-clear {
    justify-self: start;
    border-color: #efc5bb;
    color: #a6402b;
}
.lthd-fiche-form .lthd-fiche-logo-clear:hover {
    background-color: #fff4f1;
    border-color: #df9f90;
}
.lthd-fiche-form .lthd-country-picker__search {
    padding-right: 42px !important;
}
.lthd-fiche-form .lthd-country-picker__toggle {
    top: 7px;
    right: 7px;
    border-radius: 7px;
}
.lthd-fiche-form .lthd-country-picker__list {
    border-color: #dce4ea;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(16, 43, 63, 0.16);
}
.lthd-fiche-form .lthd-country-picker__option {
    border-radius: 6px;
    padding: 10px 12px;
}
@media (max-width: 767px) {
    .lthd-fiche-modal {
        padding: 8px;
    }
    .lthd-fiche-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 12px;
    }
    .lthd-fiche-modal__head {
        padding: 15px 16px;
    }
    .lthd-fiche-modal__body {
        padding: 16px;
    }
    .lthd-fiche-form__fields {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 17px;
    }
    .lthd-fiche-form__field.is-wide,
    .lthd-fiche-form__section-title {
        grid-column: 1;
    }
    .lthd-fiche-form__section-title {
        margin-top: 5px;
    }
    .lthd-fiche-form__footer {
        margin: 6px -16px -16px;
        padding: 12px 16px;
    }
    .lthd-fiche-form__submit {
        width: 100%;
    }
    .lthd-fiche-form .lthd-fiche-logo-preview {
        width: 100%;
        max-width: 280px;
        height: 130px;
    }
    .lthd-fiche-form .lthd-fiche-logo-actions {
        grid-template-columns: minmax(0, 1fr);
    }
    .lthd-fiche-form .lthd-fiche-logo-actions input[type="file"] {
        grid-column: 1;
    }
    .lthd-fiche-form .lthd-fiche-logo-default,
    .lthd-fiche-form .lthd-fiche-logo-clear {
        justify-self: stretch;
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .lthd-fiche-modal__close,
    .lthd-fiche-form input,
    .lthd-fiche-form select,
    .lthd-fiche-form textarea,
    .lthd-fiche-form__submit {
        transition: none !important;
    }
}
