/* Stylesheet for Sehatmand Swat - Healthcare Directory App */

/* ==========================================
   1. Import Fonts & Setup Variables
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Nastaliq+Urdu:wght@400;700&display=swap');

:root {
  --primary-teal-dark: #115E59;     /* Deep teal */
  --primary-teal-medium: #0F766E;   /* Medium teal */
  --primary-teal-light: #CCFBF1;    /* Light teal bg */
  --primary-teal-text: #042F2E;     /* Darkest teal text */
  --accent-yellow: #F2C94C;         /* Warm amber yellow from Figma */
  --bg-app: #F9FAFB;                /* Light cool gray screen bg */
  --bg-card: #FFFFFF;               /* Pure white card bg */
  --text-dark: #1A2E1A;             /* Dark Charcoal / Green-black text */
  --text-muted: #6B7280;            /* Gray for secondary text */
  --verified-blue: #2563EB;         /* Blue checkmark color */
  --whatsapp-green: #16A34A;        /* WhatsApp official green */
  --whatsapp-green-hover: #15803d;
  --call-teal: #115E59;
  --call-teal-hover: #0f766e;
  --map-gray: #F3F4F6;
  --map-gray-hover: #E5E7EB;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Georgia', serif;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ==========================================
   2. Reset & Global Layout
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-sans);
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #F1F5F9;
  min-height: 100vh;
  display: block;
  overflow-x: hidden;
  color: var(--text-dark);
}

/* Scrollbar customizations */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(17, 94, 89, 0.25);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(17, 94, 89, 0.45);
}

/* ==========================================
   3. Responsive Website Shell
   ========================================== */
.phone-shell {
  position: relative;
  width: 100%;
  max-width: 1240px;
  min-height: 100vh;
  margin: 0 auto;
  background: transparent;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

/* Screen wrapper container */
.phone-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: transparent;
  display: flex;
  flex-direction: column;
}

/* Remove fake hardware mockup artifacts on responsive website */
.phone-notch,
.phone-status-bar,
.home-indicator {
  display: none !important;
}

/* ==========================================
   4. App Navigation & Shell structure
   ========================================== */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding-bottom: 74px; /* Space for navbar */
}

/* Viewport content area */
.app-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* Pull-to-refresh spinner styling */
.pull-to-refresh-spinner {
  height: 0px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-teal);
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 700;
  transition: height 0.15s ease, opacity 0.15s ease;
  opacity: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.pull-to-refresh-spinner.visible {
  opacity: 1;
}

/* Bottom Nav Bar */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px 10px 10px;
  z-index: 1000;
  border-radius: 0 0 38px 38px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 4px;
}

.nav-item i {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.nav-item:hover {
  color: var(--primary-teal-dark);
}

.nav-item.active {
  color: var(--primary-teal-dark);
}

.nav-item.active i {
  transform: translateY(-2px);
}

/* Bottom home indicator line (simulate iOS) */
.home-indicator {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background: rgba(0,0,0,0.5);
  border-radius: 10px;
  z-index: 1001;
  pointer-events: none;
}

/* Screens toggling */
.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding-top: 0; /* Align with hero */
  padding-bottom: 8px; /* Prevent content from being hidden under bottom navigation bar */
}

.app-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* ==========================================
   5. Directory-First Homepage Styles
   ========================================== */

/* Compact Header */
.home-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 8px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brand-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 2px 5px rgba(15, 118, 110, 0.25);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 20px;
  font-weight: 800;
  color: #0F766E;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-tagline {
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
  letter-spacing: -0.01em;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.verified-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.verified-count-pill i {
  color: #059669;
  font-size: 12px;
}

