/* PM Nöbetçi Eczaneler - Kompakt Modern Liste Tasarımı */

.pm-ne-wrap {
  width: 100%;
  max-width: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18181b;
  box-sizing: border-box;
}

.pm-ne-wrap *,
.pm-ne-wrap *::before,
.pm-ne-wrap *::after {
  box-sizing: border-box;
}

/* Üst bilgi */
.pm-ne-head {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.pm-ne-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #18181b;
}

.pm-ne-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #71717a;
}

.pm-ne-info {
  margin-top: 6px !important;
  color: #52525b !important;
}

/* İlçe başlığı */
.pm-ne-district {
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #18181b;
}

/* Liste */
.pm-ne-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* Kart */
.pm-ne-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 16px 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

/* Sol durum çizgisi */
.pm-ne-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #10a37f;
}

.pm-ne-card:hover {
  transform: translateY(-1px);
  border-color: #d4d4d8;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.065);
}

/* Başlık */
.pm-ne-card h4 {
  position: relative;
  display: block;
  margin: 0 0 10px;
  padding-right: 76px;
  font-size: 18px;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: #18181b;
}

/* Açık etiketi */
.pm-ne-card h4::after {
  content: "Açık";
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px 5px 25px;
  border-radius: 999px;
  background: #dcfce7;
  color: #047857;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.01em;
}

.pm-ne-card h4::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 50px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10a37f;
  z-index: 2;
}

/* Adres */
.pm-ne-address {
  position: relative;
  display: block;
  margin: 0 0 14px;
  padding-left: 26px;
  padding-right: 0;
  max-width: 100%;
  font-size: 15px;
  font-weight: 450;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #4b5563;
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Pin icon */
.pm-ne-address::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background-color: #52525b;
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 22s7-5.1 7-12a7 7 0 1 0-14 0c0 6.9 7 12 7 12Z' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='10' r='2.5' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 22s7-5.1 7-12a7 7 0 1 0-14 0c0 6.9 7 12 7 12Z' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='10' r='2.5' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

/* Buton alanı */
.pm-ne-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid #e4e4e7;
  overflow: hidden;
}

/* Ortak buton */
.pm-ne-phone,
.pm-ne-map {
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #d4d4d8;
  color: #18181b !important;
  font-size: 15px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.015em;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.pm-ne-phone:hover,
.pm-ne-map:hover {
  background: #f8fafc;
  border-color: #a1a1aa;
  transform: translateY(-1px);
}

/* Telefon icon */
.pm-ne-phone::before {
  content: "";
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2A19.8 19.8 0 0 1 11.19 18a19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 1.27 3.34 2 2 0 0 1 3.26 1h3a2 2 0 0 1 2 1.72c.12.91.33 1.8.62 2.65a2 2 0 0 1-.45 2.11L7.16 8.75a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.85.29 1.74.5 2.65.62A2 2 0 0 1 22 16.92Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2A19.8 19.8 0 0 1 11.19 18a19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 1.27 3.34 2 2 0 0 1 3.26 1h3a2 2 0 0 1 2 1.72c.12.91.33 1.8.62 2.65a2 2 0 0 1-.45 2.11L7.16 8.75a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.85.29 1.74.5 2.65.62A2 2 0 0 1 22 16.92Z' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

/* Yol tarifi icon */
.pm-ne-map::before {
  content: "";
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 3 21l9-4 9 4-9-19Z' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M12 2v15' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2 3 21l9-4 9 4-9-19Z' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M12 2v15' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

/* Uyarılar */
.pm-ne-alert,
.pm-ne-admin-error {
  padding: 14px 16px;
  border-radius: 13px;
  font-size: 14px;
  line-height: 1.5;
}

.pm-ne-alert {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.pm-ne-admin-error {
  margin-top: 10px;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Tablet */
@media (max-width: 1024px) {
  .pm-ne-head {
    padding: 15px 16px;
  }

  .pm-ne-head h2 {
    font-size: 21px;
  }

  .pm-ne-card {
    padding: 17px 18px 15px 20px;
  }

  .pm-ne-card h4 {
    font-size: 17px;
  }

  .pm-ne-address {
    font-size: 14.5px;
  }

  .pm-ne-phone,
  .pm-ne-map {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14.5px;
  }
}

/* Mobil */
@media (max-width: 640px) {
  .pm-ne-head {
    margin-bottom: 16px;
    padding: 15px;
    border-radius: 14px;
  }

  .pm-ne-head h2 {
    font-size: 20px;
  }

  .pm-ne-head p {
    font-size: 12.5px;
  }

  .pm-ne-district {
    margin: 20px 0 9px;
    font-size: 17px;
  }

  .pm-ne-grid {
    gap: 11px;
  }

  .pm-ne-card {
    padding: 16px 14px 14px 17px;
    border-radius: 14px;
  }

  .pm-ne-card h4 {
    margin-bottom: 9px;
    padding-right: 68px;
    font-size: 17px;
  }

  .pm-ne-card h4::after {
    min-height: 25px;
    padding: 5px 10px 5px 22px;
    font-size: 12.5px;
  }

  .pm-ne-card h4::before {
    top: 9px;
    right: 45px;
    width: 6px;
    height: 6px;
  }

  .pm-ne-address {
    margin-bottom: 12px;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.42;
  }

  .pm-ne-address::before {
    width: 16px;
    height: 16px;
    top: 2px;
  }

  .pm-ne-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 12px;
  }

  .pm-ne-phone,
  .pm-ne-map {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    font-size: 14.5px;
    border-radius: 10px;
  }

  .pm-ne-phone::before,
  .pm-ne-map::before {
    flex-basis: 16px;
    width: 16px;
    height: 16px;
  }
}

/* Çok küçük ekran */
@media (max-width: 380px) {
  .pm-ne-card {
    padding: 15px 12px 13px 16px;
  }

  .pm-ne-card h4 {
    font-size: 16px;
    padding-right: 62px;
  }

  .pm-ne-card h4::after {
    font-size: 12px;
    padding-left: 20px;
  }

  .pm-ne-card h4::before {
    right: 42px;
  }

  .pm-ne-address {
    font-size: 13.5px;
  }

  .pm-ne-phone,
  .pm-ne-map {
    font-size: 14px;
  }
}
.pm-ne-district {
  display: none !important;
}