/* =============================================================
   broker-list.css
   ============================================================= */

/* Strip Astra container on this page */
.vtbl-body #primary,
.vtbl-body .site-primary,
.vtbl-body #content,
.vtbl-body .ast-article-single,
.vtbl-body .entry-content,
.vtbl-body .site-content {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
.vtbl-body .ast-container,
.vtbl-body #primary .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.vtbl-page {
    --vt-blue:   #1560bd;
    --vt-navy:   #1d3142;
    --vt-light:  #f2f5f9;
    --vt-border: #dde4ee;
    --vt-grey:   #6b7a8d;
    background: var(--vt-light);
    min-height: 60vh;
}

.vtbl-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Header */
.vtbl-header {
    background: #fff;
    border-bottom: 1px solid var(--vt-border);
    padding: 36px 0 28px;
}

.vtbl-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--vt-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1.2;
}

.vtbl-count {
    font-size: 36px;
    font-weight: 900;
    color: var(--vt-blue);
    line-height: 1;
}

/* Search */
.vtbl-search-wrap {
    background: #fff;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--vt-border);
}

.vtbl-search {
    display: block;
    width: 100%;
    max-width: 420px;
    padding: 12px 18px;
    border: 1.5px solid var(--vt-border);
    border-radius: 6px;
    font-size: 15px;
    color: var(--vt-navy);
    background: var(--vt-light);
    font-family: inherit;
    transition: border-color .15s;
}
.vtbl-search:focus {
    outline: none;
    border-color: var(--vt-blue);
    background: #fff;
}
.vtbl-search::placeholder { color: #aab0bb; }

.vtbl-search-count {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--vt-grey);
    min-height: 18px;
}

/* Grid */
.vtbl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 36px 0 48px;
}

/* Card */
.vtbl-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(29,49,66,.08);
    transition: transform .18s, box-shadow .18s;
}
.vtbl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(29,49,66,.16);
}

.vtbl-card__photo-wrap {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--vt-light);
    flex-shrink: 0;
}
.vtbl-card__photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .3s;
}
.vtbl-card:hover .vtbl-card__photo-wrap img {
    transform: scale(1.04);
}

.vtbl-card__placeholder {
    width: 100%;
    height: 100%;
    background: var(--vt-blue);
    color: #fff;
    font-size: 64px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtbl-card__body {
    padding: 16px 16px 12px;
    text-align: center;
    flex: 1;
}

.vtbl-card__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--vt-navy);
    line-height: 1.3;
}

.vtbl-card__footer {
    background: var(--vt-blue);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.vtbl-card__email,
.vtbl-card__phone {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    word-break: break-all;
}
.vtbl-card__phone {
    font-weight: 700;
    font-size: 14px;
}

/* No results */
.vtbl-no-results {
    text-align: center;
    padding: 60px 0;
    color: var(--vt-grey);
    font-size: 16px;
}

/* Bottom text section */
.vtbl-text-section {
    background: var(--vt-navy);
    padding: 72px 0 80px;
}

.vtbl-text-header {
    margin-bottom: 48px;
}

.vtbl-text-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--vt-blue);
    background: rgba(21,96,189,.18);
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.vtbl-text-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}

.vtbl-text-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: start;
}

.vtbl-text-body p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,.72);
    margin: 0 0 20px;
}
.vtbl-text-body p:last-child { margin-bottom: 0; }

.vtbl-reasons-lead {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,.72);
    margin: 0 0 24px;
}

.vtbl-reasons-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vtbl-reasons-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,.8);
}

.vtbl-reasons-list li::before {
    content: "";
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    background: var(--vt-blue);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 10l3.5 3.5L15 7' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.vtbl-link {
    color: #6eaaff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(110,170,255,.4);
    transition: color .15s, text-decoration-color .15s;
}
.vtbl-link:hover {
    color: #fff;
    text-decoration-color: rgba(255,255,255,.5);
}

@media (max-width: 860px) {
    .vtbl-text-cols { grid-template-columns: 1fr; gap: 36px; }
    .vtbl-text-title { font-size: 22px; }
}

/* Responsive */
@media (max-width: 1100px) {
    .vtbl-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .vtbl-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .vtbl-title { font-size: 22px; }
    .vtbl-count { font-size: 28px; }
    .vtbl-search { max-width: 100%; }
}

@media (max-width: 420px) {
    .vtbl-grid { gap: 12px; }
    .vtbl-container { padding: 0 16px; }
}
/* ──────────────────────────────────────
   PHOTO PLACEHOLDER
   Sits under the <img>, so it shows both when the CRM has no photo
   and when the stored URL fails to load (several point at dead
   redirects). The <img> removes itself on error and uncovers this.
────────────────────────────────────── */
.vtbl-card__photo-wrap { position: relative; }
.vtbl-card__photo-wrap img {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.vtbl-card__placeholder {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    background: linear-gradient(150deg, #2c3e5e 0%, #013147 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.vtbl-card__placeholder svg {
    position: absolute;
    width: 62%;
    height: auto;
    color: #8db4d8;
    opacity: .22;
    transform: translateY(6%);
}
.vtbl-card__placeholder span {
    position: relative;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 3px;
    text-indent: 3px;
    line-height: 1;
}
@media (max-width: 640px) {
    .vtbl-card__placeholder span { font-size: 34px; }
}
