/* ==========================================================================
   Tabibi WordPress Theme — Medical Editorial Bento & Pill Design System
   Brand Palette: Teal #11B5A6 · Mint #2EC6B5 · Deep Teal #037F80 · Navy #0A1F44
   ========================================================================== */

:root {
	--tb-teal: #11B5A6;
	--tb-mint: #2EC6B5;
	--tb-teal-deep: #037F80;
	--tb-navy: #0A1F44;
	--tb-bg: #F4F8F9;
	--tb-band: #E7F4F3;
	--tb-tint: #DFF5F2;
	--tb-card: #FFFFFF;
	--tb-muted: #4E627A;
	--tb-line: #DCE7EB;
	--tb-grad: linear-gradient(135deg, #0A1F44 0%, #037F80 68%, #11B5A6 100%);
	--tb-grad-teal: linear-gradient(135deg, #037F80 0%, #11B5A6 100%);
	--tb-r-s: 16px;
	--tb-r-m: 22px;
	--tb-r-l: 28px;
	--tb-shadow-s: 0 6px 22px rgba(10, 31, 68, 0.05);
	--tb-shadow-m: 0 14px 36px rgba(10, 31, 68, 0.09);
	--tb-shadow-l: 0 24px 60px rgba(10, 31, 68, 0.14);
	--tb-font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
	--tb-font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tabibi-theme {
	margin: 0;
	background: var(--tb-bg);
	color: var(--tb-navy);
	font-family: var(--tb-font-body);
	font-size: 16.5px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
	font-family: var(--tb-font-display);
	color: var(--tb-navy);
	margin: 0;
	letter-spacing: -0.028em;
	line-height: 1.06;
}

.tb-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 28px;
}

.tb-section { padding: 108px 0; }
.tb-section--tight-top { padding-top: 0; }
.tb-section--booking { padding: 72px 0 96px; }
.tb-band { background: var(--tb-band); }
.tb-band-subtle { background: linear-gradient(180deg, rgba(231, 244, 243, 0.55) 0%, rgba(244, 248, 249, 0) 100%); }

/* Section Header */
.tb-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 44px;
}
.tb-section-head h2 {
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 800;
	max-width: 18ch;
}
.tb-section-head p {
	margin: 0;
	max-width: 42ch;
	color: var(--tb-muted);
	font-size: 16.5px;
}

/* Eyebrow Pill */
.tb-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: var(--tb-tint);
	color: var(--tb-teal-deep);
	font-family: var(--tb-font-display);
	font-size: 13.5px;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: 999px;
}
.tb-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tb-teal);
	display: inline-block;
}

/* Buttons */
.tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 999px;
	font-family: var(--tb-font-display);
	font-size: 15px;
	font-weight: 700;
	padding: 14px 26px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.tb-btn:hover { transform: translateY(-2px); }
.tb-btn--sm { padding: 11px 20px; font-size: 14px; }
.tb-btn--full { width: 100%; }

.tb-btn--primary {
	background: var(--tb-teal);
	color: #fff;
	box-shadow: 0 8px 22px rgba(17, 181, 166, 0.26);
}
.tb-btn--primary:hover {
	background: var(--tb-teal-deep);
	color: #fff;
}
.tb-btn--outline {
	background: #fff;
	color: var(--tb-navy);
	border-color: var(--tb-line);
}
.tb-btn--outline:hover {
	border-color: var(--tb-teal);
	color: var(--tb-teal-deep);
	background: var(--tb-tint);
}
.tb-btn--white {
	background: #fff;
	color: var(--tb-navy);
}
.tb-btn--white:hover {
	background: var(--tb-tint);
	color: var(--tb-navy);
}
.tb-btn--ghost-white {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
}
.tb-btn--ghost-white:hover {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}
.tb-btn--glass {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	backdrop-filter: blur(8px);
}
.tb-btn--glass:hover { background: rgba(255, 255, 255, 0.24); }

/* ==========================================================================
   HEADER & MOBILE DRAWER
   ========================================================================== */
.tb-header {
	position: sticky;
	top: 0;
	z-index: 120;
	padding: 18px 0;
	transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	border-bottom: 1px solid transparent;
}
.tb-header.is-scrolled {
	background: rgba(244, 248, 249, 0.86);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	padding: 11px 0;
	border-bottom-color: var(--tb-line);
	box-shadow: var(--tb-shadow-s);
}
.tb-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}
.tb-header-left, .tb-header-right {
	display: flex;
	align-items: center;
	gap: 28px;
}
.tb-logo-img { height: 34px; width: auto; }
.tb-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 26px;
}
.tb-nav-list a {
	font-family: var(--tb-font-display);
	font-size: 14.5px;
	font-weight: 600;
	color: var(--tb-navy);
	position: relative;
	padding: 4px 0;
}
.tb-nav-list a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: var(--tb-teal);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.22s ease;
}
.tb-nav-list a:hover::after { transform: scaleX(1); }

.tb-header-contact {
	display: flex;
	flex-direction: column;
	text-align: right;
	line-height: 1.25;
}
.tb-header-hours { font-size: 12px; color: var(--tb-muted); }
.tb-header-phone { font-family: var(--tb-font-display); font-size: 14px; font-weight: 700; color: var(--tb-navy); }
.tb-header-phone:hover { color: var(--tb-teal-deep); }

.tb-burger {
	display: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--tb-line);
	background: #fff;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
}
.tb-burger span { width: 18px; height: 2px; background: var(--tb-navy); border-radius: 2px; }

