/* ==========================================================================
   Tire Zone theme — red & white
   ========================================================================== */

:root {
  --tz-red: #e11b22;
  --tz-red-dark: #b8141a;
  --tz-red-soft: #fdecec;
  --tz-gray: #58595b;
  --tz-ink: #26272a;
  --tz-muted: #6d6e71;
  --tz-line: #e6e6e8;
  --tz-bg-soft: #f7f7f8;

  --bs-primary: var(--tz-red);
  --bs-primary-rgb: 225, 27, 34;
  --bs-link-color: var(--tz-red);
  --bs-link-hover-color: var(--tz-red-dark);
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background-color: #fff;
  color: var(--tz-ink);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.01em;
}

a {
  color: var(--tz-red);
}

a:hover {
  color: var(--tz-red-dark);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem rgba(225, 27, 34, .45);
}

.form-control:focus, .form-select:focus {
  border-color: var(--tz-red);
}

/* ---------- buttons ---------- */

.btn-primary,
.btn-tz {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--tz-red);
  --bs-btn-border-color: var(--tz-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--tz-red-dark);
  --bs-btn-hover-border-color: var(--tz-red-dark);
  --bs-btn-active-bg: var(--tz-red-dark);
  --bs-btn-active-border-color: var(--tz-red-dark);
  font-weight: 700;
}

.btn-outline-tz {
  --bs-btn-color: var(--tz-red);
  --bs-btn-border-color: var(--tz-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--tz-red);
  --bs-btn-hover-border-color: var(--tz-red);
  font-weight: 700;
}

/* ---------- header ---------- */

.tz-topbar {
  background-color: var(--tz-red);
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.tz-topbar .container-xxl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
}

.tz-topbar a {
  color: #fff;
  text-decoration: none;
  opacity: .9;
}

.tz-topbar a:hover {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
}

.tz-header {
  background-color: #fff;
  border-bottom: 3px solid var(--tz-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.tz-header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.tz-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.tz-brand img {
  height: 42px;
  width: auto;
  display: block;
}

.tz-toggler {
  margin-left: auto;
  border: 1px solid var(--tz-line);
  background: #fff;
  border-radius: .375rem;
  padding: .4rem .6rem;
  line-height: 1;
  color: var(--tz-gray);
}

.tz-toggler:focus-visible {
  outline: 2px solid var(--tz-red);
  outline-offset: 2px;
}

.tz-collapse {
  width: 100%;
}

.tz-nav {
  display: flex;
  flex-direction: column;
  gap: .125rem;
  padding: .5rem 0;
}

.tz-nav a {
  color: var(--tz-gray);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: .55rem .25rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.tz-nav a:hover,
.tz-nav a:focus-visible {
  color: var(--tz-red);
}

.tz-nav a.active {
  color: var(--tz-red);
  border-bottom-color: var(--tz-red);
}

.tz-actions {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .5rem 0 .25rem;
  border-top: 1px solid var(--tz-line);
}

.tz-action {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--tz-gray);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: .5rem .25rem;
  white-space: nowrap;
}

.tz-action:hover,
.tz-action:focus-visible,
.tz-action.active {
  color: var(--tz-red);
}

.tz-action svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.tz-action-divider {
  display: none;
  width: 1px;
  align-self: stretch;
  background: var(--tz-line);
  margin: .35rem .35rem;
}

.tz-cart {
  position: relative;
}

.tz-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--tz-red);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
}

@media (min-width: 1200px) {
  .tz-toggler {
    display: none;
  }

  .tz-header-inner {
    flex-wrap: nowrap;
    gap: 1.25rem;
  }

  .tz-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    gap: 1rem;
    height: auto !important;
  }

  .tz-nav {
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
    padding: 0;
  }

  .tz-nav a {
    font-size: .875rem;
    padding: 1.1rem 0;
  }

  .tz-actions {
    flex-direction: row;
    align-items: center;
    gap: .1rem;
    padding: 0;
    border-top: 0;
  }

  .tz-action {
    font-size: .85rem;
    padding: .5rem .45rem;
  }

  .tz-action svg {
    width: 18px;
    height: 18px;
  }

  .tz-action-divider {
    display: block;
  }
}

/* ---------- page furniture ---------- */

