/* Members page and Membership page (tier comparison) */

:root {
    --apk-navy: #1d2087;
    --apk-blue: #0479f4;
    --apk-gold: #fad201;
    --apk-ink: #26304a;
    --apk-line: #e1e5ee;
    --apk-soft: #f4f6fb;
}

.mp-wrap h2.mp-title {
    font-size: 28px;
    font-weight: 300;
    color: var(--apk-navy);
    margin: 0 0 6px;
}
.mp-wrap h2.mp-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--apk-gold);
    margin: 8px 0 0;
}
.mp-lead { font-size: 16px; line-height: 1.6; color: var(--apk-ink); max-width: 820px; margin: 14px 0 0; }

/* ---------- Members page ---------- */
.mp-intro { padding: 36px 0 12px; }
.mp-intro .row { align-items: center; }
.mp-map { max-width: 100%; height: auto; }
.mp-counters { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.mp-counters li {
    background: var(--apk-navy);
    color: #fff;
    border-radius: 10px;
    padding: 10px 20px;
    min-width: 150px;
}
.mp-counters strong { display: block; font-size: 30px; line-height: 1.1; color: var(--apk-gold); font-weight: 600; }
.mp-counters span { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #e8eefc; }

.mp-economies { padding: 20px 0 36px; }
.mp-economies h3 { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: #5b6580; margin: 0 0 14px; font-weight: 600; }
.mp-flags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.mp-flags li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 6px;
    background: #fff;
    border: 1px solid var(--apk-line);
    border-radius: 30px;
    font-size: 14px;
    color: var(--apk-ink);
}
.mp-flags img { height: 22px; width: auto; }

.mp-directory { background: var(--apk-soft); padding: 36px 0 50px; }
.mp-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 22px; }
.mp-search {
    flex: 1 1 280px;
    max-width: 420px;
    padding: 10px 16px;
    border: 1px solid #c9d0e0;
    border-radius: 30px;
    font-size: 15px;
    background: #fff;
}
.mp-search:focus { outline: none; border-color: var(--apk-blue); box-shadow: 0 0 0 3px rgba(4, 121, 244, .18); }
.mp-count { font-size: 14px; color: #5b6580; }
.mp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mp-card {
    background: #fff;
    border: 1px solid var(--apk-line);
    border-top: 4px solid var(--apk-navy);
    border-radius: 8px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
}
.mp-card:hover { border-top-color: var(--apk-gold); box-shadow: 0 6px 18px rgba(29, 32, 135, .10); }
.mp-card-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.mp-logo { flex: 0 0 120px; height: 72px; display: flex; align-items: center; justify-content: center; }
.mp-logo img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.mp-id { min-width: 0; }
.mp-id h3 { font-size: 18px; line-height: 1.3; margin: 0 0 6px; color: var(--apk-navy); font-weight: 600; }
.mp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; }
.mp-country { display: inline-flex; align-items: center; gap: 6px; color: var(--apk-ink); }
.mp-country img { height: 16px; width: auto; }
.mp-site { color: var(--apk-blue); word-break: break-all; }
.mp-desc { font-size: 14px; line-height: 1.6; color: #444; margin: 0; }
.mp-empty { display: none; text-align: center; padding: 30px 0; color: #5b6580; }

.mp-cta { background: var(--apk-navy); color: #fff; text-align: center; padding: 38px 0; }
.mp-cta h3 { font-size: 24px; font-weight: 300; margin: 0 0 14px; }
.mp-cta .btn { margin: 4px 6px; padding: 8px 26px; border-radius: 30px; }
.mp-cta .btn-gold { background: var(--apk-gold); border: 1px solid var(--apk-gold); color: #000; }
.mp-cta .btn-gold:hover { background: #ffe24d; }
.mp-cta .btn-ghost { border: 1px solid #fff; color: #fff; }
.mp-cta .btn-ghost:hover { background: #fff; color: var(--apk-navy); }

/* ---------- Membership page ---------- */
.ms-intro { padding: 36px 0 10px; }
.ms-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0 0; padding: 0; list-style: none; }
.ms-points li { background: var(--apk-soft); border-left: 4px solid var(--apk-gold); border-radius: 6px; padding: 16px 18px; font-size: 15px; line-height: 1.5; color: var(--apk-ink); }
.ms-points strong { display: block; color: var(--apk-navy); font-size: 16px; margin-bottom: 4px; }

.ms-tiers { padding: 34px 0 20px; }
.ms-tier-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 22px 0 28px; }
.ms-tier-card {
    background: #fff;
    border: 1px solid var(--apk-line);
    border-top: 4px solid var(--apk-navy);
    border-radius: 8px;
    padding: 16px 14px 14px;
    text-align: center;
}
.ms-tier-card.t-exec { border-top-color: var(--apk-gold); }
.ms-tier-card h3 { font-size: 18px; margin: 0 0 4px; color: var(--apk-navy); font-weight: 600; }
.ms-tier-card .fee { font-size: 22px; font-weight: 600; color: var(--apk-ink); line-height: 1.2; }
.ms-tier-card .fee small { display: block; font-size: 12px; font-weight: normal; color: #5b6580; }
.ms-tier-card p { font-size: 13px; line-height: 1.45; color: #555; margin: 10px 0 0; }

.ms-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--apk-line); border-radius: 8px; background: #fff; }
.ms-table { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: 14px; line-height: 1.45; }
.ms-table th, .ms-table td { padding: 11px 14px; border-bottom: 1px solid var(--apk-line); vertical-align: middle; text-align: center; }
.ms-table thead th { background: var(--apk-navy); color: #fff; font-weight: 600; font-size: 15px; position: sticky; top: 0; }
.ms-table thead th:first-child { text-align: left; }
.ms-table tbody th { text-align: left; font-weight: 600; color: var(--apk-ink); background: var(--apk-soft); min-width: 170px; }
.ms-table th:first-child, .ms-table td:first-child { position: sticky; left: 0; z-index: 1; }
.ms-table thead th:first-child { z-index: 2; }
.ms-table tbody tr:last-child th, .ms-table tbody tr:last-child td { border-bottom: 0; }
.ms-table tr.ms-group th { background: #e7ebf6; color: var(--apk-navy); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; padding: 8px 14px; }
.ms-table td.col-exec { background: #fffbea; }
.ms-table .yes { color: #1a9b4b; font-size: 20px; font-weight: 700; line-height: 1; }
.ms-table .no { color: #9aa3b8; font-size: 18px; line-height: 1; }
.ms-table .txt { display: block; font-size: 13px; color: #444; }
.ms-table .strong { font-weight: 600; color: var(--apk-navy); }

.ms-notes { margin: 14px 0 0; padding: 0 0 0 18px; font-size: 13px; color: #5b6580; line-height: 1.6; }

.ms-special {
    margin: 26px 0 10px;
    padding: 20px 24px;
    border: 2px dashed #b9c2dc;
    border-radius: 10px;
    background: #fafbfe;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.ms-special-badge {
    flex: 0 0 auto;
    background: var(--apk-navy);
    color: var(--apk-gold);
    border-radius: 30px;
    padding: 4px 14px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
}
.ms-special h3 { font-size: 18px; color: var(--apk-navy); margin: 0 0 6px; font-weight: 600; }
.ms-special p { margin: 0; font-size: 14px; line-height: 1.6; color: #444; }

.ms-docs { background: #ddd; padding: 46px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .ms-tier-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .mp-grid { grid-template-columns: minmax(0, 1fr); }
    .ms-points { grid-template-columns: minmax(0, 1fr); }
    .mp-intro .col-md-5 { margin-top: 20px; }
}
@media (max-width: 767px) {
    .mp-wrap h2.mp-title { font-size: 24px; }
    .mp-card { padding: 18px 16px; }
    .mp-card-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .mp-logo { flex-basis: auto; height: 64px; justify-content: flex-start; }
    .mp-logo img { max-height: 64px; }
    .mp-counters li { flex: 1 1 140px; }
    .ms-tier-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ms-special { flex-direction: column; gap: 10px; padding: 16px; }
    .ms-table-hint { display: block; }
    .ms-table tbody th { min-width: 120px; font-size: 13px; padding: 10px; }
    .ms-table td { min-width: 130px; }
}
@media (max-width: 420px) {
    .ms-tier-cards { grid-template-columns: minmax(0, 1fr); }
}
.ms-table-hint { display: none; font-size: 12px; color: #5b6580; margin: 0 0 6px; text-align: right; }

/* Members page map */
.apk-map { display: block; width: 100%; height: auto; }
.apk-map .n { fill: #dbe3f3; stroke: #fff; stroke-width: .6; }
.apk-map .m { fill: #2f6fd0; stroke: #fff; stroke-width: .8; }
.apk-map .m:hover { fill: #1d2087; }
.apk-map .pin { cursor: pointer; outline: none; }
.apk-map .pin path, .apk-map .pin circle { transform: scale(1.7); }
.apk-map .pin path { fill: #fad201; stroke: #7a6500; stroke-width: .6; }
.apk-map .pin circle { fill: #1d2087; }
.apk-map .pin text { font: 600 12px Arial, sans-serif; fill: #1d2087; paint-order: stroke; stroke: #fff; stroke-width: 3.5px; opacity: 0; pointer-events: none; }
.apk-map .pin:hover text, .apk-map .pin:focus text { opacity: 1; }
.apk-map .pin:hover path, .apk-map .pin:focus path { fill: #ffe24d; }
.mp-map-wrap { max-width: 560px; margin: 0 auto; }
.mp-map-note { font-size: 12px; color: #5b6580; text-align: center; margin: 6px 0 0; }

/* Consistent 15px side gutter on mobile for pages built with .mp-wrap */
@media (max-width: 991px) {
    .mp-wrap .container:not(.content-page) { padding-left: 15px; padding-right: 15px; }
    .mp-wrap .container:not(.content-page) > .row { margin-left: -15px; margin-right: -15px; }
}
