:root {
  color-scheme: light;
  --ink: #12201f;
  --muted: #657372;
  --panel: #ffffff;
  --line: #dbe7e5;
  --soft: #edf8f4;
  --mint: #0f766e;
  --mint-dark: #0b4d49;
  --blue: #2563eb;
  --amber: #b45309;
  --rose: #be123c;
  --shadow: 0 18px 46px rgba(21, 50, 47, .13);
  --shadow-soft: 0 10px 24px rgba(21, 50, 47, .08);
}

* {
  box-sizing: border-box;
}

html {
  touch-action: pan-x pan-y;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #e7f5f0 0%, #f6fbf9 38%, #ffffff 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 18px 18px 40px;
}

.hero {
  position: relative;
  min-height: 238px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 26px;
  background: #0f3f3b;
  box-shadow: var(--shadow);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 38%, rgba(0, 0, 0, .02) 0%, rgba(0, 0, 0, .28) 44%, rgba(0, 0, 0, .72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .32) 44%, rgba(0, 0, 0, .76) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .18) 72%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 238px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px 24px 24px;
  color: white;
  text-align: center;
}

.hero-text {
  width: min(100%, 560px);
}

.hero-logo {
  display: block;
  width: min(48vw, 198px);
  height: auto;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .4));
}

.eyebrow {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, .84);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.compact {
  color: var(--mint);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: none;
  margin-inline: auto;
  font-size: 2.55rem;
  font-weight: 1000;
  line-height: .96;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}

.hero-copy {
  margin: 12px auto 0;
  max-width: 31rem;
  color: rgba(255, 255, 255, .9);
  font-size: .96rem;
  line-height: 1.42;
  text-wrap: balance;
}

.controls {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(219, 231, 229, .96);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-soft);
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

select,
input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfefd;
  color: var(--ink);
  font: inherit;
  font-size: .98rem;
  font-weight: 750;
  padding: 0 14px;
  outline: none;
  appearance: auto;
}

select {
  appearance: auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

select:focus,
input:focus,
.date-trigger:focus-visible {
  border-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .14);
}

.date-trigger {
  position: relative;
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfefd;
  color: var(--ink);
  font: inherit;
  font-size: .98rem;
  font-weight: 850;
  padding: 0 42px 0 14px;
  text-align: left;
  text-transform: capitalize;
  outline: none;
}

.date-trigger::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background: currentColor;
  opacity: .86;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18M5 5h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18M5 5h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.calendar-popover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 23, 21, .48);
  backdrop-filter: blur(10px);
}

.calendar-popover[hidden] {
  display: none;
}