.tb-mnav {
	position: fixed;
	inset: 0;
	z-index: 300;
	background: var(--tb-bg);
	padding: 22px 24px 32px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.tb-mnav.is-open { transform: translateX(0); }
.tb-mnav-head { display: flex; align-items: center; justify-content: space-between; }
.tb-mnav-close {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--tb-line);
	background: #fff; font-size: 24px; color: var(--tb-navy); cursor: pointer;
}
.tb-mnav-links { display: flex; flex-direction: column; margin: 24px 0; }
.tb-mnav-links a {
	font-family: var(--tb-font-display);
	font-size: 26px;
	font-weight: 700;
	padding: 14px 0;
	border-bottom: 1px solid var(--tb-line);
}
.tb-mnav-phone { margin-bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.tb-mnav-phone span { font-size: 13px; color: var(--tb-muted); }
.tb-mnav-phone a { font-family: var(--tb-font-display); font-size: 18px; font-weight: 700; }

/* ==========================================================================
   1. HERO BENTO
   ========================================================================== */
.tb-hero { padding: 14px 0 64px; }
.tb-hero-bento {
	display: grid;
	grid-template-columns: 1.06fr 0.94fr;
	grid-template-rows: auto auto auto;
	gap: 16px;
}

.tb-hb-title {
	background: var(--tb-card);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-l);
	padding: 36px 38px;
	box-shadow: var(--tb-shadow-s);
}
.tb-hb-title h1 {
	font-size: clamp(38px, 4.3vw, 62px);
	font-weight: 800;
	margin: 18px 0 16px;
	line-height: 0.99;
}
.tb-accent-line { display: block; color: var(--tb-teal); }
.tb-hb-sub {
	margin: 0 0 26px;
	max-width: 44ch;
	color: var(--tb-muted);
	font-size: 17px;
}
.tb-hb-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.tb-hb-stats {
	background: var(--tb-card);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-m);
	padding: 22px 26px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	box-shadow: var(--tb-shadow-s);
}
.tb-hb-stat {
	position: relative;
	padding-left: 16px;
}
.tb-hb-stat:first-child { padding-left: 0; }
.tb-hb-stat:not(:first-child)::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: var(--tb-tint);
	border-radius: 2px;
}
.tb-hb-stat strong {
	display: block;
	font-family: var(--tb-font-display);
	font-size: clamp(22px, 1.85vw, 28px);
	font-weight: 800;
	color: var(--tb-navy);
	line-height: 1.1;
	white-space: nowrap;
}
.tb-hb-stat > span { display: block; font-size: 13px; color: var(--tb-muted); margin-top: 5px; line-height: 1.35; }

.tb-hb-bottom {
	display: grid;
	grid-template-columns: minmax(195px, 0.78fr) 1fr;
	gap: 16px;
}
.tb-hb-team {
	background: var(--tb-band);
	border: 1px solid rgba(17, 181, 166, 0.18);
	border-radius: var(--tb-r-m);
	padding: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 14px;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.tb-hb-team:hover { transform: translateY(-3px); box-shadow: var(--tb-shadow-s); }
.tb-avatar-stack { display: flex; align-items: center; }
.tb-avatar-stack img, .tb-avatar-more {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--tb-band);
	margin-left: -12px;
}
.tb-avatar-stack img:first-child { margin-left: 0; }
.tb-avatar-more {
	background: var(--tb-teal);
	color: #fff;
	font-family: var(--tb-font-display);
	font-size: 12.5px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.tb-hb-team p { margin: 0; font-family: var(--tb-font-display); font-size: 14px; font-weight: 700; line-height: 1.35; }

.tb-hb-pills {
	background: var(--tb-card);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-m);
	padding: 20px;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	gap: 8px;
}
.tb-spec-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 13px;
	border-radius: 999px;
	background: var(--tb-bg);
	border: 1px solid var(--tb-line);
	font-size: 13px;
	font-weight: 600;
	color: var(--tb-navy);
	transition: all 0.2s ease;
}
.tb-spec-pill svg { width: 13px; height: 13px; color: var(--tb-teal-deep); }
.tb-spec-pill:hover { background: var(--tb-tint); border-color: var(--tb-teal); color: var(--tb-teal-deep); }

.tb-hb-photo {
	grid-column: 2;
	grid-row: 1 / 4;
	position: relative;
	border-radius: var(--tb-r-l);
	overflow: hidden;
	background: var(--tb-grad);
	min-height: 560px;
	box-shadow: var(--tb-shadow-m);
}
.tb-hb-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}
.tb-hb-photo-vignette {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 31, 68, 0.04) 45%, rgba(10, 31, 68, 0.62) 100%);
	pointer-events: none;
}
.tb-float-chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	color: var(--tb-navy);
	font-family: var(--tb-font-display);
	font-size: 13.5px;
	font-weight: 700;
	padding: 10px 16px;
	border-radius: 999px;
	box-shadow: var(--tb-shadow-s);
}
.tb-float-chip--top { top: 20px; right: 20px; }
.tb-float-chip--bottom { bottom: 20px; left: 20px; max-width: calc(100% - 40px); }
.tb-pulse-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--tb-teal);
	box-shadow: 0 0 0 4px rgba(17, 181, 166, 0.25);
	flex-shrink: 0;
}

/* ==========================================================================
   2. HORIZONTAL EXPANDING PHOTO ACCORDION
   ========================================================================== */
