:root {
  --navy: #1a365d;
  --blue: #2c5282;
  --mint: #48c9b0;
  --mint-dark: #138a75;
  --coral: #e67e22;
  --ink: #223142;
  --muted: #667789;
  --line: #d6dee6;
  --soft: #f4f8fb;
  --paper: #ffffff;
  --warning: #fff4e5;
  --shadow: 0 18px 50px rgba(26, 54, 93, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  color: #f8fbff;
  background: #18385f;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: #c9dae9;
}

.nav {
  display: grid;
  gap: 7px;
}

.nav button {
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  color: #dbe8f4;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.nav button strong,
.nav button small {
  display: block;
}

.nav button strong {
  font-size: 15px;
}

.nav-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}

.nav-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav button small {
  margin-top: 2px;
  color: #a9bdd1;
  line-height: 1.25;
}

.nav button:hover,
.nav button.active {
  color: #0f2a48;
  background: var(--mint);
  border-color: rgba(255, 255, 255, 0.4);
}

.nav button:hover small,
.nav button.active small {
  color: #174667;
}

.side-note {
  margin: auto 0 0;
  color: #c7d7e5;
  font-size: 13px;
  line-height: 1.45;
}

.main {
  min-width: 0;
  padding: 28px clamp(18px, 4vw, 48px) 48px;
}

.botiquin-xray {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  height: 65vh;
  object-fit: contain;
  opacity: 0.35;
  filter: grayscale(0.1) contrast(1.1) brightness(0.9);
  pointer-events: none;
  z-index: 0;
}

body.route-botiquin .botiquin-xray {
  display: block;
}

body.route-botiquin .content-grid {
  position: relative;
  z-index: 1;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--mint-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.location-button,
.weather-button,
.language-button,
.hero-actions a,
.card-actions a,
.load-more {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: #082c26;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid #8ce2d0;
  border-radius: 8px;
  background: var(--mint);
  cursor: pointer;
}

.location-button:hover,
.weather-button:hover,
.language-button:hover,
.hero-actions a:hover,
.card-actions a:hover,
.load-more:hover {
  background: #62ddc7;
}

.location-button.active {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.weather-button {
  min-width: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  line-height: 1.05;
  padding: 0 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, background 0.2s;
}

.weather-button:active {
  transform: scale(0.97);
}

.weather-icon-symbol {
  font-size: 20px;
}

.weather-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.weather-content-wrapper span,
.weather-content-wrapper strong {
  display: block;
}

.weather-content-wrapper span {
  font-size: 13px;
}

.weather-content-wrapper strong {
  color: var(--navy);
  font-size: 14px;
}

.weather-click-arrow {
  font-size: 14px;
  opacity: 0.8;
}

.language-button {
  width: auto;
  padding: 0 12px;
  gap: 5px;
  color: var(--navy);
  background: #fff;
  border-color: var(--line);
}

.language-icon {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.language-code {
  font-size: 12px;
  font-weight: 850;
}

.hero {
  position: relative;
  min-height: 260px;
  margin-bottom: 18px;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid #c9dbe9;
  border-radius: 8px;
  background: #e9f4f8;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/hero_pharmacy_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.95;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 40%, rgba(255, 255, 255, 0.3) 100%);
  z-index: 0;
}

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

.hero-copy {
  max-width: 650px;
}

.hero h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(32px, 5.4vw, 68px);
  line-height: 0.98;
}

.hero p:not(.eyebrow) {
  max-width: 570px;
  margin: 16px 0 0;
  color: #40576d;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.hero-actions a.secondary,
.card-actions a.secondary {
  color: var(--navy);
  background: var(--paper);
  border-color: var(--line);
}

.mobile-nav {
  display: none;
  gap: 8px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.mobile-nav button {
  min-width: max-content;
  min-height: 42px;
  padding: 0 13px;
  color: var(--navy);
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.mobile-nav button.active {
  color: #082c26;
  background: var(--mint);
  border-color: #8ce2d0;
}

.mobile-nav button small {
  display: none;
}

.toolbar {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.search-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.search-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.search-box input:focus {
  outline: 3px solid rgba(72, 201, 176, 0.34);
  background: #fff;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filters button {
  min-height: 42px;
  padding: 0 12px;
  color: var(--navy);
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.filters button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.status-row p {
  margin: 0;
}

.manual-location {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #c9dbe9;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.manual-location-title {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.manual-location-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1.4fr) minmax(90px, 0.6fr) auto;
  gap: 10px;
  align-items: end;
}

.manual-location label span {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 850;
}

.manual-location input,
.manual-location select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.manual-location button {
  min-height: 46px;
  padding: 0 15px;
  color: #082c26;
  font-weight: 850;
  border: 1px solid #8ce2d0;
  border-radius: 8px;
  background: var(--mint);
  cursor: pointer;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.pill-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--mint-dark);
}

.pill-icon svg {
  width: 100%;
  height: 100%;
}

.medicine-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
  align-items: start;
}

.medicine-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.medicine-results .load-more {
  grid-column: 1 / -1;
}

.medicine-price {
  color: var(--mint-dark);
  font-size: 20px;
  font-weight: 850;
}

.medicine-info {
  position: sticky;
  top: 16px;
  padding: 24px;
  border: 2px solid var(--mint);
  border-radius: 12px;
  background: var(--soft);
  text-align: left;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.06);
}

.medicine-info-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  color: var(--mint-dark);
}

.medicine-info-icon svg {
  width: 100%;
  height: 100%;
}

.medicine-info h4 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 24px;
}

.medicine-info-label {
  margin: 0 0 8px;
  color: var(--mint-dark);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.medicine-info p {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.6;
}

.medicine-info-disclaimer {
  color: var(--muted);
  font-size: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.search-suggestion {
  grid-column: 1 / -1;
  background: #fff4e5;
  border-left: 4px solid var(--coral);
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 16px;
  color: var(--ink);
}

.suggestion-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 850;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.suggestion-btn:hover {
  color: var(--navy);
}

.botiquin-med-link {
  color: var(--mint-dark);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.botiquin-med-link:hover {
  color: var(--blue);
}

.med-popover {
  position: absolute;
  z-index: 1000;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(26, 54, 93, 0.15);
  width: 260px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
}

.med-popover.visible {
  opacity: 1;
  transform: translateY(0);
}

.med-popover-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
}

.med-popover-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  background: #f4f8fb;
}

.med-popover-title {
  font-size: 18px;
  font-weight: 850;
  color: var(--navy);
  margin: 0;
}

.med-popover-price {
  font-size: 18px;
  color: var(--mint-dark);
  font-weight: 850;
  margin: 0;
}

.med-popover-pharmacy {
  font-size: 13px;
  color: var(--muted);
  margin: -4px 0 0 0;
}

.med-popover-btn {
  background: var(--mint);
  color: #082c26;
  border: none;
  border-radius: 6px;
  padding: 8px 0;
  font-weight: 850;
  cursor: pointer;
  width: 100%;
}

.med-popover-btn:hover {
  background: #62ddc7;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 850;
}

.status-badge.open {
  background: #e6fcf5;
  color: #0ca678;
  border: 1px solid #c3fae8;
}

.status-badge.closed {
  background: #fff5f5;
  color: #f03e3e;
  border: 1px solid #ffe3e3;
}

@media (max-width: 720px) {
  .medicine-layout {
    grid-template-columns: 1fr;
  }

  .medicine-info {
    position: static;
  }
}

.card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(26, 54, 93, 0.07);
}

.card.featured {
  border-color: #9fe0d0;
  background: #f4fffb;
}

.card.warning {
  border-color: #f0b27a;
  background: var(--warning);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.18;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.discount-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  border-radius: 8px;
  background: var(--coral);
  box-shadow: 0 6px 14px rgba(230, 126, 34, 0.26);
  transform: rotate(-6deg);
}

.badge {
  width: max-content;
  max-width: 150px;
  min-height: 34px;
  padding: 7px 10px;
  color: #0d5b50;
  font-size: 12px;
  font-weight: 900;
  border-radius: 8px;
  background: #dff7f1;
  border: 1px solid #9fe0d0;
  text-align: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-badge {
  min-height: 32px;
  padding: 7px 10px;
  color: #43576b;
  font-size: 13px;
  font-weight: 850;
  border: 1px solid #d2dce5;
  border-radius: 8px;
  background: #e7edf3;
}

.mini-badge.green {
  color: #0f6b57;
  border-color: #9fe0d0;
  background: #dff7f1;
}

.meta {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #465a6d;
  font-size: 15px;
  line-height: 1.42;
}

.meta strong {
  color: var(--navy);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.card-actions a {
  min-height: 42px;
  padding: 0 13px;
  font-size: 14px;
}

.call-disabled,
.inline-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
}

.call-mobile {
  display: none !important;
}

.call-disabled {
  color: #526779;
  border: 1px dashed #c9d9e8;
  background: #f7fafc;
}

.inline-action {
  color: #082c26;
  border: 1px solid #8ce2d0;
  background: var(--mint);
  cursor: pointer;
}

.empty {
  grid-column: 1 / -1;
  padding: 34px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.load-more {
  grid-column: 1 / -1;
  width: min(100%, 360px);
  margin: 4px auto 0;
  border: none;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(15, 28, 42, 0.42);
}

.drawer-panel {
  width: min(86vw, 360px);
  height: 100%;
  padding: 20px;
  color: #fff;
  background: var(--navy);
}

.drawer-close {
  width: 100%;
  min-height: 44px;
  margin-bottom: 16px;
  color: var(--navy);
  font-weight: 900;
  border: 0;
  border-radius: 8px;
  background: var(--mint);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 18px;
  background: rgba(15, 28, 42, 0.45);
  display: grid;
  place-items: center;
}

.modal-card {
  width: min(100%, 520px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 20px;
  border: 1px solid #c9dbe9;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.modal-close {
  float: right;
  min-height: 38px;
  padding: 0 12px;
  color: var(--navy);
  font-weight: 850;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.modal-card h2 {
  margin: 4px 0 12px;
  color: var(--navy);
  font-size: 30px;
  line-height: 1.1;
}

.weather-main {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
}

.weather-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.weather-metrics div {
  min-height: 74px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.weather-metrics span,
.weather-metrics strong {
  display: block;
}

.weather-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.weather-metrics strong {
  margin-top: 5px;
  color: var(--navy);
  font-size: 24px;
}

.uv-advice {
  margin: 14px 0 0;
  padding: 12px;
  color: #8a430a;
  font-weight: 850;
  border: 1px solid #f0b27a;
  border-radius: 8px;
  background: #fff7ef;
}

.modal-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.language-grid button {
  min-height: 78px;
  padding: 11px;
  text-align: left;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  cursor: pointer;
}

.language-grid button.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.language-grid strong,
.language-grid span {
  display: block;
}

.language-grid strong {
  font-size: 17px;
}

.language-grid span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.language-grid button.active span {
  color: #d6e8f6;
}

.settings-panel {
  display: grid;
  gap: 20px;
}

.settings-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.settings-block h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 16px;
}

.language-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 3px;
  max-width: 420px;
}

.language-tile {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 10px;
  text-align: left;
  color: #fff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.language-tile:hover {
  filter: brightness(1.12);
}

.language-tile strong {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}

.language-tile span {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 650;
  opacity: 0.85;
}

.language-tile.active {
  box-shadow: inset 0 0 0 3px #fff;
}

.about-copy,
.about-disclaimer,
.about-contact {
  margin: 0 0 8px;
  color: var(--navy);
  line-height: 1.5;
}

.about-disclaimer {
  color: var(--muted);
  font-size: 13px;
}

.about-contact {
  margin-bottom: 0;
  font-size: 14px;
}

@media (max-width: 980px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding-top: 18px;
  }

  .menu-button,
  .mobile-nav {
    display: block;
  }

  .mobile-nav {
    display: flex;
  }

  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .location-button {
    flex: 1 1 100%;
  }

  .weather-button {
    flex: 1;
  }

  .language-button {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 460px;
    align-items: flex-end;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero::before {
    background-position: center top;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(247, 250, 252, 0.2) 0%, rgba(247, 250, 252, 0.82) 38%, rgba(247, 250, 252, 0.98) 100%);
  }

  .hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .hero-actions a {
    flex: 1;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .filters {
    justify-content: flex-start;
  }

  .manual-location-fields {
    grid-template-columns: 1fr;
  }

  .call-mobile {
    display: inline-flex !important;
  }

  .call-disabled {
    display: none !important;
  }
}

@media (max-width: 560px) {
  .main {
    padding-inline: 14px;
  }

  .botiquin-xray {
    display: none !important;
  }

  h1 {
    font-size: 28px;
  }

  .hero {
    padding: 18px;
  }

  .hero h2 {
    font-size: 38px;
  }

  .status-row,
  .card-top {
    display: grid;
  }

  .weather-metrics,
  .language-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

.location-status-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.location-status-container .location-button {
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.info-ticker-button {
  background: var(--mint);
  border-color: #8ce2d0;
  color: #082c26;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-ticker-container {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.4s ease, opacity 0.3s ease;
  background: rgba(26, 54, 93, 0.05);
  height: 38px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  font-size: 13px;
  color: var(--navy);
}

.weather-ticker-container.expanded {
  max-width: 400px;
  opacity: 1;
  padding: 0 12px;
  margin: 0 10px;
  border: 1px solid var(--line);
}

.weather-ticker-text {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 25s linear infinite;
  font-weight: 600;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-toggle-btn {
  background: rgba(26, 54, 93, 0.05);
  border: 1px solid var(--line);
  color: var(--navy);
  border-radius: 8px;
  padding: 0 10px;
  height: 46px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  transition: background 0.2s, transform 0.2s;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1098ad;
  color: #ffffff !important;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.app-btn:hover {
  background: #0b7285;
}

.app-btn.disabled {
  background: #e9ecef;
  color: #adb5bd !important;
  cursor: not-allowed;
}

.health-tips-banner {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #e6fcf5 0%, #eefcfd 100%);
  border: 2px solid #c3fae8;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(12, 166, 120, 0.05);
}

.health-tips-title {
  font-size: 18px;
  font-weight: 850;
  color: #0ca678;
  margin-bottom: 12px;
}

.health-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.health-tip-item {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.5;
}

.ticker-toggle-btn:hover {
  background: var(--line);
}

.ticker-toggle-btn:active {
  transform: scale(0.95);
}

@media (max-width: 820px) {
  .weather-ticker-container,
  .ticker-toggle-btn {
    display: none !important;
  }
}

