/* Compact provider discovery; preserve desktop card sizes and the Medical palette. */
/* The source Metro banner puts the facility on its right; keep it in the crop. */
body:not(.wl) :is(.hospital-card-img,.hospital-avatar-box,.rd-hcard-img) img[src*="metro-hospital-heart-institute-noida-photo-"] { object-position: right center; }
@media(max-width:768px) {
 body:not(.wl) .hospital-card-img img[src*="metro-hospital-heart-institute-noida-photo-"] { transform: scale(1.9); transform-origin: right center; }
}
body:not(.wl) .provider-toolbar { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 10px; padding: 12px; margin-bottom: 16px; }
body:not(.wl) .provider-toolbar:has(.provider-city-filter) { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr) minmax(0,.7fr); }
.provider-city-filter { display: grid; gap: 6px; min-width: 0; }
.provider-city-filter label { font-size: 12px; font-weight: 600; color: #345868; }
.provider-city-filter select { width: 100%; height: 44px; border: 1px solid #cbdde5; border-radius: 10px; padding: 8px; background: white; font: inherit; color: #153849; }
body:not(.wl) .provider-toolbar :is(.search-input-wrap,.medical-select-trigger,select) { min-height: 44px; height: 44px; }
body:not(.wl) .provider-toolbar .medical-treatment-specialty .medical-select-trigger { min-height: 44px; height: auto; padding: 9px 10px; }
body:not(.wl) .provider-toolbar .medical-treatment-specialty label { margin-bottom: 6px; }
body:not(.wl) .provider-toolbar .medical-select-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:not(.wl) .provider-toolbar .medical-result-status { grid-column: 1 / -1; margin: 0; padding: 0; font-size: 12px; }
.provider-image-facts { display: none; }
.provider-experience { color: #145e7a; background: #edf5f7; padding: 5px 10px; border-radius: 20px; margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.rd-doc-body .provider-experience { display: inline-block; }
body:not(.wl) #hospitals .rd-filter { gap: 6px; margin-bottom: 14px; }
body:not(.wl) #hospitals .rd-filter .rd-chip { padding: 8px 12px; min-height: 44px; font-size: 12px; }
.provider-page-hidden { display: none !important; }
.provider-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0; color: #345868; font-size: 13px; }
.provider-pagination[hidden] { display: none; }
.provider-pagination button { min-height: 44px; padding: 8px 14px; border: 1px solid #cbdde5; border-radius: 12px; background: #fff; color: #145e7a; font: inherit; cursor: pointer; }
.provider-pagination button:disabled { opacity: .5; cursor: default; }
.provider-chat { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; color: #07512e; background: #dcf7e8; border-radius: 50%; }
.telegram-link { color: #145e7a !important; }
.telegram-link .icon { color: #168ac4 !important; width: 18px; height: 18px; flex-shrink: 0; }
.telegram-link:is(.rd-btn,.btn-primary,.btn-outline,.rd-btn-ghost,.rd-quick-card,.nav-wa-btn) { color: #087ab2 !important; background: #eaf6fd !important; border-color: #bddfee !important; }
.telegram-link .icon { background: transparent !important; }
.telegram-link:is(.sticky-btn,.provider-chat) { background: #e5f3fa !important; border-color: #b7d9e9 !important; }
.telegram-link:is(.medical-nav-whatsapp,.wellness-nav-whatsapp,.provider-chat) span { display: none; }
.telegram-link:is(.medical-nav-whatsapp,.wellness-nav-whatsapp) { width: 44px !important; min-width: 44px; padding: 0 !important; justify-content: center; }
.telegram-link:focus-visible,.provider-chat:focus-visible { outline: 3px solid #145e7a; outline-offset: 3px; }
#mobileStickyBar:has(.telegram-link) { gap: 8px; }
#mobileStickyBar .telegram-link { flex: 0 0 44px; width: 44px; min-width: 44px; padding: 10px !important; justify-content: center; }
#mobileStickyBar .telegram-link span { display: none; }
@media(max-width:768px) {
 body:not(.wl) #hospitals .rd-filter .count { flex-basis: 100%; margin-inline-start: 0; font-size: 12px; }
 body:not(.wl) #hospRail { display: flex; flex-direction: column; overflow: visible; gap: 12px; padding-bottom: 0; scroll-margin-top: calc(var(--nav-h,94px) + 12px); }
 body:not(.wl) #hospitalsContainer { scroll-margin-top: calc(var(--nav-h,94px) + 12px); }
 body:not(.wl) #main .medical-hospital-carousel:has(#hospRail) { padding: 0; }
 body:not(.wl) .medical-hospital-carousel:has(#hospRail) .rd-rail-btns { display: none; }
 body:not(.wl) #hospRail .rd-hcard-img { height: 100px; }
 body:not(.wl) #main #hospRail .rd-hcard-body { padding: 12px !important; }
 body:not(.wl) #main #hospRail h3 { font-size: 17px !important; margin-bottom: 4px; }
 body:not(.wl) #main #hospRail .rd-hcard-body p { font-size: 12px !important; margin-bottom: 8px; }
 body:not(.wl) #hospRail .rd-hcard-logo img { max-height: 18px; }
 body:not(.wl) .provider-toolbar,body:not(.wl) .provider-toolbar:has(.provider-city-filter) { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; padding: 10px; }
 body:not(.wl) .provider-toolbar .filter-bar { grid-column: 1 / -1; }
 body:not(.wl) .provider-toolbar:not(:has(.provider-city-filter)) .medical-treatment-specialty { grid-column: 1 / -1; }
 body:not(.wl) .provider-toolbar :is(input,select) { font-size: 16px; }
 body:not(.wl) .provider-toolbar .medical-treatment-search-label { display: none; }
 body:not(.wl) .provider-toolbar .search-input-wrap { padding: 8px 10px; }
 body:not(.wl) #hospitalsContainer { grid-template-columns: minmax(0,1fr); gap: 12px; }
 body:not(.wl) #hospitalsContainer .provider-hospital-card { padding: 12px; border-radius: 16px; overflow: hidden; }
 body:not(.wl) #hospitalsContainer .hospital-card-img { position: relative; height: 100px; min-height: 100px; margin: -12px -12px 10px; border: 0; border-radius: 0; }
 body:not(.wl) #hospitalsContainer .provider-original-facts { display: none !important; }
 .provider-image-facts { position: absolute; inset: 8px auto auto 8px; display: flex; gap: 6px; }
 [dir=rtl] .provider-image-facts { inset: 8px 8px auto auto; }
 .provider-image-facts span { padding: 4px 7px; border-radius: 20px; background: #fff; color: #153849; font-size: 11px; font-weight: 700; box-shadow: 0 2px 8px #15384922; }
 .provider-image-facts span:first-child { background: #153849; color: #fff; }
 body:not(.wl) #hospitalsContainer .hospital-name { font-size: 17px; line-height: 1.3; margin-bottom: 4px; }
 body:not(.wl) #hospitalsContainer .hospital-location { font-size: 12px; margin-bottom: 7px; line-height: 1.4; }
 body:not(.wl) #hospitalsContainer .hospital-specs { gap: 4px; margin-bottom: 10px; }
 body:not(.wl) #hospitalsContainer .hospital-specs span { padding: 3px 7px; font-size: 11px; line-height: 1.4; }
 body:not(.wl) #hospitalsContainer .provider-card-actions { flex-wrap: wrap; gap: 6px !important; }
 body:not(.wl) #hospitalsContainer .provider-card-actions > a:first-child { min-height: 44px; background: #145e7a; color: white; flex: 1 !important; border-radius: 24px; }
 body:not(.wl) #hospitalsContainer .provider-card-actions > a:nth-child(2) { display: none; }
 body:not(.wl) #hospitalsContainer .provider-chat { width: 44px; height: 44px; flex: 0 0 44px; }
 body:not(.wl) #doctorsContainer .provider-doctor-summary { display: none; }
 body:not(.wl) #doctorsContainer .provider-experience { margin-bottom: 12px; }
 #mobileStickyBar:has(.telegram-link) .sticky-btn:not(.telegram-link) { min-width: 0; flex: 1 1 0; }
}

/* A flat directory toolbar replaces the large labelled filter panel. */
body:not(.wl) #main .directory-toolbar-slim {
 display: grid; grid-template-columns: minmax(0,1fr) minmax(140px,240px);
 align-items: start; gap: 6px 10px; width: 100%; max-width: 860px;
 padding: 0; margin: 0 0 18px; border: 0; border-radius: 0;
 background: transparent; box-shadow: none; position: static;
}
body:not(.wl) #main .directory-toolbar-slim:has(.provider-city-filter) {
 max-width: 1000px; grid-template-columns: minmax(0,1fr) minmax(140px,240px) minmax(120px,180px);
}
body:not(.wl) #main .directory-toolbar-slim .filter-bar {
 display: block !important; min-width: 0; grid-column: auto; padding: 0; margin: 0;
}
body:not(.wl) #main .directory-toolbar-slim :is(.medical-treatment-search-label,.medical-treatment-specialty label,.provider-city-filter label) {
 display: block !important; position: absolute; width: 1px; height: 1px;
 padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
body:not(.wl) #main .directory-toolbar-slim :is(.medical-treatment-specialty,.provider-city-filter) {
 display: block; min-width: 0; grid-column: auto; margin: 0;
}
body:not(.wl) #main .directory-toolbar-slim .search-input-wrap {
 display: flex; align-items: center; gap: 8px; height: 44px !important;
 min-height: 44px !important; max-height: 44px; padding: 8px 12px;
 border: 1px solid #cbdde5; border-radius: 10px; background: #fff;
 box-shadow: none; box-sizing: border-box; margin: 0;
}
body:not(.wl) #main .directory-toolbar-slim .search-input-wrap .icon { width: 16px; height: 16px; flex-shrink: 0; }
body:not(.wl) #main .directory-toolbar-slim .search-input-wrap input {
 width: 100%; min-width: 0; height: 100%; min-height: 0; margin: 0 !important;
 padding: 0 !important; border: 0 !important; border-radius: 0;
 background: transparent; box-shadow: none !important; outline: none; font-size: 16px;
}
body:not(.wl) #main .directory-toolbar-slim .search-input-wrap:focus-within { outline: 3px solid #145e7a; outline-offset: 2px; }
body:not(.wl) #main .directory-toolbar-slim :is(.medical-select-trigger,select) {
 width: 100%; height: 44px; min-height: 44px; padding: 8px 10px;
 border: 1px solid #cbdde5; border-radius: 10px; background: #fff;
 box-sizing: border-box; box-shadow: none; gap: 8px; font-size: 14px;
}
body:not(.wl) #main .directory-toolbar-slim .medical-select-value {
 min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body:not(.wl) #main .directory-toolbar-slim .medical-result-status {
 grid-column: 1 / -1; align-items: center; padding: 0; margin: 0;
 min-height: 18px; font-size: 12px; line-height: 18px; gap: 8px;
}
body:not(.wl) #main .directory-toolbar-slim .medical-result-status button:not([hidden]) { min-height: 44px; margin-block: -6px; }
@media(max-width:768px) {
 body:not(.wl) #main .directory-toolbar-slim,
 body:not(.wl) #main .directory-toolbar-slim:has(.provider-city-filter) {
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 6px 8px; margin-bottom: 14px;
 }
 body:not(.wl) #main .directory-toolbar-slim:has(.provider-city-filter) .medical-result-status { grid-column: 2; min-height: 44px; }
 body:not(.wl) #main .directory-toolbar-slim:has(.provider-city-filter) .provider-city-filter { grid-column: 1; }
 body:not(.wl) #main .directory-toolbar-slim :is(.medical-select-trigger,select) { font-size: 16px; }
}