.tb-acc {
	display: flex;
	gap: 14px;
	height: 520px;
}
.tb-acc-panel {
	position: relative;
	flex: 1 1 0;
	min-width: 76px;
	border-radius: var(--tb-r-l);
	overflow: hidden;
	cursor: pointer;
	background: var(--tb-navy);
	transition: flex-grow 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.tb-acc-panel.is-active { flex-grow: 5.5; }
.tb-acc-panel img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s ease;
}
.tb-acc-panel.is-active img { transform: scale(1.03); }
.tb-acc-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 31, 68, 0.22) 0%, rgba(10, 31, 68, 0.78) 100%);
}
.tb-acc-num {
	position: absolute;
	top: 22px;
	left: 22px;
	font-family: var(--tb-font-display);
	font-size: 13px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.85);
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(8px);
	padding: 5px 11px;
	border-radius: 999px;
}
.tb-acc-vert {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) rotate(180deg);
	writing-mode: vertical-rl;
	font-family: var(--tb-font-display);
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	transition: opacity 0.25s ease;
}
.tb-acc-panel.is-active .tb-acc-vert { opacity: 0; pointer-events: none; }
.tb-acc-content {
	position: absolute;
	left: 28px;
	right: 28px;
	bottom: 28px;
	color: #fff;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.35s ease 0.15s, transform 0.35s ease 0.15s;
	pointer-events: none;
}
.tb-acc-panel.is-active .tb-acc-content {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.tb-acc-content h3 { color: #fff; font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.tb-acc-content p { margin: 0 0 18px; max-width: 44ch; color: rgba(255, 255, 255, 0.88); font-size: 15.5px; }

/* ==========================================================================
   3. EXPRESS DIAGNOSTICS 3-COL BENTO
   ========================================================================== */
.tb-express {
	display: grid;
	grid-template-columns: 300px 1fr 330px;
	gap: 18px;
}
.tb-express-photo {
	border-radius: var(--tb-r-l);
	overflow: hidden;
	min-height: 290px;
	background: var(--tb-navy);
}
.tb-express-photo img { width: 100%; height: 100%; object-fit: cover; }
.tb-express-info {
	background: var(--tb-card);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-l);
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-shadow: var(--tb-shadow-s);
}
.tb-express-info h3 { font-size: 28px; font-weight: 800; margin: 14px 0 10px; }
.tb-express-info p { margin: 0 0 22px; color: var(--tb-muted); }
.tb-express-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.tb-express-tags {
	background: var(--tb-tint);
	border-radius: var(--tb-r-l);
	padding: 26px;
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	gap: 9px;
}
.tb-lab-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	color: var(--tb-navy);
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 999px;
	box-shadow: 0 3px 10px rgba(10, 31, 68, 0.04);
}
.tb-lab-plus { color: var(--tb-teal); font-style: normal; font-weight: 800; }
.tb-lab-pill--cta { background: var(--tb-teal); color: #fff; }
.tb-lab-pill--cta:hover { background: var(--tb-teal-deep); }

/* ==========================================================================
   4. CHECK-UP PACKAGES
   ========================================================================== */
.tb-cu-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	align-items: stretch;
}
.tb-cu-card {
	position: relative;
	background: var(--tb-card);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-l);
	padding: 38px 32px 32px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: var(--tb-shadow-s);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tb-cu-card:hover { transform: translateY(-5px); box-shadow: var(--tb-shadow-m); }
.tb-cu-card.is-featured {
	background: var(--tb-grad);
	border-color: transparent;
	color: #fff;
	box-shadow: var(--tb-shadow-l);
}
.tb-cu-card.is-featured h3, .tb-cu-card.is-featured .tb-cu-price { color: #fff; }
.tb-cu-card.is-featured .tb-cu-for { color: rgba(255, 255, 255, 0.8); }
.tb-cu-badge {
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--tb-navy);
	color: #fff;
	font-family: var(--tb-font-display);
	font-size: 12.5px;
	font-weight: 700;
	padding: 6px 16px;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(10, 31, 68, 0.22);
}
.tb-cu-top h3 { font-size: 24px; font-weight: 800; }
.tb-cu-for { margin: 6px 0 18px; color: var(--tb-muted); font-size: 14.5px; }
.tb-cu-price {
	font-family: var(--tb-font-display);
	font-size: 38px;
	font-weight: 800;
	color: var(--tb-navy);
	margin-bottom: 22px;
}
.tb-cu-list {
	list-style: none;
	margin: 0 0 28px;
	padding: 20px 0 0;
	border-top: 1px solid var(--tb-line);
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}
.tb-cu-card.is-featured .tb-cu-list { border-top-color: rgba(255, 255, 255, 0.2); }
.tb-cu-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; }
.tb-check-ico {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--tb-tint);
	color: var(--tb-teal-deep);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 1px;
}
.tb-cu-card.is-featured .tb-check-ico { background: rgba(255, 255, 255, 0.18); color: #fff; }
.tb-center-note { text-align: center; color: var(--tb-muted); margin: 26px 0 0; font-size: 14.5px; }

/* ==========================================================================
   5. WHY CLINIC & KPI BANNER
   ========================================================================== */
.tb-why-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 56px;
	align-items: start;
	margin-bottom: 48px;
}
.tb-why-intro h2 { font-size: clamp(32px, 3.8vw, 48px); font-weight: 800; margin-bottom: 20px; }
.tb-why-intro p { color: var(--tb-muted); margin: 0 0 16px; font-size: 16.5px; }
.tb-why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tb-why-card {
	background: var(--tb-card);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-m);
	padding: 26px;
	box-shadow: var(--tb-shadow-s);
}
.tb-icon-tile {
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background: var(--tb-tint);
	color: var(--tb-teal-deep);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}