.tz-page-head {
  background: linear-gradient(180deg, var(--tz-bg-soft), #fff);
  border-bottom: 1px solid var(--tz-line);
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
}

.tz-page-head h1 {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
}

.tz-page-head h1 span {
  color: var(--tz-red);
}

.tz-page-head p {
  margin: .5rem 0 0;
  color: var(--tz-muted);
  max-width: 46rem;
}

.tz-hero {
  background: var(--tz-red);
  color: #fff;
  border-radius: 1rem;
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  margin-bottom: 2.5rem;
}

.tz-hero h1 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem);
  margin-bottom: .75rem;
}

.tz-hero p {
  font-size: 1.05rem;
  opacity: .95;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.tz-hero .btn-light {
  font-weight: 800;
  color: var(--tz-red);
}

.tz-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid var(--tz-line);
  border-radius: .75rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tz-card:hover {
  color: inherit;
  border-color: var(--tz-red);
  box-shadow: 0 .5rem 1.25rem rgba(225, 27, 34, .12);
  transform: translateY(-2px);
}

.tz-card h2 {
  font-size: 1.1rem;
  margin-bottom: .35rem;
}

.tz-card p {
  margin: 0;
  color: var(--tz-muted);
  font-size: .925rem;
}

.tz-placeholder {
  border: 1px dashed var(--tz-line);
  border-radius: .75rem;
  background: var(--tz-bg-soft);
  padding: 2rem;
  color: var(--tz-muted);
}

/* ---------- footer ---------- */

.tz-footer {
  margin-top: auto;
  background: var(--tz-ink);
  color: #c9cacc;
  padding: 2rem 0 1.5rem;
}

.tz-footer a {
  color: #c9cacc;
  text-decoration: none;
}

.tz-footer a:hover {
  color: #fff;
}

.tz-footer .tz-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: .85rem;
}

/* ---------- template leftovers ---------- */

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ---------- vehicle picker: progress bar + inline fields ---------- */

.tz-steps {
  position: relative;
  margin-bottom: 1.75rem;
}

.tz-steps-track {
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 999px;
  background: var(--tz-line);
  overflow: hidden;
}

.tz-steps-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--tz-red);
  transition: width .35s ease;
}

.tz-steps-items {
  position: relative;
  display: flex;
}

.tz-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}

.tz-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 3px solid var(--tz-line);
  color: var(--tz-muted);
  font-weight: 800;
  font-size: .8rem;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.tz-step-label {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--tz-muted);
  transition: color .25s ease;
}

.tz-step.is-done .tz-step-dot {
  background: var(--tz-red);
  border-color: var(--tz-red);
  color: #fff;
}

.tz-step.is-done .tz-step-label {
  color: var(--tz-ink);
}

.tz-step.is-current .tz-step-dot {
  border-color: var(--tz-red);
  color: var(--tz-red);
}

.tz-step.is-current .tz-step-label {
  color: var(--tz-red);
}

.tz-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .3rem;
}

.tz-field-head label {
  margin: 0;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.tz-refresh {
  border: 0;
  background: none;
  padding: 0 .15rem;
  line-height: 1;
  color: var(--tz-muted);
  cursor: pointer;
}

.tz-refresh:hover:not(:disabled) {
  color: var(--tz-red);
}

.tz-refresh:disabled {
  opacity: .35;
  cursor: default;
}

.tz-refresh svg {
  width: 15px;
  height: 15px;
  display: block;
}

.tz-field-meta {
  margin-top: .35rem;
  font-size: .75rem;
  color: var(--tz-muted);
  min-height: 1.1rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.tz-src {
  display: inline-block;
  padding: .05rem .4rem;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--tz-line);
  color: var(--tz-muted);
}

.tz-src.is-db {
  background: var(--tz-ink);
  color: #fff;
}

.tz-src.is-api {
  background: var(--tz-red);
  color: #fff;
}

.tz-body-card {
  width: 150px;
  border: 1px solid var(--tz-line);
  border-radius: .5rem;
  padding: .5rem;
  text-align: center;
}

.tz-body-card img {
  width: 100%;
  height: 78px;
  object-fit: contain;
}

.tz-spec {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  padding: .3rem .6rem;
  border: 1px solid var(--tz-line);
  border-radius: 999px;
  font-size: .8rem;
}

.tz-spec b {
  color: var(--tz-ink);
}

@media (max-width: 575.98px) {
  /* "Generation"/"Modification" do not fit a fifth of a phone screen, so swap in
     the short labels carried on data-short. */
  .tz-step-label {
    font-size: 0;
  }

  .tz-step-label::after {
    content: attr(data-short);
    font-size: .65rem;
  }

  .tz-step-dot {
    width: 26px;
    height: 26px;
    font-size: .7rem;
  }

  .tz-steps-track {
    top: 10px;
  }
}

/* ---------- tire specification table ---------- */

.tz-fitment {
  border: 1px solid var(--tz-line);
  border-radius: .9rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.tz-fitment + .tz-fitment {
  margin-top: 1.25rem;
}

.tz-fitment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
  padding: .9rem 1.25rem;
  background: linear-gradient(180deg, #fff, var(--tz-bg-soft));
  border-bottom: 1px solid var(--tz-line);
}

.tz-fitment-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tz-fitment-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  margin-right: .55rem;
  border-radius: 2px;
  background: var(--tz-red);
  vertical-align: -2px;
}

.tz-fitment-levels {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.tz-chip {
  padding: .1rem .5rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--tz-line);
  font-size: .7rem;
  font-weight: 700;
  color: var(--tz-muted);
  white-space: nowrap;
}

.tz-fitment-count {
  margin-left: auto;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--tz-muted);
  white-space: nowrap;
}

