/*
 * Caribbean Connector — Member Directory
 * Styles for: /directory
 * Source view: resources/views/member-directory.blade.php
 */

:root {
    --bcolor: #03645b;
    --cc-red: #d7192e;
    --cc-red-dark: #bb1024;
    --cc-yellow: #f6c51b;
    --cc-blue: #08366e;
    --cc-teal: #087f7d;
    --cc-dark: #111313;
    --cc-muted: #68717b;
    --cc-light: #f5f7f8;
    --cc-border: #dfe3e6;
    --cc-container: 1280px;
	--cc-white: #fff;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
    background: #fff;
}

.cc-container {
    max-width: var(--cc-container);
    margin: auto;
}

.serif {
    font-family: Georgia, "Times New Roman", serif;
}

.text-red {
    color: var(--cc-red);
}

.btn-cc-red {
    background: var(--bcolor);
    border-color: var(--bcolor);
    color: #fff;
    font-weight: 700;
    border-radius: 5px;
    padding: 10px 20px;
}

.btn-cc-red:hover {
    background: var(--bcolor);
    border-color: var(--bcolor);
    color: #fff;
}

.btn-outline-cc {
    border: 1px solid var(--bcolor);
    color: var(--bcolor);
    background: #fff;
    font-weight: 700;
    border-radius: 5px;
}

.btn-outline-cc:hover {
    background: var(--bcolor);
    color: #fff;
}

/* Header */
.cc-header {
    background: #01090f;
    color: #fff;
    border-bottom: 1px solid #303333;
}

.cc-logo img {
    height: 50px;
}

.cc-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
    line-height: .9;
}

.navbar-expand-lg .navbar-nav .nav-link {
    color: #fff;
}

.cc-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    display: block;
}

.cc-nav a.active {
    border-bottom: 3px solid var(--cc-red);
}