.tb-why-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.tb-why-card p { margin: 0; color: var(--tb-muted); font-size: 14.5px; }

.tb-kpi-banner {
	background: var(--tb-band);
	border-radius: var(--tb-r-l);
	padding: 36px 32px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.tb-kpi-item { position: relative; padding-left: 22px; }
.tb-kpi-item:first-child { padding-left: 0; }
.tb-kpi-item:not(:first-child)::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: 1.5px;
	background: rgba(3, 127, 128, 0.22);
}
.tb-kpi-item strong {
	display: block;
	font-family: var(--tb-font-display);
	font-size: clamp(34px, 3.2vw, 52px);
	font-weight: 800;
	color: var(--tb-navy);
	line-height: 1;
}
.tb-kpi-item > span { display: block; margin-top: 8px; font-size: 14px; color: var(--tb-muted); }

/* ==========================================================================
   6. DOCTORS 4-COL PORTRAIT GRID
   ========================================================================== */
.tb-doctors-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.tb-doc-card {
	position: relative;
	aspect-ratio: 3 / 4;
	border-radius: 24px;
	overflow: hidden;
	background: var(--tb-band);
	box-shadow: var(--tb-shadow-s);
	transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.tb-doc-card:hover { transform: translateY(-6px); box-shadow: var(--tb-shadow-m); }
.tb-doc-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.5s ease; }
.tb-doc-card:hover img { transform: scale(1.04); }
.tb-doc-rating {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	padding: 6px 11px;
	border-radius: 999px;
	font-family: var(--tb-font-display);
	font-size: 13px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.tb-doc-info {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-radius: 18px;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}
.tb-doc-info h3 { font-size: 16.5px; font-weight: 800; line-height: 1.2; }
.tb-doc-info > div > span { display: block; font-size: 12.5px; color: var(--tb-muted); margin-top: 2px; }
.tb-circle-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	color: var(--tb-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.2s ease, color 0.2s ease;
	box-shadow: 0 3px 10px rgba(10, 31, 68, 0.08);
}
.tb-circle-btn--mint { background: var(--tb-tint); color: var(--tb-teal-deep); box-shadow: none; }
.tb-doc-card:hover .tb-circle-btn, .tb-loc-card:hover .tb-circle-btn { background: var(--tb-teal); color: #fff; }
.tb-center-cta { text-align: center; margin-top: 34px; }

/* ==========================================================================
   7. LOCATIONS & MAP SPLIT
   ========================================================================== */
.tb-loc-grid {
	display: grid;
	grid-template-columns: 1fr 1.04fr;
	gap: 24px;
	align-items: stretch;
}
.tb-map-box {
	position: relative;
	border-radius: var(--tb-r-l);
	overflow: hidden;
	min-height: 440px;
	background: #dcebf0;
	border: 1px solid var(--tb-line);
}
.tb-map-box iframe { width: 100%; height: 100%; border: 0; min-height: 440px; }
.tb-map-pill {
	position: absolute;
	left: 18px;
	bottom: 18px;
	background: #fff;
	color: var(--tb-navy);
	padding: 10px 16px;
	border-radius: 999px;
	font-family: var(--tb-font-display);
	font-size: 13.5px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: var(--tb-shadow-m);
}
.tb-map-pill svg { color: var(--tb-teal); }

.tb-loc-list { display: flex; flex-direction: column; gap: 12px; }
.tb-loc-card {
	background: var(--tb-card);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-m);
	padding: 20px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tb-loc-card:hover { transform: translateY(-2px); box-shadow: var(--tb-shadow-s); }
.tb-loc-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.tb-loc-card p { margin: 0 0 8px; font-size: 14px; color: var(--tb-muted); }
.tb-loc-card.is-extra { display: none; }
.tb-loc-list.is-expanded .tb-loc-card.is-extra { display: flex; }
.tb-transit-pill {
	display: inline-block;
	background: var(--tb-tint);
	color: var(--tb-teal-deep);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 11px;
	border-radius: 999px;
}
.tb-loc-toggle {
	background: transparent;
	border: 1.5px dashed rgba(3, 127, 128, 0.35);
	border-radius: var(--tb-r-m);
	padding: 14px;
	font-family: var(--tb-font-display);
	font-size: 14px;
	font-weight: 700;
	color: var(--tb-teal-deep);
	cursor: pointer;
	transition: background 0.2s ease;
}
.tb-loc-toggle:hover { background: rgba(255, 255, 255, 0.65); }

/* ==========================================================================
   8. REVIEWS EDGE-MASKED MARQUEE
   ========================================================================== */
.tb-rating-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--tb-line);
	padding: 11px 18px;
	border-radius: 999px;
	box-shadow: var(--tb-shadow-s);
	font-size: 14px;
}
.tb-rating-pill strong { font-family: var(--tb-font-display); font-size: 16px; }
.tb-rating-pill span { color: var(--tb-muted); }