.tz-fitment-scroll {
  overflow-x: auto;
}

.tz-fitment-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.tz-fitment-table th {
  padding: .6rem 1.25rem;
  text-align: left;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tz-muted);
  background: var(--tz-bg-soft);
  border-bottom: 2px solid var(--tz-line);
  white-space: nowrap;
}

.tz-fitment-table td {
  padding: .8rem 1.25rem;
  border-bottom: 1px solid var(--tz-line);
  vertical-align: middle;
  white-space: nowrap;
}

.tz-fitment-table tbody tr:last-child td {
  border-bottom: 0;
}

.tz-fitment-table tbody tr {
  transition: background-color .12s ease;
}

.tz-fitment-table tbody tr:hover {
  background: var(--tz-red-soft);
}

.tz-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: .5rem;
  background: var(--tz-red);
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
}

.tz-row-rear .tz-opt {
  background: #fff;
  color: var(--tz-muted);
  border: 1px solid var(--tz-line);
}

.tz-axle {
  display: inline-block;
  margin-left: .5rem;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tz-muted);
}

.tz-rim {
  font-weight: 700;
  font-size: .95rem;
}

.tz-et {
  display: block;
  font-size: .72rem;
  color: var(--tz-muted);
  margin-top: .1rem;
}

.tz-tire {
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -0.01em;
}

.tz-tag {
  display: inline-block;
  margin-left: .35rem;
  padding: .08rem .4rem;
  border-radius: .3rem;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: 1px;
}

.tz-tag-xl {
  background: var(--tz-red-soft);
  color: var(--tz-red-dark);
  border: 1px solid rgba(225, 27, 34, .25);
}

.tz-tag-oe {
  background: #eef4ff;
  color: #2c56b8;
  border: 1px solid #cfdeff;
}

.tz-tag-rf {
  background: #f2f0ff;
  color: #5341c4;
  border: 1px solid #ddd7ff;
}

.tz-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: .2rem .45rem;
  border-radius: .4rem;
  background: var(--tz-bg-soft);
  border: 1px solid var(--tz-line);
  font-weight: 800;
  font-size: .82rem;
}

.tz-legend {
  padding: .7rem 1.25rem;
  border-top: 1px solid var(--tz-line);
  background: var(--tz-bg-soft);
  font-size: .74rem;
  color: var(--tz-muted);
}

.tz-legend b {
  color: var(--tz-ink);
}

@media (max-width: 575.98px) {
  .tz-fitment-table th,
  .tz-fitment-table td {
    padding-left: .75rem;
    padding-right: .75rem;
  }
}

/* ---------- store cards ---------- */

.tz-store {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--tz-line);
  border-radius: .9rem;
  background: #fff;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.tz-store:hover {
  border-color: var(--tz-red);
  box-shadow: 0 .5rem 1.25rem rgba(225, 27, 34, .1);
}

.tz-store.is-mine {
  border-color: var(--tz-red);
  box-shadow: 0 0 0 1px var(--tz-red) inset;
}

.tz-store-head {
  padding: 1rem 1.25rem .85rem;
  border-bottom: 1px solid var(--tz-line);
}

.tz-store-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tz-store-code {
  color: var(--tz-muted);
  font-weight: 700;
}

.tz-store-rating {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .35rem;
  font-size: .85rem;
}

