/* Bellstore franchise landing v2 */

.bellstore-franchise-host {
  display: none;
}

html.is-franchise-page .bellstore-franchise-host {
  display: block;
  position: fixed;
  z-index: 25;
  top: var(--header-height, 50px);
  left: 0;
  right: 0;
  bottom: var(--tab-bar-offset, calc(68px + env(safe-area-inset-bottom, 0px)));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 10px 10px 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 88, 230, 0.06), transparent 42%),
    var(--bg-base, #f2f2f4);
}

html.is-desktop-layout.is-franchise-page .bellstore-franchise-host {
  bottom: 0;
  padding: 16px 20px 40px;
}

html.is-franchise-page .main-content .page-enter {
  visibility: hidden !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.bellstore-franchise-host .page-franchise {
  max-width: 1100px;
  margin: 0 auto;
}

.page-franchise {
  --fr-ink: #172033;
  --fr-muted: rgba(60, 60, 67, 0.62);
  --fr-blue: #0058e6;
  --fr-blue-deep: #0047c2;
  padding: 8px 0 36px;
  color: var(--fr-ink);
}

.page-franchise__hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 28px;
  padding: clamp(28px, 5vw, 44px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(circle at 88% 12%, rgba(147, 197, 253, 0.55), transparent 34%),
    linear-gradient(145deg, #075bd8 0%, #1677ee 48%, #7eb6f8 125%);
  box-shadow:
    0 18px 45px rgba(16, 92, 196, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  color: #fff;
}

.page-franchise__hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: 8%;
  bottom: -160px;
  border: 36px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.page-franchise__brand {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.page-franchise__hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 750;
}

.page-franchise__hero p {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
}

.page-franchise__hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-franchise__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill, 999px);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.page-franchise__btn:active {
  transform: scale(0.98);
}

.page-franchise__btn--primary {
  background: #fff;
  color: var(--fr-blue-deep);
  box-shadow: 0 8px 22px rgba(12, 56, 120, 0.18);
}

.page-franchise__btn--primary:hover {
  background: #f4f8ff;
}

.page-franchise__btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-franchise__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.page-franchise__btn--solid {
  background: var(--fr-blue);
  color: #fff;
}

.page-franchise__btn--solid:hover {
  background: var(--fr-blue-deep);
}

.page-franchise__btn--outline {
  background: rgba(255, 255, 255, 0.72);
  color: var(--fr-ink);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.page-franchise__section {
  margin: 0 0 28px;
}

.page-franchise__section > h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.page-franchise__section > .page-franchise__lead {
  margin: 0 0 18px;
  max-width: 620px;
  color: var(--fr-muted);
  font-size: 14px;
  line-height: 1.5;
}

.page-franchise__reasons {
  display: grid;
  gap: 12px;
}

@media (min-width: 760px) {
  .page-franchise__reasons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-franchise__reason {
  padding: 18px 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(45, 62, 85, 0.06);
}

.page-franchise__reason-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: rgba(0, 88, 230, 0.1);
  color: var(--fr-blue);
  font-size: 13px;
  font-weight: 750;
}

.page-franchise__reason h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.page-franchise__reason p {
  margin: 0;
  color: var(--fr-muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-franchise__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-franchise__city {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill, 999px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--fr-ink);
  font-size: 13px;
  font-weight: 600;
}

.page-franchise__benefits {
  display: grid;
  gap: 14px;
}

.page-franchise__benefit {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 4px 2px;
}

.page-franchise__benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(0, 88, 230, 0.1);
  color: var(--fr-blue);
}

.page-franchise__benefit-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-franchise__benefit h3 {
  margin: 2px 0 6px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.page-franchise__benefit p {
  margin: 0;
  color: var(--fr-muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-franchise__note {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(0, 88, 230, 0.06);
  border: 1px solid rgba(0, 88, 230, 0.1);
  color: rgba(23, 32, 51, 0.78);
  font-size: 13px;
  line-height: 1.5;
}

.page-franchise__cta {
  padding: clamp(22px, 4vw, 32px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(147, 197, 253, 0.35), transparent 40%),
    rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 32px rgba(45, 62, 85, 0.08);
}

.page-franchise__cta h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.5vw, 28px);
  letter-spacing: -0.035em;
}

.page-franchise__cta p {
  margin: 0 0 18px;
  max-width: 520px;
  color: var(--fr-muted);
  font-size: 14px;
  line-height: 1.5;
}

.page-franchise__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-franchise__presentation {
  display: none;
}

.page-franchise__presentation.is-visible {
  display: block;
}

.header-nav-segment-item[data-bellstore-franchise],
.header-nav-item[data-bellstore-franchise] {
  opacity: 0.92;
}

.header-nav-segment-item[data-bellstore-franchise].active,
.header-nav-item[data-bellstore-franchise].active {
  opacity: 1;
}

.page-franchise__city--partner {
  background: rgba(0, 88, 230, 0.08);
  border-color: rgba(0, 88, 230, 0.12);
}

.page-franchise__map-layout {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .page-franchise__map-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.9fr);
    align-items: stretch;
  }
}

.page-franchise__map-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #eef1f5;
  box-shadow:
    0 18px 42px rgba(45, 62, 85, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  min-height: 360px;
}

.page-franchise__map {
  width: 100%;
  height: min(58vh, 480px);
  min-height: 340px;
  background: #eef1f5;
}

.page-franchise__map-legend {
  position: absolute;
  z-index: 500;
  left: 12px;
  top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(23, 32, 51, 0.82);
  font-size: 11px;
  font-weight: 600;
}

.page-franchise__map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.franchise-map-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.franchise-map-dot--own {
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.28);
}

.franchise-map-dot--partner {
  background: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.22);
}