.tb-marquee-wrap {
	overflow: hidden;
	padding: 10px 0 20px;
	mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.tb-marquee-track {
	display: flex;
	gap: 20px;
	width: max-content;
	animation: tbMarquee 42s linear infinite;
}
.tb-marquee-wrap:hover .tb-marquee-track { animation-play-state: paused; }
@keyframes tbMarquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
.tb-review-card {
	width: 370px;
	background: var(--tb-card);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-l);
	padding: 28px;
	box-shadow: var(--tb-shadow-s);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 18px;
}
.tb-review-stars { color: #F5A623; letter-spacing: 2px; font-size: 15px; }
.tb-review-text { margin: 0; font-size: 15.5px; color: var(--tb-navy); line-height: 1.55; }
.tb-review-author { display: flex; align-items: center; gap: 12px; }
.tb-review-init {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--tb-tint);
	color: var(--tb-teal-deep);
	font-family: var(--tb-font-display);
	font-weight: 800;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tb-review-author strong { display: block; font-size: 14.5px; }
.tb-review-author > div > span { display: block; font-size: 12.5px; color: var(--tb-muted); }

/* ==========================================================================
   9. FAQ SPLIT
   ========================================================================== */
.tb-faq-grid {
	display: grid;
	grid-template-columns: 0.82fr 1.18fr;
	gap: 52px;
	align-items: start;
}
.tb-faq-intro h2 { font-size: clamp(32px, 3.8vw, 48px); font-weight: 800; margin-bottom: 14px; }
.tb-faq-intro p { margin: 0 0 24px; color: var(--tb-muted); }
.tb-faq-list { display: flex; flex-direction: column; gap: 12px; }
.tb-faq-item {
	background: var(--tb-card);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-m);
	transition: box-shadow 0.25s ease;
}
.tb-faq-item.is-open { box-shadow: var(--tb-shadow-m); }
.tb-faq-q {
	width: 100%;
	background: none;
	border: 0;
	padding: 22px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	text-align: left;
	font-family: var(--tb-font-display);
	font-size: 17px;
	font-weight: 700;
	color: var(--tb-navy);
	cursor: pointer;
}
.tb-faq-ico {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--tb-tint);
	color: var(--tb-teal-deep);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.tb-faq-item.is-open .tb-faq-ico {
	transform: rotate(45deg);
	background: var(--tb-teal);
	color: #fff;
}
.tb-faq-a { display: none; padding: 0 24px 22px; }
.tb-faq-item.is-open .tb-faq-a { display: block; }
.tb-faq-a p { margin: 0; color: var(--tb-muted); font-size: 15.5px; }

/* ==========================================================================
   10. HEALTH JOURNAL / BLOG GRID
   ========================================================================== */
.tb-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.tb-blog-card {
	background: var(--tb-card);
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-l);
	overflow: hidden;
	box-shadow: var(--tb-shadow-s);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}
.tb-blog-card:hover { transform: translateY(-5px); box-shadow: var(--tb-shadow-m); }
.tb-blog-img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--tb-band); }
.tb-blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tb-blog-card:hover .tb-blog-img img { transform: scale(1.05); }
.tb-blog-body { padding: 24px; }
.tb-blog-date {
	display: inline-block;
	font-family: var(--tb-font-display);
	font-size: 12.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tb-teal-deep);
	margin-bottom: 10px;
}
.tb-blog-body h3 { font-size: 20px; font-weight: 800; line-height: 1.25; margin-bottom: 10px; }
.tb-blog-body p { margin: 0; color: var(--tb-muted); font-size: 14.5px; }

/* ==========================================================================
   11. BOOKING SPLIT BANNER
   ========================================================================== */