.tz-stars {
  position: relative;
  display: inline-block;
  font-size: .95rem;
  line-height: 1;
  color: #d7d7db;
  letter-spacing: .05em;
}

.tz-stars span {
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: #f5a623;
  white-space: nowrap;
}

.tz-store-body {
  padding: 1rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  flex: 1 1 auto;
}

@media (min-width: 576px) {
  .tz-store-body {
    grid-template-columns: 1fr 1fr;
  }
}

.tz-store-address {
  font-size: .9rem;
  line-height: 1.5;
}

.tz-store-phone {
  display: inline-block;
  margin-top: .5rem;
  font-weight: 700;
  color: var(--tz-ink);
  text-decoration: none;
}

.tz-store-phone:hover {
  color: var(--tz-red);
}

.tz-store-hours h4 {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tz-muted);
  margin: 0 0 .4rem;
}

.tz-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .85rem;
  padding: .12rem 0;
}

.tz-hours-row.is-closed {
  color: var(--tz-muted);
}

.tz-store-mobile {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0 1.25rem;
  padding: .7rem 0;
  border-top: 1px solid var(--tz-line);
  font-size: .85rem;
}

.tz-store-mobile svg {
  flex: 0 0 auto;
  color: var(--tz-red);
}

.tz-store-note {
  margin: 0 1.25rem;
  padding: .7rem 0;
  border-top: 1px solid var(--tz-line);
  font-size: .85rem;
  color: var(--tz-muted);
}

.tz-store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .85rem 1.25rem;
  border-top: 1px solid var(--tz-line);
  background: var(--tz-bg-soft);
}

.tz-store-distance {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: var(--tz-red-soft);
  color: var(--tz-red-dark);
  font-size: .72rem;
  font-weight: 800;
}

.tz-mine-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: var(--tz-red);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* header chip showing the assigned branch */

.tz-topbar .tz-mystore {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
}

/* ---------- store map ---------- */

.tz-map {
  height: 460px;
  border-radius: .9rem;
  border: 1px solid var(--tz-line);
  overflow: hidden;
  z-index: 0; /* keep tiles under the sticky header */
}

.tz-map-sm {
  height: 260px;
}

/* Leaflet's default marker pulls raster icons off a CDN path; a div icon avoids
   that entirely and lets the pin carry the brand colour. */
.tz-pin {
  background: none;
  border: 0;
}

.tz-pin svg {
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}

.tz-pin .tz-pin-body {
  fill: var(--tz-gray);
}

.tz-pin.is-mine .tz-pin-body {
  fill: var(--tz-red);
}

.tz-pin.is-user .tz-pin-body {
  fill: #2c56b8;
}

.tz-pin-label {
  position: absolute;
  top: 5px;
  left: 0;
  width: 28px;
  text-align: center;
  font-size: .7rem;
  font-weight: 800;
  color: #fff;
  pointer-events: none;
}

.leaflet-popup-content {
  margin: .75rem .9rem;
  font-size: .85rem;
  min-width: 190px;
}

.leaflet-popup-content .tz-pop-name {
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: .2rem;
}

.leaflet-popup-content .tz-pop-meta {
  color: var(--tz-muted);
  margin-bottom: .5rem;
}

.leaflet-container a.leaflet-popup-close-button {
  color: var(--tz-muted);
}

/* ---------- store locator: map background + fixed sidebar ---------- */

.tz-locator {
  position: relative;
  /* JS measures the real header so the map fills exactly the space below it. */
  height: var(--tz-locator-height, calc(100vh - 122px));
  min-height: 520px;
  background: var(--tz-bg-soft);
}

.tz-locator-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tz-locator-panel {
  position: absolute;
  top: 1rem;
  left: 1rem;
  bottom: 1rem;
  width: 390px;
  max-width: calc(100% - 2rem);
  z-index: 500; /* above Leaflet panes, below the sticky site header */
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--tz-line);
  border-radius: .9rem;
  box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .18);
  overflow: hidden;
}

.tz-locator-head {
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--tz-line);
  background: linear-gradient(180deg, #fff, var(--tz-bg-soft));
}

.tz-locator-head h1 {
  margin: 0 0 .15rem;
  font-size: 1.15rem;
}

.tz-locator-status {
  font-size: .78rem;
  color: var(--tz-muted);
  min-height: 1.1rem;
}