.franchise-map-dot--available {
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.28);
}

.page-franchise__map-side {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 24px rgba(45, 62, 85, 0.06);
}

.page-franchise__map-side h3 {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.page-franchise__avail-note {
  margin: 0 0 12px;
  color: var(--fr-muted);
  font-size: 12px;
  line-height: 1.4;
}

.page-franchise__avail {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.page-franchise__map-empty {
  margin: 0;
  color: var(--fr-muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-franchise__avail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-franchise__avail-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: 16px;
  background: rgba(0, 88, 230, 0.05);
  border: 1px solid rgba(0, 88, 230, 0.08);
}

.page-franchise__avail-item strong {
  display: block;
  font-size: 14px;
}

.page-franchise__avail-item span {
  display: block;
  margin-top: 2px;
  color: var(--fr-muted);
  font-size: 12px;
}

.page-franchise__avail-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.page-franchise__avail-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--fr-blue);
  white-space: nowrap;
}

.page-franchise__avail-meta a {
  font-size: 12px;
  font-weight: 650;
  color: var(--fr-blue-deep);
  text-decoration: none;
}

.page-franchise__map-fallback {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 500;
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 16, 28, 0.88);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
}

.franchise-map-marker {
  background: transparent !important;
  border: none !important;
}

.franchise-map-pin {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
}

.franchise-map-pin__core {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.franchise-map-pin__ring {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.45);
}

.franchise-map-pin--partner .franchise-map-pin__core {
  background: #93c5fd;
}

.franchise-map-pin--partner .franchise-map-pin__ring {
  border-color: rgba(147, 197, 253, 0.5);
}

.franchise-map-pin--available .franchise-map-pin__core {
  background: #34d399;
}

.franchise-map-pin--available .franchise-map-pin__ring {
  border-color: rgba(52, 211, 153, 0.55);
  animation: franchise-pin-pulse 1.8s ease-out infinite;
}