.tb-booking-card {
	background: var(--tb-grad);
	border-radius: 32px;
	padding: 58px;
	display: grid;
	grid-template-columns: 1.04fr 0.96fr;
	gap: 44px;
	align-items: center;
	color: #fff;
	box-shadow: var(--tb-shadow-l);
}
.tb-booking-left h2 { color: #fff; font-size: clamp(32px, 3.8vw, 48px); font-weight: 800; margin-bottom: 14px; }
.tb-booking-sub { margin: 0 0 26px; color: rgba(255, 255, 255, 0.84); font-size: 16.5px; max-width: 44ch; }
.tb-booking-perks { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tb-booking-perks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.tb-perk-ico {
	width: 26px; height: 26px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.16);
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tb-booking-direct { display: flex; flex-wrap: wrap; gap: 12px; }

.tb-booking-form-card {
	background: #fff;
	color: var(--tb-navy);
	border-radius: 24px;
	padding: 32px;
	box-shadow: var(--tb-shadow-l);
}
.tb-bf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tb-bf-field { margin-bottom: 14px; }
.tb-bf-field label { display: block; font-size: 13px; font-weight: 700; color: var(--tb-navy); margin-bottom: 6px; }
.tb-bf-field input, .tb-bf-field select {
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1.5px solid var(--tb-line);
	background: var(--tb-bg);
	color: var(--tb-navy);
	font-family: inherit;
	font-size: 14.5px;
}
.tb-bf-field input:focus, .tb-bf-field select:focus {
	outline: none;
	border-color: var(--tb-teal);
	background: #fff;
}
.tb-time-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tb-time-pill {
	position: relative;
	text-align: center;
	padding: 10px 8px;
	border-radius: 12px;
	border: 1.5px solid var(--tb-line);
	background: var(--tb-bg);
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
}
.tb-time-pill input { position: absolute; opacity: 0; pointer-events: none; }
.tb-time-pill.is-selected { background: var(--tb-tint); border-color: var(--tb-teal); color: var(--tb-teal-deep); }
.tb-bf-note { text-align: center; font-size: 12px; color: var(--tb-muted); margin: 12px 0 0; }
.tb-bf-msg {
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var(--tb-tint);
	color: var(--tb-teal-deep);
	font-weight: 600;
	font-size: 14px;
}
.tb-bf-msg.is-error { background: #FEECEC; color: #A61C1C; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.tb-footer {
	background: #fff;
	border-top: 1px solid var(--tb-line);
	padding: 68px 0 32px;
}
.tb-f-top {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
	gap: 36px;
	padding-bottom: 44px;
}
.tb-f-brand p { margin: 14px 0 20px; color: var(--tb-muted); font-size: 14.5px; max-width: 30ch; }
.tb-f-socials { display: flex; gap: 10px; }
.tb-f-socials a {
	width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--tb-line);
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--tb-font-display); font-size: 12px; font-weight: 800;
	transition: all 0.2s ease;
}
.tb-f-socials a:hover { background: var(--tb-teal); border-color: var(--tb-teal); color: #fff; }
.tb-f-col h4, .tb-f-contact h4 { font-size: 15.5px; font-weight: 800; margin-bottom: 16px; }
.tb-f-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tb-f-col a { font-size: 14.5px; color: var(--tb-muted); transition: color 0.2s; }
.tb-f-col a:hover { color: var(--tb-teal-deep); }
.tb-f-row { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 10px; font-size: 14px; color: var(--tb-muted); }
.tb-f-row svg { color: var(--tb-teal); flex-shrink: 0; margin-top: 2px; }
.tb-f-bottom {
	padding-top: 24px;
	border-top: 1px solid var(--tb-line);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 13.5px;
	color: var(--tb-muted);
}

/* ==========================================================================
   3-STEP BOOKING MODAL
   ========================================================================== */
.tb-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 400;
	background: rgba(10, 31, 68, 0.54);
	backdrop-filter: blur(6px);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.tb-modal-overlay.is-open { display: flex; }
.tb-modal {
	width: 100%;
	max-width: 680px;
	background: #fff;
	border-radius: 28px;
	overflow: hidden;
	box-shadow: var(--tb-shadow-l);
}
.tb-modal-head {
	padding: 18px 26px;
	background: var(--tb-bg);
	border-bottom: 1px solid var(--tb-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.tb-modal-steps { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tb-mstep {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--tb-font-display);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--tb-muted);
}
.tb-mstep i {
	width: 24px; height: 24px; border-radius: 50%;
	border: 1.5px solid var(--tb-line); background: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	font-style: normal; font-size: 12px;
}
.tb-mstep.is-active { color: var(--tb-navy); }
.tb-mstep.is-active i { background: var(--tb-teal); border-color: var(--tb-teal); color: #fff; }
.tb-mstep.is-done i { background: var(--tb-tint); border-color: var(--tb-teal); color: var(--tb-teal-deep); }
.tb-modal-close {
	width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid var(--tb-line); background: #fff;
	font-size: 20px; cursor: pointer; color: var(--tb-navy);
}
.tb-modal-body { padding: 30px; }
.tb-mpane { display: none; }
.tb-mpane.is-active { display: block; }
.tb-mpane h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.tb-mpane-sub { margin: 0 0 22px; color: var(--tb-muted); font-size: 14.5px; }
.tb-modal-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; gap: 12px; }

/* Single Page / Article / Doctor Profile */
.tb-prose-card {
	background: #fff;
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-l);
	padding: 44px;
	max-width: 880px;
	box-shadow: var(--tb-shadow-s);
}
.tb-prose-card h1 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 20px; }
.tb-single-thumb { border-radius: 20px; overflow: hidden; margin: 22px 0; }
.tb-single-cta {
	margin-top: 32px;
	padding: 24px;
	border-radius: 20px;
	background: var(--tb-band);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
}
.tb-single-cta p { margin: 4px 0 0; color: var(--tb-muted); font-size: 14.5px; }
.tb-doc-profile {
	background: #fff;
	border: 1px solid var(--tb-line);
	border-radius: var(--tb-r-l);
	padding: 36px;
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 36px;
	align-items: start;
}
.tb-doc-profile-img { border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--tb-band); }
.tb-doc-profile-img img { width: 100%; height: 100%; object-fit: cover; }
.tb-doc-profile-body h1 { font-size: 38px; margin: 14px 0 12px; }
.tb-doc-meta-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1040px) {
	.tb-nav { display: none; }
	.tb-burger { display: inline-flex; }
	.tb-hero-bento { grid-template-columns: 1fr; }
	.tb-hb-photo { grid-column: auto; grid-row: auto; min-height: 440px; }
	.tb-express { grid-template-columns: 1fr; }
	.tb-cu-grid, .tb-blog-grid { grid-template-columns: 1fr; }
	.tb-why-grid, .tb-loc-grid, .tb-faq-grid, .tb-booking-card, .tb-doc-profile { grid-template-columns: 1fr; }
	.tb-doctors-grid { grid-template-columns: repeat(2, 1fr); }
	.tb-kpi-banner { grid-template-columns: repeat(2, 1fr); }
	.tb-f-top { grid-template-columns: 1fr 1fr; }
	.tb-f-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
	.tb-container { padding: 0 18px; }
	.tb-section { padding: 56px 0; }
	.tb-section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }
	.tb-header-contact { display: none; }
	.tb-hb-title { padding: 26px 22px; }
	.tb-hb-stats, .tb-hb-bottom, .tb-why-cards, .tb-bf-row { grid-template-columns: 1fr; }
	.tb-hb-stat { padding-left: 0; padding-top: 12px; border-top: 1px solid var(--tb-line); }
	.tb-hb-stat:first-child { padding-top: 0; border-top: 0; }
	.tb-hb-stat::before { display: none; }
	.tb-acc { flex-direction: column; height: auto; }
	.tb-acc-panel { min-width: 0; height: 84px; flex: none; transition: height 0.45s ease; }
	.tb-acc-panel.is-active { height: 380px; }
	.tb-acc-vert { writing-mode: horizontal-tb; transform: none; left: 74px; bottom: auto; top: 50%; transform: translateY(-50%); }
	.tb-doctors-grid { grid-template-columns: 1fr; }
	.tb-booking-card { padding: 28px 20px; }
	.tb-booking-form-card { padding: 22px 18px; }
	.tb-f-top { grid-template-columns: 1fr; }
	.tb-f-bottom { flex-direction: column; text-align: center; }
	.tb-review-card { width: 300px; }
}


