/**
 * Tabarak Branches & Extensions - Scoped UI Design System
 * Text Domain: tabarak
 */

:root {
    --tbh-primary: #ba2523;
    --tbh-primary-dark: #961b1a;
    --tbh-primary-light: #fef2f2;
    --tbh-primary-border: #fecaca;
    --tbh-whatsapp: #25d366;
    --tbh-whatsapp-dark: #128c7e;
    --tbh-blue: #0284c7;
    --tbh-dark: #0f172a;
    --tbh-slate: #334155;
    --tbh-muted: #64748b;
    --tbh-border: #e2e8f0;
    --tbh-bg: #f8fafc;
    --tbh-card-bg: #ffffff;
    --tbh-radius: 14px;
    --tbh-radius-sm: 8px;
    --tbh-shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -2px rgba(0,0,0,0.04);
    --tbh-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --tbh-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scoped Wrapper */
.tbh-branches {
    font-family: inherit;
    color: var(--tbh-dark);
    line-height: 1.5;
    box-sizing: border-box;
}

.tbh-branches *,
.tbh-branches *::before,
.tbh-branches *::after {
    box-sizing: border-box;
}

/* -------------------------------------------------------------
 * 1. HERO CAROUSEL
 * ------------------------------------------------------------- */
.tbh-hero-carousel-section {
    position: relative;
    margin-bottom: 36px;
    border-radius: var(--tbh-radius);
    overflow: hidden;
    box-shadow: var(--tbh-shadow-lg);
}

.tbh-carousel-container {
    position: relative;
    width: 100%;
    min-height: 380px;
    background: #1e293b;
    overflow: hidden;
}

.tbh-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.tbh-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    display: flex;
    align-items: center;
}

.tbh-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    min-height: 380px;
}

.tbh-slide-img-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tbh-slide-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tbh-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(186, 37, 35, 0.72) 100%);
}

.tbh-slide-content {
    position: relative;
    z-index: 2;
    padding: 48px 40px;
    max-width: 640px;
    color: #ffffff;
}

.tbh-slide-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 14px;
}

.tbh-slide-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 0 12px 0;
}

.tbh-slide-subtitle {
    font-size: 16px;
    color: #f1f5f9;
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.tbh-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    color: #ffffff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tbh-transition);
}

.tbh-carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--tbh-dark);
}

.tbh-carousel-prev { left: 16px; }
.tbh-carousel-next { right: 16px; }

.tbh-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.tbh-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--tbh-transition);
}

.tbh-carousel-dot.active {
    width: 24px;
    border-radius: 9999px;
    background: #ffffff;
}

/* -------------------------------------------------------------
 * 2. SEARCH & NEAREST LOCATOR
 * ------------------------------------------------------------- */
.tbh-search-section {
    margin-bottom: 40px;
}

.tbh-search-card {
    background: #ffffff;
    border: 1px solid var(--tbh-border);
    border-radius: var(--tbh-radius);
    padding: 32px;
    box-shadow: var(--tbh-shadow);
}

.tbh-search-header {
    margin-bottom: 24px;
}

.tbh-search-kpi-badge {
    display: inline-block;
    background: var(--tbh-primary-light);
    color: var(--tbh-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.tbh-search-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--tbh-dark);
    margin: 0 0 6px 0;
}

.tbh-search-header p {
    color: var(--tbh-muted);
    font-size: 14px;
    margin: 0;
}

.tbh-input-group {
    display: flex;
    align-items: center;
    position: relative;
    border: 2px solid var(--tbh-border);
    border-radius: var(--tbh-radius-sm);
    background: #ffffff;
    transition: var(--tbh-transition);
}

.tbh-input-group:focus-within {
    border-color: var(--tbh-primary);
    box-shadow: 0 0 0 3px rgba(186, 37, 35, 0.15);
}

.tbh-input-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-left: 14px;
    color: var(--tbh-muted);
}

.tbh-search-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    color: var(--tbh-dark) !important;
    outline: none !important;
    box-shadow: none !important;
}

.tbh-search-form .tbh-btn-primary {
    margin: 4px;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
}

