/* Self-hosted from branches.blade.php */
:root {
            --metal-50:  #f0f3f5;
            --metal-700: #556977;
            --metal-800: #33424c;
            --metal-900: #29353d;
            --blue-600:  #009ddb;
            --blue-700:  #037dae;
            --blue-750:  #026d97;
            --blue-800:  #015a7a;
            --text-dark: #121212;
            --text-body: #333333;
            --border-light: #dae1e7;
        }

        .schwab-branches,
        .schwab-branches h1,
        .schwab-branches h2,
        .schwab-branches h3,
        .schwab-branches p,
        .schwab-branches a,
        .schwab-branches button,
        .schwab-branches input {
            font-family: 'Charles Modern', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        }

        .schwab-branches .las,
        .schwab-branches .la,
        .schwab-branches i[class*="la-"] {
            font-family: 'Line Awesome Free' !important;
            font-weight: 900;
        }

        .schwab-branches {
            background: #ffffff;
            color: var(--text-body);
            line-height: 1.5;
        }

        .schwab-branches .sr-only {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Hero — schwab.com/branches uses bg-metal-800 (#415462), not meganav #33424c */
        .branches-hero {
            background: #415462;
            color: #ffffff;
        }

        .hero-inner {
            max-width: 1232px;
            margin: 0 auto;
            padding: 48px 24px;
        }

        .hero-lockup {
            max-width: 760px;
            margin: 0 auto;
            text-align: center;
        }

        .hero-eyebrow {
            display: block;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-bottom: 8px;
        }

        .hero-lockup h1 {
            font-size: clamp(2.5rem, 6vw, 4.5rem);
            font-weight: 300;
            line-height: 1.1;
            color: #ffffff;
            margin: 0 0 24px;
        }

        .branch-search-form {
            display: flex;
            width: 100%;
            max-width: 640px;
            margin: 0 auto;
        }

        .branch-search-input-wrap {
            flex: 1;
            position: relative;
        }

        .branch-search-input {
            width: 100%;
            height: 44px;
            padding: 0 16px;
            border: 1px solid var(--metal-800);
            border-right: none;
            border-radius: 6px 0 0 6px;
            font-size: 16px;
            color: var(--text-dark);
            background: #ffffff;
            outline: none;
        }

        .branch-search-input::placeholder {
            color: var(--metal-700);
        }

        .branch-search-input:focus {
            outline: 2px solid var(--blue-600);
            outline-offset: -2px;
        }

        .branch-search-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 52px;
            height: 44px;
            border: 1px solid var(--blue-600);
            border-radius: 0 6px 6px 0;
            background: var(--blue-600);
            color: #ffffff;
            cursor: pointer;
            transition: background 0.2s ease;
            flex-shrink: 0;
        }

        .branch-search-btn:hover {
            background: var(--blue-700);
            border-color: var(--blue-700);
        }

        .branch-search-btn svg {
            width: 22px;
            height: 22px;
        }

        .hero-sub-link {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            margin-top: 16px;
            color: #ffffff;
            text-decoration: none;
            font-size: 14px;
        }

        .hero-sub-link:hover {
            text-decoration: underline;
        }

        /* Results — white band below hero (schwab.com/branches) */
        .branches-results {
            width: 100%;
            max-width: none;
            margin: 0;
            padding: 64px 24px 48px;
            background: #ffffff;
            color: rgb(20, 26, 31);
        }

        .branches-results .results-heading,
        .branches-results .branch-grid,
        .branches-results .pagination-wrapper {
            max-width: 1232px;
            margin-left: auto;
            margin-right: auto;
        }

        .results-heading {
            font-size: clamp(1.75rem, 4vw, 3.75rem);
            font-weight: 300;
            line-height: 1.15;
            color: rgb(20, 26, 31);
            margin: 0 0 24px;
        }

        .branch-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
        }

        @media (min-width: 768px) {
            .branch-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1100px) {
            .branch-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        .branch-card {
            display: flex;
            flex-direction: column;
            height: 100%;
            border: 1px solid var(--blue-700);
            border-radius: 8px;
            overflow: hidden;
            background: #ffffff;
        }

        .branch-card-image {
            position: relative;
            aspect-ratio: 16 / 9;
            background: var(--metal-50);
        }

        .branch-card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .branch-card-body {
            display: flex;
            flex-direction: column;
            gap: 16px;
            flex: 1;
            padding: 24px;
        }

        .branch-card-name {
            font-size: clamp(1.25rem, 2vw, 1.75rem);
            font-weight: 700;
            line-height: 1.25;
            color: var(--blue-600);
            margin: 0;
        }

        .branch-card-address {
            margin: 0;
            color: var(--blue-750);
            font-size: 16px;
            line-height: 1.5;
        }

        .branch-card-meta {
            margin: 0;
            font-size: 16px;
        }

        .branch-card-meta a {
            color: var(--blue-750);
            text-decoration: none;
        }

        .branch-card-meta a:hover {
            text-decoration: underline;
        }

        .branch-card-meta strong {
            color: var(--text-dark);
            font-weight: 700;
        }

        .branch-card-actions {
            margin-top: auto;
            padding-top: 8px;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }

        .btn-request-appointment {
            text-decoration: none;
        }

        .btn-view-map--secondary {
            background: transparent;
            color: var(--blue-750) !important;
            border-color: var(--blue-700);
        }

        .btn-view-map--secondary:hover {
            background: var(--metal-50);
            color: var(--blue-800) !important;
        }

        .btn-view-map {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 48px;
            padding: 12px 20px;
            border: 1px solid var(--blue-700);
            border-radius: 999px;
            background: var(--blue-700);
            color: #ffffff !important;
            font-size: 16px;
            font-weight: 700;
            line-height: 1.2;
            text-decoration: none;
            cursor: pointer;
            transition: background 0.2s ease, border-color 0.2s ease;
        }

        .btn-view-map:hover {
            background: var(--blue-750);
            border-color: var(--blue-800);
        }

        .branch-empty {
            grid-column: 1 / -1;
            text-align: center;
            padding: 64px 24px;
            color: var(--metal-700);
            font-size: 18px;
            border: 1px dashed var(--border-light);
            border-radius: 8px;
        }

        .search-no-results {
            display: none;
            grid-column: 1 / -1;
            text-align: center;
            padding: 48px 24px;
            color: var(--metal-700);
            font-size: 18px;
        }

        .branch-card.is-hidden {
            display: none;
        }

        .search-no-results.is-visible {
            display: block;
        }

        /* Pagination */
        .pagination-wrapper {
            margin-top: 32px;
            padding-top: 24px;
            border-top: 1px solid var(--border-light);
        }

        .pagination-wrapper .pagination {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .pagination-wrapper .pagination .page-item .page-link {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 36px;
            height: 36px;
            padding: 0 12px;
            border-radius: 999px;
            border: 1px solid var(--border-light);
            background: #ffffff;
            color: var(--text-body);
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .pagination-wrapper .pagination .page-item .page-link:hover {
            border-color: var(--blue-600);
            color: var(--blue-750);
        }

        .pagination-wrapper .pagination .page-item.active .page-link {
            background: var(--blue-600);
            border-color: var(--blue-600);
            color: #ffffff;
        }

        /* Modal dialog */
        .branch-map-dialog {
            border: none;
            border-radius: 8px;
            padding: 0;
            max-width: min(560px, calc(100vw - 32px));
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
        }

        .branch-map-dialog::backdrop {
            background: rgba(18, 18, 18, 0.55);
        }

        .modal-content {
            border-radius: 8px;
            border: 1px solid var(--border-light);
            overflow: hidden;
        }

        .modal-header-custom {
            padding: 20px 24px;
            background: #ffffff;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header-custom h5 {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-dark);
            margin: 0;
        }

        .modal-close {
            background: transparent;
            border: none;
            color: var(--metal-700);
            font-size: 24px;
            cursor: pointer;
            transition: color 0.2s;
            padding: 0;
            line-height: 1;
        }

        .modal-close:hover {
            color: var(--text-dark);
        }

        .modal-body-custom {
            padding: 24px;
            background: #ffffff;
        }

        #mapContent iframe {
            width: 100%;
            height: 400px;
            border: none;
            border-radius: 4px;
            display: block;
        }

        .map-directions-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 16px;
            color: var(--blue-750);
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
        }

        .map-directions-link:hover {
            text-decoration: underline;
        }

        @media (max-width: 640px) {
            .hero-inner {
                padding: 40px 16px;
            }

            .branches-results {
                padding: 48px 16px 32px;
            }

            .branch-search-form {
                flex-direction: column;
                gap: 12px;
            }

            .branch-search-input {
                border-right: 1px solid var(--metal-800);
                border-radius: 6px;
            }

            .branch-search-btn {
                width: 100%;
                border-radius: 6px;
            }
        }