.tz-locator-list {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* compact card used inside the sidebar */

.tz-store-item {
  border: 1px solid var(--tz-line);
  border-radius: .7rem;
  padding: .8rem .9rem;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.tz-store-item:hover {
  border-color: var(--tz-red);
  box-shadow: 0 .25rem .75rem rgba(225, 27, 34, .12);
}

.tz-store-item.is-mine {
  border-color: var(--tz-red);
  box-shadow: 0 0 0 1px var(--tz-red) inset;
}

.tz-store-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem;
}

.tz-store-item-name {
  margin: 0;
  font-size: .95rem;
  font-weight: 800;
}

.tz-store-item-code {
  color: var(--tz-muted);
  font-size: .8rem;
  font-weight: 700;
}

.tz-store-item .tz-store-distance {
  margin-left: auto;
}

.tz-store-item-address {
  font-size: .82rem;
  color: var(--tz-muted);
  margin: .35rem 0 0;
  line-height: 1.45;
}

.tz-store-item-phone {
  font-weight: 700;
  color: var(--tz-ink);
  text-decoration: none;
}

.tz-store-item-hours {
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px dashed var(--tz-line);
  font-size: .78rem;
}

.tz-store-item-hours .tz-hours-row {
  font-size: .78rem;
  padding: .05rem 0;
}

.tz-store-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .6rem;
}

.tz-store-item-actions .btn {
  font-size: .78rem;
  padding: .25rem .6rem;
}

.tz-locator-foot {
  padding: .6rem 1rem;
  border-top: 1px solid var(--tz-line);
  background: var(--tz-bg-soft);
  font-size: .75rem;
  color: var(--tz-muted);
}

/* Below lg the panel stops floating and sits under a shorter map. */
@media (max-width: 991.98px) {
  .tz-locator {
    height: auto;
    min-height: 0;
  }

  .tz-locator-map {
    position: relative;
    height: 320px;
  }

  .tz-locator-panel {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
    height: auto;
  }

  .tz-locator-list {
    overflow-y: visible;
    max-height: none;
  }
}

/* ---------- "My Store" header dropdown ---------- */

.tz-mystore-wrap {
  position: relative;
}

button.tz-mystore {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.tz-mystore-addr {
  font-weight: 400;
  opacity: .92;
}

.tz-mystore-caret {
  transition: transform .18s ease;
}

.tz-mystore-wrap.is-open .tz-mystore-caret {
  transform: rotate(180deg);
}

.tz-mystore-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 620px;
  max-width: calc(100vw - 1.5rem);
  z-index: 1080;
  background: #fff;
  color: var(--tz-ink);
  border: 1px solid var(--tz-line);
  border-radius: .4rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .22);
  text-align: left;
  cursor: default;
}

/* the little pointer under the top-bar chip */
.tz-mystore-panel::before,
.tz-mystore-panel::after {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 42px;
  border: 10px solid transparent;
}

.tz-mystore-panel::before {
  border-bottom-color: var(--tz-line);
}

.tz-mystore-panel::after {
  border-bottom-color: #fff;
  margin-bottom: -1px;
  border-width: 9px;
  right: 43px;
}

.tz-mystore-close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  border: 0;
  background: none;
  color: var(--tz-muted);
  padding: .2rem;
  line-height: 1;
  cursor: pointer;
}

.tz-mystore-close:hover {
  color: var(--tz-ink);
}

.tz-mystore-head {
  padding: 1.1rem 1.25rem .9rem;
  border-bottom: 1px solid var(--tz-line);
}

.tz-mystore-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  padding-right: 1.5rem;
}

.tz-mystore-head h2 span {
  color: var(--tz-muted);
}

.tz-mystore-head .tz-store-rating {
  margin-top: .3rem;
  font-size: .9rem;
}

.tz-mystore-head .tz-stars {
  font-size: 1.05rem;
}

.tz-mystore-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 1.1rem 1.25rem;
  font-size: .95rem;
}

.tz-mystore-address {
  margin: 0 0 .7rem;
  line-height: 1.55;
}

.tz-mystore-phone {
  display: inline-block;
  font-size: 1.05rem;
  color: var(--tz-ink);
  text-decoration: none;
}

.tz-mystore-phone:hover {
  color: var(--tz-red);
}

.tz-mystore-link {
  color: var(--tz-red);
  font-size: .9rem;
  text-decoration: none;
}

.tz-mystore-link:hover {
  text-decoration: underline;
}

.tz-mystore-body h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.tz-mystore-body .tz-hours-row {
  font-size: .95rem;
  padding: .15rem 0;
  justify-content: flex-start;
  gap: 1.5rem;
}

