/* Canadian insurance organization directory */

#section-contacts {
    min-height: 0;
}

.ct-controls {
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent), var(--bg-panel);
}

.ct-controls-intro {
    margin-bottom: 12px;
}

.ct-eyebrow {
    display: block;
    color: var(--accent-text);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ct-controls-intro strong {
    display: block;
    margin-top: 4px;
    color: var(--text-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 500;
}

.ct-controls-intro p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 10.5px;
    line-height: 1.45;
}

.ct-filter-row {
    margin-top: 9px;
}

.ct-filter-help {
    display: block;
    margin: 5px 2px 0;
    color: var(--text-tertiary);
    font-size: 9px;
}

.ct-search-button {
    width: 100%;
    min-height: 38px;
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid var(--accent);
    border-radius: 11px;
    background: var(--accent);
    color: var(--bg-main);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.ct-search-button:hover {
    filter: brightness(1.05);
}

.ct-search-button:focus-visible {
    outline: 3px solid var(--accent-dim);
    outline-offset: 2px;
}

.ct-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.ct-location-input {
    appearance: none;
}

.ct-location-wrap {
    position: relative;
    display: block;
}

.ct-location-suggestions {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--bg-card);
    box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

.ct-location-suggestions:empty {
    display: none;
}

.ct-location-suggestions button {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 9.5px;
    text-align: left;
    cursor: pointer;
}

.ct-location-suggestions button:hover {
    background: var(--accent-dim);
}

.ct-check-filter {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: var(--text-muted);
    font-size: 9.5px;
    cursor: pointer;
}

.ct-check-filter input {
    accent-color: var(--accent);
}

.ct-filter-row label {
    display: block;
}

.ct-filter-row label > span {
    display: block;
    margin: 0 0 5px 2px;
    color: var(--text-tertiary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ct-select {
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 11px;
    outline: 0;
    background: var(--bg-input);
    color: var(--text-primary);
    font: inherit;
    font-size: 11px;
}

.ct-select:focus {
    border-color: var(--accent-border);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.ct-category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.ct-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 9.5px;
    cursor: pointer;
}

.ct-filter-chip span {
    opacity: 0.65;
    font-size: 8.5px;
}

.ct-filter-chip:hover,
.ct-filter-chip.active {
    border-color: var(--accent-border);
    background: var(--accent-dim);
    color: var(--accent-text);
}

#ct-sidebar-list {
    padding: 0 12px 18px;
}

.ct-results-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 4px 8px;
    background: var(--bg-panel);
    color: var(--text-muted);
    font-size: 9.5px;
}

.ct-results-head strong {
    color: var(--text-primary);
}

.ct-results-head button {
    border: 0;
    background: transparent;
    color: var(--accent);
    font: inherit;
    font-size: 9.5px;
    cursor: pointer;
}

.ct-org-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ct-org-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: rgba(255,255,255,0.018);
    color: var(--text-primary);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.ct-org-card:hover {
    border-color: var(--border-soft);
    background: var(--hover-bg);
    transform: translateX(2px);
}

.ct-org-card.active-row {
    border-color: var(--accent-border);
    background: var(--accent-dim);
}

.ct-org-mark,
.ct-profile-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-border);
    background: var(--accent-dim);
    color: var(--accent-text);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ct-org-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 9px;
}

.ct-org-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.ct-org-copy strong {
    overflow: hidden;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    text-overflow: ellipsis;
}

.ct-org-copy small {
    color: var(--text-muted);
    font-size: 9.5px;
}

.ct-limited-label {
    width: fit-content;
    padding: 2px 5px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 8px;
}

.ct-org-type {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-text);
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ct-org-arrow {
    color: var(--text-tertiary);
    font-size: 18px;
}

.ct-no-results {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    padding: 42px 20px;
    color: var(--text-muted);
    text-align: center;
}

.ct-no-results strong {
    color: var(--text-primary);
    font-size: 12px;
}

.ct-no-results span {
    font-size: 10px;
}

.ct-no-results-icon {
    display: flex;
    padding: 10px;
    border-radius: 12px;
    background: var(--accent-dim);
    color: var(--accent);
}

.ct-detail-body {
    flex: 1;
    overflow-y: auto;
}

.ct-workspace-toggle {
    display: inline-flex;
    gap: 3px;
    margin-top: 4px;
    padding: 3px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--bg-input);
}

