/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .floating-pharmacy-btn {
    bottom: 20px;
    right: 20px;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .floating-pharmacy-btn {
    bottom: 80px; /* Above mobile navigation */
  }
}/* ===================================
   PHARMACY & HEALTH STYLES
   =================================== */

/* CSS Variables */
:root {
  --primary-color: #1a8917;
  --primary-dark: #146812;
  --primary-light: #22a31f;
  --secondary-color: #16a085;
  --accent-yellow: #e6c855;
  --health-blue: #3498db;
  --emergency-red: #e74c3c;
  
  --white: #ffffff;
  --black: #000000;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'Space Grotesk', sans-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);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  --transition: all 0.3s ease;
}

/* ===================================
   HERO SECTION
   =================================== */
.pharmacy-hero {
  /* Background image setup */
  background-image: url('https://images.unsplash.com/photo-1631549916768-4119b2e5f926?w=1920&h=600&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  
  /* Fallback gradient if image fails to load */
  background-color: var(--secondary-color);
  
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  min-height: 450px;
  display: flex;
  align-items: center;
}

/* Dark overlay to ensure text readability */
.pharmacy-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(22, 160, 133, 0.85) 0%, 
    rgba(18, 138, 111, 0.85) 100%);
  z-index: 1;
}

/* Alternative hero styles - Add these classes to .pharmacy-hero for different effects */
.pharmacy-hero.light-overlay::before {
  background: linear-gradient(135deg, 
    rgba(22, 160, 133, 0.6) 0%, 
    rgba(18, 138, 111, 0.6) 100%);
}

.pharmacy-hero.dark-overlay::before {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.7) 0%, 
    rgba(0, 0, 0, 0.5) 100%);
}

.pharmacy-hero.no-overlay::before {
  display: none;
}

/* Parallax effect option */
.pharmacy-hero.parallax {
  background-attachment: fixed;
}

/* Hero Pattern Overlay */
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    repeating-linear-gradient(45deg, 
      transparent, 
      transparent 35px, 
      rgba(255,255,255,.05) 35px, 
      rgba(255,255,255,.05) 70px);
  pointer-events: none;
  z-index: 2;
}

/* Floating Medical Icons */
.floating-medical-icons {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.floating-medical-icons i {
  position: absolute;
  font-size: 2rem;
  opacity: 0.1;
  color: var(--white);
  animation: float-icon 20s infinite linear;
}

.floating-medical-icons i:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-medical-icons i:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: 5s;
}

.floating-medical-icons i:nth-child(3) {
  top: 40%;
  left: 60%;
  animation-delay: 10s;
}

.floating-medical-icons i:nth-child(4) {
  top: 80%;
  left: 30%;
  animation-delay: 15s;
}

@keyframes float-icon {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-100vh) rotate(360deg); }
}

/* Hero Content Container */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInDown 0.8s ease-out;
}

/* Hero Title */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  font-family: var(--font-secondary);
  text-transform: capitalize;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.2s;
  animation-fill-mode: both;
}

/* Hero Description */
.hero-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.4s;
  animation-fill-mode: both;
}

/* Hero Features */
.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s;
  animation-fill-mode: both;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.hero-feature:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-feature i {
  font-size: 1.2rem;
  color: var(--accent-yellow);
}

/* Hero CTA Button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  color: var(--secondary-color);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: capitalize;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  animation: fadeInUp 0.8s ease-out 0.8s;
  animation-fill-mode: both;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(22, 160, 133, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.hero-cta:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover::before {
  width: 300px;
  height: 300px;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile optimization for background image */
@media (max-width: 768px) {
  .pharmacy-hero {
    background-attachment: scroll;
    background-position: center center;
    padding: 3rem 0;
    min-height: 400px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-features {
    gap: 1rem;
  }
  
  .hero-feature {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  
  .hero-cta {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-feature {
    width: 100%;
    justify-content: center;
  }
  
  .floating-medical-icons i {
    font-size: 1.5rem;
  }
}

/* ===================================
   EMERGENCY BANNER
   =================================== */
.emergency-banner {
  background: var(--emergency-red);
  color: var(--white);
  padding: 1rem 0;
}

.emergency-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.emergency-text {
  font-weight: 600;
}

.emergency-btn {
  background: var(--white);
  color: var(--emergency-red);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.emergency-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===================================
   FLOATING OPEN PHARMACY BUTTON
   =================================== */
.floating-pharmacy-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--secondary-color);
  color: var(--white);
  border: none;
  border-radius: 60px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 20px rgba(22, 160, 133, 0.4);
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-primary);
  animation: float 3s ease-in-out infinite;
}

.floating-btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-pharmacy-btn i {
  font-size: 1.2rem;
  animation: iconRotate 3s ease-in-out infinite;
}

@keyframes iconRotate {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(5deg) scale(1.1);
  }
}