.tz-mystore-body .tz-hours-row span:first-child {
  min-width: 6.5rem;
}

.tz-mystore-mobile {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 1.25rem;
  padding: .9rem 0;
  border-top: 1px solid var(--tz-line);
  font-size: .95rem;
}

.tz-mystore-mobile svg {
  flex: 0 0 auto;
  color: var(--tz-red);
}

.tz-mystore-note {
  margin: 0 1.25rem;
  padding: .9rem 0;
  border-top: 1px solid var(--tz-line);
  font-size: .95rem;
}

.tz-mystore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  padding: .9rem 1.25rem 1rem;
  border-top: 1px solid var(--tz-line);
}

.tz-mystore-actions a {
  color: var(--tz-red);
  font-weight: 800;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-decoration: none;
}

.tz-mystore-actions a:hover {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .tz-mystore-panel {
    position: fixed;
    top: auto;
    left: .75rem;
    right: .75rem;
    width: auto;
    max-width: none;
  }

  .tz-mystore-panel::before,
  .tz-mystore-panel::after {
    display: none;
  }

  .tz-mystore-body {
    grid-template-columns: 1fr;
    gap: .9rem;
  }

  .tz-mystore-actions {
    gap: .9rem 1.25rem;
  }
}

/* The panel sits inside .tz-topbar, whose `a { color:#fff }` rule out-specifies the
   panel's own link colours and renders them white on white. Re-assert them here. */

.tz-mystore-panel a {
  color: var(--tz-red);
  opacity: 1;
  text-decoration: none;
}

.tz-mystore-panel a:hover {
  color: var(--tz-red-dark);
  text-decoration: underline;
}

.tz-mystore-panel .tz-mystore-phone {
  color: var(--tz-ink);
}

.tz-mystore-panel .tz-mystore-phone:hover {
  color: var(--tz-red);
  text-decoration: none;
}

/* ---------- appointment slot picker ---------- */

.tz-slots {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  min-height: 2.2rem;
  align-items: center;
}

.tz-slot {
  border: 1px solid var(--tz-line);
  background: #fff;
  border-radius: .45rem;
  padding: .35rem .7rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--tz-ink);
  cursor: pointer;
  transition: border-color .12s ease, background-color .12s ease, color .12s ease;
}

.tz-slot:hover:not(:disabled) {
  border-color: var(--tz-red);
  color: var(--tz-red);
}

.tz-slot.is-picked {
  background: var(--tz-red);
  border-color: var(--tz-red);
  color: #fff;
}

.tz-slot.is-taken {
  background: var(--tz-bg-soft);
  color: var(--tz-muted);
  text-decoration: line-through;
  cursor: not-allowed;
}

/* ---------- richer map popups ---------- */

.leaflet-popup-content .tz-pop {
  min-width: 250px;
  max-width: 280px;
}

.leaflet-popup-content .tz-pop-code {
  color: var(--tz-muted);
  font-weight: 700;
}

.leaflet-popup-content .tz-pop-rating {
  margin: .15rem 0 .35rem;
  font-size: .82rem;
}

.leaflet-popup-content .tz-pop-rating .tz-stars {
  font-size: .9rem;
}

.leaflet-popup-content .tz-pop-hours {
  margin: .5rem 0;
  padding: .45rem 0;
  border-top: 1px dashed var(--tz-line);
  border-bottom: 1px dashed var(--tz-line);
}

.leaflet-popup-content .tz-pop-hours .tz-hours-row {
  font-size: .78rem;
  padding: .05rem 0;
}

.leaflet-popup-content .tz-pop-tag {
  margin-bottom: .4rem;
}

.leaflet-popup-content .tz-pop-tag .tz-tag {
  margin-left: 0;
}

.leaflet-popup-content .tz-pop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.leaflet-popup-content .tz-pop-actions .btn {
  font-size: .75rem;
  padding: .2rem .5rem;
}

.leaflet-popup-content .tz-pop-meta a {
  color: var(--tz-ink);
  text-decoration: none;
  font-weight: 700;
}

/* ---------- top-bar help line ---------- */

.tz-topbar-right {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-left: auto;
}

.tz-topbar .tz-help {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .18rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  opacity: 1;
}

.tz-topbar .tz-help:hover {
  background: rgba(255, 255, 255, .28);
  text-decoration: none;
}

