/* ==========================================================================
   AksantiNet - Pharmacie Partenaire : Prise de constantes, Carte & Secret Médical
   ========================================================================== */

/* Section Container */
.pharma-section {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f0fdf4 100%);
  padding: 5rem 1rem;
}

.dark .pharma-section {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

/* Badges */
.pharma-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.dark .pharma-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

/* Pillar Cards (3 piliers) */
.pillar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.dark .pillar-card {
  background: #1e293b;
  border-color: #334155;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(18, 132, 106, 0.12);
  border-color: #10b981;
}

.pillar-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.pillar-icon-box.green {
  background: #ecfdf5;
  color: #059669;
}

.pillar-icon-box.teal {
  background: #f0fdfa;
  color: #0d9488;
}

.pillar-icon-box.emerald {
  background: #eef2ff;
  color: #4f46e5;
}

/* Protocol Steps Grid */
.protocol-step {
  display: flex;
  gap: 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.dark .protocol-step {
  background: #1e293b;
  border-color: #334155;
}

.protocol-step:hover {
  border-color: #0d9488;
  transform: translateY(-2px);
}

.protocol-num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #0b2e33;
  color: #5fd3b0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
  border: 2px solid #5fd3b0;
}

/* Map & List Layout */
.map-list-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.06);
}

.dark .map-list-wrapper {
  background: #0f172a;
  border-color: #334155;
}

@media (min-width: 1024px) {
  .map-list-wrapper {
    grid-template-columns: 420px 1fr;
    height: 680px;
  }
}

/* Pharmacy List Column */
.pharma-list-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 1px solid #e2e8f0;
  background: #fafafa;
}

.dark .pharma-list-col {
  background: #1e293b;
  border-color: #334155;
}

.pharma-list-header {
  padding: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.dark .pharma-list-header {
  background: #0f172a;
  border-color: #334155;
}

.pharma-items-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* Pharmacy Card in List */
.pharma-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.dark .pharma-card {
  background: #0f172a;
  border-color: #334155;
}

.pharma-card:hover {
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(16, 185, 129, 0.15);
}

.pharma-card.active {
  border-color: #059669;
  background: #f0fdf4;
  box-shadow: 0 8px 20px -3px rgba(16, 185, 129, 0.25);
}

.dark .pharma-card.active {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.pharma-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.pharma-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  line-height: 1.3;
}

.dark .pharma-card-title {
  color: #f8fafc;
}

.pharma-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #dcfce7;
  color: #15803d;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  flex-shrink: 0;
}

.dark .pharma-cert-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.pharma-card-address {
  font-size: 0.875rem;
  color: #475569;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  line-height: 1.4;
}

.dark .pharma-card-address {
  color: #94a3b8;
}

.pharma-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.pharma-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
}

.dark .pharma-tag {
  background: #334155;
  color: #cbd5e1;
}

.pharma-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-maps-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-maps-primary {
  background: #0b2e33;
  color: #5fd3b0;
}

.btn-maps-primary:hover {
  background: #10393f;
  color: #ffffff;
}

.btn-maps-ghost {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.dark .btn-maps-ghost {
  background: #1e293b;
  color: #e2e8f0;
  border-color: #475569;
}

.btn-maps-ghost:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Map Column */
.pharma-map-col {
  position: relative;
  min-height: 400px;
  height: 100%;
  width: 100%;
}

#pharmacy-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  z-index: 10;
}

/* Leaflet Custom Marker & Popup */
.custom-aksanti-pin {
  background: transparent;
  border: none;
}

.pin-inner {
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 0;
  background: #0b2e33;
  position: absolute;
  transform: rotate(-45deg);
  left: 50%;
  top: 50%;
  margin: -20px 0 0 -20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #5fd3b0;
}

.pin-inner i {
  transform: rotate(45deg);
  color: #5fd3b0;
  font-size: 15px;
}

.leaflet-popup-content-wrapper {
  border-radius: 1rem !important;
  box-shadow: 0 15px 30px -5px rgba(0,0,0,0.2) !important;
  padding: 0 !important;
  overflow: hidden;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.popup-card {
  padding: 1.25rem;
  max-width: 290px;
  font-family: inherit;
}

.popup-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0b2e33;
  margin-bottom: 0.25rem;
}

.popup-address {
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

/* Privacy Guarantee Box */
.privacy-box {
  background: linear-gradient(135deg, #0b2e33 0%, #10393f 100%);
  border: 1px solid rgba(95, 211, 176, 0.3);
  border-radius: 1.5rem;
  color: #ffffff;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.privacy-box::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(95, 211, 176, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