.calendar-card {
  width: min(100%, 430px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(4, 38, 35, .28);
}

.calendar-head {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 16px;
  background:
    radial-gradient(circle at 72% 0%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #129586 0%, var(--mint) 100%);
  color: #ffffff;
  text-align: center;
}

.calendar-head p {
  margin: 0 0 3px;
  color: rgba(255, 255, 255, .78);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.06;
  text-transform: capitalize;
}

.calendar-nav {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  font: inherit;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.calendar-nav:disabled {
  opacity: .34;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
  gap: 6px;
  padding: 16px 18px 7px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.calendar-grid {
  gap: 7px;
  padding: 0 18px 18px;
}

.calendar-empty {
  min-height: 42px;
}

.calendar-day {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfefd;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(21, 50, 47, .045);
}

.calendar-day.today {
  border-color: rgba(15, 118, 110, .42);
  background: #effaf6;
  color: var(--mint-dark);
}

.calendar-day.selected {
  border-color: var(--mint);
  background: linear-gradient(180deg, #0f8b7e 0%, var(--mint) 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 118, 110, .22);
}

.calendar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 18px 18px;
}

.calendar-actions button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #ffffff;
  color: var(--mint-dark);
  font: inherit;
  font-weight: 950;
}

.calendar-actions button:first-child {
  border-color: rgba(15, 118, 110, .28);
  background: #f0fbf7;
}

.quick-days {
  display: flex;
  gap: 9px;
  min-width: 0;
  padding: 0 2px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-days::-webkit-scrollbar {
  display: none;
}

.days-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  overflow: hidden;
}

.nav-arrow {
  display: grid;
  place-items: center;
  min-width: 44px;
  width: 44px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--mint-dark);
  box-shadow: var(--shadow-soft);
  padding: 0;
}

.nav-arrow strong {
  display: block;
  margin: 0;
  color: var(--mint-dark);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.nav-arrow:active {
  transform: translateY(1px);
}

.day-chip {
  flex: 0 0 auto;
  min-width: 76px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.nav-arrow.day-chip {
  min-width: 44px;
}

.day-chip strong {
  display: block;
  font-size: .92rem;
}

.day-chip span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.day-chip.active {
  border-color: var(--mint);
  background: linear-gradient(180deg, #0f8b7e 0%, var(--mint) 100%);
  color: white;
  box-shadow: 0 12px 24px rgba(15, 118, 110, .22);
}

.day-chip.active span {
  color: rgba(255, 255, 255, .8);
}

.day-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.status-card {
  margin-top: 18px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.status-top {
  display: grid;
  place-items: center;
  padding: 20px 20px 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .1) 0%, rgba(37, 99, 235, .08) 100%),
    #fbfefd;
  text-align: center;
}

.status-top > div {
  display: grid;
  justify-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .12);
  color: var(--mint-dark);
  font-size: .76rem;
  font-weight: 900;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, .15);
  animation: status-pulse 1.65s ease-out infinite;
}

.status-title {
  margin: 10px 0 3px;
  font-size: 1.64rem;
  font-weight: 1000;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  text-align: center;
}

.status-date {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  text-align: center;
}

.pharmacy-list {
  display: grid;
  gap: 0;
  padding: 0 18px 18px;
}

.pharmacy-card {
  display: grid;
  gap: 0;
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
  background: white;
}

.pharmacy-hero-name {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 18px 16px 20px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, #139483 0%, var(--mint) 100%);
  color: white;
  text-align: center;
  box-shadow: 0 14px 28px rgba(15, 118, 110, .22);
  animation: turn-card-pulse 2.8s ease-in-out infinite;
}

.pharmacy-hero-name::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, .88) 0%, rgba(11, 77, 73, .92) 100%),
    url("assets/turn-card-meds.jpg") center / cover;
  opacity: 1;
}

.pharmacy-hero-name > * {
  position: relative;
  z-index: 1;
}

.pharmacy-hero-name.is-botica {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #d97706 0%, #92400e 100%);
  box-shadow: 0 14px 30px rgba(146, 64, 14, .26);
}

.pharmacy-hero-name.is-botica::before {
  background:
    linear-gradient(180deg, rgba(217, 119, 6, .88) 0%, rgba(120, 53, 15, .94) 100%),
    url("assets/turn-card-meds.jpg") center / cover;
}

.pharmacy-logo {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 3px solid var(--brand, var(--mint));
  border-radius: 16px;
  background: var(--brand, var(--mint));
  color: white;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .16);
}

.pharmacy-logo.has-image {
  width: 74px;
  height: 62px;
  padding: 6px;
  background: #fff;
  border-color: #d7e2df;
  overflow: hidden;
}

.pharmacy-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.pharmacy-logo.logo-botica-san-felipe.has-image {
  padding: 4px;
  background: #ffffff;
  border-color: rgba(255, 255, 255, .76);
}

.pharmacy-logo.logo-botica-san-felipe img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.pharmacy-hero-name span {
  color: rgba(255, 255, 255, .78);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pharmacy-card h3 {
  margin: 0;
  font-size: 3.15rem;
  line-height: .95;
  letter-spacing: 0;
}

.hero-address {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.28;
  text-wrap: balance;
}

.botica-card .pharmacy-detail {
  border-bottom: 3px solid #f59e0b;
}

.botica-highlight {
  margin: 2px 0 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff7ed;
  font-size: .82rem;
  font-weight: 900;
}

.provided-by {
  margin: 14px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mint);
  color: #fff;
  font-size: .62rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.pharmacy-detail {
  display: grid;
  gap: 10px;
  padding: 15px 2px 0;
  text-align: center;
}

.address,
.hours,
.note {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.35;
}

.hours {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  justify-self: center;
  max-width: 100%;
  padding: 9px 13px;
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 999px;
  background: #f2fbf7;
  color: var(--mint-dark);
  font-weight: 800;
}

.hours span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--mint);
  color: #ffffff;
  font-size: .68rem;
  font-weight: 1000;
}

.warning {
  color: var(--amber);
  font-weight: 800;
}