.header-action-btn {
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.emergency-quick-btn {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.emergency-quick-btn:hover {
  background: #FEE2E2;
}

.admin-quick-btn {
  background: #F1F5F9;
  color: #334155;
  border-color: #CBD5E1;
}

.admin-quick-btn:hover {
  background: #E2E8F0;
}

@media (max-width: 640px) {
  .home-compact-header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
  }
  .header-brand-group {
    flex: 1 1 auto;
    min-width: 0;
  }
  .site-title {
    font-size: 18px;
  }
  .header-right-actions {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .verified-count-pill {
    padding: 4px 8px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .home-compact-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }
  .site-tagline {
    display: none;
  }
  .header-right-actions {
    gap: 5px;
  }
  .verified-count-pill {
    padding: 3px 6px;
    font-size: 10.5px;
  }
  .header-action-btn span {
    display: none;
  }
  .header-action-btn {
    padding: 0;
    width: 30px;
    height: 30px;
    justify-content: center;
  }
}

/* Compact Search & Filter Strip */
.compact-search-strip {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.search-input-wrap {
  flex: 43 1 0%;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.search-prefix-icon {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  font-size: 14px;
  pointer-events: none;
}

#home-search-input {
  width: 100%;
  height: 42px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 0 34px 0 38px;
  font-size: 13.5px;
  color: #0F172A;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

#home-search-input::placeholder {
  color: #94A3B8;
  font-size: 13px;
}

#home-search-input:focus {
  background: #FFFFFF;
  border-color: #0F766E;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.search-clear-icon-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear-icon-btn:hover {
  color: #0F172A;
}

.search-filters-wrap {
  flex: 57 1 0%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-select-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.filter-select-box.filter-tehsil-box {
  flex: 48 1 0%;
}

.filter-select-box.filter-specialty-box {
  flex: 52 1 0%;
}

.filter-select-box i {
  position: absolute;
  left: 12px;
  color: #0F766E;
  font-size: 13px;
  pointer-events: none;
  z-index: 2;
}

.filter-select-box select {
  width: 100%;
  height: 42px;
  background-color: #F8FAFC;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 9px;
  padding: 0 34px 0 34px;
  font-size: 13px;
  font-weight: 600;
  color: #1E293B;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.filter-select-box select:hover {
  background-color: #FFFFFF;
  border-color: #CBD5E1;
}

.filter-select-box select:focus {
  background-color: #FFFFFF;
  border-color: #0F766E;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F766E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.filter-select-box select option {
  background: #FFFFFF;
  color: #1E293B;
  font-weight: 500;
  padding: 8px 12px;
}

.btn-clear-filters {
  height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #FCA5A5;
  background: #FEF2F2;
  color: #DC2626;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.btn-clear-filters:hover {
  background: #FEE2E2;
}

/* Tablet Layout (601px to 920px, e.g. 768px): Search on top, dropdowns side-by-side */
@media (max-width: 920px) and (min-width: 601px) {
  .compact-search-strip {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
  }
  .search-input-wrap {
    flex: 1 1 100%;
    width: 100%;
  }
  .search-filters-wrap {
    flex: 1 1 100%;
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .filter-select-box.filter-tehsil-box {
    flex: 1 1 0%;
  }
  .filter-select-box.filter-specialty-box {
    flex: 1 1 0%;
  }
}

/* Mobile Layout (<= 600px, e.g. 390px, 360px): Stack gracefully */
@media (max-width: 600px) {
  .compact-search-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }
  .search-input-wrap {
    width: 100%;
    flex: none;
  }
  .search-filters-wrap {
    width: 100%;
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .filter-select-box.filter-tehsil-box,
  .filter-select-box.filter-specialty-box {
    width: 100%;
    flex: none;
  }
  .btn-clear-filters {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================
   Advertising Banner Slider (Directly Below Search)
   ========================================== */
.ad-slider-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  margin-bottom: 16px;
  position: relative;
}

.ad-slider-container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
  border: 1px solid #E2E8F0;
  overflow: hidden;
  height: 165px;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .ad-slider-container {
    height: 148px;
  }
}

@media (max-width: 767px) {
  .ad-slider-container {
    height: 128px;
    border-radius: 12px;
  }
}

.ad-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.ad-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.ad-banner-card {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 9px 20px 9px 9px;
  box-sizing: border-box;
  gap: 16px;
  position: relative;
  background: #FFFFFF;
}

/* Category-specific subtle backgrounds */
.ad-banner-card.cat-hospital {
  background: linear-gradient(135deg, #F0FDFA 0%, #FFFFFF 50%, #F0FDF4 100%);
}

.ad-banner-card.cat-pharmacy {
  background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 50%, #F0FDF4 100%);
}

.ad-banner-card.cat-laboratory {
  background: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 50%, #F0F9FF 100%);
}

.ad-banner-card.cat-clinic {
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFFFF 50%, #FFFBEB 100%);
}

.ad-banner-card.cat-other {
  background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 50%, #F1F5F9 100%);
}

/* Media Graphic Column: 35-40% width on desktop, fills almost entire banner height with 9px margins */
.ad-media-col {
  flex: 0 0 38%;
  max-width: 40%;
  width: 38%;
  height: 147px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #F8FAFC;
  display: flex;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .ad-media-col {
    flex: 0 0 36%;
    max-width: 38%;
    width: 36%;
    height: 135px;
  }
}

@media (max-width: 767px) {
  .ad-banner-card {
    padding: 8px 10px 8px 8px;
    gap: 10px;
  }
  .ad-media-col {
    flex: 0 0 92px;
    max-width: 92px;
    width: 92px;
    height: 112px;
    border-radius: 8px;
  }
}

/* Single image fills full media column */
.ad-media-col:not(.ad-media-dual) .ad-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
}

/* Dual image layout: 2 images side-by-side with small spacing */
.ad-media-col.ad-media-dual {
  display: flex;
  gap: 5px;
}

.ad-media-dual .ad-media-sub {
  flex: 1;
  min-width: 0;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .ad-media-col.ad-media-dual {
    gap: 3px;
  }
  .ad-media-dual .ad-media-sub {
    border-radius: 5px;
  }
}

.ad-media-dual .ad-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-media-dual .ad-media-sub:nth-child(1) .ad-banner-img {
  object-position: 60% center;
}

.ad-media-dual .ad-media-sub:nth-child(2) .ad-banner-img {
  object-position: center top;
}

/* Unnecessary badge completely hidden from image area */
.ad-category-badge {
  display: none !important;
}

/* Content Column */
.ad-content-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding-bottom: 6px;
}

.ad-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.ad-sponsored-pill {
  font-size: 9px;
  font-weight: 800;
  background: #FEF3C7;
  color: #D97706;
  border: 1px solid #FDE68A;
  padding: 1.5px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.ad-category-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #0F766E;
  background: #CCFBF1;
  border: 1px solid #99F6E4;
  padding: 1.5px 6px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.ad-business-name {
  font-weight: 700;
  color: #0F766E;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-location-badge {
  font-size: 10.5px;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-headline {
  font-size: 19px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

@media (max-width: 767px) {
  .ad-meta-row .ad-business-name,
  .ad-meta-row .ad-location-badge,
  .ad-meta-row .ad-category-pill {
    display: none;
  }
  .ad-headline {
    font-size: 13px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ad-subtitle {
    display: none;
  }
}

.ad-subtitle {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F766E;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.ad-description {
  font-size: 12px;
  color: #64748B;
  line-height: 1.35;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1023px) {
  .ad-description {
    display: none;
  }
}

/* Feature Highlights row */
.ad-highlights-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.ad-highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

.ad-highlight-item i {
  color: #0F766E;
  font-size: 11px;
}

@media (max-width: 900px) {
  .ad-highlights-row {
    display: none;
  }
}

/* Action Button Column */
.ad-action-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-bottom: 6px;
}

.ad-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #0F766E;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.ad-action-btn:hover {
  background: #0D9488;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.35);
  transform: translateY(-1px);
}

.ad-action-subtext {
  font-size: 10px;
  color: #64748B;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 767px) {
  .ad-action-btn {
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 6px;
  }
  .ad-action-subtext {
    display: none;
  }
}

/* REMOVED: Large left/right arrow buttons completely hidden */
.ad-nav-btn,
#ad-prev-btn,
#ad-next-btn {
  display: none !important;
}

/* Pagination Dots: Centered at bottom */
.ad-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

@media (max-width: 767px) {
  .ad-slider-dots {
    bottom: 4px;
  }
}

.ad-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #99F6E4;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ad-dot.active {
  background: #0F766E;
  width: 20px;
  border-radius: 4px;
}

/* ==========================================
   Featured Specialists Section (4 Pastel Cards in 1 Row)
   ========================================== */
.featured-sponsored-section {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 14px;
  margin-bottom: 18px;
}

.featured-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 0 2px;
}

.featured-header-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.featured-header-title i {
  color: #D97706;
  font-size: 14px;
}

.featured-title-text {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0F766E;
}

.sponsored-tag-pill {
  font-size: 9.5px;
  font-weight: 800;
  color: #D97706;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 1.5px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Hide arrow controls on desktop when cards fit */
.featured-nav-controls {
  display: none;
  align-items: center;
  gap: 6px;
}

.featured-arrow-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0F766E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.featured-arrow-btn:hover {
  background: #0F766E;
  color: #FFFFFF;
  border-color: #0F766E;
}

.featured-carousel-viewport {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

/* Desktop: Exactly 4 cards in one row */
.featured-doctors-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 900px) and (min-width: 641px) {
  .featured-doctors-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .featured-nav-controls {
    display: flex;
  }
  .featured-doctors-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
    padding-bottom: 4px;
  }
  .featured-doctors-track::-webkit-scrollbar {
    display: none;
  }
}

/* Compact Featured Doctor Card */
.featured-doctor-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  height: 86px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  text-align: left;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .featured-doctor-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
  }
}

.featured-doctor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.12);
}

