/*
Theme Name: Elazığ Rehber
Theme URI: https://elazig.net.tr/
Author: elazig.net.tr
Description: Nöbetçi eczane, hastane ve şehir rehberi için özel WordPress teması.
Version: 1.2.2
Text Domain: elazig-rehber
*/

:root {
  --navy: #122343;
  --muted: #6d7b91;
  --teal: #11aaa6;
  --teal-dark: #078b89;
  --ice: #edfafa;
  --line: #e4edf2;
  --white: #fff;
  --red: #ff4657;
  --shadow: 0 12px 35px rgba(18, 35, 67, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--navy); background: #fff; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  height: 100px;
  background: #fff;
  border-bottom: 1px solid #f2f5f7;
}
.header-inner { display: flex; align-items: center; height: 100%; gap: 35px; }
.site-header .brand { flex: 0 0 auto; font-size: 0; }
.site-header .brand img { width: 285px; }
.header-stack {
  align-self: stretch;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
}
.header-utility { display: flex; justify-content: flex-end; gap: 8px; }
.header-utility a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  min-height: 34px;
  padding-inline: 16px;
  color: #fff;
  background: var(--teal);
  border-radius: 17px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 13px rgba(17, 170, 166, 0.18);
  transition: 0.2s;
}
.header-utility a:hover { background: var(--teal-dark); transform: translateY(-1px); }
.main-nav { min-width: 0; }
.main-nav ul { display: flex; align-items: center; justify-content: flex-start; gap: 29px; margin: 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.main-nav li, .main-nav a { white-space: nowrap; }
.main-nav .current-menu-item > a, .main-nav a:hover { color: var(--teal); }
.mobile-only, .nav-toggle { display: none; }
.nav-toggle { margin-left: auto; border: 0; background: none; font-size: 24px; cursor: pointer; }

/* Shared buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border: 0; border-radius: 7px; color: #fff; background: var(--teal); font-weight: 800; cursor: pointer; transition: 0.2s; }
.btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-light { color: var(--teal); background: #fff; box-shadow: 0 6px 20px rgba(19, 65, 84, 0.1); }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 410px; padding: 55px 0 88px; background: radial-gradient(circle at 0 48%, rgba(18, 170, 166, 0.07) 0 70px, transparent 71px), linear-gradient(112deg, #fff 0, #f3fbfb 50%, #eaf9f9 100%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: 267px; }
.hero-grid > div:first-child { position: relative; z-index: 3; padding-top: 12px; }
.eyebrow { color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { max-width: 540px; margin: 13px 0 17px; font-size: 42px; line-height: 1.18; }
.hero p { max-width: 500px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.hero-actions { display: none; }
.hero-visual { position: absolute; top: -55px; right: -74px; z-index: 1; width: 750px; height: 410px; }
.hero-visual img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: left center; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 100%); mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 100%); }

/* Search panel */
.search-wrap { position: relative; z-index: 5; margin-top: -69px; }
.search-panel { display: grid; grid-template-columns: 1fr 1fr 1fr 205px; align-items: center; gap: 12px; min-height: 96px; padding: 20px 22px; overflow: visible; background: #fff; border: 1px solid #e3eaee; border-radius: 9px; box-shadow: 0 9px 28px rgba(18, 35, 67, 0.1); }
.search-panel .field { position: relative; height: 50px; padding: 8px 12px 7px 55px; background: #fff; border: 1px solid #dfe8ed; border-radius: 6px; }
.search-panel .field::before { content: ""; position: absolute; top: 50%; left: 10px; width: 34px; height: 34px; transform: translateY(-50%); background-color: #e9f9f8; background-repeat: no-repeat; background-position: center; background-size: 17px; border-radius: 6px; }
.field-city::before, .field-district::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230aa7a3' stroke-width='2.2'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.field-date::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230aa7a3' stroke-width='2.2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E"); }
.search-panel .field label { display: block; margin-bottom: 3px; color: #7f8da1; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.search-panel .field input { width: 100%; height: 20px; padding: 0; color: var(--navy); background: transparent; border: 0; outline: 0; font-size: 11px; font-weight: 700; }
.search-panel > .btn { height: 50px; padding-inline: 20px; white-space: nowrap; font-size: 12px; gap: 10px; box-shadow: 0 7px 18px rgba(17, 170, 166, 0.17); }
.search-panel > .btn::before { content: "⌕"; font-size: 24px; line-height: 1; }

/* District dropdown */
.field-district { z-index: 25; }
.district-picker { position: relative; }
.district-trigger, .date-trigger { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 20px; padding: 0; color: var(--navy); background: transparent; border: 0; font: 700 11px Inter, system-ui, sans-serif; text-align: left; cursor: pointer; }
.district-trigger i, .date-trigger i { color: #8191a5; font-size: 15px; font-style: normal; transition: transform 0.2s; }
.district-picker.open .district-trigger i, .date-picker.open .date-trigger i { transform: rotate(180deg); }
.district-menu { position: absolute; top: 36px; left: -55px; z-index: 100; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: calc(100% + 55px); padding: 9px; visibility: hidden; opacity: 0; transform: translateY(-5px); background: #fff; border: 1px solid #dce9ed; border-radius: 10px; box-shadow: 0 16px 38px rgba(18, 35, 67, 0.16); transition: 0.18s; }
.district-picker.open .district-menu { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.district-menu button { padding: 9px 6px; color: #35465c; background: #f5fbfb; border: 0; border-radius: 6px; font: 650 11px Inter, system-ui, sans-serif; cursor: pointer; transition: 0.15s; }
.district-menu button:hover, .district-menu button:focus { color: #fff; background: var(--teal); outline: 0; }
.district-menu button:first-child { grid-column: 1 / -1; color: var(--teal-dark); background: #e9f9f8; }

/* Calendar */
.field-date { z-index: 24; }
.date-picker { position: relative; }
.date-menu { position: absolute; top: 36px; right: -12px; z-index: 110; width: 286px; padding: 12px; visibility: hidden; opacity: 0; transform: translateY(-5px); background: #fff; border: 1px solid #dce9ed; border-radius: 11px; box-shadow: 0 16px 38px rgba(18, 35, 67, 0.16); transition: 0.18s; }
.date-picker.open .date-menu { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.calendar-head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; margin-bottom: 10px; }
.calendar-head strong { font-size: 12px; text-align: center; }
.calendar-head button { width: 30px; height: 30px; color: var(--teal-dark); background: #eaf9f8; border: 0; border-radius: 7px; font-size: 20px; cursor: pointer; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-week span { padding: 4px 0; color: #8a98aa; font-size: 9px; font-weight: 800; text-align: center; }
.calendar-days button { aspect-ratio: 1; color: #34455c; background: #f6fafb; border: 0; border-radius: 6px; font: 700 10px Inter, system-ui, sans-serif; cursor: pointer; }
.calendar-days button:hover { color: var(--teal-dark); background: #dff6f4; }
.calendar-days button.today { box-shadow: inset 0 0 0 1px var(--teal); }
.calendar-days button.selected { color: #fff; background: var(--teal); box-shadow: none; }

/* Sections and cards */
.section { padding: 50px 0; }
.section-tint { background: linear-gradient(180deg, #f2fbfb, #fff); }
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 21px; }
.section-head h2 { margin: 5px 0 0; font-size: 23px; }
.section-link { padding: 10px 14px; color: var(--teal); background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 10px; font-weight: 800; }
.cards, .posts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 3px 12px rgba(18, 35, 67, 0.045); }
.card-body { padding: 14px; }
.card h3 { margin: 0 0 12px; font-size: 14px; }
.status { position: absolute; top: 8px; right: 8px; padding: 4px 7px; color: #fff; background: var(--red); border-radius: 4px; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.pharmacy-icon { display: flex; align-items: center; height: 55px; padding-inline: 18px; color: var(--teal); background: linear-gradient(135deg, #f1fbfb, #fff); font-size: 27px; }
.meta { display: grid; gap: 8px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.meta-row { display: flex; gap: 7px; }
.meta-row b { color: var(--teal); }
.card-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 7px; margin-top: 12px; }
.card-actions a { padding: 8px 5px; color: #fff; background: var(--navy); border-radius: 5px; font-size: 9px; font-weight: 800; text-align: center; }
.card-actions a:last-child { background: var(--teal); }
.cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.city { padding: 13px 15px; color: #5e7086; background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; font-weight: 750; }
.city::before { content: "⌖"; margin-right: 8px; color: var(--teal); }
.media-card .thumb { display: block; height: 155px; overflow: hidden; background: linear-gradient(135deg, #d7e5e8, #f7fbfc); }
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-card h3 { line-height: 1.35; }
.media-card .meta { color: var(--teal); }
.posts .post-card {
  display: flex;
  flex-direction: column;
}
.posts .thumb { height: 165px; }
.post-card .thumb {
  position: relative;
  flex: 0 0 165px;
}
.post-card .category {
  position: absolute;
  bottom: 9px;
  left: 10px;
  z-index: 2;
  padding: 5px 8px;
  color: #fff;
  background: var(--teal);
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(7, 139, 137, 0.22);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}
.post-card .card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px 14px 14px;
  background: #fff;
}
.post-card .card-body h3 {
  min-height: 44px;
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}
.post-card-excerpt {
  display: -webkit-box;
  min-height: 60px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.post-card-read-more {
  align-self: flex-start;
  margin-bottom: 15px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}
.post-card-read-more:hover {
  color: var(--navy);
}
.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #8a98aa;
  font-size: 11px;
  font-weight: 600;
}
.post-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.post-card-meta i {
  color: var(--teal);
  font-size: 13px;
  font-style: normal;
}
.post-card-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--teal);
  background: linear-gradient(135deg, #dff4f3, #f8fcfc);
  font-size: 42px;
  font-weight: 300;
}
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.feature-icon {
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--teal);
  background: var(--ice);
  border-radius: 14px;
  font-size: 22px;
  font-style: normal;
  line-height: 1;
}
.feature-icon img.emoji {
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.feature h4 {
  margin: 1px 0 6px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}

@media (max-width: 620px) {
  .features {
    gap: 22px;
  }

  .feature-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .feature h4 {
    font-size: 14px;
  }

  .feature p {
    font-size: 12px;
  }
}
.empty { grid-column: 1 / -1; padding: 24px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; }
.page-main { min-height: 55vh; padding: 55px 0; }
.entry-content { max-width: 800px; color: #46566d; line-height: 1.8; }

/* Footer */
.site-footer {
  padding: 52px 0 20px;
  color: #fff;
  background:
    radial-gradient(circle at 8% 15%, rgba(17, 170, 166, 0.12), transparent 25%),
    #102242;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.75fr 0.85fr 0.9fr 1.25fr;
  gap: 44px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.footer-brand em {
  color: var(--teal);
  font-style: normal;
}
.footer-brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--teal);
  border-radius: 10px 10px 10px 3px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}
.site-footer h4 {
  margin: 4px 0 17px;
  color: #fff;
  font-size: 15px;
}
.site-footer p,
.site-footer li {
  color: #aab6c7;
  font-size: 13px;
  line-height: 1.72;
}
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-description {
  max-width: 430px;
  margin: 16px 0 18px;
}
.footer-nav ul,
.footer-region-list {
  display: grid;
  gap: 10px;
}
.footer-nav li,
.footer-region-list li {
  position: relative;
  padding-left: 15px;
}
.footer-nav li::before,
.footer-region-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
}
.footer-nav a {
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: #fff;
}
.footer-link-list a {
  transition: color 0.2s ease;
}
.footer-link-list a:hover {
  color: #fff;
}

/* Yukarı çık butonu */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  color: #fff;
  background: var(--teal);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(17, 170, 166, 0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, visibility 0.2s ease,
    transform 0.2s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(17, 170, 166, 0.3);
  outline-offset: 3px;
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

@media (max-width: 620px) {
  .back-to-top {
    right: 15px;
    bottom: 15px;
    width: 43px;
    height: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #aebdce;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: 0.2s ease;
}
.footer-social a:hover {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
  transform: translateY(-2px);
}
.footer-social svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.footer-social a:first-child svg {
  fill: currentColor;
  stroke: none;
}
.newsletter {
  display: flex;
  margin-top: 13px;
}
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 12px 13px;
  color: var(--navy);
  background: #fff;
  border: 0;
  border-radius: 7px 0 0 7px;
  font: 600 12px Inter, system-ui, sans-serif;
  outline: 0;
}
.newsletter button {
  display: grid;
  place-items: center;
  width: 46px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 0 7px 7px 0;
  cursor: pointer;
}
.newsletter button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.footer-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 34px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
}
.footer-disclaimer-icon {
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: rgba(17, 170, 166, 0.28);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
}
.footer-disclaimer p {
  margin: 1px 0 0;
  font-size: 12px;
  line-height: 1.65;
}
.footer-disclaimer strong {
  color: #fff;
}
.copyright {
  margin-top: 20px;
  padding-top: 18px;
  color: #8493a8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-footer {
    padding-top: 42px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-description {
    max-width: none;
  }

  .footer-disclaimer {
    padding: 14px;
  }
}

/* Responsive */
@media (max-width: 1120px) {
  .site-header { height: 76px; }
  .site-header .brand img { width: 235px; }
  .header-stack { flex: 0; margin-left: 0; }
  .header-utility { display: none; }
  .main-nav { position: absolute; top: 76px; right: 0; left: 0; display: none; padding: 22px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { align-items: flex-start; flex-direction: column; gap: 18px; }
  .main-nav .mobile-only { display: block; }
  .nav-toggle { display: block; }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .hero-visual { right: -105px; width: 680px; }
  .hero h1 { max-width: 490px; font-size: 39px; }
}

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .cards, .posts { grid-template-columns: repeat(2, 1fr); }
  .cities { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 26px), 1180px); }
  .site-header .brand img { width: 205px; }
  .hero { padding: 45px 0 80px; }
  .hero h1 { font-size: 33px; }
  .search-wrap { margin-top: -48px; }
  .search-panel, .cards, .posts, .features, .footer-grid { grid-template-columns: 1fr; }
  .search-panel .field { height: 50px; }
  .cities { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 42px 0; }
  .section-head h2 { font-size: 21px; }
  .media-card .thumb { height: 180px; }
  .search-panel { position: relative; }
  .search-panel .field::before { pointer-events: none; }
  .field-district { z-index: 61; }
  .field-date { position: relative; z-index: 60; }
  .district-menu, .date-menu { pointer-events: none; }
  .field-date .date-picker { position: absolute; right: 12px; bottom: 5px; left: 55px; height: 28px; }
  .field-date .date-trigger { width: 100%; height: 28px; touch-action: manipulation; }
  .date-menu { top: 34px; right: 0; left: auto; width: min(286px, calc(100vw - 52px)); }
  .search-panel > .btn { position: relative; z-index: 10; width: 100%; min-height: 50px; pointer-events: auto; touch-action: manipulation; }
}

/* Ana sayfa yatay reklam alanı */
.home-ad-wrap {
  margin-top: 4px;
  margin-bottom: 8px;
}

.home-ad-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 50%, rgba(17, 170, 166, 0.12), transparent 28%),
    linear-gradient(110deg, #f4fbfb, #fff 62%);
  border: 1px solid #dcebed;
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(18, 35, 67, 0.055);
}

.home-ad-label {
  position: absolute;
  top: 9px;
  right: 11px;
  padding: 3px 7px;
  color: #8291a4;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e3ecef;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
}

.home-ad-placeholder strong {
  color: var(--navy);
  font-size: 15px;
}

.home-ad-placeholder span {
  padding: 6px 9px;
  color: var(--teal-dark);
  background: var(--ice);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
}

.home-ad-widget,
.home-ad-widget > * {
  width: 100%;
  margin: 0;
}

.home-ad-widget img,
.home-ad-widget iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

/* Elazığ eczane rehberi */
.pharmacy-directory-heading p {
  max-width: 610px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.directory-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.directory-eyebrow-icon {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--teal);
  background: var(--ice);
  border-radius: 9px;
}

.directory-eyebrow-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.pharmacy-directory-heading .eyebrow {
  font-size: 12px;
}

.pharmacy-directory-heading h2 {
  margin-top: 9px;
  font-size: 26px;
}

.pharmacy-directory-heading p {
  font-size: 13px;
}

.directory-pharmacy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.directory-pharmacy-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 5px 18px rgba(18, 35, 67, 0.06);
  transition: 0.2s ease;
}

.directory-pharmacy-card:hover {
  border-color: rgba(17, 170, 166, 0.38);
  box-shadow: 0 11px 26px rgba(18, 35, 67, 0.1);
  transform: translateY(-3px);
}

.directory-pharmacy-image {
  display: block;
  height: 168px;
  overflow: hidden;
  background: linear-gradient(135deg, #e7f7f7, #f9fcfc);
}

.directory-pharmacy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.directory-pharmacy-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--teal);
}

.directory-pharmacy-placeholder svg {
  width: 72px;
  height: 72px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.directory-pharmacy-body {
  display: flex;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
  padding: 13px 14px 15px;
}

.directory-pharmacy-district {
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.directory-pharmacy-body strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.3;
}

.directory-pharmacy-cta {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.directory-pharmacy-card:hover .directory-pharmacy-cta {
  color: var(--teal-dark);
}

/* Elazığ hastane rehberi */
.hospital-directory-section {
  padding-top: 34px;
  background: linear-gradient(180deg, #f7fcfc, #fff);
}

.hospital-directory-heading p {
  max-width: 610px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.hospital-directory-heading .eyebrow {
  font-size: 12px;
}

.hospital-directory-heading h2 {
  margin-top: 9px;
  font-size: 26px;
}

.hospital-directory-heading p {
  font-size: 13px;
}

.hospital-directory-icon {
  color: var(--navy);
  background: #edf3f8;
}

.hospital-directory-card .directory-pharmacy-district {
  color: var(--navy);
}

.hospital-image-placeholder {
  color: var(--navy);
  background: linear-gradient(135deg, #edf5f8, #f9fcfc);
}

.hospital-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.hospital-type {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 14px;
  color: #506277;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 4px 14px rgba(18, 35, 67, 0.045);
  transition: 0.2s ease;
}

.hospital-type:hover {
  color: var(--teal-dark);
  border-color: rgba(17, 170, 166, 0.35);
  box-shadow: 0 8px 20px rgba(18, 35, 67, 0.08);
  transform: translateY(-2px);
}

.hospital-type-icon {
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
  border-radius: 10px;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
}

@media (max-width: 980px) {
  .directory-pharmacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hospital-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .home-ad-slot {
    min-height: 126px;
  }

  .home-ad-placeholder {
    align-items: center;
    flex-direction: column;
    gap: 8px;
  }

  .section-head {
    align-items: flex-start;
    gap: 14px;
  }

  .hospital-types {
    grid-template-columns: 1fr;
  }

  .directory-pharmacy-grid {
    grid-template-columns: 1fr;
  }

}

/* Konuma göre eczane alanı */
.nearby-location-wrap {
  margin-top: 18px;
}

.nearby-location {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 22px 13px 17px;
  background: #fff;
  border: 1px solid #dce8eb;
  border-radius: 12px;
  box-shadow: 0 7px 22px rgba(18, 35, 67, 0.06);
}

.nearby-location-icon {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--teal);
  background: var(--ice);
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
}

.nearby-location-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.nearby-location-content strong {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.3;
}

.nearby-location-content span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.nearby-location-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 205px;
  width: 205px;
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: var(--teal);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: 0.2s;
}

.nearby-location-button img.emoji {
  flex: 0 0 16px;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  vertical-align: middle;
}

.nearby-location-button:hover {
  color: #fff;
  background: var(--teal-dark);
  transform: translateY(-1px);
}

@media (max-width: 620px) {
  .nearby-location {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }

  .nearby-location-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .nearby-location-content {
    flex: 1 1 calc(100% - 54px);
  }

  .nearby-location-content strong {
    font-size: 13px;
  }

  .nearby-location-content span {
    font-size: 11px;
  }

  .nearby-location-button {
    flex-basis: 100%;
    width: 100%;
    min-height: 46px;
    font-size: 13px;
  }
}
/* Nöbetçi eczaneler boş durum alanı */
.pharmacy-empty-state {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 18px 20px;
  overflow: hidden;
  background:
    linear-gradient(
      110deg,
      rgba(17, 170, 166, 0.1),
      rgba(237, 250, 250, 0.55) 55%,
      #fff
    );
  border: 1px solid rgba(17, 170, 166, 0.22);
  border-radius: 12px;
}

.pharmacy-empty-state::after {
  content: "+";
  position: absolute;
  right: 110px;
  color: rgba(17, 170, 166, 0.06);
  font-size: 110px;
  font-weight: 900;
  line-height: 1;
}

.pharmacy-empty-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: var(--teal);
  border-radius: 14px;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(17, 170, 166, 0.2);
}

.pharmacy-empty-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.pharmacy-empty-content h3 {
  margin: 0 0 5px;
  color: var(--navy);
  font-size: 15px;
}

.pharmacy-empty-content p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pharmacy-empty-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--teal);
  background: #fff;
  border: 1px solid rgba(17, 170, 166, 0.25);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  transition: 0.2s;
}

.pharmacy-empty-link:hover {
  color: #fff;
  background: var(--teal);
  transform: translateY(-1px);
}

@media (max-width: 620px) {
  .pharmacy-empty-state {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
  }

  .pharmacy-empty-content {
    flex: 1 1 calc(100% - 68px);
  }

  .pharmacy-empty-link {
    width: 100%;
  }

  .pharmacy-empty-state::after {
    display: none;
  }
}
/* Sabit tarih alanı */
.field-date-fixed {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 50px;
  padding-top: 0;
  padding-bottom: 0;
  cursor: default;
  user-select: none;
}

.field-date-fixed .field-label {
  display: block;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.field-date-fixed .fixed-date {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 0;
  margin: 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.field-date-fixed .fixed-date span {
  display: block;
  margin: 0;
  padding: 0;
  transform: none;
}

/* Ana sayfa nöbetçi eczane kartları */
.pharmacy-cards {
  align-items: stretch;
}

.pharmacy-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  min-height: 248px;
  border-color: #e2ebee;
  border-radius: 11px;
  box-shadow: 0 5px 16px rgba(18, 35, 67, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pharmacy-card:hover {
  border-color: rgba(17, 170, 166, 0.35);
  box-shadow: 0 14px 32px rgba(18, 35, 67, 0.11);
  transform: translateY(-3px);
}

.pharmacy-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 67px;
  padding: 13px 14px 3px;
}

.pharmacy-card-icon {
  width: 70px;
  height: 56px;
}

.pharmacy-card-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.pharmacy-store {
  stroke: var(--navy);
}

.pharmacy-awning {
  stroke: var(--teal);
}

.pharmacy-cross {
  fill: none;
  stroke: var(--red);
}

.pharmacy-pin {
  stroke: var(--red);
}

.pharmacy-pin-dot {
  fill: var(--red);
  stroke: none;
}

.pharmacy-card-badge {
  padding: 5px 8px;
  color: #fff;
  background: var(--red);
  border-radius: 4px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pharmacy-card-body {
  flex: 1;
  padding: 3px 14px 12px;
}

.pharmacy-card .pharmacy-card-body h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.pharmacy-card-district,
.pharmacy-card-address {
  margin: 0;
}

.pharmacy-card-district {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: #4d6075;
  font-size: 12px;
  font-weight: 600;
}

.pharmacy-card-address {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 33px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.pharmacy-card-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #506277;
  font-size: 12px;
  font-weight: 650;
}

.pharmacy-card-district svg,
.pharmacy-card-address svg,
.pharmacy-card-phone svg {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  color: var(--teal);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pharmacy-card-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 7px;
  padding: 0 14px 14px;
}

.pharmacy-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px;
  color: #fff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  transition: 0.2s ease;
}

.pharmacy-card-actions svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.pharmacy-card-call {
  background: var(--navy);
}

.pharmacy-card-map {
  background: var(--teal);
}

.pharmacy-card-call:hover,
.pharmacy-card-map:hover {
  color: #fff;
  filter: brightness(0.94);
}

@media (max-width: 620px) {
  .pharmacy-card .pharmacy-card-body h3 {
    font-size: 15px;
  }

  .pharmacy-card-actions a {
    min-height: 42px;
    font-size: 12px;
  }
}

/* Tek satırlı bölüm başlıkları */
.section-head .section-title,
.directory-eyebrow .section-title {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.045em;
}

@media (max-width: 620px) {
  .section-head .section-title,
  .directory-eyebrow .section-title {
    font-size: 13px;
  }
}

/* Bölüm başlık bloğu */
.section-head {
  align-items: center;
  gap: 18px;
  padding: 13px 15px;
  background: linear-gradient(90deg, #eefafa 0%, #f8fdfd 58%, #fff 100%);
  border: 1px solid #dceeed;
  border-left: 4px solid var(--teal);
  border-radius: 9px;
}

.section-head > div {
  min-width: 0;
}

.section-head .section-link {
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(18, 35, 67, 0.05);
}

@media (max-width: 620px) {
  .section-head {
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
  }

  .section-head .section-link {
    padding: 8px 10px;
    font-size: 9px;
  }
}