.map-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.map-button img {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.map-button.google {
  color: #1f2937;
  border-color: rgba(66, 133, 244, .28);
  background: #ffffff;
}

.map-button.waze {
  color: #12313b;
  border-color: rgba(51, 204, 255, .4);
  background: #ffffff;
}

.map-button:focus-visible {
  outline: 4px solid rgba(15, 118, 110, .2);
  outline-offset: 2px;
}

.map-actions.compact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 0;
  justify-content: center;
  align-items: stretch;
}

.map-actions.compact .map-button {
  flex: 0 1 auto;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: .76rem;
  box-shadow: none;
}

.map-actions.compact .map-button img {
  width: 18px;
  height: 18px;
}

.empty {
  padding: 18px;
  color: var(--rose);
  font-weight: 800;
}

.ad-banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 74px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px dashed rgba(15, 118, 110, .42);
  border-radius: 18px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .72) 42%, rgba(255, 255, 255, 0) 56%) -180px 0 / 180px 100% no-repeat,
    linear-gradient(135deg, rgba(15, 118, 110, .1) 0%, rgba(37, 99, 235, .06) 100%),
    #ffffff;
  color: var(--mint-dark);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(21, 50, 47, .06);
  animation: ad-shine 3.2s ease-in-out infinite;
}

.ad-banner::before,
.ad-banner::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .08);
}

.ad-banner::before {
  left: -36px;
  top: -42px;
}

.ad-banner::after {
  right: -42px;
  bottom: -46px;
}

.ad-banner span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--mint);
  color: #ffffff;
  font-size: .88rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(15, 118, 110, .2);
  animation: ad-pulse 2.4s ease-in-out infinite;
}

.ad-banner svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: ad-icon-wave 1.8s ease-in-out infinite;
}

.ad-banner-bottom {
  margin-top: 14px;
}

@keyframes ad-shine {
  0% {
    background-position: -190px 0, 0 0, 0 0;
  }

  48%,
  100% {
    background-position: calc(100% + 190px) 0, 0 0, 0 0;
  }
}

@keyframes ad-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 22px rgba(15, 118, 110, .2);
  }

  50% {
    transform: translateY(-1px) scale(1.025);
    box-shadow: 0 14px 28px rgba(15, 118, 110, .26);
  }
}

@keyframes ad-icon-wave {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  22% {
    transform: rotate(-8deg) scale(1.08);
  }

  44% {
    transform: rotate(7deg) scale(1.08);
  }

  66% {
    transform: rotate(0deg) scale(1);
  }
}

@keyframes turn-card-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 14px 28px rgba(15, 118, 110, .22);
  }

  50% {
    transform: scale(1.012);
    box-shadow: 0 18px 36px rgba(15, 118, 110, .3);
  }
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, .34), 0 0 0 5px rgba(16, 185, 129, .15);
    transform: scale(1);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(16, 185, 129, 0), 0 0 0 5px rgba(16, 185, 129, .12);
    transform: scale(1.08);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0), 0 0 0 5px rgba(16, 185, 129, .15);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ad-banner,
  .ad-banner span,
  .ad-banner svg,
  .pharmacy-hero-name,
  .pulse {
    animation: none;
  }
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 12px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.3rem;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--mint-dark);
  padding: 0 12px;
  font: inherit;
  font-weight: 850;
}

.ghost-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline {
  display: grid;
  gap: 9px;
}

.load-more-button {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid rgba(15, 118, 110, .28);
  border-radius: 16px;
  background: #f4fffb;
  color: var(--mint-dark);
  font: inherit;
  font-weight: 950;
  box-shadow: var(--shadow-soft);
}

.load-more-button:active {
  transform: translateY(1px);
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 7px 18px rgba(21, 50, 47, .045);
}

.timeline-provided {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 4px 0 0;
  padding: 4px 9px;
  font-size: .54rem;
  line-height: 1;
}

.timeline-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 86px;
}

.timeline-copy {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
}

.date-pill {
  display: grid;
  place-items: center;
  min-height: 58px;
  border-radius: 15px;
  background: var(--soft);
  color: var(--mint-dark);
  font-weight: 900;
  text-align: center;
}

.date-pill em {
  display: block;
  color: var(--muted);
  font-size: .62rem;
  font-style: normal;
  text-transform: uppercase;
}

.date-pill span {
  display: block;
  color: var(--muted);
  font-size: .7rem;
  text-transform: uppercase;
}

.timeline-item h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 1px 0 5px;
  font-size: .98rem;
  text-align: center;
}