/* ==========================================================================
   BILINGUAL SWITCHER (FR / العربية) & RTL ARABIC SUPPORT
   ========================================================================== */
.tb-lang-switch {
	display: inline-flex;
	align-items: center;
	background: var(--tb-band);
	border: 1px solid var(--tb-line);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}
.tb-lang-btn {
	border: 0;
	background: transparent;
	color: var(--tb-muted);
	font-family: var(--tb-font-display);
	font-size: 12.5px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.2s ease;
}
.tb-lang-btn.is-active {
	background: #fff;
	color: var(--tb-navy);
	box-shadow: 0 2px 8px rgba(10, 31, 68, 0.08);
}

html[dir="rtl"] body.tabibi-theme,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .tb-btn {
	font-family: 'Cairo', system-ui, sans-serif;
	letter-spacing: 0;
}
html[dir="rtl"] .tb-header-contact { text-align: left; }
html[dir="rtl"] .tb-hb-stat { padding-left: 0; padding-right: 16px; }
html[dir="rtl"] .tb-hb-stat:first-child { padding-right: 0; }
html[dir="rtl"] .tb-hb-stat:not(:first-child)::before { left: auto; right: 0; }
html[dir="rtl"] .tb-faq-q { text-align: right; }
html[dir="rtl"] .tb-avatar-stack img, html[dir="rtl"] .tb-avatar-more { margin-left: 0; margin-right: -12px; }
html[dir="rtl"] .tb-avatar-stack img:first-child { margin-right: 0; }

/* ==========================================================================
   MOROCCAN CNOM CARE PATHWAYS & MUTUELLES STRIP
   ========================================================================== */
