/* =========================================================
   OUR STORES
   ========================================================= */

/* Hero */
.stores-hero-title { max-width: 400px; }
.stores-hero-text { margin-top: 20px; }

/* Find a store */
.stores-find { margin: 60px 0; }
.stores-find-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}
.stores-find-intro {
  flex: 0 1 50%;
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.stores-round-logo img {
  display: block;
  width: 100%;
  max-width: 75px;
  height: auto;
  transition: transform .4s;
}
.stores-round-logo:hover img { transform: rotate(360deg); }
.stores-find-title {
  width: 440px;
  max-width: 440px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--primary);
}
.stores-find-aside {
  flex: 0 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
}
.stores-find-tagline {
  width: 270px;
  max-width: 270px;
  margin: 0 0 2px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--primary);
  text-align: right;
}

/* Store finder – searchable list on the left, map on the right */
.finder {
  display: grid;
  grid-template-columns: 4fr 8fr;
  min-height: 640px;
  border: 3px solid var(--primary);
  background: var(--white);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .15);
}
.finder-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff9f0;
  border-right: 3px solid var(--primary);
}
.finder-top {
  padding: 20px;
  background: var(--white);
  border-bottom: 3px solid var(--primary);
}
.finder-search {
  display: flex;
  border: 2px solid var(--black);
}
.finder-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 16px;
}
.finder-search input:focus { outline: 0; }
.finder-search:focus-within { box-shadow: 0 0 0 3px rgba(246, 169, 48, .5); }
.finder-search-btn {
  width: 52px;
  border: 0;
  background: var(--primary);
  color: var(--white);
  font-size: 18px;
}
.finder-search-btn:hover { background: var(--black); }
.finder-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.finder-count,
.finder-link {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}
.finder-count { color: #6b6b6b; }
.finder-link {
  padding: 0;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: none;
  color: var(--primary);
}
.finder-link:hover { color: var(--black); }

.finder-list {
  flex: 1;
  max-height: 560px;
  overflow-y: auto;
}
.finder-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid #ecdcc4;
  background: transparent;
  text-align: left;
  font-family: var(--font);
}
.finder-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: var(--primary);
  transition: width .15s ease;
}
.finder-card:hover,
.finder-card.is-on { background: var(--white); }
.finder-card.is-on::before { width: 6px; }
.finder-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.finder-card-name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--primary);
}
.finder-card-dist {
  font-size: 14px;
  font-weight: 800;
  color: var(--secondary);
  white-space: nowrap;
}
.finder-card-addr {
  display: block;
  margin: 6px 0 8px;
  font-size: 15px;
  line-height: 1.45;
  color: #444;
}
.finder-card-phone {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}
/* Invisible button stretched over the card – selects the store on the map */
.finder-card-select {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.finder-card-select:focus-visible { outline: 3px solid var(--secondary); outline-offset: -3px; }
.finder-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.finder-card .finder-card-order {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 15px;
  white-space: nowrap;
}
.finder-card .finder-card-order:hover,
.finder-card .finder-card-order:focus-visible { transform: translateY(-3px); }
.finder-empty { padding: 30px 20px; color: #555; }
.finder-empty b {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: var(--primary);
}
.finder-empty .btn-page { font-size: 16px; }

.finder-map {
  position: relative;
  min-height: 430px;
}
#storeMap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #eee6da;
  font-family: var(--font);
}
.finder-note {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 500;
  padding: 6px 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}
.finder-pin {
  position: relative;
  width: 54px;
  height: 60px;
  transform-origin: 50% 100%;
  transition: transform .16s ease;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35));
}
/* Red drop: a square with three rounded corners, turned so the point faces down */
.finder-pin::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  background: var(--primary);
  border: 2px solid var(--white);
  border-radius: 50% 50% 50% 0;
  transform: translate(0, 1px) rotate(-45deg) scale(.82);
  transform-origin: 50% 50%;
}
.finder-pin-logo {
  position: absolute;
  top: 10px;
  left: 9px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white);
}
/* Leaflet sets marker images to width: auto, so this needs the extra class */
.finder-pin .finder-pin-logo img { width: 30px; height: auto; }
.finder-pin:hover { transform: translateY(-4px) scale(1.06); }
.finder-pin.is-on { transform: translateY(-5px) scale(1.2); }

.finder-detail {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 600;
  display: none;
  width: 340px;
  padding: 20px;
  background: var(--white);
  border-top: 6px solid var(--primary);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.finder-detail.is-open { display: block; animation: finderSnap .18s ease-out both; }
@keyframes finderSnap { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .finder-detail.is-open { animation: none; }
  .finder-pin, .finder-card::before { transition: none; }
}
.finder-detail-name {
  margin: 0 30px 12px 0;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--primary);
}
.finder-detail-line { display: flex; align-items: flex-start; margin: 0 0 6px; font-size: 15px; }
.finder-detail-line i { flex: 0 0 auto; color: var(--primary); margin-right: 8px; }
#dHours { white-space: pre-line; }
.finder-detail-line a { color: var(--black); font-weight: 700; text-decoration: none; }
.finder-detail-line a:hover { color: var(--primary); }
.finder-detail-buttons { display: flex; gap: 10px; margin-top: 16px; }
.finder-btn { flex: 1 1 50%; padding: 10px 12px; font-size: 16px; text-align: center; white-space: nowrap; }
.finder-detail-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
}
.finder-detail-close:hover { background: var(--primary); }

/* Shared two-column rows (coming soon / franchise) */
.stores-row {
  display: flex;
  gap: 60px;
}

/* Coming soon */
.stores-soon { margin-top: 80px; }
.stores-soon-art {
  flex: 0 1 40%;
  text-align: center;
}
.stores-soon-art img {
  width: 100%;
  max-width: 100%;
  height: auto;
}
.stores-soon-content {
  flex: 0 1 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stores-soon-block { margin-top: -40px; }
.stores-soon-title { width: 70%; }

/* Franchise */
.stores-franchise { margin: 30px 0 60px; }
.stores-franchise-content {
  flex: 0 1 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.stores-franchise-title { width: 70%; }
.stores-franchise-buttons { margin-top: 10px; }
.stores-franchise-art {
  flex: 0 1 60%;
  text-align: center;
}
.stores-franchise-art img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* Hero mark – map pin with a highlighter underline */
.stores-mark {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  column-gap: 14px;
  margin: 0 0 26px;
  font-family: var(--font-heading);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
}
.stores-mark-pin {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 92px;
  color: var(--primary);
  animation: storesPinBounce 2.4s ease-in-out infinite;
}
.stores-mark-sm {
  font-size: 26px;
  letter-spacing: 6px;
  color: var(--black);
}
.stores-mark-lg {
  justify-self: start;
  font-size: 84px;
  color: var(--primary);
}
@keyframes storesPinBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .stores-mark-pin { animation: none; }
}
