:root {
  --red: #d71920;
  --red-dark: #9e1117;
  --yellow: #ffc928;
  --yellow-soft: #fff3bd;
  --green: #128c3f;
  --green-dark: #087333;
  --ink: #241914;
  --muted: #6b5a4f;
  --line: #ead6be;
  --paper: #fff8ec;
  --white: #ffffff;
  --shadow: 0 18px 42px rgba(80, 35, 16, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, #fff8ec 0%, #fff2dc 46%, #ffe5bd 100%);
  color: var(--ink);
  font-family: Montserrat, "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

body.has-map-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p {
  margin: 0;
}

.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 44px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--red);
  box-shadow: var(--shadow);
}

.hero-brand {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(158, 17, 23, 0.94), rgba(215, 25, 32, 0.9)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 10px, transparent 10px 22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  aspect-ratio: 1;
  border: 5px solid var(--yellow);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 26px rgba(63, 18, 10, 0.24);
}

.brand img {
  width: 88%;
  height: auto;
  display: block;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--red-dark);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 520px;
  margin-top: 14px;
  color: #fff4d0;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 800;
}

.hero-service {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px;
  background:
    linear-gradient(180deg, var(--yellow), #ffda57);
  color: var(--red-dark);
}

.service-label {
  width: fit-content;
  border: 2px solid var(--red-dark);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-service strong {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-service span {
  color: #5d231c;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 800;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: -24px auto 22px;
  width: min(940px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px;
  box-shadow: 0 12px 28px rgba(80, 35, 16, 0.12);
  backdrop-filter: blur(10px);
}

.search-box {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  min-height: 50px;
  border: 2px solid #f0d8b8;
  border-radius: 8px;
  background: #fffaf2;
  color: var(--red);
}

.search-box span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 900;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
}

.search-box input::placeholder {
  color: #9d8775;
}

.store-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.stores-grid {
  display: grid;
  gap: 12px;
}

.store-card {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.5fr) 180px;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-left: 8px solid var(--red);
  border-radius: 8px;
  background: var(--white);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(80, 35, 16, 0.08);
}

.store-heading {
  min-width: 0;
}

.store-kicker {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: var(--red-dark);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-card h2 {
  margin-top: 9px;
  color: var(--red);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.store-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.store-detail {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
  border-radius: 8px;
  background: #fff8ed;
  padding: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--white);
  color: var(--red);
  box-shadow: inset 0 0 0 1px #f0d8b8;
}

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

.store-address,
.store-reference,
.store-phone {
  min-width: 0;
}

.store-phone {
  color: var(--red-dark);
  font-weight: 900;
}

.store-phone-row .detail-icon {
  color: var(--green);
}

.store-actions {
  display: grid;
  gap: 10px;
}

.whatsapp-link,
.map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.whatsapp-link {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 12px 20px rgba(18, 140, 63, 0.2);
}

.map-link {
  border: 2px solid var(--red);
  background: var(--white);
  color: var(--red-dark);
}

.whatsapp-icon,
.map-action-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
}

.whatsapp-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.map-action-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-link:hover,
.whatsapp-link:focus-visible {
  background: var(--green-dark);
}

.map-link:hover,
.map-link:focus-visible {
  background: var(--yellow-soft);
}

.whatsapp-link.is-disabled {
  pointer-events: none;
  background: #8f8379;
  box-shadow: none;
}

.map-modal[hidden] {
  display: none;
}

.map-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
}

.map-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 25, 20, 0.62);
}

.map-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.map-dialog-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 14px;
  align-items: start;
}

.map-kicker {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-dialog h2 {
  margin-top: 4px;
  color: var(--red-dark);
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

#map-address {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.map-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #fff1df;
  color: var(--red-dark);
  cursor: pointer;
}

.map-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

#map-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
  background: #f7ead9;
}

.map-apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.map-apps a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  background: var(--red);
  color: var(--white);
  padding: 0 12px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.empty-state {
  border: 1px dashed #d7a47b;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 28px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 1080px) {
  .store-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

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

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    grid-template-columns: 128px minmax(0, 1fr);
    padding: 24px;
  }

  .brand {
    width: 128px;
  }

  .hero-service {
    padding: 22px 24px;
  }

  .toolbar {
    grid-template-columns: 1fr;
    margin-top: 14px;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 1160px);
    padding-top: 12px;
  }

  .hero-brand {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .brand {
    width: 118px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-service strong {
    font-size: 28px;
  }

  .store-card {
    padding: 16px;
  }

  .store-details {
    grid-template-columns: 1fr;
  }

  .map-apps {
    grid-template-columns: 1fr;
  }

  #map-frame {
    min-height: 300px;
  }
}