@keyframes franchise-pin-pulse {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

.franchise-map-leaflet-popup .leaflet-popup-content-wrapper {
  border-radius: 16px;
  background: rgba(12, 18, 30, 0.96);
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.franchise-map-leaflet-popup .leaflet-popup-tip {
  background: rgba(12, 18, 30, 0.96);
}

.franchise-map-leaflet-popup .leaflet-popup-content {
  margin: 12px 14px;
  font-size: 13px;
  line-height: 1.35;
}

.franchise-map-leaflet-popup a.leaflet-popup-close-button {
  color: rgba(255, 255, 255, 0.65);
}

.franchise-map-popup strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.franchise-map-popup__status {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 600;
}

.franchise-map-popup__price {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.franchise-map-popup__cta {
  display: inline-flex;
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #0058e6;
  color: #fff !important;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none !important;
}

.page-franchise__map .leaflet-control-zoom {
  border: none !important;
  box-shadow: none !important;
}

.page-franchise__map .leaflet-control-zoom a {
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #172033 !important;
  border-radius: 10px !important;
}

.page-franchise__map .leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.82) !important;
  color: rgba(23, 32, 51, 0.45) !important;
  font-size: 10px !important;
}

.page-franchise__map .leaflet-control-attribution a {
  color: rgba(23, 32, 51, 0.55) !important;
}

.page-franchise__hero-pills {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.page-franchise__hero-pills li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 12px;
  font-weight: 650;
}

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

@media (min-width: 760px) {
  .page-franchise__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-franchise__stat {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(45, 62, 85, 0.06);
}

.page-franchise__stat strong {
  display: block;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.04em;
  color: var(--fr-blue);
}

.page-franchise__stat span {
  display: block;
  margin-top: 4px;
  color: var(--fr-muted);
  font-size: 13px;
}

.page-franchise__reasons--5 {
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .page-franchise__reasons--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .page-franchise__reasons--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-franchise__timeline,
.page-franchise__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 760px) {
  .page-franchise__timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

.page-franchise__timeline li,
.page-franchise__steps li {
  padding: 16px 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.page-franchise__timeline strong,
.page-franchise__steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.page-franchise__timeline span,
.page-franchise__steps span {
  color: var(--fr-muted);
  font-size: 13px;
  line-height: 1.45;
}

.page-franchise__formats,
.page-franchise__examples {
  display: grid;
  gap: 12px;
}

@media (min-width: 800px) {
  .page-franchise__formats,
  .page-franchise__examples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-franchise__format,
.page-franchise__example {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 24px rgba(45, 62, 85, 0.05);
}

.page-franchise__format--featured {
  border-color: rgba(0, 88, 230, 0.22);
  box-shadow: 0 14px 34px rgba(0, 88, 230, 0.12);
}

.page-franchise__format h3,
.page-franchise__example h3 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.page-franchise__format ul {
  margin: 0 0 16px;
  padding: 0 0 0 18px;
  color: var(--fr-muted);
  font-size: 13px;
  line-height: 1.5;
}

.page-franchise__example p {
  margin: 0 0 14px;
  color: var(--fr-muted);
  font-size: 13px;
  line-height: 1.45;
}

.page-franchise__inline-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.page-franchise__inline-cta p {
  margin: 0;
  color: var(--fr-muted);
  font-size: 14px;
}

.page-franchise__calc {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.page-franchise__calc label {
  display: grid;
  grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.page-franchise__calc input[type="range"] {
  width: 100%;
  accent-color: var(--fr-blue);
}

.page-franchise__calc-result {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 88, 230, 0.07);
  font-size: 15px;
}

.page-franchise__calc-result strong {
  color: var(--fr-blue);
}

.page-franchise__city-check {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

.page-franchise__city-check input {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font: inherit;
}

.page-franchise__city-result {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.page-franchise__city-result.is-free {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.page-franchise__city-result.is-taken {
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.18);
}

.page-franchise__city-result.is-unknown {
  background: rgba(0, 88, 230, 0.06);
  border: 1px solid rgba(0, 88, 230, 0.12);
}

.page-franchise__city-result a {
  color: var(--fr-blue-deep);
  font-weight: 650;
}

@media (max-width: 720px) {
  .page-franchise {
    padding-bottom: 24px;
  }

  .page-franchise__hero {
    padding: 24px 20px 26px;
    border-radius: 24px;
  }

  .page-franchise__hero-actions,
  .page-franchise__cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-franchise__btn {
    width: 100%;
  }

  .page-franchise__map {
    height: 52vh;
    min-height: 300px;
  }

  .page-franchise__map-legend {
    left: 8px;
    right: 8px;
    top: 8px;
    justify-content: center;
  }

  .page-franchise__avail-item {
    flex-direction: column;
    align-items: stretch;
  }

  .page-franchise__avail-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-franchise__calc label {
    grid-template-columns: 1fr 36px;
    grid-template-rows: auto auto;
  }

  .page-franchise__calc label input[type="range"] {
    grid-column: 1 / -1;
  }
}
