/* Kars Nöbetçi Eczane — kırmızı ağırlıklı stiller */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --brand: #b91c1c;
  --brand-dark: #7f1d1d;
  --ink: #1c1412;
  --mist: #faf7f6;
  --accent: #dc2626;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 480px at 8% -8%, rgba(185, 28, 28, 0.14), transparent 58%),
    radial-gradient(800px 380px at 100% 0%, rgba(127, 29, 29, 0.1), transparent 50%),
    var(--mist);
}

img, video, canvas, svg { max-width: 100%; height: auto; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: center;
  max-width: 100%;
}

.cta-btn:hover { transform: translateY(-1px); }

.cta-map { background: #b91c1c; color: #fff; }
.cta-map:hover { background: #7f1d1d; }
.cta-call { background: #1c1412; color: #fff; }
.cta-wa { background: #128c7e; color: #fff; }

.pharmacy-card--featured {
  box-shadow: 0 18px 40px rgba(127, 29, 29, 0.14);
  border-color: rgba(185, 28, 28, 0.35);
}

.district-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border-radius: 0.75rem;
  border: 2px solid #fecaca;
  background: linear-gradient(180deg, #fff 0%, #fef2f2 100%);
  font-size: 0.9rem;
  font-weight: 700;
  color: #7f1d1d;
  box-shadow: 0 2px 0 #fecaca;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.district-chip:hover {
  background: #fee2e2;
  border-color: #f87171;
  transform: translateY(-1px);
}

.district-chip.is-active {
  background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
  border-color: #991b1b;
  color: #fff;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.35);
}

.duty-split {
  display: grid;
  gap: 0;
  border-radius: 1.35rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(185, 28, 28, 0.18);
  box-shadow: 0 22px 50px rgba(127, 29, 29, 0.12);
  width: 100%;
  max-width: 100%;
}

@media (min-width: 900px) {
  .duty-split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    min-height: 460px;
  }
}

.duty-split__media {
  background: #7f1d1d;
  min-height: 240px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
}

.duty-split__info {
  padding: 1.2rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    linear-gradient(165deg, #fff 0%, #fff8f8 55%, #fff 100%);
}

@media (min-width: 900px) {
  .duty-split__info {
    padding: 1.75rem 1.85rem;
  }
}

.duty-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  max-width: 100%;
}

.duty-badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
  animation: softPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.duty-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2.6vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.35rem;
  word-break: break-word;
}

.duty-subtitle {
  color: rgba(28, 20, 18, 0.58);
  font-size: 0.95rem;
  margin-bottom: 1.15rem;
  word-break: break-word;
}

.duty-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.duty-meta li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  min-width: 0;
}

.duty-meta__icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.duty-meta strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(28, 20, 18, 0.45);
  margin-bottom: 0.1rem;
}

.duty-meta p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.duty-meta a {
  color: inherit;
  text-decoration: none;
}

.duty-meta a:hover {
  color: #b91c1c;
  text-decoration: underline;
}

.duty-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 1.25rem;
  width: 100%;
}

@media (min-width: 520px) {
  .duty-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.duty-empty {
  margin: auto 0;
  text-align: center;
  padding: 1rem 0;
}

.district-mini {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(185, 28, 28, 0.14);
  transition: border-color 0.15s ease, transform 0.15s ease;
  min-width: 0;
}

.district-mini:hover {
  border-color: rgba(185, 28, 28, 0.4);
  transform: translateY(-2px);
}

.district-mini__img {
  height: 8.5rem;
  background: #7f1d1d;
}

.district-mini__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.district-mini__body {
  padding: 0.95rem 1rem 1.1rem;
  min-width: 0;
}

.ph-slider {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #7f1d1d;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  max-height: 420px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.ph-slider--panel {
  border-radius: 0;
  height: 100%;
  min-height: 260px;
  max-height: none;
  aspect-ratio: auto;
}

.ph-slider--panel .ph-slider__track,
.ph-slider--panel .ph-slider__slide {
  height: 100%;
  min-height: inherit;
}

.ph-slider--panel .ph-slider__slide img {
  height: 100%;
  min-height: 100%;
}

.ph-slider__track {
  display: flex;
  height: 100%;
  width: 100%;
  max-width: 100%;
  transition: transform 0.55s ease;
}

.ph-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  overflow: hidden;
}

.ph-slider__slide img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ph-slider__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
  max-width: 100%;
  box-sizing: border-box;
}
.ph-slider__caption p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.ph-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #7f1d1d;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
  z-index: 2;
}

.ph-slider__nav--prev { left: 0.75rem; }
.ph-slider__nav--next { right: 0.75rem; }

.ph-slider__dots {
  position: absolute;
  bottom: 0.65rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  z-index: 2;
}

.ph-slider__dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}

.ph-slider__dots button.is-active {
  background: #fff;
  width: 1.25rem;
}

.fade-up {
  animation: fadeUp 0.55s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; opacity: 1; transform: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-glow {
  animation: softPulse 4s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.ad-wrap {
  margin: 1.25rem auto 1.5rem;
  max-width: 728px;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.ad-wrap ins {
  display: block;
  margin: 0 auto;
}

.ad-preview {
  border: 1px dashed #e8d4d0;
  background: linear-gradient(180deg, #fffdfa, #faf7f6);
  color: #a08986;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 14px;
  padding: 1.35rem 1rem;
  line-height: 1.4;
}

.ad-preview span {
  display: block;
  margin-top: 0.35rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.78rem;
  color: #b59a96;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.site-header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}

.site-header-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .site-header-inner {
    flex-wrap: wrap;
  }
  .site-header-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
  }
  .site-header-nav a {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .district-chip {
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
  }
  .ph-slider__nav {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.85rem;
  }
  .ph-slider__caption {
    padding: 0.9rem 1rem;
  }
  .duty-split {
    border-radius: 1rem;
  }
}
