/* TTO Medical Services: Local Business layout, blue squares */
.tto-med { --tto-med-navy: #16243e; --tto-med-blue: #3ca4cd; --tto-med-deep: #1b6f99; margin: 40px 0 56px; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; }
.tto-med *, .tto-med *::before, .tto-med *::after { box-sizing: border-box; }
.tto-med__sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tto-med__search { display: flex; gap: 8px; margin: 0 0 24px; }
.tto-med__search input[type="search"] { flex: 1 1 auto; min-width: 0; height: 40px; margin: 0; padding: 0 14px; border: 1px solid #b9bfbb; border-radius: 3px; background: #fff; font-size: 15px; color: var(--tto-med-navy); }
.tto-med__search button { height: 40px; margin: 0; padding: 0 20px; border: 0; border-radius: 3px; background: #e8622a; color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; }
.tto-med__search button:hover { background: #cf5220; }

.tto-med__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; }
.tto-med__chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #cfe3ee; border-radius: 999px; background: #fff; color: var(--tto-med-navy); font-size: 14px; font-weight: 500; text-decoration: none; }
.tto-med__chips a:hover { border-color: var(--tto-med-blue); color: var(--tto-med-deep); }
.tto-med__chips a.is-active { background: var(--tto-med-deep); border-color: var(--tto-med-deep); color: #fff; }

.tto-med__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tto-med__card { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(22, 36, 62, .06); color: var(--tto-med-navy); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.tto-med__card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(22, 36, 62, .14); color: var(--tto-med-navy); }

.tto-med__sq { display: flex; align-items: center; justify-content: center; height: 170px; background: linear-gradient(135deg, #16243e 0%, #1b5f8a 55%, #3ca4cd 100%); color: #fff; font-family: "Poppins", system-ui, sans-serif; font-size: 40px; font-weight: 700; line-height: 1; }
.tto-med__card:hover .tto-med__sq { background: linear-gradient(135deg, #1b2e50 0%, #2272a3 55%, #5bb8dc 100%); }
.tto-med__sq--sm { width: 64px; height: 64px; border-radius: 10px; font-size: 28px; }

.tto-med__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; }
.tto-med__name { font-family: "Poppins", system-ui, sans-serif; font-size: 16px; font-weight: 700; line-height: 1.3; }
.tto-med__line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #5b6577; }
.tto-med__pin { flex-shrink: 0; }
.tto-med__empty { padding: 32px; background: #fff; border-radius: 10px; text-align: center; color: #5b6577; }

@media (max-width: 900px) { .tto-med__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.tto-med__grid { grid-template-columns: 1fr; }
	.tto-med__sq { height: 130px; }
}

/* Single service page */
.tto-med-single { background: #fff; border: 1px solid #d9ebf3; border-top: 3px solid #3ca4cd; border-radius: 12px; padding: 22px 24px; margin: 0 0 28px; font-family: "Inter", system-ui, sans-serif; }
.tto-med-single__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.tto-med-single__badge { padding: 5px 12px; border-radius: 999px; background: #e6f4fa; color: #1b6f99; font-size: 13px; font-weight: 600; }
.tto-med-single__list { display: grid; grid-template-columns: 130px 1fr; gap: 10px 16px; margin: 0; }
.tto-med-single__list dt { margin: 0; font-weight: 600; color: #16243e; }
.tto-med-single__list dd { margin: 0; color: #4b5870; }
.tto-med-single__list a { color: #1b6f99; }
.tto-med-single__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.tto-med-btn { display: inline-block; padding: 10px 22px; border-radius: 999px; background: #1b6f99; color: #fff !important; font-weight: 600; text-decoration: none; }
.tto-med-btn:hover { background: #3ca4cd; }
.tto-med-single__note { margin: 14px 0 0; font-size: 13px; color: #a8321f; }
.tto-med-single__back a { color: #1b6f99; font-weight: 600; }
@media (max-width: 560px) { .tto-med-single__list { grid-template-columns: 1fr; } }

.tto-med-btn--outline { background: #fff; color: #1b6f99 !important; border: 1.5px solid #1b6f99; }
.tto-med-btn--outline:hover { background: #e6f4fa; }
.tto-med-map { margin-top: 18px; border-radius: 10px; overflow: hidden; border: 1px solid #d9ebf3; }
.tto-med-map iframe { display: block; width: 100%; height: 320px; border: 0; }
@media (max-width: 560px) { .tto-med-btn { flex: 1 1 100%; text-align: center; } .tto-med-map iframe { height: 240px; } }

/* ---------- Single service page (matches Local Business listing pages) ---------- */
.tto-med-page { background: #f3f4f3; padding: 36px 0 48px; font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; color: #16243e; }
.tto-med-page *, .tto-med-page *::before, .tto-med-page *::after { box-sizing: border-box; }
.tto-med-page__wrap { max-width: 1216px; margin: 0 auto; padding: 0 20px; }
.tto-med-page__head, .tto-med-page__grid { max-width: 780px; margin-left: auto; margin-right: auto; }

.tto-med-page__head { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.tto-med-page__icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 8px; background: linear-gradient(135deg, #16243e 0%, #1b5f8a 55%, #3ca4cd 100%); color: #fff; font-family: "Poppins", system-ui, sans-serif; font-size: 30px; font-weight: 700; }
.tto-med-page__titles { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 2px; }
.tto-med-page__title { margin: 0; font-family: "Poppins", system-ui, sans-serif; font-size: 34px; font-weight: 700; line-height: 1.2; color: #16243e; }
.tto-med-page__badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #1b6f99; background: #e6f4fa; text-decoration: none; }
.tto-med-page__badge:hover { background: #d3ecf7; color: #16243e; }

.tto-med-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; align-items: start; }
.tto-med-page__content { font-size: 16px; line-height: 1.6; color: #16243e; }
.tto-med-page__content p { margin: 0 0 16px; }
.tto-med-page__map { margin-top: 8px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(22, 36, 62, .08); background: #fff; }
.tto-med-page__map iframe { display: block; width: 100%; height: 320px; border: 0; }
.tto-med-page__directions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tto-med-dir { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #1b6f99; color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.tto-med-dir:hover { background: #16243e; }
.tto-med-dir + .tto-med-dir { background: #fff; color: #1b6f99 !important; border: 1.5px solid #1b6f99; }
.tto-med-dir + .tto-med-dir:hover { background: #e6f4fa; }

.tto-med-page__card { background: #fff; border-radius: 10px; padding: 22px 22px 18px; box-shadow: 0 2px 12px rgba(22, 36, 62, .07); }
.tto-med-page__card h2 { margin: 0 0 18px; font-family: "Poppins", system-ui, sans-serif; font-size: 16px; font-weight: 700; color: #16243e; }
.tto-med-page__card ul { list-style: none; margin: 0; padding: 0; }
.tto-med-page__card li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #eceeed; font-size: 15px; line-height: 1.55; color: #16243e; list-style: none; word-break: break-word; }
.tto-med-page__card li:first-child { border-top: 0; padding-top: 0; }
.tto-med-page__card li::before { content: none; }
.tto-med-page__card li svg { flex-shrink: 0; margin-top: 4px; }
.tto-med-page__card a { color: #16243e; text-decoration: none; }
.tto-med-page__card a:hover { color: #1b6f99; text-decoration: underline; }
.tto-med-page__sos { margin: 10px 0 0; padding-top: 12px; border-top: 1px solid #eceeed; font-size: 13px; font-weight: 600; color: #a8321f; }

.tto-med-page__back { margin: 56px 0 0; }
.tto-med-page__back a { color: #16243e; font-size: 16px; text-decoration: none; }
.tto-med-page__back a:hover { color: #1b6f99; }

@media (max-width: 820px) {
	.tto-med-page__grid { grid-template-columns: 1fr; }
	.tto-med-page__card { margin-top: 0; }
	.tto-med-page__title { font-size: 26px; }
	.tto-med-page__icon { width: 64px; height: 64px; font-size: 24px; }
}
@media (max-width: 480px) {
	.tto-med-dir { flex: 1 1 100%; justify-content: center; }
	.tto-med-page__map iframe { height: 260px; }
}

/* ---------- Directory page: full Local Business width ---------- */
.tto-med-listpage { background: #f3f4f3; padding: 40px 0 56px; }
.tto-med-listpage__wrap { max-width: 1256px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.tto-med-listpage__title { margin: 0; font-family: "Poppins", system-ui, sans-serif; font-size: 32px; font-weight: 700; line-height: 1.2; color: #16243e; }
.tto-med-listpage__rule { height: 1px; margin: 28px 0 44px; border: 0; background: #dfe3e0; }
.tto-med-listpage .tto-med { margin-top: 0; }

/* Address lines that wrap: keep the pin beside the first line */
.tto-med__line { align-items: flex-start; }
.tto-med__line .tto-med__pin { margin-top: 3px; }

/* ---------- With a TTO Page Banner above ---------- */
body.ttopb-on .ttopb + .tto-med-listpage,
body.ttopb-on .ttopb + .tto-med-page { padding-top: 12px; }
body.ttopb-on .ttopb + .tto-med-listpage .tto-med-listpage__rule { margin-top: 0; }
body.ttopb-on .ttopb:has(+ .tto-med-listpage), body.ttopb-on .ttopb:has(+ .tto-med-page) { margin-bottom: 0; }