.floating-btn-text {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.floating-btn-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-yellow);
  color: var(--gray-900);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

.floating-pharmacy-btn:hover {
  background: #128a6f;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 30px rgba(22, 160, 133, 0.5);
}

.floating-pharmacy-btn:active {
  transform: translateY(-1px) scale(1);
}

/* ===================================
   PHARMACIES LISTING SECTION
   =================================== */
.pharmacies-listing {
  padding: 3rem 0;
  background: var(--gray-50);
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  font-family: var(--font-secondary);
  margin-bottom: 1.5rem;
}

.filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.quick-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-filter {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.quick-filter:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.quick-filter.active {
  background: var(--secondary-color);
  color: var(--white);
  border-color: var(--secondary-color);
}

.sort-dropdown select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.9rem;
  color: var(--gray-700);
  cursor: pointer;
  outline: none;
}

/* Layout Container */
.pharmacies-content {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
}

/* ===================================
   FILTERS SIDEBAR
   =================================== */
.filters-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.filter-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.filter-group {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gray-800);
}

/* Distance Slider */
.distance-slider {
  margin-top: 1rem;
}

.distance-slider input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.distance-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--secondary-color);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.distance-display {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.distance-display span {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Checkbox Filters */
.filter-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  cursor: pointer;
  position: relative;
}

.filter-checkbox input {
  position: absolute;
  opacity: 0;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  margin-right: 0.75rem;
  transition: var(--transition);
  position: relative;
}

.filter-checkbox input:checked + .checkbox-custom {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.filter-checkbox input:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 12px;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1;
}

.filter-label i {
  color: var(--secondary-color);
  font-size: 1rem;
}

/* ===================================
   PHARMACY CARDS
   =================================== */
.pharmacies-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pharmacy-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  gap: 0;
  transition: var(--transition);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: slideInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.pharmacy-card:nth-child(1) { animation-delay: 0.1s; }
.pharmacy-card:nth-child(2) { animation-delay: 0.2s; }
.pharmacy-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pharmacy-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--secondary-color);
}

/* Pharmacy Left - Image */
.pharmacy-left {
  flex-shrink: 0;
  width: 300px;
  position: relative;
}

.pharmacy-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.pharmacy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.pharmacy-card:hover .pharmacy-image img {
  transform: scale(1.05);
}

.pharmacy-status {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
}

.pharmacy-status.open {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    box-shadow: 0 0 5px rgba(26, 137, 23, 0.5);
  }
  50% {
    box-shadow: 0 0 15px rgba(26, 137, 23, 0.8);
  }
}

.pharmacy-status.closed {
  color: var(--emergency-red);
  border: 1px solid var(--emergency-red);
}

/* Pharmacy Right - Content */
.pharmacy-right {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pharmacy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.pharmacy-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pharmacy-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gray-100);
  transition: all 0.3s ease;
  position: relative;
}

/* Glowing pharmacy effect */
.pharmacy-logo::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: var(--secondary-color);
  border-radius: 14px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.pharmacy-logo:hover::before {
  opacity: 0.5;
  animation: pharmacyGlow 1.5s ease-in-out infinite;
}

@keyframes pharmacyGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.pharmacy-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

/* Special glow effect for open pharmacies */
.pharmacy-card:has(.pharmacy-status.open) .pharmacy-logo {
  animation: openPharmacyGlow 2s ease-in-out infinite;
}

@keyframes openPharmacyGlow {
  0%, 100% {
    box-shadow: 
      0 2px 8px rgba(0, 0, 0, 0.1),
      0 0 20px rgba(22, 160, 133, 0.3);
  }
  50% {
    box-shadow: 
      0 2px 8px rgba(0, 0, 0, 0.1),
      0 0 30px rgba(22, 160, 133, 0.6),
      0 0 40px rgba(22, 160, 133, 0.4);
  }
}

/* Enhanced neon glow for pharmacy logos */
.pharmacy-logo.glow-green {
  background: radial-gradient(circle, rgba(22, 160, 133, 0.1) 0%, rgba(255, 255, 255, 1) 70%);
  box-shadow: 
    0 0 20px rgba(22, 160, 133, 0.3),
    inset 0 0 20px rgba(22, 160, 133, 0.1);
}

.pharmacy-logo.glow-orange {
  background: radial-gradient(circle, rgba(255, 111, 0, 0.1) 0%, rgba(255, 255, 255, 1) 70%);
  box-shadow: 
    0 0 20px rgba(255, 111, 0, 0.3),
    inset 0 0 20px rgba(255, 111, 0, 0.1);
}