.tbh-search-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.tbh-geo-btn {
    background: #f1f5f9;
    color: var(--tbh-slate);
    border: 1px solid var(--tbh-border);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--tbh-transition);
}

.tbh-geo-btn:hover {
    background: #e2e8f0;
    color: var(--tbh-dark);
}

.tbh-geo-status {
    font-size: 13px;
    color: var(--tbh-primary);
    font-weight: 500;
}

/* Nearest Highlight Callout */
.tbh-nearest-highlight-banner {
    margin-top: 24px;
    background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
    border: 2px solid var(--tbh-primary-border);
    border-radius: var(--tbh-radius);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    animation: tbhFadeIn 0.3s ease;
}

@keyframes tbhFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tbh-nearest-star-badge {
    background: var(--tbh-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}

.tbh-highlight-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--tbh-dark);
    margin: 0 0 4px 0;
}

.tbh-highlight-content p {
    color: var(--tbh-slate);
    font-size: 14px;
    margin: 0 0 10px 0;
}

.tbh-highlight-meta {
    display: flex;
    gap: 8px;
}

.tbh-badge-distance {
    background: #ffffff;
    border: 1px solid var(--tbh-primary-border);
    color: var(--tbh-primary);
    font-size: 13px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

.tbh-badge-hours {
    background: #ffffff;
    border: 1px solid var(--tbh-border);
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}

.tbh-highlight-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* -------------------------------------------------------------
 * 3. BRANCHES GRID & CARDS
 * ------------------------------------------------------------- */
.tbh-directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 14px;
}

.tbh-directory-meta {
    display: flex;
    gap: 8px;
}

.tbh-kpi-pill {
    background: #f1f5f9;
    color: var(--tbh-slate);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid var(--tbh-border);
}

.tbh-pill-hours {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.tbh-quick-contact-actions {
    display: flex;
    gap: 8px;
}

.tbh-action-pill {
    background: #ffffff;
    border: 1px solid var(--tbh-border);
    color: var(--tbh-slate);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: var(--tbh-transition);
}

.tbh-action-pill:hover {
    border-color: var(--tbh-primary);
    color: var(--tbh-primary);
}

.tbh-pill-call-alt {
    color: var(--tbh-primary);
    border-color: var(--tbh-primary-border);
    background: var(--tbh-primary-light);
}

.tbh-branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 24px;
}

.tbh-branch-card {
    background: #ffffff;
    border: 1px solid var(--tbh-border);
    border-radius: var(--tbh-radius);
    padding: 24px;
    box-shadow: var(--tbh-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--tbh-transition);
    position: relative;
}

.tbh-branch-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tbh-shadow-lg);
    border-color: #cbd5e1;
}

.tbh-branch-card.is-nearest-active {
    border: 2px solid var(--tbh-primary);
    box-shadow: 0 0 0 3px rgba(186, 37, 35, 0.15);
}

.tbh-card-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    align-items: center;
}

.tbh-badge-code {
    background: #f1f5f9;
    color: var(--tbh-slate);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.tbh-badge-block {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.tbh-card-distance-badge {
    background: var(--tbh-primary-light);
    color: var(--tbh-primary);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.tbh-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--tbh-dark);
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.tbh-card-title-ar {
    font-size: 15px;
    color: var(--tbh-muted);
    margin: 0 0 10px 0;
    font-weight: 500;
}

.tbh-card-address {
    font-size: 13px;
    color: var(--tbh-slate);
    margin: 0 0 14px 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.45;
}

.tbh-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.tbh-hours-tag {
    font-size: 12px;
    color: #16a34a;
    background: #f0fdf4;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.tbh-cr-tag {
    font-size: 11px;
    color: var(--tbh-muted);
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
}

.tbh-card-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}

.tbh-card-map-wrap {
    width: 100%;
    height: 170px;
    border-radius: var(--tbh-radius-sm);
    overflow: hidden;
    background: #e2e8f0;
    border: 1px solid var(--tbh-border);
}

.tbh-card-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* -------------------------------------------------------------
 * 4. BUTTONS & UI KIT
 * ------------------------------------------------------------- */
.tbh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--tbh-radius-sm);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--tbh-transition);
    text-align: center;
    white-space: nowrap;
}

