/* 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: radial-gradient(circle at 10% 20%, rgb(18, 28, 26) 0%, rgb(8, 12, 11) 90%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: #e5e7eb;
}

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

/* ==========================================
   3. Desktop Phone Mockup Frame
   ========================================== */
.phone-shell {
  position: relative;
  width: 390px;
  height: 844px;
  background: #000;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 
    0px 25px 50px -12px rgba(0, 0, 0, 0.5),
    0px 0px 0px 4px rgba(255, 255, 255, 0.05),
    inset 0 0 3px 2px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

/* Device screen wrapper container */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--bg-app);
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* iPhone Notch / Dynamic Island */
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.notch-camera {
  width: 10px;
  height: 10px;
  background: #101010;
  border-radius: 50%;
  box-shadow: inset 0 0 2px rgba(255,255,255,0.4);
}

.notch-speaker {
  width: 40px;
  height: 3px;
  background: #1c1c1c;
  border-radius: 2px;
}

/* Phone Status Bar */
.phone-status-bar {
  height: 38px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  font-weight: 600;
  color: #000000;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: transparent;
  pointer-events: none;
  transition: color 0.3s ease;
}

.phone-status-bar.white-text {
  color: #FFFFFF;
}

.status-right {
  display: flex;
  gap: 6px;
  align-items: center;
}

.status-bar-icon {
  font-size: 10px;
}

/* ==========================================
   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. Home Screen Elements
   ========================================== */

/* Hero Banner container */
.home-hero {
  position: relative;
  height: 180px;
  width: 100%;
  border-radius: 32px 32px 0 0;
  overflow: visible; /* To let search bar float */
}

.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 32px 32px 0 0;
  overflow: hidden;
  z-index: 1;
}

.hero-image-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(4, 47, 46, 0.4) 0%, rgba(4, 47, 46, 0.8) 100%);
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: brightness(0.9);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.hero-welcome {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.hero-title-group {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-yellow);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.hero-title-urdu {
  font-family: var(--font-urdu);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-yellow);
  direction: rtl;
  margin-left: auto;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 13px;
  font-weight: 400;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
}

.hero-subtitle-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--accent-yellow);
  border-radius: 50%;
}

/* Floating Search Bar */
.search-container-floating {
  position: absolute;
  bottom: -24px;
  left: 16px;
  right: 16px;
  height: 48px;
  background: var(--bg-card);
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0, 0, 0, 0.03);
  z-index: 100;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-container-floating:active {
  transform: scale(0.98);
}

.search-placeholder {
  flex: 1;
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 10px;
}

.search-icon {
  color: var(--primary-teal-dark);
  font-size: 18px;
}

.filter-icon {
  color: var(--text-muted);
  font-size: 18px;
  padding-left: 10px;
  border-left: 1px solid #E5E7EB;
}

/* ==========================================
   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: var(--bg-card);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 12px;
  position: relative;
}

.doctor-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.doctor-card-top {
  display: flex;
  gap: 12px;
}

.doctor-avatar-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
}

.doctor-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
  box-shadow: var(--shadow-sm);
}

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

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

/* Info content of doctor card */
.doctor-info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px; /* 5-6px row gap from spec sheet */
}

.doctor-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-right: 32px; /* Prevent overlap with favorite button */
}

.doctor-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified-badge {
  color: var(--verified-blue);
  font-size: 16px;
  display: inline-flex;
}

.rating-badge-top {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #D97706; /* Darker amber */
}

.doctor-specialty-row {
  font-size: 13px;
  font-weight: 600;
  color: #0F5132; /* Green specialty */
  display: flex;
  align-items: center;
  gap: 5px;
}

.doctor-specialty-urdu {
  font-family: var(--font-urdu);
  font-size: 11px;
  font-weight: 700;
  color: #0F5132;
  margin-top: -3px;
}

.doctor-degrees {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.doctor-exp {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

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

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

.pill-badge.pmdc-verified {
  background: var(--primary-teal-light);
  color: var(--primary-teal-dark);
}

.pill-badge.rating {
  background: #FEF3C7;
  color: #92400E;
}

.pill-badge.gender {
  background: #EFF6FF;
  color: #1E40AF;
}

.pill-badge.gender.female-pill {
  background: #FDF2F8;
  color: #DB2777;
}

.pill-badge.location {
  background: #F3F4F6;
  color: #4B5563;
}

/* Card Button Actions */
.card-actions-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.btn-action {
  height: 36px;
  border-radius: 10px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-action.call {
  background: var(--call-teal);
  color: #FFFFFF;
}

.btn-action.call:hover {
  background: var(--call-teal-hover);
}

.btn-action.whatsapp {
  background: var(--whatsapp-green);
  color: #FFFFFF;
}

.btn-action.whatsapp:hover {
  background: var(--whatsapp-green-hover);
}

.btn-action.map {
  background: var(--map-gray);
  color: var(--text-dark);
}

.btn-action.map:hover {
  background: var(--map-gray-hover);
}

/* ==========================================
   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 (max-width: 640px) {
  body {
    background: var(--bg-app);
    overflow: auto;
  }
  
  .phone-shell {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
  }
  
  .phone-screen {
    border-radius: 0;
  }
  
  .phone-notch {
    display: none;
  }
  
  .phone-status-bar {
    padding-top: env(safe-area-inset-top);
  }
  
  .bottom-nav {
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .home-indicator {
    display: none;
  }
}

/* ==========================================
   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 */
.btn-favorite {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  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.active {
  color: #EF4444;
}
.btn-favorite:hover {
  transform: scale(1.1);
  background: #FFFFFF;
}

/* 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;
}
