/* Pharmacy Page Styles - MCG24 Rebrand Style */
/* Global Cairo font for French content */
[lang="fr"],
html[lang="fr"] *,
html[lang="fr"] body,
html[lang="fr"] body * {
  font-family: 'Cairo', Arial, sans-serif !important;
}

.pharmacy-page {
  font-family: "Cairo", Arial, sans-serif !important;
  direction: ltr;
  text-align: left;
  /* min-height: 100vh; */
  /* background-color: #f5f5f5; */
}

/* Ensure Cairo font for all French text in pharmacy pages */
.pharmacy-page[lang="fr"],
.pharmacy-page[lang="fr"] *,
.pharmacy-widget[lang="fr"],
.pharmacy-widget[lang="fr"] * {
  font-family: 'Cairo', Arial, sans-serif !important;
}
.pharmacy-header {
  background: #219653;
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.pharmacy-header .container {
  padding: 0;
}
.pharmacy-header-content {
  text-align: center;
}
.pharmacy-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: white;
  font-family: "Cairo", Arial, sans-serif !important;
  text-align: left;
}
.pharmacy-container {
  padding: 40px 0;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
/* Breadcrumb */
.pharmacy-breadcrumb {
  margin-top: 20px;
  margin-bottom: 30px;
  font-size: 14px;
  color: #666;
}
.pharmacy-breadcrumb a {
  color: #c82c23;
  text-decoration: none;
  transition: color 0.3s;
}
.pharmacy-breadcrumb a:hover {
  color: #219653;
  text-decoration: underline;
}
.pharmacy-breadcrumb .separator {
  margin: 0 10px;
  color: #999;
}
/* Cities Grid */
.pharmacy-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}
.pharmacy-city-card {
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.pharmacy-city-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.pharmacy-city-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}
.pharmacy-city-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pharmacy-city-name {
  padding: 20px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: #333;
}
/* Categories Grid */
.pharmacy-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.pharmacy-category-card {
  background: white;
  border-radius: 0;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 2px solid transparent;
}
.pharmacy-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #c82c23;
}
.pharmacy-category-card.active {
  background: #c82c23;
  border-color: #c82c23;
  box-shadow: 0 4px 12px rgba(33, 150, 83, 0.3);
}
.pharmacy-category-card.active .pharmacy-category-name {
  color: white;
}
.pharmacy-category-card.active:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(33, 150, 83, 0.4);
}
.pharmacy-category-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  text-align: center;
}
/* Category Page */
.pharmacy-category-page {
  padding: 0;
}
.pharmacy-categories-tabs {
  margin-bottom: 40px;
}
.pharmacy-section-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 40px 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #e0e0e0;
}
/* Districts Grid */
.pharmacy-districts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.pharmacy-districts-section {
  margin-top: 40px;
}
.pharmacy-no-districts {
  background: white;
  border-radius: 0;
  padding: 40px;
  text-align: center;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.pharmacy-no-districts p {
  color: #666;
  font-size: 16px;
  margin: 0;
}
.pharmacy-no-pharmacies {
  background: white;
  border-radius: 0;
  padding: 40px;
  text-align: center;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.pharmacy-no-pharmacies p {
  color: #666;
  font-size: 16px;
  margin: 0;
}
.pharmacy-district-card {
  background: white;
  border-radius: 0;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
  border-left: 4px solid #219653;
}
.pharmacy-district-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.pharmacy-district-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}
/* Pharmacy List */
.pharmacy-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}
.pharmacy-item {
  background: white;
  border-radius: 0;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s;
}
.pharmacy-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.pharmacy-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
  gap: 15px;
}
.pharmacy-item-name {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1;
}
.pharmacy-garde-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.garde-badge {
  padding: 5px 12px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.garde-badge.garde-jour {
  background-color: #4caf50;
  color: white;
}
.garde-badge.garde-nuit {
  background-color: #2196f3;
  color: white;
}
.garde-badge.garde-24 {
  background-color: #ff9800;
  color: white;
}
.pharmacy-item-address {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.6;
}
.pharmacy-item-phone {
  color: #555;
  font-size: 14px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: row;
}
.pharmacy-item-phone strong {
  color: #333;
}
.pharmacy-item-actions {
  margin-top: 15px;
}
.pharmacy-details-btn {
  display: inline-block;
  padding: 10px 25px;
  background: #219653;
  color: white;
  text-decoration: none;
  border-radius: 0;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  font-family: "Cairo", Arial, sans-serif !important;
  border: 2px solid transparent;
}
.pharmacy-details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(33, 150, 83, 0.4);
  background: white;
  border: 2px solid;
}
/* Pharmacy Details */
.pharmacy-details-card {
  background: white;
  border-radius: 0;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}
.pharmacy-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
  gap: 20px;
}
.pharmacy-details-name {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin: 0;
  flex: 1;
}
.pharmacy-details-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pharmacy-detail-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 0;
}
.pharmacy-detail-label {
  font-weight: 600;
  color: #333;
  min-width: 100px;
  font-size: 16px;
}
.pharmacy-detail-value {
  color: #666;
  font-size: 16px;
  flex: 1;
}
.pharmacy-detail-value a {
  color: #c82c23;
  text-decoration: none;
  transition: color 0.3s;
}
.pharmacy-detail-value a:hover {
  color: #219653;
  text-decoration: underline;
}
/* Responsive */
@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
}
@media (max-width: 768px) {
  .pharmacy-header h1 {
    font-size: 24px;
  }
  .pharmacy-cities-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  .pharmacy-categories-grid,
  .pharmacy-districts-grid {
    grid-template-columns: 1fr;
  }
  .pharmacy-item-header {
    flex-direction: column;
  }
  .pharmacy-details-header {
    flex-direction: column;
  }
  .pharmacy-detail-item {
    flex-direction: column;
    gap: 8px;
  }
  .pharmacy-detail-label {
    min-width: auto;
  }
}

#content {
  max-width: 100% !important;
  margin-top: 0 !important;
}

@media (max-width: 768px) {
  .pharmacy-container {
    padding: 0 10px;
  }
  .pharmacy-header .pharmacy-container {
    padding: 0 30px;
  }
  .pharmacy-header-section{
    flex-direction: column-reverse;
  }
}