.tbh-btn:hover {
    text-decoration: none !important;
}

.tbh-btn-primary {
    background: var(--tbh-primary);
    color: #ffffff !important;
}

.tbh-btn-primary:hover {
    background: var(--tbh-primary-dark);
    color: #ffffff !important;
}

.tbh-btn-call {
    background: #f1f5f9;
    color: var(--tbh-dark) !important;
    border-color: #e2e8f0;
}

.tbh-btn-call:hover {
    background: #e2e8f0;
    color: var(--tbh-dark) !important;
}

.tbh-btn-whatsapp {
    background: #ecfdf5;
    color: #047857 !important;
    border-color: #a7f3d0;
}

.tbh-btn-whatsapp:hover {
    background: #d1fae5;
    color: #065f46 !important;
}

.tbh-btn-maps {
    background: #f0f9ff;
    color: #0369a1 !important;
    border-color: #bae6fd;
}

.tbh-btn-maps:hover {
    background: #e0f2fe;
    color: #0284c7 !important;
}

.tbh-btn-hero {
    background: #ffffff;
    color: var(--tbh-primary) !important;
    padding: 12px 24px;
    font-size: 15px;
}

.tbh-btn-hero:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.tbh-btn-outline {
    background: transparent;
    border-color: var(--tbh-border);
    color: var(--tbh-slate) !important;
}

.tbh-btn-outline:hover {
    border-color: var(--tbh-dark);
    color: var(--tbh-dark) !important;
}

.tbh-btn-whatsapp-large {
    background: var(--tbh-whatsapp);
    color: #ffffff !important;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.tbh-btn-whatsapp-large:hover {
    background: var(--tbh-whatsapp-dark);
    color: #ffffff !important;
}

.tbh-btn-pulse {
    animation: tbhPulse 2.5s infinite;
}

@keyframes tbhPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* -------------------------------------------------------------
 * 5. INSURANCE POPUP MODAL (PHASE 5)
 * ------------------------------------------------------------- */
.tbh-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.tbh-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.tbh-modal-container {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-radius: 20px;
    max-width: 580px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: tbhModalZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tbhModalZoom {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

.tbh-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #f1f5f9;
    border: none;
    font-size: 24px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--tbh-slate);
    transition: var(--tbh-transition);
}

.tbh-modal-close:hover {
    background: #e2e8f0;
    color: var(--tbh-dark);
}

.tbh-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.tbh-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tbh-primary-light);
    color: var(--tbh-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 10px;
}

.tbh-modal-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--tbh-dark);
    margin: 0 0 6px 0;
}

.tbh-modal-subtitle-exact {
    font-size: 15px;
    font-weight: 700;
    color: var(--tbh-primary);
    margin: 0;
}

.tbh-docs-label-exact {
    display: block;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tbh-muted);
    margin-bottom: 12px;
    text-align: center;
}

/* 4 Cards (2x2 on mobile & desktop) */
.tbh-modal-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 28px;
}

.tbh-doc-modal-card {
    background: #f8fafc;
    border: 1.5px solid var(--tbh-border);
    border-radius: 12px;
    padding: 16px 14px;
    text-align: center;
    position: relative;
    transition: var(--tbh-transition);
}

.tbh-doc-modal-card:hover {
    border-color: var(--tbh-primary-border);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.tbh-doc-icon-wrap {
    margin-bottom: 8px;
}

.tbh-doc-num {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 1px solid var(--tbh-border);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    color: var(--tbh-slate);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tbh-doc-modal-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--tbh-dark);
    margin: 0 0 2px 0;
}

.tbh-doc-modal-card p {
    font-size: 11px;
    color: var(--tbh-muted);
    margin: 0;
}

.tbh-modal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tbh-btn-whatsapp-full {
    width: 100%;
    background: var(--tbh-whatsapp);
    color: #ffffff !important;
    padding: 15px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.tbh-btn-whatsapp-full:hover {
    background: var(--tbh-whatsapp-dark);
    color: #ffffff !important;
}

.tbh-footer-note {
    font-size: 12px;
    color: var(--tbh-muted);
    text-align: center;
}

/* -------------------------------------------------------------
 * 6. MY ACCOUNT TAB STYLING
 * ------------------------------------------------------------- */
.tbh-account-tab {
    padding: 10px 0;
}

.tbh-account-header {
    margin-bottom: 24px;
}

.tbh-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--tbh-primary-light);
    color: var(--tbh-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 8px;
}