/* Enhanced glow for pharmacy logos */
.pharmacy-card:has(.pharmacy-status.open) .pharmacy-logo i {
  filter: drop-shadow(0 0 10px currentColor);
  animation: crossGlow 1.5s ease-in-out infinite;
}

@keyframes crossGlow {
  0%, 100% {
    filter: brightness(1.2) drop-shadow(0 0 10px currentColor);
  }
  50% {
    filter: brightness(1.5) drop-shadow(0 0 20px currentColor);
  }
}

.pharmacy-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.pharmacy-logo i {
  font-size: 1.5rem;
  animation: crossPulse 2s ease-in-out infinite;
}

@keyframes crossPulse {
  0%, 100% {
    opacity: 0.8;
    filter: brightness(1);
  }
  50% {
    opacity: 1;
    filter: brightness(1.3) drop-shadow(0 0 8px currentColor);
  }
}

.pharmacy-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.pharmacy-badges {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.verified-badge, .rating-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.verified-badge {
  background: rgba(22, 160, 133, 0.1);
  color: var(--secondary-color);
  border: 1px solid transparent;
}

.verified-badge:hover {
  background: rgba(22, 160, 133, 0.2);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
}

.verified-badge i {
  font-size: 0.9rem;
}

.rating-badge {
  background: #fff8dc;
  color: #f39c12;
  border: 1px solid transparent;
}

.rating-badge:hover {
  background: #ffeb99;
  border-color: #f39c12;
  transform: translateY(-1px);
}

/* Pharmacy Info */
.pharmacy-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.info-row:hover {
  color: var(--gray-800);
}

.info-row i {
  color: var(--secondary-color);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* Pharmacy Features */
.pharmacy-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--gray-700);
  transition: var(--transition);
}

.feature-tag:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
}

.feature-tag i {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.feature-tag.payment {
  background: #fff8f0;
  border: 1px solid #ffe5cc;
  font-weight: 600;
}

.payment-icon {
  height: 16px;
  width: auto;
  object-fit: contain;
}

.filter-payment-icon {
  height: 16px;
  width: auto;
  object-fit: contain;
  margin-right: 0.25rem;
}

/* Pharmacy Gallery */
.pharmacy-gallery {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.gallery-item {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item.more {
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--gray-600);
}

/* Pharmacy Actions */
.pharmacy-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.action-btn {
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.action-btn.primary {
  background: var(--secondary-color);
  color: var(--white);
}

.action-btn.primary:hover {
  background: #128a6f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 160, 133, 0.3);
}

.action-btn.secondary {
  background: var(--white);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.action-btn.secondary:hover {
  background: rgba(22, 160, 133, 0.05);
}

.action-btn.tertiary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.action-btn.tertiary:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

/* ===================================
   HEALTH TIPS SECTION
   =================================== */
.health-tips {
  padding: 3rem 0;
  background: var(--white);
}

.tips-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--gray-900);
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tip-card {
  text-align: center;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

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

.tip-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.tip-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.tip-card p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===================================
   LOAD MORE & FOOTER
   =================================== */
.load-more-container {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  padding: 1rem 3rem;
  background: var(--white);
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.load-more-btn:hover {
  background: var(--secondary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pharmacy-footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 992px) {
  .pharmacies-content {
    grid-template-columns: 1fr;
  }
  
  .filters-sidebar {
    position: relative;
    top: auto;
    margin-bottom: 2rem;
  }
  
  .pharmacy-card {
    flex-direction: column;
  }
  
  .pharmacy-left {
    width: 100%;
    height: 250px;
  }
  
  .pharmacy-image {
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .hero-features {
    gap: 1rem;
  }
  
  .pharmacy-identity {
    flex-wrap: wrap;
  }
  
  .pharmacy-name {
    font-size: 1.3rem;
  }
  
  .pharmacy-logo {
    width: 45px;
    height: 45px;
  }
  
  .action-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .pharmacy-actions {
    flex-wrap: wrap;
  }
  
  .floating-btn-text {
    display: none;
  }
  
  .floating-pharmacy-btn {
    padding: 1rem;
  }
  
  .floating-pharmacy-btn:hover .floating-btn-text {
    display: block;
    position: absolute;
    right: 60px;
    background: var(--gray-900);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }
  
  .pharmacy-logo {
    width: 40px;
    height: 40px;
  }
  
  .pharmacy-name {
    font-size: 1.1rem;
  }
  
  .pharmacy-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  
  .gallery-item {
    width: 100%;
    height: 60px;
  }
  
  .payment-icon {
    height: 14px;
  }
  
  .feature-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}