/* Realtransfer – Localizador de Balcões
   Segue o estilo da página /balcoes/ (azul #00b0ea, cartões brancos com contorno cinza, 3 colunas).
   Tipo de letra herdado do tema (Poppins). Cores ajustáveis pelas variáveis abaixo. */
.rtb {
	--rtb-primary: #00b0ea;
	--rtb-primary-dark: #0093c4;
	--rtb-text: #1d1d1b;
	--rtb-muted: #6b6b6b;
	--rtb-border: #c5c5c7;
	--rtb-bg: #fff;
	--rtb-bg-soft: #f2fbfe;
	--rtb-radius: 16px;
	color: var(--rtb-text);
	font-family: inherit;
	line-height: 1.4;
	width: 100%;
}
.rtb *, .rtb *::before, .rtb *::after { box-sizing: border-box; }
.rtb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barra de pesquisa ---------- */
.rtb-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin: 0 0 6px; }
.rtb-search { flex: 1 1 340px; position: relative; }
.rtb-search { margin: 0; }
.rtb .rtb-search-btn {
	position: absolute; right: 5px; top: 5px; width: 38px; height: 38px; padding: 0; margin: 0; border: 0; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; background: var(--rtb-primary); color: #fff; cursor: pointer;
}
.rtb .rtb-search-btn:hover, .rtb .rtb-search-btn:focus-visible { background: var(--rtb-primary-dark); color: #fff; }
.rtb.is-searching .rtb-search-btn svg { animation: rtb-pulse .8s ease-in-out infinite alternate; }
@keyframes rtb-pulse { to { opacity: .35; } }
.rtb .rtb-q, .rtb .rtb-rede, .rtb .rtb-sort {
	width: 100%; height: 48px; margin: 0; padding: 0 16px; border: 1px solid var(--rtb-border); border-radius: 999px;
	background: var(--rtb-bg); font-family: inherit; font-size: 14px; color: inherit; box-shadow: none;
}
.rtb .rtb-q { padding-left: 20px; padding-right: 52px; }
.rtb .rtb-q::-webkit-search-cancel-button { margin-right: 4px; }
.rtb .rtb-rede, .rtb .rtb-sort { width: auto; flex: 0 1 230px; cursor: pointer; }
.rtb .rtb-q:focus, .rtb .rtb-rede:focus, .rtb .rtb-sort:focus { outline: none; border-color: var(--rtb-primary); box-shadow: 0 0 0 3px rgba(0, 176, 234, .2); }

.rtb .rtb-near {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; margin: 0;
	border: 0; border-radius: 999px; cursor: pointer; background: var(--rtb-primary); color: #fff;
	font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; text-transform: none; transition: background .2s;
}
.rtb .rtb-near:hover, .rtb .rtb-near:focus-visible { background: var(--rtb-primary-dark); color: #fff; }
.rtb .rtb-near.is-loading svg { animation: rtb-spin 1s linear infinite; }
.rtb .rtb-near[disabled] { opacity: .7; cursor: progress; }
@keyframes rtb-spin { to { transform: rotate(360deg); } }

.rtb-status { margin: 6px 4px 18px; color: var(--rtb-muted); font-size: 13px; min-height: 1.2em; }
.rtb-status.is-error { color: #c0392b; font-weight: 600; }

/* ---------- Grelha de cartões (igual à página atual) ---------- */
.rtb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rtb-card {
	position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 30px 32px 22px;
	background: var(--rtb-bg); border: 1px solid var(--rtb-border); border-radius: var(--rtb-radius);
	cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.rtb-card:hover, .rtb-card:focus-visible { border-color: var(--rtb-primary); box-shadow: 0 6px 20px rgba(0, 176, 234, .15); outline: none; }
.rtb .rtb-title { margin: 0 0 4px; padding: 0; color: var(--rtb-primary); font-family: inherit; font-size: 17px; font-weight: 600; line-height: 1.25; }
.rtb .rtb-text { margin: 0; font-size: 14px; line-height: 1.3; color: var(--rtb-text); }
.rtb .rtb-text strong { font-weight: 700; }
.rtb .rtb-text a { color: inherit; text-decoration: none; }

.rtb-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rtb-maplink { display: inline-flex; align-items: center; gap: 4px; color: var(--rtb-primary); font-size: 13px; font-weight: 600; }
.rtb-card:hover .rtb-maplink { text-decoration: underline; }
.rtb-dist {
	display: inline-block; white-space: nowrap; font-weight: 600; font-size: 12px; color: var(--rtb-primary);
	background: var(--rtb-bg-soft); border: 1px solid rgba(0, 176, 234, .35); border-radius: 999px; padding: 3px 10px;
}
.rtb-card.is-ref { border: 2px solid var(--rtb-primary); padding: 29px 31px 21px; }
.rtb-dist.is-ref { background: var(--rtb-primary); color: #fff; border-color: var(--rtb-primary); }
.rtb-empty { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--rtb-muted); border: 1px dashed var(--rtb-border); border-radius: var(--rtb-radius); }

/* ---------- Janela do mapa ---------- */
.rtb-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rtb-modal[hidden] { display: none; }
.rtb-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 40, 60, .55); }
.rtb-modal-box {
	position: relative; width: 100%; max-width: 1000px; max-height: calc(100vh - 40px); overflow: auto;
	background: #fff; border-radius: var(--rtb-radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.rtb .rtb-modal-close {
	position: absolute; top: 13px; right: 14px; z-index: 2; width: 38px; height: 38px; padding: 0; margin: 0;
	border: 0; border-radius: 50%; background: #fff; color: var(--rtb-text); font-size: 26px; line-height: 38px; cursor: pointer;
}
.rtb .rtb-modal-close:hover { background: var(--rtb-bg-soft); color: var(--rtb-primary); }
.rtb-modal-body { display: grid; grid-template-columns: minmax(260px, 1fr) 1.6fr; }
/* Faixa da marca no topo da janela (RealTransfer / NovaCâmbios) */
.rtb-brand {
	grid-column: 1 / -1; display: flex; align-items: center; min-height: 64px; padding: 14px 64px 14px 30px;
	background: var(--rtb-primary); border-radius: var(--rtb-radius) var(--rtb-radius) 0 0;
}
.rtb-brand img { display: block; height: 34px; width: auto; max-width: 100%; }
.rtb-brand-name { color: #fff; font-weight: 700; font-size: 20px; letter-spacing: .01em; }
.rtb-modal-info { padding: 34px 30px 26px; display: flex; flex-direction: column; gap: 12px; }
.rtb-modal-info .rtb-title { font-size: 20px; padding-right: 30px; }
.rtb-modal-info .rtb-text a { color: var(--rtb-primary); }
.rtb-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: auto 0 0; padding-top: 8px; }
.rtb .rtb-btn {
	display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--rtb-primary); color: #fff;
	font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid var(--rtb-primary);
}
.rtb .rtb-btn:hover { background: var(--rtb-primary-dark); border-color: var(--rtb-primary-dark); color: #fff; }
.rtb .rtb-btn-alt { background: #fff; color: var(--rtb-primary); }
.rtb .rtb-btn-alt:hover { background: var(--rtb-bg-soft); color: var(--rtb-primary); }
.rtb-map { background: #eef3f5; border-radius: 0 0 var(--rtb-radius) 0; overflow: hidden; }
.rtb-map iframe { width: 100%; height: 100%; min-height: inherit; border: 0; display: block; }
html.rtb-noscroll { overflow: hidden; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
	.rtb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	.rtb-grid { grid-template-columns: 1fr; }
	.rtb-card { min-height: 0; padding: 24px; }
	.rtb-card.is-ref { padding: 23px; }
	.rtb .rtb-rede, .rtb .rtb-sort { flex: 1 1 45%; }
	.rtb .rtb-near { flex: 1 1 100%; }
	.rtb-modal { padding: 0; align-items: flex-end; }
	.rtb-modal-box { max-height: 92vh; border-radius: var(--rtb-radius) var(--rtb-radius) 0 0; }
	.rtb-modal-body { grid-template-columns: 1fr; }
	.rtb-brand { order: -2; min-height: 56px; padding: 12px 60px 12px 22px; }
	.rtb-brand img { height: 28px; }
	.rtb-map { order: -1; border-radius: 0; min-height: 260px !important; }
	.rtb-modal-info { padding: 22px; }
}