.tz-topbar .tz-help b {
  font-weight: 800;
  letter-spacing: .01em;
}

.tz-topbar .tz-help svg {
  flex: 0 0 auto;
}

/* ---------- booking wizard ---------- */

.tz-booking-summary {
  border: 1px solid var(--tz-line);
  border-radius: .75rem;
  background: var(--tz-bg-soft);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.tz-summary-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1.1rem;
  font-size: .95rem;
}

.tz-summary-row + .tz-summary-row {
  border-top: 1px solid var(--tz-line);
}

.tz-summary-row svg {
  flex: 0 0 auto;
  color: var(--tz-muted);
}

.tz-summary-row a {
  margin-left: auto;
  font-weight: 700;
  font-size: .85rem;
}

.tz-summary-more {
  color: var(--tz-red);
  font-weight: 700;
  font-size: .85rem;
  cursor: help;
}

/* radio cards for the vehicle step */

.tz-pick-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  height: 100%;
  border: 1px solid var(--tz-line);
  border-radius: .7rem;
  padding: .85rem 1rem;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.tz-pick-card:hover {
  border-color: var(--tz-red);
}

.tz-pick-card input {
  accent-color: var(--tz-red);
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}

.tz-pick-card:has(input:checked) {
  border-color: var(--tz-red);
  box-shadow: 0 0 0 1px var(--tz-red) inset;
}

.tz-pick-title {
  display: block;
  font-weight: 800;
  font-size: .95rem;
}

.tz-pick-desc {
  display: block;
  color: var(--tz-muted);
  font-size: .82rem;
}

/* checkbox cards for the services step */

.tz-service {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  height: 100%;
  border: 1px solid var(--tz-line);
  border-radius: .7rem;
  padding: .85rem 1rem;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.tz-service:hover {
  border-color: var(--tz-red);
}

.tz-service:has(input:checked) {
  border-color: var(--tz-red);
  box-shadow: 0 0 0 1px var(--tz-red) inset;
}

.tz-service-icon {
  flex: 0 0 auto;
  color: var(--tz-gray);
}

.tz-service:has(input:checked) .tz-service-icon {
  color: var(--tz-red);
}

.tz-service-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.tz-service-body {
  flex: 1 1 auto;
  min-width: 0;
}

.tz-service-title {
  display: block;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: .15rem;
}

.tz-service-desc {
  display: block;
  color: var(--tz-muted);
  font-size: .8rem;
  line-height: 1.45;
}

.tz-service-check {
  flex: 0 0 auto;
  margin-top: .15rem;
}

.tz-service-check:checked {
  background-color: var(--tz-red);
  border-color: var(--tz-red);
}

/* ---------- FAQ accordion ---------- */

.tz-faq-section {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, #fff, var(--tz-bg-soft));
  border-top: 1px solid var(--tz-line);
}

.tz-faq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.tz-faq-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--tz-red);
  margin-bottom: .35rem;
}

.tz-faq-eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--tz-red);
}

.tz-faq-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.15rem);
}

.tz-faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.tz-faq {
  border: 1px solid var(--tz-line);
  border-radius: .85rem;
  background: #fff;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.tz-faq:hover {
  border-color: #d8d8dc;
}

.tz-faq[open] {
  border-color: var(--tz-red);
  box-shadow: 0 .5rem 1.5rem rgba(225, 27, 34, .09);
}

.tz-faq > summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  list-style: none;
  transition: color .15s ease;
}

.tz-faq > summary::-webkit-details-marker {
  display: none;
}

.tz-faq > summary:hover,
.tz-faq[open] > summary {
  color: var(--tz-red);
}

.tz-faq > summary:focus-visible {
  outline: 2px solid var(--tz-red);
  outline-offset: -2px;
}

.tz-faq-toggle {
  margin-left: auto;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--tz-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tz-muted);
  transition: transform .25s ease, background-color .2s ease,
              border-color .2s ease, color .2s ease;
}

.tz-faq[open] .tz-faq-toggle {
  transform: rotate(180deg);
  background: var(--tz-red);
  border-color: var(--tz-red);
  color: #fff;
}

.tz-faq-answer {
  padding: 0 1.25rem 1.15rem;
  color: var(--tz-muted);
  font-size: .95rem;
  line-height: 1.65;
  animation: tz-faq-in .22s ease;
}

.tz-faq-answer p {
  margin: 0 0 .7rem;
}

.tz-faq-answer p:last-child {
  margin-bottom: 0;
}