.header-join {
    padding: 10px 27px !important;
    border-radius: 5px;
    background: var(--cc-red);
    font-weight: 700;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* Flag */
.flag img {
    width: 30px;
    margin-right: 5px;
}

/* Hero */
.network-hero {
    background: #101212 url('/dist/images/d-banner.png');
    color: #fff;
    padding: 70px 0 60px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.network-hero h1 {
    font-size: 39px;
    line-height: 1.05;
    margin: 5px 0 5px;
    font-weight: 800;
    letter-spacing: -1.4px;
}

.network-hero .lead {
    font-size: 20px;
    color: #e5e9eb;
    margin-bottom: 2px;
}

.network-hero .sub {
    font-size: 15px;
    color: #ddd;
    margin-bottom: 9px;
}

.hero-search {
    display: flex;
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    height: 44px;
    padding: 3px;
}

.hero-search .icon {
    width: 45px;
    display: grid;
    place-items: center;
    color: #111;
    font-size: 18px;
}

.hero-search input {
    border: 0;
    outline: 0;
    flex: 1;
    font-size: 14px;
    padding: 0 8px;
}

.hero-search button {
    width: 110px;
    border: 0;
    background: var(--cc-yellow);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
}

.hero-note {
    height: 100%;
    text-align: center;
    font-family: "Segoe Print", cursive;
    font-size: 25px;
    line-height: 1.05;
    transform: rotate(349deg);
    width: 273px;
    margin-bottom: 30px;
    text-align: left;
}

.hero-note::after {
    content: "";
    display: block;
    width: 115px;
    height: 4px;
    background: var(--cc-yellow);
    margin: 8px auto 0;
    transform: rotate(-8deg);
}

/* Filters */
.filters-wrap {
    background: #fff;
    padding: 14px 0 11px;
}

.filter-box {
    background: #fff;
    border: 1px solid #dfe3e6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    gap: 9px;
    box-shadow: 2px 0px 2px #00000036;
}

.filter-icon {
    width: 27px;
    text-align: center;
    font-size: 25px;
    color: #006a0d;
}

.filter-label {
    font-size: 13px;
    font-weight: 700;
    display: block;
}

.filter-select {
    border: 0;
    width: 100%;
    font-size: 13px;
    outline: 0;
    background: #fff;
    color: #4a5560;
    cursor: pointer;
}

.popular-title {
    font-size: 12px;
    font-weight: 700;
    margin: 8px 0 6px;
}

.popular-pill {
    background: #fff;
    border: 1px solid #e0e4e7;
    border-radius: 10px;
    padding: 14px 14px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s;
    display: grid;
    min-width: 120px;
    box-shadow: 3px 3px 2px #0000001a;
}

.popular-pill:hover,
.popular-pill.active {
    background: var(--cc-white);
    color: #03645b;
    border-color: #03645b63;
}

.popular-pill i {
    font-size: 25px;
    margin: 0 0 8px 0;
}

.popular-pill:nth-child(1) i { color: #ff2c2c; }
.popular-pill:nth-child(2) i { color: #db8d00; }
.popular-pill:nth-child(3) i { color: #0094db; }
.popular-pill:nth-child(4) i { color: #db3300; }
.popular-pill:nth-child(5) i { color: #219d8c; }
.popular-pill:nth-child(6) i { color: #c300db; }
.popular-pill:nth-child(7) i { color: #0094db; }
.popular-pill:nth-child(8) i { color: #db3300; }

/* Network / Cards */
.network-section {
    padding: 50px 0;
    background: #f6f7f8;
}

.section-title {
    font-size: 30px;
    line-height: 1;
    margin: 0;
    color: #111;
    font-weight: 600;
}

.section-sub {
    font-size: 13px;
    color: #5d6873;
    margin: 3px 0 0;
}

.all-members {
    color: var(--cc-red);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.member-card {
    border: 1px solid #dfe3e6;
    border-radius: 7px;
    background: #fff;
    padding: 12px 12px 10px;
    height: 100%;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
    transition: box-shadow .2s, transform .2s;
}

.member-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
    transform: translateY(-2px);
}

.member-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    margin-bottom: 6px;
}

.member-logo img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

.member-logo-placeholder {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #f1f4f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    color: var(--cc-blue);
}

.type-line {
    font-size: 11px;
    color: #173a65;
    font-weight: 700;
    margin-bottom: 5px;
}

.member-name {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 2px;
    color: #122b51;
}

.member-service {
    font-size: 12px;
    color: #626d77;
    margin-bottom: 5px;
}

.member-meta {
    font-size: 12px;
    line-height: 1.55;
    color: #4b5560;
}

.member-meta i {
    width: 15px;
    color: #1e3e69;
}

.member-desc {
    font-size: 12px;
    line-height: 1.35;
    color: #4d5963;
    min-height: 47px;
    margin: 3px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag {
    display: inline-block;
    background: #f1f4f7;
    color: #526273;
    border-radius: 3px;
    padding: 4px 6px;
    font-size: 9px;
    margin: 2px 2px 4px 0;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.card-actions .btn {
    font-size: 12px;
    padding: 7px 8px;
    flex: 1;
    text-align: center;
    border-radius: 8px;
}

/* Toolbar & list view */
.view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.tool-btn {
    height: 37px;
    min-width: 174px;
    border: 1px solid #bfc6cc;
    background: #fff;
    border-radius: 5px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.view-icons button {
    padding: 0 10px;
    border: 1px solid #e0e3e6;
    background: #fff;
    height: 35px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
}

.view-icons button.active {
    color: #000;
    border-color: var(--cc-yellow);
    background: var(--cc-yellow);
}

.view-icons button i {
    padding-right: 8px;
}

.member-row {
    gap: 10px;
    border: 1px solid #e0e3e6;
    border-radius: 5px;
    padding: 7px 13px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background: #fff;
    min-height: 56px;
}

.row-logo {
    width: 55px;
    text-align: center;
}

.row-logo img {
    max-height: 42px;
    max-width: 52px;
    object-fit: contain;
}

.row-logo-icon {
    font-size: 28px;
    color: var(--cc-blue);
}

.row-main {
    min-width: 310px;
    flex: 1;
}

.row-name {
    font-size: 13px;
    font-weight: 800;
    color: #12335c;
}

.row-info {
    font-size: 10px;
    color: #68727c;
    margin-top: 3px;
}

.row-tags {
    width: 290px;
}

.row-action {
    width: 150px;
    text-align: right;
}

.call {
    color: var(--cc-red);
    font-size: 18px;
    margin-left: 15px;
}

/* Pagination */
.pagination-wrap {
    text-align: center;
    margin: 30px 0 10px;
}

.pagination-wrap .pagination {
    justify-content: center;
}

.pagination .page-link {
    color: var(--cc-red);
    border-color: #dfe3e6;
}

.pagination .page-item.active .page-link {
    background: var(--cc-red);
    border-color: var(--cc-red);
}

/* Questions */
.questions {
    border-top: 1px solid #dfe3e6;
    padding: 17px 0 16px;
    background: #e9f3ea;
}

.questions h2,
.pipeline h2 {
    font-size: 29px;
    color: #09366d;
    margin: 0;
    line-height: 1;
    font-weight: 600;
}

.question-intro {
    font-size: 13px;
    color: #56616d;
    margin: 3px 0 11px;
}

.question-item {
    text-align: center;
    padding: 20px 10px;
    height: 100%;
}

.question-item:last-child {
    border: 0;
}

.question-icon {
    font-size: 32px;
    color: var(--cc-teal);
    margin-bottom: 4px;
}

.question-item:nth-child(4) .question-icon {
    color: var(--cc-red);
}

.question-item:nth-child(5) .question-icon {
    color: #e9b800;
}

.question-label {
    font-size: 13px;
    font-weight: 700;
    color: #1d3757;
    margin-bottom: 10px;
}

.north-stars {
    border-radius: 12px;
    box-shadow: 0px 3px 10px #00000021;
    padding: 20px 35px;
    background: #fff;
}

.north-title {
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    color: #173b69;
    margin-bottom: 7px;
}

.star-item {
    text-align: center;
    font-size: 12px;
    color: #38526b;
    padding: 10px;
}

.star-item i {
    font-size: 27px;
    color: var(--cc-teal);
    display: block;
    margin-bottom: 3px;
}

.star-item:nth-child(2) i { color: #0b827d; }
.star-item:nth-child(3) i { color: #0a8b81; }
.star-item:nth-child(4) i { color: #149a8d; }

.control-btn {
    width: 100%;
    margin-top: 8px;
}

/* Pipeline */
.pipeline {
    background: #eef4f7 url('/dist/images/cloud.png');
    padding: 45px 0 40px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.pipeline .eyebrow {
    color: #173b69;
}

.pipeline-intro {
    font-size: 13px;
    color: #58636e;
    margin: 3px 0 10px;
}

.pipe-card {
    background: #fff;
    border-radius: 7px;
    min-height: 107px;
    padding: 14px 18px;
    position: relative;
    border: 1px solid #e0e4e7;
}

.pipe-card h3 {
    font-size: 17px;
    color: #123b71;
    font-weight: 600;
    margin: 0 0 2px;
}

.pipe-card p {
    font-size: 11px;
    color: #52606c;
    margin: 0 0 7px;
}

.pipe-icon {
    font-size: 38px;
    color: #07817e;
    float: left;
    margin-right: 15px;
}

.pipe-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    color: #111;
}

.pipeline-link {
    font-size: 10px;
    color: #53606b;
    text-decoration: underline;
}

/* CTA */
.network-cta {
    padding: 50px 0;
}

.cta-title {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin: 0;
}

.cta-text {
    font-size: 12px;
    color: #59646e;
    margin: 2px 0 0;
}

.cta-button {
    background: var(--cc-yellow);
    border: 0;
    border-radius: 4px;
    padding: 11px 25px;
    font-size: 12px;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    display: inline-block;
    transition: opacity .2s;
}

.cta-button:hover {
    opacity: .88;
    color: #111;
}

/* Footer */
.cc-footer {
    background: #101212;
    color: #fff;
    padding: 15px 0 11px;
}

.footer-logo {
    font-size: 16px;
    font-weight: 800;
    line-height: .95;
}

.footer-logo img {
    height: 50px;
}

.footer-copy {
    font-size: 11px;
    color: #c5c9cb;
    margin-top: 5px;
    max-width: 280px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    padding: 0 9px;
    border-right: 1px solid #707475;
}

.footer-nav a:last-child {
    border-right: 0;
}

.social a {
    padding: 0;
    width: 27px;
    height: 27px;
    border: 1px solid #a8abad;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    margin-left: 5px;
}

.footer-tagline {
    font-family: "Segoe Print", cursive;
    font-size: 13px;
    text-align: right;
}

.copyright {
    border-top: 1px solid #303334;
    margin-top: 10px;
    padding-top: 8px;
    font-size: 10px;
    color: #b9bdc0;
    text-align: center;
}

/* Caribbean flag images */
.cc-cflag-img {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border: 1px solid #e0e3e6;
    border-radius: 2px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Empty */
.dir-empty {
    text-align: center;
    padding: 60px 24px;
    color: #666;
}

.dir-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
    display: block;
}

.topfilter {
    margin-top: -60px;
}

/* Google Places Autocomplete dropdown z-index */
.pac-container {
    z-index: 99999 !important;
}

/* Location input & clear button */
.loc-wrap {
    position: relative;
    min-width: 0;
}

.loc-autocomplete-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: inherit;
    padding: 0;
    cursor: text;
}

#locationClear,
.loc-clear-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    line-height: 1;
}

#locationClear:hover,
.loc-clear-btn:hover {
    color: #555;
}

/* Responsive — tablet */
@media (max-width: 991.98px) {
    .network-hero h1 { font-size: 34px; }
    .hero-note { font-size: 18px; }
    .row-tags { display: none; }
    .row-main { min-width: 0; }
    .north-stars {
        border-left: 0;
        border-top: 1px solid #d0d5d9;
        padding: 12px 0 0;
        margin-top: 12px;
    }
}

/* Responsive — mobile */
@media (max-width: 767.98px) {
	.view-toolbar{justify-content: start;}
	.topfilter {margin-top: 0px;}
    .cc-header { height: auto; padding: 10px 0; }
    .header-join { padding: 8px 13px !important; }
    .network-hero { padding: 18px 0; }
    .network-hero h1 { font-size: 31px; }
    .network-hero .lead { font-size: 17px; }
    .filter-box { margin-bottom: 7px; }
    .popular-pill { font-size: 11px; padding: 7px 9px; }
    .section-title { font-size: 25px; }
    .member-card { margin-bottom: 10px; }
    .tool-btn { min-width: 74px; height: 30px; }
    .member-row { padding: 8px; }
    .row-logo { width: 42px; }
    .row-action { width: 80px; }
    .row-action .btn { font-size: 10px; padding: 5px; }
    .question-item { margin-bottom: 12px; border: 0; }
    .pipe-card { margin-bottom: 8px; }
    .pipe-arrow { transform: rotate(90deg); height: 22px; }
    .footer-nav { margin: 12px 0; }
    .footer-tagline { text-align: left; }
}

/* Responsive — small mobile */
@media (max-width: 575px) {
	.north-stars{padding:15px;}
	.filter-box{padding: 6px 15px;}
	.popular-pill{width:48%;}
    .cta-button { font-size: 11px; }
    .btn-cc-red { font-size: 12px; }
    .footer-tagline { text-align: center; }
    .footer-copy { max-width: max-content; text-align: center; }
    .footer-logo { text-align: center; }
    .questions h2,
    .pipeline h2 { font-size: 25px; }
}

/* ── Caribbean Connection Select2 Dropdown ── */
.filter-box .select2-container { width: 100% !important; }
.filter-box .select2-container--bootstrap-5 .select2-selection--single,
.filter-box .select2-container .select2-selection--single {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: auto !important;
    min-height: unset !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
}
.filter-box .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered,
.filter-box .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0 18px 0 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #4a5560 !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
    width: 100% !important;
}
.filter-box .select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow,
.filter-box .select2-container .select2-selection--single .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 0 !important;
    height: 16px !important;
    width: 16px !important;
    border: none !important;
}
.cc-flag-img-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    vertical-align: middle;
}
.cc-flag-img-option img.cc-select-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #d1d5db;
    flex-shrink: 0;
    vertical-align: middle;
}
.select2-dropdown {
    border: 1px solid #dfe3e6 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden !important;
    z-index: 99999 !important;
    background: #fff !important;
}
.select2-dropdown .select2-search--dropdown {
    padding: 8px 10px !important;
}
.select2-dropdown .select2-search__field {
    border: 1px solid #dfe3e6 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    padding: 6px 10px !important;
    outline: none !important;
}
.select2-dropdown .select2-results__options {
    max-height: 260px !important;
}
.select2-dropdown .select2-results__option {
    font-size: 13px !important;
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    color: #1f2937 !important;
}
.select2-dropdown .select2-results__option--highlighted {
    background-color: #03645b !important;
    color: #fff !important;
}
.select2-dropdown .select2-results__option--selected {
    background-color: #e6f3f1 !important;
    color: #03645b !important;
    font-weight: 600 !important;
}
.select2-dropdown .select2-results__option--selected.select2-results__option--highlighted {
    background-color: #03645b !important;
    color: #fff !important;
}