.tb-step-tag {
	display: inline-block;
	font-family: var(--tb-font-display);
	font-size: 13px;
	font-weight: 800;
	color: var(--tb-teal-deep);
	background: var(--tb-tint);
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.tb-cu-card.is-featured .tb-step-tag {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}
.tb-cnom-strip {
	margin-top: 28px;
	background: #fff;
	border: 1px solid var(--tb-line);
	border-radius: 22px;
	padding: 22px 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.tb-cnom-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-cnom-badges > span {
	background: var(--tb-tint);
	color: var(--tb-teal-deep);
	font-family: var(--tb-font-display);
	font-size: 12.5px;
	font-weight: 800;
	padding: 6px 14px;
	border-radius: 999px;
}
.tb-cnom-strip p { margin: 0; font-size: 14px; color: var(--tb-muted); max-width: 68ch; }
.tb-doc-subtitle { font-size: 16px; font-weight: 600; color: var(--tb-teal-deep); margin: 4px 0 16px; }

/* ==========================================================================
   TABIBI FREE ASSESSMENT CHATBOT (Embedded Section + Floating Widget)
   ========================================================================== */
.tb-triage-grid {
	display: grid;
	grid-template-columns: 0.92fr 1.08fr;
	gap: 44px;
	align-items: center;
}
.tb-triage-intro h2 { font-size: clamp(32px, 3.8vw, 48px); font-weight: 800; margin: 16px 0 14px; }
.tb-triage-intro p { margin: 0 0 24px; color: var(--tb-muted); font-size: 16.5px; }
.tb-triage-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tb-triage-points li { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15px; }

.tb-chat-box {
	background: #fff;
	border: 1px solid var(--tb-line);
	border-radius: 28px;
	overflow: hidden;
	box-shadow: var(--tb-shadow-l);
	display: flex;
	flex-direction: column;
	height: 510px;
}
.tb-chat-head {
	background: var(--tb-grad);
	color: #fff;
	padding: 16px 22px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.tb-chat-head-id { display: flex; align-items: center; gap: 12px; }
.tb-chat-avatar {
	width: 40px; height: 40px; border-radius: 14px;
	background: var(--tb-teal); color: #fff;
	font-size: 24px; font-weight: 800;
	display: inline-flex; align-items: center; justify-content: center;
}
.tb-chat-head strong { display: block; font-size: 15.5px; line-height: 1.2; }
.tb-chat-head-id > div > span { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.82); }
.tb-chat-reset {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
}
.tb-chat-reset:hover { background: rgba(255, 255, 255, 0.28); }

.tb-chat-feed {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--tb-bg);
}
.tb-chat-msg {
	max-width: 84%;
	padding: 13px 16px;
	border-radius: 18px;
	font-size: 14.5px;
	line-height: 1.5;
	animation: tbFadeUp 0.22s ease;
}
.tb-chat-msg--bot {
	align-self: flex-start;
	background: #fff;
	color: var(--tb-navy);
	border: 1px solid var(--tb-line);
	border-bottom-left-radius: 6px;
	box-shadow: 0 3px 12px rgba(10, 31, 68, 0.04);
}
.tb-chat-msg--user {
	align-self: flex-end;
	background: var(--tb-navy);
	color: #fff;
	border-bottom-right-radius: 6px;
}
@keyframes tbFadeUp {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

.tb-chat-opts {
	padding: 14px 18px;
	background: #fff;
	border-top: 1px solid var(--tb-line);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tb-chat-opt {
	border: 1.5px solid var(--tb-line);
	background: var(--tb-bg);
	color: var(--tb-navy);
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	padding: 9px 15px;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.18s ease;
}
.tb-chat-opt:hover {
	background: var(--tb-teal);
	border-color: var(--tb-teal);
	color: #fff;
	transform: translateY(-1px);
}

.tb-chat-result {
	background: #fff;
	border: 1.5px solid var(--tb-teal);
	border-radius: 20px;
	padding: 18px;
	animation: tbFadeUp 0.25s ease;
}
.tb-chat-result.is-urgent {
	border-color: #D93025;
	background: #FFF6F6;
}
.tb-chat-result h4 { font-size: 16.5px; font-weight: 800; margin: 0 0 8px; color: var(--tb-navy); }
.tb-chat-result.is-urgent h4 { color: #B31B1B; }
.tb-chat-result p { margin: 0 0 12px; font-size: 14px; color: var(--tb-muted); }
.tb-chat-summary {
	list-style: none;
	margin: 0 0 14px;
	padding: 10px 12px;
	background: var(--tb-bg);
	border-radius: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.tb-chat-summary li {
	background: #fff;
	border: 1px solid var(--tb-line);
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 12px;
}
.tb-chat-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tb-btn--wa { background: #25D366; color: #fff; }
.tb-btn--wa:hover { background: #1DA851; color: #fff; }
.tb-chat-disc { display: block; font-size: 11.5px; color: var(--tb-muted); }

/* Floating Assistant Button & Drawer */
.tb-fab {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 250;
	background: var(--tb-navy);
	color: #fff;
	border: 2px solid var(--tb-teal);
	border-radius: 999px;
	padding: 13px 20px;
	font-family: var(--tb-font-display);
	font-size: 14px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	cursor: pointer;
	box-shadow: 0 14px 36px rgba(10, 31, 68, 0.28);
	transition: transform 0.2s ease, background 0.2s ease;
}
.tb-fab:hover { transform: translateY(-3px); background: var(--tb-teal-deep); }
html[dir="rtl"] .tb-fab { right: auto; left: 24px; }

.tb-chat-drawer {
	position: fixed;
	bottom: 86px;
	right: 24px;
	z-index: 260;
	width: 390px;
	max-width: calc(100vw - 32px);
	display: none;
}
html[dir="rtl"] .tb-chat-drawer { right: auto; left: 24px; }
.tb-chat-drawer.is-open { display: block; animation: tbFadeUp 0.22s ease; }
.tb-chat-box--drawer { height: 480px; }

@media (max-width: 1040px) {
	.tb-triage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.tb-header-right .tb-lang-switch { display: none; }
	.tb-fab > span { display: none; }
	.tb-fab { padding: 14px; }
}


/* ==========================================================================
   FINAL DESIGN POLISH — HEADER, WHATSAPP ICONS, CHATBOT & RTL PRECISION
   ========================================================================== */
.tb-nav-list a,
.tb-header .tb-btn,
.tb-lang-btn {
	white-space: nowrap;
}
.tb-btn svg { flex-shrink: 0; }

.tb-f-socials a.tb-soc-wa:hover {
	background: #25D366;
	border-color: #25D366;
	color: #fff;
}

.tb-chat-icon-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.18s ease;
}
.tb-chat-icon-btn:hover { background: rgba(255, 255, 255, 0.3); }

/* Keep infinite marquee scrolling smoothly in BOTH LTR and RTL */
.tb-marquee-wrap { direction: ltr; }
html[dir="rtl"] .tb-review-card { direction: rtl; text-align: right; }

/* Full RTL Mirroring */
html[dir="rtl"] .tb-nav-list a::after { transform-origin: right; }
html[dir="rtl"] .tb-acc-num { left: auto; right: 22px; }
html[dir="rtl"] .tb-float-chip--top { right: auto; left: 20px; }
html[dir="rtl"] .tb-float-chip--bottom { left: auto; right: 20px; }
html[dir="rtl"] .tb-map-pill { left: auto; right: 18px; }
html[dir="rtl"] .tb-mnav { transform: translateX(-100%); }
html[dir="rtl"] .tb-mnav.is-open { transform: translateX(0); }
html[dir="rtl"] .tb-chat-msg--bot { border-bottom-left-radius: 18px; border-bottom-right-radius: 6px; }
html[dir="rtl"] .tb-chat-msg--user { border-bottom-right-radius: 18px; border-bottom-left-radius: 6px; }
html[dir="rtl"] .tb-doc-rating { right: auto; left: 14px; }

@media (max-width: 1180px) {
	.tb-header-contact { display: none; }
	.tb-header-left, .tb-header-right { gap: 18px; }
	.tb-nav-list { gap: 18px; }
}
@media (max-width: 760px) {
	html[dir="rtl"] .tb-acc-vert { left: auto; right: 74px; }
}