/* 4 Alternating Soft Pastel Backgrounds */
.featured-card-mint {
  background: #F0FDF9;
  border: 1px solid #D1FAE5;
}
.featured-card-mint:hover {
  background: #E6FAF4;
  border-color: #A7F3D0;
}

.featured-card-cream {
  background: #FFFBEB;
  border: 1px solid #FEF3C7;
}
.featured-card-cream:hover {
  background: #FEF9E0;
  border-color: #FDE68A;
}

.featured-card-blush {
  background: #FFF1F2;
  border: 1px solid #FFE4E6;
}
.featured-card-blush:hover {
  background: #FEE7EA;
  border-color: #FECDD3;
}

.featured-card-blue {
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
}
.featured-card-blue:hover {
  background: #E4F0FE;
  border-color: #BFDBFE;
}

.featured-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.featured-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background: #E2E8F0;
}

.featured-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10B981;
  border: 1.5px solid #FFFFFF;
  border-radius: 50%;
}

.featured-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.featured-top-row {
  display: flex;
  align-items: center;
  margin-bottom: 1px;
}

.featured-card-sponsored {
  font-size: 8.5px;
  font-weight: 800;
  color: #D97706;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 1px 4.5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-block;
}

.featured-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  line-height: 1.2;
}

.featured-name-group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.featured-name-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-name-group i {
  color: #2563EB;
  font-size: 11.5px;
  flex-shrink: 0;
}