.ct-workspace-toggle button {
    padding: 6px 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}

.ct-workspace-toggle button.active {
    background: var(--accent-dim);
    color: var(--accent-text);
}

.ct-directory-map {
    width: 100%;
    min-height: 410px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: #dde4e8;
}

.ct-category-empty {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    color: var(--text-muted);
    background: var(--bg-card);
    font-size: 10px;
}

.ct-empty-state {
    display: flex;
    width: min(620px, calc(100% - 48px));
    min-height: 100%;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--text-muted);
    text-align: center;
}

.ct-empty-icon {
    display: flex;
    margin-bottom: 14px;
    padding: 13px;
    border: 1px solid var(--accent-border);
    border-radius: 16px;
    background: var(--accent-dim);
    color: var(--accent);
}

.ct-empty-state h2 {
    margin: 8px 0;
    color: var(--text-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 500;
}

.ct-empty-state > p {
    max-width: 560px;
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
}

.ct-empty-guide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 28px;
}

.ct-empty-guide span {
    padding: 14px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 13px;
    background: var(--bg-card);
    font-size: 10.5px;
}

.ct-empty-guide strong {
    display: block;
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 14px;
}

.ct-profile {
    width: min(920px, calc(100% - 56px));
    margin: 0 auto;
    padding: 34px 0 42px;
}

.ct-profile-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.ct-profile-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 17px;
    font-size: 13px;
}

.ct-profile-heading {
    min-width: 0;
}

.ct-profile-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--text-muted);
    font-size: 10px;
}

.ct-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    background: var(--accent-dim);
    color: var(--accent-text);
    font-weight: 600;
}

.ct-profile h1 {
    max-width: 780px;
    margin: 9px 0 3px;
    color: var(--text-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 3vw, 40px);
    font-weight: 500;
    line-height: 1.12;
}

.ct-profile-abbr {
    color: var(--text-muted);
    font-size: 12px;
}

.ct-profile-summary {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 3px solid var(--accent);
    border-radius: 0 13px 13px 0;
    background: var(--bg-card);
}

.ct-profile-summary > span,
.ct-audience > span {
    color: var(--text-tertiary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ct-profile-summary p {
    margin: 7px 0 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.65;
}

.ct-verification-notice {
    margin: -12px 0 22px;
    padding: 10px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    color: var(--text-muted);
    background: var(--bg-card);
    font-size: 10px;
}

.ct-profile-wide {
    margin-top: 12px;
}

.ct-audience {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.ct-audience > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ct-audience > div span {
    padding: 4px 8px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 10px;
}

.ct-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ct-profile-section {
    padding: 18px;
    border: 1px solid var(--border-soft);
    border-radius: 15px;
    background: var(--bg-card);
}

.ct-profile-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
    color: var(--accent-text);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ct-boundary .ct-profile-section-title {
    color: var(--text-muted);
}

.ct-profile-section ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ct-profile-section li {
    position: relative;
    padding-left: 15px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.5;
}

.ct-profile-section li::before {
    content: "";
    position: absolute;
    top: 0.62em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.ct-boundary li::before {
    background: var(--text-tertiary);
}

.ct-scenarios {
    margin-top: 12px;
}

.ct-scenarios ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ct-profile-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.ct-primary-action,
.ct-secondary-action {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.ct-primary-action {
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--bg-main);
}

.ct-secondary-action {
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    color: var(--text-primary);
}

.ct-primary-action:hover,
.ct-secondary-action:hover {
    transform: translateY(-1px);
}

.ct-disclaimer {
    margin-top: 26px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-soft);
    color: var(--text-tertiary);
    font-size: 9.5px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .ct-filter-grid {
        grid-template-columns: 1fr;
    }

    .ct-directory-map {
        min-height: 320px;
    }
    .ct-controls-intro {
        display: none;
    }

    .ct-profile {
        width: calc(100% - 28px);
        padding: 20px 0 28px;
    }

    .ct-profile-header {
        gap: 12px;
    }

    .ct-profile-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 13px;
        font-size: 10px;
    }

    .ct-profile-grid,
    .ct-scenarios ul,
    .ct-empty-guide {
        grid-template-columns: 1fr;
    }

    .ct-empty-state {
        width: calc(100% - 28px);
        padding: 28px 0;
    }

    .ct-audience {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

}