.tbh-account-header h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.tbh-account-header p {
    color: var(--tbh-muted);
    margin: 0;
    font-size: 14px;
}

.tbh-account-actions-row {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tbh-account-card-hero {
    background: #ffffff;
    border: 1px solid var(--tbh-border);
    border-radius: var(--tbh-radius);
    padding: 36px 32px;
    text-align: center;
    box-shadow: var(--tbh-shadow);
}

.tbh-hero-icon-pill {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: var(--tbh-primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tbh-account-card-hero h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.tbh-hero-desc {
    font-size: 14px;
    color: var(--tbh-muted);
    max-width: 580px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.tbh-contacts-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 540px;
    margin: 0 auto 28px;
}

.tbh-contact-tile {
    background: #f8fafc;
    border: 1px solid var(--tbh-border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.tbh-tile-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tbh-muted);
    margin-bottom: 4px;
}

.tbh-tile-val {
    font-size: 16px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.tbh-tel-link { color: var(--tbh-dark); }
.tbh-wa-link { color: #059669; }

.tbh-tile-sub {
    display: block;
    font-size: 11px;
    color: var(--tbh-muted);
    margin-top: 4px;
}

.tbh-action-buttons-flex {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.tbh-action-buttons-flex .tbh-btn {
    padding: 12px 24px;
    font-size: 14px;
}

/* Insurance Endpoint Docs in Account */
.tbh-docs-section {
    max-width: 540px;
    margin: 0 auto 24px;
}

.tbh-docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.tbh-doc-card {
    background: #f8fafc;
    border: 1px solid var(--tbh-border);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.tbh-doc-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--tbh-dark);
}

.tbh-doc-hint {
    font-size: 11px;
    color: var(--tbh-muted);
}

/* Rx Boxes */
.tbh-rx-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 620px;
    margin: 0 auto;
    text-align: left;
}

.tbh-rx-box {
    background: #f8fafc;
    border: 1px solid var(--tbh-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tbh-rx-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 12px 0 6px;
}

.tbh-rx-box p {
    font-size: 13px;
    color: var(--tbh-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}

.tbh-pill-active {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

/* -------------------------------------------------------------
 * 7. RTL SUPPORT (ARABIC)
 * ------------------------------------------------------------- */
[dir="rtl"] .tbh-branches,
body.rtl .tbh-branches {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .tbh-carousel-prev,
body.rtl .tbh-carousel-prev {
    left: auto;
    right: 16px;
    transform: translateY(-50%) rotate(180deg);
}

[dir="rtl"] .tbh-carousel-next,
body.rtl .tbh-carousel-next {
    right: auto;
    left: 16px;
    transform: translateY(-50%) rotate(180deg);
}

[dir="rtl"] .tbh-input-icon,
body.rtl .tbh-input-icon {
    margin-left: 0;
    margin-right: 14px;
}

[dir="rtl"] .tbh-card-distance-badge,
body.rtl .tbh-card-distance-badge {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .tbh-modal-close,
body.rtl .tbh-modal-close {
    right: auto;
    left: 18px;
}

[dir="rtl"] .tbh-doc-num,
body.rtl .tbh-doc-num {
    left: auto;
    right: 8px;
}

/* -------------------------------------------------------------
 * 8. RESPONSIVE BREAKPOINTS
 * ------------------------------------------------------------- */
@media (max-width: 768px) {
    .tbh-slide-content {
        padding: 36px 20px;
    }
    .tbh-slide-title {
        font-size: 24px;
    }
    .tbh-search-card {
        padding: 20px;
    }
    .tbh-branches-grid {
        grid-template-columns: 1fr;
    }
    .tbh-nearest-highlight-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .tbh-highlight-actions {
        width: 100%;
    }
    .tbh-highlight-actions .tbh-btn {
        flex: 1;
    }
    .tbh-contacts-box,
    .tbh-rx-options-grid {
        grid-template-columns: 1fr;
    }
}