.featured-rating-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #D97706;
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.featured-rating-pill i {
  font-size: 10.5px;
}

.featured-spec-line {
  font-size: 11.5px;
  font-weight: 700;
  color: #0F766E;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.featured-loc-line {
  font-size: 10.5px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ==========================================
   All Doctors Directory Section (Improved Spacing)
   ========================================== */
.directory-section {
  margin-top: 18px;
}

.directory-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.directory-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.directory-header-title i {
  color: #0F766E;
  font-size: 17px;
}

.directory-title-text {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}

.directory-count-badge {
  background: #0F766E;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 14px;
}

.directory-header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.directory-filter-summary {
  font-size: 12.5px;
  color: #64748B;
  font-weight: 500;
}

.directory-view-toggle {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border: none;
  background: transparent;
  color: #64748B;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover {
  color: #0F766E;
  background: rgba(15, 118, 110, 0.08);
}

.view-toggle-btn.active {
  background: #FFFFFF;
  color: #0F766E;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

/* Directory Grid: 3 columns desktop, 2 tablet, 1 mobile; 18-20px gap */
.directory-doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ==========================================
   List View Mode (2 Columns Desktop, 1 Column Tablet/Mobile)
   ========================================== */
.directory-doctors-grid.list-view {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.directory-doctors-grid.list-view .doctor-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 18px 18px 16px 18px;
  gap: 10px;
  position: relative;
  min-width: 0;
  box-sizing: border-box;
}

.directory-doctors-grid.list-view .doctor-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.directory-doctors-grid.list-view .doctor-avatar-wrapper {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  position: relative;
}

.directory-doctors-grid.list-view .doctor-info-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.directory-doctors-grid.list-view .doctor-card-actions-top {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.directory-doctors-grid.list-view .doctor-name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding-right: 122px; /* Reserves clean clearance for rating + share + fav cluster */
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.directory-doctors-grid.list-view .doctor-name {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.directory-doctors-grid.list-view .doctor-specialty-row {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F766E;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.25;
}

.directory-doctors-grid.list-view .doctor-degrees {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  line-height: 1.25;
}

.directory-doctors-grid.list-view .doctor-exp {
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
  line-height: 1.25;
}

.directory-doctors-grid.list-view .doctor-clinic-group {
  margin-top: 3px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
}

.directory-doctors-grid.list-view .doctor-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
  padding-top: 0;
  border-top: none;
}

.directory-doctors-grid.list-view .card-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

/* Tablet: 1 column if <= 900px so doctor names & clinic addresses never truncate */
@media (max-width: 900px) {
  .directory-doctors-grid.list-view {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Mobile: Compact 1-column layout */
@media (max-width: 767px) {
  .doctor-card-actions-top,
  .directory-doctors-grid.list-view .doctor-card-actions-top {
    top: 16px;
    right: 12px;
    gap: 4px;
  }

  .rating-badge-top {
    height: 26px;
    font-size: 11px;
    padding: 0 6px;
    border-radius: 13px;
  }

  .btn-card-icon {
    width: 26px;
    height: 26px;
    font-size: 11.5px;
  }

  .doctor-name-row,
  .directory-doctors-grid.list-view .doctor-name-row {
    padding-right: 108px;
  }
}

@media (max-width: 599px) {
  .directory-doctors-grid.list-view {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .directory-doctors-grid.list-view .doctor-card {
    padding: 14px 14px 12px 14px;
  }

  .doctor-card-actions-top,
  .directory-doctors-grid.list-view .doctor-card-actions-top {
    top: 13px;
    right: 12px;
    gap: 3px;
  }

  .rating-badge-top {
    height: 23px;
    font-size: 10px;
    padding: 0 4.5px;
    border-radius: 11px;
    gap: 2px;
  }

  .btn-card-icon {
    width: 23px;
    height: 23px;
    font-size: 10.5px;
  }

  .doctor-name,
  .directory-doctors-grid.list-view .doctor-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 3px;
  }

  .doctor-name .verified-badge {
    font-size: 13px;
    flex-shrink: 0;
  }

  .doctor-name-row,
  .directory-doctors-grid.list-view .doctor-name-row {
    padding-right: 80px;
  }

  .directory-doctors-grid.list-view .doctor-card-top {
    gap: 12px;
  }

  .directory-doctors-grid.list-view .doctor-avatar-wrapper {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 900px) and (min-width: 600px) {
  .directory-doctors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 599px) {
  .directory-doctors-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Empty State */
.directory-empty-state {
  text-align: center;
  padding: 36px 20px;
  background: #FFFFFF;
  border: 1.5px dashed #CBD5E1;
  border-radius: 14px;
  margin: 16px 0;
}

.empty-state-icon {
  font-size: 36px;
  color: #94A3B8;
  margin-bottom: 10px;
}

.empty-state-title {
  font-size: 17px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 13px;
  color: #64748B;
  max-width: 380px;
  margin: 0 auto 14px;
}

.btn-empty-reset {
  background: #0F766E;
  color: #FFFFFF;
  border: none;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.btn-empty-reset:hover {
  background: #115E59;
}

/* Slim Emergency / Partner Banner */
.slim-emergency-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  margin-top: 14px;
  margin-bottom: 8px;
}

.banner-icon-col {
  color: #DC2626;
  font-size: 18px;
  flex-shrink: 0;
}

.banner-text-col {
  flex: 1;
  font-size: 12px;
  color: #991B1B;
  line-height: 1.3;
}

.banner-call-btn {
  background: #DC2626;
  color: #FFFFFF;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.banner-call-btn:hover {
  background: #B91C1C;
}

/* ==========================================
   6. Main Content Area Spacers & Sections
   ========================================= */
.home-sections {
  padding: 56px 16px 0px 16px; /* 56px padding-top to give comfortable spacing after floating search */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.section-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-teal-medium);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

/* Specializations Grid System */
.specializations-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: scroll !important;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
  padding: 8px 4px 6px 4px;
  scroll-behavior: smooth;
  width: 100%;
}

.specializations-grid::-webkit-scrollbar {
  display: none; /* Hide scrollbar for a clean native mobile look */
}

.specialization-item {
  flex: 0 0 auto;
  width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.specialization-item.secondary-spec {
  display: flex !important; /* Always show in the carousel row */
  opacity: 1 !important;
  transform: none !important;
}



.spec-name-ur {
  font-family: var(--font-urdu);
  font-size: 8.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: -3px;
  text-align: center;
  max-width: 76px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: rtl;
}

.spec-icon-wrapper {
  width: 58px;
  height: 58px;
  background: var(--bg-card);
  border-radius: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.specialization-item:active .spec-icon-wrapper {
  transform: scale(0.9);
  box-shadow: none;
}

.spec-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  width: 76px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats Row Cards */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.stat-card {
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.stat-card:active {
  transform: scale(0.97);
}

.stat-number {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
}

.stat-card.dark-teal {
  background: var(--primary-teal-dark);
  color: #FFFFFF;
}

.stat-card.light-teal {
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
}

.stat-card.white-outline {
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--primary-teal-dark);
}

.stat-card.white-outline .stat-label {
  color: var(--text-muted);
}

/* ==========================================
   7. Doctor Profile Cards
   ========================================== */
.doctor-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  padding: 16px 16px;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 0;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.doctor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(15, 118, 110, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
}

.doctor-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
}

.doctor-avatar-wrapper {
  position: relative;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
}

.doctor-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #E2E8F0;
}

.status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  background-color: #10B981;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}

.status-dot.offline {
  background-color: #9CA3AF;
}

/* Info content of doctor card */
.doctor-info-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

/* Doctor Card Top Actions Cluster (Rating, Share, Favorite) */
.doctor-card-actions-top {
  position: absolute;
  top: 24px; /* Shifted downward ~10px from original 14px to align with card headers */
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.rating-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #B45309;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  padding: 0 8px;
  height: 28px;
  border-radius: 14px;
  box-sizing: border-box;
  flex-shrink: 0;
  line-height: 1;
}

.rating-badge-top i {
  color: #F59E0B;
  font-size: 11px;
}

.btn-card-icon {
  position: static;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  line-height: 1;
}

.btn-card-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-card-icon:active {
  transform: scale(0.92);
}

.btn-card-icon.btn-share {
  color: #475569;
}

.btn-card-icon.btn-share:hover {
  color: #0F766E;
  border-color: #0F766E;
  background: #F0FDFA;
}

.btn-card-icon.btn-favorite {
  font-size: 13px;
  color: #94A3B8;
}

.btn-card-icon.btn-favorite:hover {
  color: #EF4444;
  border-color: #FECACA;
  background: #FEF2F2;
}

.btn-card-icon.btn-favorite.active {
  color: #EF4444;
  border-color: #FCA5A5;
  background: #FEF2F2;
}

.doctor-card-actions-top .btn-favorite {
  position: static;
  top: auto;
  right: auto;
}

.doctor-name-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding-right: 122px; /* Reserves clean clearance for rating + share + fav cluster */
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.doctor-name {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.verified-badge {
  color: #2563EB;
  font-size: 15px;
  display: inline-flex;
  flex-shrink: 0;
}

.doctor-specialty-row {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F766E;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.25;
}

.doctor-specialty-urdu {
  font-family: var(--font-urdu);
  font-size: 12px;
  font-weight: 700;
  color: #0F766E;
  margin-top: -2px;
}

.doctor-degrees {
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  line-height: 1.25;
}

.doctor-exp {
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
  line-height: 1.25;
}

/* Badges wrapper inside card */
.doctor-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

.pill-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2.5px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-badge.pmdc-verified {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}

.pill-badge.rating {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.pill-badge.gender {
  background: #EFF6FF;
  color: #2563EB;
  border: 1px solid #DBEAFE;
}

.pill-badge.gender.female-pill {
  background: #FDF2F8;
  color: #DB2777;
  border: 1px solid #FBCFE8;
}

.pill-badge.location {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

/* Card Button Actions */
.card-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px;
  gap: 8px;
  margin-top: 6px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.btn-action {
  height: 38px;
  border-radius: 9px;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-action span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-action:active {
  transform: scale(0.96);
}

.btn-action.call {
  background: #0F766E;
  color: #FFFFFF;
}

.btn-action.call:hover {
  background: #0D9488;
}

.btn-action.whatsapp {
  background: #10B981;
  color: #FFFFFF;
}

.btn-action.whatsapp:hover {
  background: #059669;
}

.btn-action.map {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #475569;
}

.btn-action.map:hover {
  background: #E2E8F0;
}

/* ==========================================
   8. Search & Directory Screen
   ========================================== */
.screen-header-bar {
  background: #FFFFFF;
  padding: 44px 16px 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.screen-title-bar {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.search-input-wrapper {
  background: #F3F4F6;
  border-radius: 12px;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  margin-bottom: 10px;
}

.search-input-wrapper i {
  color: var(--text-muted);
  font-size: 16px;
}

.search-input-field {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text-dark);
  margin-left: 8px;
}

/* Filter Tags horizontal slider */
.filters-slider {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filters-slider::-webkit-scrollbar {
  display: none;
}

.filter-tag {
  background: #F3F4F6;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag.active {
  background: var(--primary-teal-dark);
  color: #FFFFFF;
}

.directory-results {
  padding: 16px;
}

.empty-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-results i {
  font-size: 48px;
  color: #D1D5DB;
  margin-bottom: 12px;
}

.empty-results h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

/* ==========================================
   9. Doctor Detail Screen
   ========================================== */
.detail-navbar {
  position: absolute;
  top: 38px; /* Below status bar */
  left: 0;
  right: 0;
  height: 50px;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

.detail-nav-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: none;
  pointer-events: auto;
  transition: background 0.2s;
}

.detail-nav-btn:active {
  background: #E5E7EB;
}

.detail-hero {
  height: 200px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.detail-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) blur(2px);
}

.detail-profile-wrapper {
  margin-top: -60px;
  padding: 0 16px;
  position: relative;
  z-index: 100;
}

.detail-avatar-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #FFFFFF;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}

.detail-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-identity {
  display: flex;
  flex-direction: column;
  gap: 6px; /* Spacing 6px from spec */
}

.detail-name {
  font-size: 22px; /* 22px Dark Charcoal from spec */
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-specialty-row {
  font-size: 15px; /* 15px #0F5132 bilingual from spec */
  font-weight: 600;
  color: #0F5132;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-specialty-urdu {
  font-family: var(--font-urdu);
  font-size: 13px;
  font-weight: 700;
  color: #0F5132;
}

.detail-degrees {
  font-size: 14px; /* 14px Muted Gray from spec */
  font-weight: 500;
  color: var(--text-muted);
}

.detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Detail sections */
.detail-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  border-left: 4px solid var(--primary-teal-dark);
  padding-left: 8px;
}

.detail-desc {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.5;
}

.clinic-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.clinic-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.clinic-loc {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed #E5E7EB;
}

.schedule-day {
  font-weight: 600;
  color: var(--text-dark);
}

.schedule-time {
  color: var(--primary-teal-medium);
  font-weight: 700;
}

/* Booking CTA bar inside details */
.booking-bar {
  margin-top: 8px;
  padding: 12px;
  background: var(--primary-teal-light);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-fee-label {
  font-size: 12px;
  color: var(--primary-teal-text);
  font-weight: 500;
}

.booking-fee {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-teal-dark);
}

.btn-book {
  background: var(--primary-teal-dark);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-book:hover {
  background: var(--primary-teal-medium);
}

/* Reviews List Section */
.review-item {
  padding: 10px 0;
  border-bottom: 1px solid #F3F4F6;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.review-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.review-rating {
  color: #D97706;
  font-size: 11px;
}

.review-comment {
  font-size: 12px;
  color: #4B5563;
  line-height: 1.4;
}

/* ==========================================
   10. Emergency Contact Screen
   ========================================== */
.emergency-content {
  padding: 44px 16px 20px 16px;
}

.emergency-intro {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  margin-bottom: 20px;
}

.emergency-intro i {
  color: #EF4444;
  font-size: 24px;
}

.emergency-intro-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #991B1B;
  margin-bottom: 2px;
}

.emergency-intro-text p {
  font-size: 12px;
  color: #7F1D1D;
  line-height: 1.4;
}

.emergency-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.emergency-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.emergency-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.emergency-info p {
  font-size: 12px;
  color: var(--text-muted);
}

.btn-emergency-call {
  width: 40px;
  height: 40px;
  background: #EF4444;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.4);
  transition: transform 0.2s ease;
}

.btn-emergency-call:active {
  transform: scale(0.9);
}

/* ==========================================
   11. Register / Add Doctor Screen
   ========================================== */
.add-doctor-content {
  padding: 44px 16px 20px 16px;
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  height: 40px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: border 0.2s;
}

.form-control:focus {
  border-color: var(--primary-teal-dark);
}

.form-control-textarea {
  height: 80px;
  padding: 10px 12px;
  resize: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.btn-submit {
  margin-top: 10px;
  height: 44px;
  background: var(--primary-teal-dark);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: var(--primary-teal-medium);
}

/* ==========================================
   12. Profile / Settings Screen
   ========================================== */
.profile-content {
  padding: 44px 16px 20px 16px;
}

.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
}

.profile-user-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary-teal-dark);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.profile-user-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.profile-user-email {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-menu {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-menu-item {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid rgba(0,0,0,0.03);
}

.profile-menu-item:hover {
  background: #F3F4F6;
}

.profile-menu-item i.menu-arrow {
  color: var(--text-muted);
  font-size: 12px;
}

.profile-menu-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-menu-item-left i {
  font-size: 18px;
  color: var(--primary-teal-dark);
  width: 24px;
  text-align: center;
}

.app-version-card {
  margin-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
}

/* ==========================================
   13. Responsive Adaptations
   ========================================== */
@media (min-width: 768px) {
  .app-container {
    height: auto;
    min-height: 100vh;
    padding-bottom: 30px;
  }
  
  .app-content {
    overflow-y: visible;
    overflow-x: visible;
    height: auto;
  }
  
  .app-screen {
    display: none;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    opacity: 1;
    transform: none;
    padding: 6px 0 30px;
  }
  
  .app-screen.active {
    display: block;
    pointer-events: auto;
  }
  
  .bottom-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    background: #F8FAFC;
    overflow-y: auto;
  }
  
  .phone-shell {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
    border-radius: 0;
    padding: 0 10px;
    box-shadow: none;
    border: none;
    display: block;
    overflow-x: hidden;
  }
  
  .phone-screen {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 0;
    min-height: 100vh;
    height: auto;
    display: block;
    overflow: visible;
  }
  
  .app-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 100vh;
    padding-bottom: 74px;
    display: block;
  }
  
  .app-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
    height: auto;
  }
  
  .app-screen {
    display: none;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 6px 0 20px;
    opacity: 1;
    transform: none;
  }
  
  .app-screen.active {
    display: block;
    pointer-events: auto;
  }
  
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
  }
}

/* ==========================================
   14. Facilities Grid & PMDC Footer Styles
   ========================================== */
.facilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.facility-card {
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.facility-card.available {
  border: 1.5px solid #10B981;
  background-color: #F0FDF4;
  color: #065F46;
}

.facility-card.not-available {
  border: 1.5px solid #E5E7EB;
  background-color: #F9FAFB;
  color: #9CA3AF;
  opacity: 0.65;
}

.facility-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.facility-icon {
  font-size: 18px;
}

.facility-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.facility-indicator-dot.available {
  background-color: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.facility-indicator-dot.not-available {
  background-color: #9CA3AF;
}

.facility-card-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.facility-label-en {
  font-size: 11px;
  font-weight: 700;
}

.facility-label-ur {
  font-family: var(--font-urdu);
  font-size: 10px;
  font-weight: 700;
  direction: rtl;
  margin-top: -3px;
}

/* PMDC Footer container */
#detail-pmdc-footer {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

.pmdc-footer-container {
  background: #F3F4F6;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.pmdc-footer-icon {
  font-size: 20px;
  color: var(--primary-teal-dark);
}

.pmdc-footer-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pmdc-footer-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
}

.pmdc-footer-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Advertisement Banner Styles */
.ad-banner-container {
  margin-top: 20px;
  background: var(--bg-card);
  border-radius: 16px;
  border: none;
  padding: 0; /* Remove padding for full-bleed image */
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 112px; /* Perfect 16:5 aspect ratio height for 358px content width */
}

.ad-badge {
  display: none; /* Removed as requested */
}

.ad-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.ad-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-slide.active {
  opacity: 1;
  visibility: visible;
}

.ad-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.ad-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-right: 95px; /* Prevent overlap with absolute-positioned AD badge */
}

.ad-title-en {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.ad-title-ur {
  font-family: var(--font-urdu);
  font-size: 11px;
  font-weight: normal;
  color: var(--primary-teal-dark);
}

.ad-desc-en {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.2;
}

.ad-desc-ur {
  font-family: var(--font-urdu);
  font-size: 9px;
  color: #4B5563;
  margin-top: 2px;
  direction: rtl;
}

/* ==========================================
   15. Advertisement Management Settings Page
   ========================================== */
.ad-manager-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.ad-manager-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.2s ease-in-out;
}

.ad-manager-preview {
  width: 96px;
  height: 30px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.08);
}

.ad-manager-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ad-manager-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}

.ad-manager-size {
  font-size: 10px;
  color: var(--text-muted);
}

.btn-delete-ad {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #FEF2F2;
  color: #EF4444;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.btn-delete-ad:hover {
  background: #FEE2E2;
  transform: scale(1.05);
}

.btn-browse-file:hover {
  background: rgba(17, 94, 89, 0.15) !important;
  transform: translateY(-1px);
}

.empty-ad-placeholder {
  padding: 24px;
  text-align: center;
  border: 1.5px dashed #E5E7EB;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Administrative Controls on Doctor Detail screen */
.admin-detail-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: -10px;
  padding: 0 4px;
}

.btn-admin-edit {
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.1s;
}

.btn-admin-edit:hover {
  background: #b2f5ea;
}

.btn-admin-edit:active {
  transform: scale(0.97);
}

.btn-admin-delete {
  background: #FEE2E2;
  color: #DC2626;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, transform 0.1s;
}

.btn-admin-delete:hover {
  background: #fca5a5;
}

.btn-admin-delete:active {
  transform: scale(0.97);
}

/* Map Preview Card Interactive Styles */
.map-preview-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 94, 89, 0.12) !important;
  border-color: rgba(17, 94, 89, 0.3) !important;
}

.map-preview-card:active {
  transform: translateY(0);
}

/* Favorites Button (Standalone Fallback if used outside actions cluster) */
.btn-favorite:not(.btn-card-icon) {
  position: absolute;
  top: 24px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: #9CA3AF;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.btn-favorite:not(.btn-card-icon).active {
  color: #EF4444;
}
.btn-favorite:not(.btn-card-icon):hover {
  transform: scale(1.08);
  background: #FFFFFF;
}

/* Global App Toast Notification */
.app-global-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
}

.app-global-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.app-global-toast i {
  color: #10B981;
  font-size: 15px;
}

/* Authentication Screen CSS */
.auth-container {
  padding: 16px;
  padding-top: 44px; /* Safety padding for status bar / notch */
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.auth-tabs {
  display: flex;
  background: #F3F4F6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background: #FFFFFF;
  color: var(--primary-teal-dark);
  box-shadow: var(--shadow-sm);
}

.auth-form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-teal-dark);
}

.auth-input {
  height: 44px;
  border: 1px solid rgba(17, 94, 89, 0.15);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
  background: #FFFFFF;
  transition: border-color 0.2s ease;
}

.auth-input:focus {
  border-color: var(--primary-teal-dark);
}

.otp-verification-container {
  background: var(--primary-teal-light);
  border-radius: 12px;
  padding: 14px;
  margin-top: 8px;
  border: 1px solid rgba(17, 94, 89, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.otp-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-teal-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.otp-inputs-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.otp-field {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17, 94, 89, 0.2);
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  outline: none;
  background: #FFFFFF;
}

.otp-field:focus {
  border-color: var(--primary-teal-dark);
}

.admin-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-toggle-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.admin-toggle-wrapper label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

/* ==========================================
   Professional Healthcare Directory Footer
   ========================================== */
.site-footer {
  width: 100%;
  background: #0F172A;
  color: #F8FAFC;
  margin-top: 28px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-sizing: border-box;
}

.site-footer-inner {
  padding: 32px 24px 20px 24px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.footer-col-brand .footer-brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
}

.footer-brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.footer-brand-desc {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.footer-badge-pmdc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Subtle divider before Sari Jehan Ownership */
.footer-sari-divider {
  width: 100%;
  max-width: 215px;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 18px 0 12px 0;
}

.footer-sari-jehan-block {
  display: block;
}

.footer-sari-logo {
  width: 210px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px 0;
  position: relative;
  padding-bottom: 6px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 22px;
  height: 2px;
  background: #14B8A6;
  border-radius: 2px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-link-item a {
  font-size: 12px;
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link-item a:hover {
  color: #2DD4BF;
  transform: translateX(2px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: #CBD5E1;
  margin-bottom: 8px;
}

.footer-contact-item i {
  color: #14B8A6;
  font-size: 13px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-text strong {
  display: block;
  color: #FFFFFF;
  font-size: 12px;
}

.footer-contact-text a {
  color: #2DD4BF;
  text-decoration: none;
}

/* Footer Bottom Bar */
.footer-bottom-bar {
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #64748B;
}

.footer-bottom-disclaimer {
  max-width: 620px;
  line-height: 1.4;
}

@media (max-width: 767px) {
  .site-footer-inner {
    padding: 20px 14px 16px 14px;
  }
  .footer-sari-divider {
    max-width: 195px;
    margin: 14px 0 10px 0;
  }
  .footer-sari-logo {
    width: 195px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}