.timeline-item .address {
  text-align: center;
}

.timeline-item .pharmacy-logo {
  width: 28px;
  height: 28px;
  border-width: 2px;
  border-radius: 9px;
  color: white;
  font-size: .68rem;
  box-shadow: none;
}

.timeline-item .pharmacy-logo.has-image {
  width: 38px;
  height: 32px;
  padding: 3px;
}

.source-panel {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fbfa;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.ownership-panel {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 14px 15px;
  border: 1px dashed rgba(15, 118, 110, .34);
  border-radius: 18px;
  background: rgba(244, 255, 251, .7);
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
  text-align: center;
}

.ownership-panel strong {
  color: var(--mint-dark);
  font-size: .9rem;
}

.seo-copy {
  margin-top: 18px;
  padding: 4px 2px 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.seo-copy h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.seo-copy p {
  margin: 0;
}

.whatsapp-float {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-size: .86rem;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(5, 78, 49, .24);
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-float:focus-visible {
  outline: 4px solid rgba(37, 211, 102, .28);
  outline-offset: 3px;
}

@media (max-width: 520px) {
  .app-shell {
    padding-inline: 12px;
  }

  .hero {
    margin-inline: 0;
    min-height: 206px;
    border-radius: 22px;
  }

  .hero-content {
    min-height: 206px;
    padding: 10px 12px 16px;
  }

  .hero-logo {
    width: min(48vw, 156px);
    margin-bottom: 12px;
  }

  h1 {
    max-width: none;
    font-size: clamp(1.62rem, 7.6vw, 2rem);
    white-space: nowrap;
  }

  .hero-copy {
    font-size: .92rem;
    line-height: 1.38;
  }

  .controls {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 20px;
    overflow: hidden;
  }

  select,
  input {
    max-width: 100%;
    font-size: 1rem;
    text-align: left;
  }

  .date-trigger {
    height: 54px;
    font-size: 1.04rem;
    text-align: center;
    padding-inline: 42px;
  }

  .calendar-popover {
    place-items: center;
    padding: 14px;
  }

  .calendar-card {
    width: min(100%, 356px);
    max-height: calc(100dvh - 28px);
    border-radius: 22px;
    overflow-y: auto;
  }

  .calendar-head {
    grid-template-columns: 40px 1fr 40px;
    padding: 13px 12px 12px;
  }

  .calendar-head p {
    font-size: .66rem;
  }

  .calendar-head h2 {
    font-size: 1.18rem;
  }

  .calendar-nav {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 1.7rem;
  }

  .calendar-weekdays {
    gap: 4px;
    padding: 12px 12px 6px;
    font-size: .64rem;
  }

  .calendar-grid {
    gap: 5px;
    padding: 0 12px 12px;
  }

  .calendar-day,
  .calendar-empty {
    min-height: 34px;
    border-radius: 11px;
    font-size: .9rem;
  }

  .calendar-actions {
    gap: 8px;
    padding: 0 12px 12px;
  }

  .calendar-actions button {
    min-height: 40px;
    border-radius: 13px;
    font-size: .86rem;
  }

  .quick-days {
    padding-inline: 0;
  }

  .days-nav {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .ad-banner {
    min-height: 66px;
    margin-top: 12px;
    border-radius: 16px;
  }

  .ad-banner span {
    min-height: 34px;
    padding-inline: 15px;
    font-size: .78rem;
  }

  .nav-arrow {
    min-width: 42px;
    width: 42px;
    height: 54px;
    border-radius: 15px;
  }

  .nav-arrow.day-chip {
    min-width: 42px;
  }

  .status-top {
    padding: 18px 18px 16px;
  }

  .status-title {
    font-size: 1.5rem;
  }

  .pharmacy-card h3 {
    font-size: clamp(2.35rem, 11vw, 3.15rem);
  }

  .pharmacy-list {
    padding: 0 16px 16px;
  }

  .map-button {
    min-height: 46px;
    font-size: .86rem;
  }

  .timeline-item {
    grid-template-columns: 58px 1fr;
    padding: 12px;
  }

  .timeline-content {
    min-height: 82px;
  }

  .whatsapp-float {
    bottom: 12px;
    min-height: 44px;
    padding: 0 13px;
    font-size: .76rem;
  }

  .map-actions.compact .map-button span {
    display: none;
  }

  .map-actions.compact .map-button {
    width: 40px;
    padding: 0;
  }
}