.tz-faq-answer a {
  font-weight: 700;
}

@keyframes tz-faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.tz-faq-group-title {
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tz-muted);
  margin: 2rem 0 .75rem;
}

.tz-faq-group-title:first-child {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .tz-faq-answer { animation: none; }
  .tz-faq-toggle { transition: none; }
}

/* ---------- Learn hub ---------- */

.tz-learn-hero {
  background: linear-gradient(135deg, var(--tz-ink), #3a3b40);
  color: #fff;
  border-radius: 1rem;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem);
  margin-bottom: 2.5rem;
}

.tz-learn-hero h1 {
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem);
  margin-bottom: .6rem;
}

.tz-learn-hero h1 span {
  color: #ff5a60;
}

.tz-learn-hero p {
  opacity: .85;
  max-width: 40rem;
  margin: 0;
}

.tz-learn-search {
  margin-top: 1.5rem;
  max-width: 30rem;
  position: relative;
}

.tz-learn-search input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.1rem .7rem 2.6rem;
  font-size: .95rem;
}

.tz-learn-search input:focus {
  outline: 3px solid rgba(255, 90, 96, .55);
}

.tz-learn-search svg {
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--tz-muted);
  pointer-events: none;
}

.tz-cat-tile {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--tz-line);
  border-radius: .85rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tz-cat-tile:hover {
  color: inherit;
  border-color: var(--tz-red);
  box-shadow: 0 .5rem 1.25rem rgba(225, 27, 34, .1);
  transform: translateY(-2px);
}

.tz-cat-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: .6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tz-red-soft);
  color: var(--tz-red);
}

.tz-cat-icon svg {
  width: 20px;
  height: 20px;
}

.tz-cat-tile h3 {
  font-size: .98rem;
  font-weight: 800;
  margin: 0 0 .2rem;
}

.tz-cat-tile p {
  margin: 0;
  font-size: .82rem;
  color: var(--tz-muted);
  line-height: 1.5;
}

.tz-cat-count {
  display: block;
  margin-top: .4rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tz-red);
}

.tz-guide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--tz-line);
  border-radius: .85rem;
  background: #fff;
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tz-guide-card:hover {
  color: inherit;
  border-color: var(--tz-red);
  box-shadow: 0 .5rem 1.25rem rgba(225, 27, 34, .1);
  transform: translateY(-2px);
}

.tz-guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--tz-muted);
}

.tz-guide-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  margin: 0 0 .4rem;
  letter-spacing: -0.01em;
}

.tz-guide-card p {
  margin: 0;
  font-size: .875rem;
  color: var(--tz-muted);
  line-height: 1.55;
}

.tz-guide-more {
  margin-top: auto;
  padding-top: .8rem;
  font-size: .82rem;
  font-weight: 800;
  color: var(--tz-red);
}

.tz-guide-featured {
  border: 1px solid var(--tz-line);
  border-left: 4px solid var(--tz-red);
  border-radius: .85rem;
  background: #fff;
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  transition: box-shadow .15s ease;
}

.tz-guide-featured:hover {
  color: inherit;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
}

.tz-guide-featured h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: .3rem 0 .5rem;
}

.tz-section-title {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin: 2.5rem 0 1rem;
}

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

.tz-section-title a {
  margin-left: auto;
  font-size: .85rem;
  font-weight: 700;
}

/* article page */

.tz-article {
  max-width: 46rem;
}

.tz-article h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  margin-bottom: .5rem;
}

.tz-article-lead {
  font-size: 1.05rem;
  color: var(--tz-muted);
  line-height: 1.6;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--tz-line);
  margin-bottom: 1.4rem;
}

.tz-article-body p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.tz-article-body a {
  font-weight: 700;
}

.tz-learn-empty {
  display: none;
}

/* ---------- icon picker (guide categories) ---------- */

.tz-icon-choice {
  width: 44px;
  height: 44px;
  border: 1px solid var(--tz-line);
  border-radius: .6rem;
  background: #fff;
  color: var(--tz-gray);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.tz-icon-choice:hover {
  border-color: var(--tz-red);
  color: var(--tz-red);
}

.tz-icon-choice.is-picked {
  border-color: var(--tz-red);
  background: var(--tz-red-soft);
  color: var(--tz-red);
  box-shadow: 0 0 0 1px var(--tz-red) inset;
}

.tz-icon-choice svg {
  width: 20px;
  height: 20px;
}
