/* Scoped under .ff-home-map — do not restyle site html/body */
.ff-home-map {
  --ff-green: #1f4d3a;
  --ff-green-hover: #16382a;
  --ff-graphite: #2a2a28;
  --ff-milk: #f6f3ec;
  --ff-milk-soft: rgba(246, 243, 236, 0.94);
  --ff-gold: #c4a574;
  --ff-shadow: 0 18px 48px rgba(26, 28, 24, 0.22);
  --ff-radius: 24px;
  --ff-dim: rgba(10, 12, 14, 0.22);
  --ff-font: "Segoe UI", "PT Root UI", "Manrope", system-ui, sans-serif;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  font-family: var(--ff-font);
  color: var(--ff-graphite);
  background: #171714;
  overflow: hidden;
}

.ff-home-map *,
.ff-home-map *::before,
.ff-home-map *::after {
  box-sizing: border-box;
}

.ff-home-map .ff-proto-banner,
.ff-home-map .ff-below {
  display: none !important;
}

.ff-home-map .formaf-map-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #171714;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  container-type: size;
  container-name: ff-map;
}

/*
 * Default framing: JS scrolls the page 1:1 in pointermove (see formaf-map.js).
 * Keep touch-action:none so the browser does not steal the gesture / fight pan.
 */
.ff-home-map .formaf-map-viewport.is-page-scroll {
  touch-action: none;
}

/* Tip: fixed below site header so sticky chrome never covers it */
.ff-home-map .ff-tip {
  position: fixed;
  top: calc(var(--header-h, 72px) + 12px);
  left: 50%;
  right: auto;
  width: min(440px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  transform: translateX(-50%);
  z-index: calc(var(--z-header, 50) + 5);
  margin-inline: 0;
}

.ff-home-map .ff-tip.is-hidden {
  transform: translateX(-50%) translateY(-8px);
}

.ff-home-map .ff-tip__more-mobile {
  display: none;
}

.ff-home-map .ff-cats-panel {
  top: max(10px, env(safe-area-inset-top, 0px));
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

.ff-home-map .ff-svc-panel {
  bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

.ff-home-map .ff-chrome {
  bottom: 0;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

/* Center strip: native vertical page scroll without fighting map pan */
.ff-home-map .ff-page-scroll-edge {
  position: absolute;
  left: 112px;
  right: 72px;
  bottom: 0;
  height: 44px;
  z-index: 31;
  touch-action: pan-y;
  pointer-events: auto;
  background: transparent;
}

@media (max-width: 820px) {
  .ff-home-map .ff-cats-panel {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .ff-home-map .ff-svc-panel {
    bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }

  .ff-home-map .formaf-map-viewport.is-sheet-open .ff-chrome {
    padding-bottom: calc(min(34cqh, 250px) + 12px);
  }

  .ff-home-map .formaf-map-viewport.is-sheet-open .ff-page-scroll-edge {
    display: none;
  }

  .ff-home-map .ff-sheet {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
}

.formaf-map-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1672px;
  height: 941px;
  transform-origin: 0 0;
  will-change: transform;
}

/*
 * First-paint preview: same framing as fitMap() (cover).
 * Desktop ≥1100px: center crop; mobile: bottom-aligned (plaza / fountain).
 * Hidden once data-ff-map-ready after JS applies the matching transform.
 */
.ff-map-paint-preview {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 1100px) {
  .ff-map-paint-preview {
    object-position: center center;
  }
}

.formaf-map-viewport:not([data-ff-map-ready='1']) .formaf-map-stage {
  opacity: 0;
  pointer-events: none;
}

.formaf-map-viewport:not([data-ff-map-ready='1']) .ff-chrome,
.formaf-map-viewport:not([data-ff-map-ready='1']) .ff-markers,
.formaf-map-viewport:not([data-ff-map-ready='1']) .ff-hit-layer,
.formaf-map-viewport:not([data-ff-map-ready='1']) .ff-overlay,
.formaf-map-viewport:not([data-ff-map-ready='1']) .ff-dim {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}

.formaf-map-viewport[data-ff-map-ready='1'] .ff-map-paint-preview {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.formaf-map-viewport[data-ff-map-ready='1'] .formaf-map-stage {
  opacity: 1;
}

.ff-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.ff-layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  object-position: 0 0;
  display: block;
  /* Prevent subpixel reflow / aspect jump between layers */
  image-rendering: auto;
}

.ff-base {
  z-index: 1;
}

.ff-dim {
  z-index: 2;
  background: var(--ff-dim);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.ff-dim.is-on {
  opacity: 1;
}

/* Plain photo layer — only opacity fade, no blend/filters */
.ff-overlay {
  z-index: 3;
  opacity: 0;
  transition: opacity 0.85s ease-in-out;
  pointer-events: none;
}

.ff-overlay.is-on {
  opacity: 1;
}

.ff-overlay img {
  object-fit: fill;
  object-position: 0 0;
  width: 100%;
  height: 100%;
}

/* legacy selectors unused in glow template */
.ff-masked,
.ff-state-a,
.ff-state-b {
  display: none !important;
}

.ff-hit-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  /* Hit-test goes through JS mask; buttons must not block pan/zoom */
  pointer-events: none;
}

.ff-bbox-hotspot {
  position: absolute;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
}

.ff-bbox-hotspot:focus-visible {
  outline: 2px solid rgba(246, 243, 236, 0.7);
  outline-offset: 2px;
  opacity: 0.2;
  background: rgba(246, 243, 236, 0.12);
}

.ff-markers {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.ff-marker {
  position: absolute;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  display: grid;
  place-items: center;
}

.ff-marker__ring,
.ff-marker__dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ff-marker__ring {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(246, 243, 236, 0.55);
  opacity: 0.55;
  animation: ff-pulse-ring 2.8s ease-out infinite;
}

.ff-marker__dot {
  width: 11px;
  height: 11px;
  background: rgba(246, 243, 236, 0.92);
  box-shadow:
    0 0 0 3px rgba(31, 77, 58, 0.35),
    0 0 14px rgba(246, 243, 236, 0.45);
  animation: ff-pulse-dot 2.8s ease-in-out infinite;
}

.ff-marker:nth-child(3n) .ff-marker__ring,
.ff-marker:nth-child(3n) .ff-marker__dot {
  animation-delay: 0.45s;
}

.ff-marker:nth-child(3n + 1) .ff-marker__ring,
.ff-marker:nth-child(3n + 1) .ff-marker__dot {
  animation-delay: 0.9s;
}

.ff-marker:nth-child(3n + 2) .ff-marker__ring,
.ff-marker:nth-child(3n + 2) .ff-marker__dot {
  animation-delay: 1.35s;
}

.ff-marker:hover .ff-marker__dot,
.ff-marker.is-active .ff-marker__dot,
.ff-marker:focus-visible .ff-marker__dot {
  background: #fff;
  transform: scale(1.2);
  box-shadow:
    0 0 0 4px rgba(31, 77, 58, 0.45),
    0 0 18px rgba(246, 243, 236, 0.7);
  animation: none;
}

.ff-marker.is-active .ff-marker__ring {
  border-color: rgba(255, 255, 255, 0.85);
  animation: ff-pulse-ring-active 1.8s ease-out infinite;
}

.ff-marker:focus-visible {
  outline: none;
}

@keyframes ff-pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes ff-pulse-ring {
  0% {
    transform: scale(0.7);
    opacity: 0.55;
  }
  70% {
    transform: scale(1.55);
    opacity: 0;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@keyframes ff-pulse-ring-active {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.ff-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-left: auto;
}

.ff-controls button {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(246, 243, 236, 0.94);
  color: var(--ff-graphite);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--ff-shadow);
}

.ff-controls button:hover {
  background: #fff;
}

/* Bottom chrome — always inside viewport */
.ff-chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 33;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding:
    10px
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  pointer-events: none;
  background: linear-gradient(to top, rgba(12, 14, 12, 0.45), transparent 70%);
}

.ff-chrome > * {
  pointer-events: auto;
}

/* Hint tip */
.ff-tip {
  position: absolute;
  left: 50%;
  right: auto;
  top: max(12px, env(safe-area-inset-top));
  z-index: 40;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  width: min(440px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  margin-inline: 0;
  padding: 12px 12px 12px 14px;
  border: 1px solid rgba(246, 243, 236, 0.18);
  border-radius: 18px;
  background: rgba(18, 20, 16, 0.88);
  color: #f4efe6;
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  transition: opacity 0.35s ease, transform 0.35s ease;
  box-sizing: border-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
  transform: translateX(-50%);
  animation: ff-tip-in 0.55s ease both;
}

.ff-tip__text {
  flex: 1 1 auto;
  min-width: 0;
}

.ff-tip__more-mobile {
  display: none;
}

.ff-tip__text strong {
  display: inline;
  font-weight: 700;
  color: #fff;
}

.ff-tip__kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.15em;
  padding: 0 4px;
  margin: 0 1px;
  border-radius: 5px;
  border: 1px solid rgba(246, 243, 236, 0.28);
  background: rgba(246, 243, 236, 0.12);
  font-size: 12px;
  line-height: 1.35;
  vertical-align: baseline;
}

@keyframes ff-tip-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.ff-tip.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(-8px);
  animation: none;
  visibility: hidden;
}

.ff-tip__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(196, 165, 116, 0.22);
  color: #e8d4b0;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.ff-tip__close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(246, 243, 236, 0.12);
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  opacity: 0.9;
  flex-shrink: 0;
  line-height: 1;
}

.ff-tip__close:hover {
  background: rgba(246, 243, 236, 0.22);
}

/* First-visit: pulse markers so objects look tappable */
.formaf-map-viewport.is-hinting .ff-marker__ring {
  animation: ff-hint-ring 1.5s ease-in-out infinite;
}

.formaf-map-viewport.is-hinting .ff-marker__dot {
  animation: ff-hint-dot 1.5s ease-in-out infinite;
}

/* FormaF center point — stronger first-visit nudge */
.ff-marker--formaf .ff-marker__nudge {
  display: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(18, 20, 16, 0.92);
  color: #f4efe6;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(196, 165, 116, 0.45);
}

.ff-marker--formaf .ff-marker__nudge::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: rgba(18, 20, 16, 0.92);
}

.formaf-map-viewport.is-hinting .ff-marker--formaf {
  z-index: 50 !important;
}

.formaf-map-viewport.is-hinting .ff-marker--formaf .ff-marker__nudge {
  display: block;
  animation: ff-nudge-in 0.5s ease both;
}

.formaf-map-viewport.is-hinting .ff-marker--formaf .ff-marker__ring {
  animation: ff-hint-ring-strong 1.2s ease-in-out infinite;
  border-color: rgba(196, 165, 116, 0.95);
}

.formaf-map-viewport.is-hinting .ff-marker--formaf .ff-marker__dot {
  animation: ff-hint-dot-strong 1.2s ease-in-out infinite;
  background: #c4a574;
}

@keyframes ff-nudge-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes ff-hint-ring-strong {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.95;
  }
  50% {
    transform: scale(1.45);
    opacity: 0.35;
  }
}

@keyframes ff-hint-dot-strong {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes ff-hint-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.4;
  }
}

@keyframes ff-hint-dot {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

/* Categories + Services FABs */
.ff-fabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  flex-shrink: 0;
}

.ff-cats-fab {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(246, 243, 236, 0.94);
  color: var(--ff-graphite);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--ff-shadow);
  flex-shrink: 0;
}

.ff-cats-fab[aria-expanded="true"] {
  background: #fff;
}

.ff-svc-fab {
  background: rgba(232, 240, 232, 0.96);
}

/* Category / service list — pinned top→above FABs, scrollable (no scrollbar) */
.ff-cats-panel {
  position: absolute;
  left: max(12px, env(safe-area-inset-left));
  right: auto;
  top: max(12px, env(safe-area-inset-top));
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 34;
  width: min(270px, calc(100% - 24px));
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4px;
  border: 0;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ff-svc-panel {
  /* room above both fabs while services list is open */
  bottom: calc(120px + env(safe-area-inset-bottom, 0px));
}

.ff-cats-panel::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.ff-cats-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ff-cats-panel__list {
  list-style: none;
  margin: 0;
  padding: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ff-cats-panel__btn {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(22, 24, 20, 0.38);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f7f3ea;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.ff-cats-panel__btn:hover,
.ff-cats-panel__btn:focus-visible {
  background: rgba(246, 243, 236, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
  outline: none;
  transform: translateX(2px);
}

  .ff-cats-panel__btn.is-active {
  color: #fff;
  font-weight: 700;
  background: rgba(246, 243, 236, 0.24);
  border-color: rgba(255, 255, 255, 0.28);
}

.ff-cats-panel__btn.is-pending-media {
  opacity: 0.78;
}

.ff-scroll-hint {
  display: none;
}

.ff-card {
  position: absolute;
  z-index: 35;
  left: 12px;
  top: 12px;
  width: min(340px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 20px 18px;
  border-radius: var(--ff-radius);
  background: var(--ff-milk-soft);
  color: var(--ff-graphite);
  box-shadow: var(--ff-shadow);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  box-sizing: border-box;
}

.ff-card.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ff-card__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ff-graphite);
  font-size: 22px;
  cursor: pointer;
}

.ff-card__title {
  margin: 0 28px 8px 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ff-card__eyebrow,
.ff-sheet__eyebrow {
  margin: 0 28px 6px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ff-green);
}

.ff-card__actions,
.ff-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.ff-card__actions .ff-card__cta,
.ff-sheet__actions .ff-card__cta {
  flex: 1 1 auto;
  min-width: 120px;
}

.ff-card__actions .ff-card__cta--icon,
.ff-sheet__actions .ff-card__cta--icon {
  flex: 0 0 44px;
  min-width: 44px;
  max-width: 44px;
}

.ff-card__cta.ff-card__cta--ghost,
a.ff-card__cta--ghost {
  background: transparent;
  color: var(--ff-green);
  border: 1.5px solid rgba(31, 77, 58, 0.35);
  box-shadow: none;
}

.ff-card__cta.ff-card__cta--ghost:hover,
a.ff-card__cta--ghost:hover {
  background: rgba(31, 77, 58, 0.08);
  color: var(--ff-green-hover);
}

.ff-card--company {
  width: min(400px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  padding: 22px 22px 20px;
  border: 1px solid rgba(31, 77, 58, 0.14);
  background:
    linear-gradient(165deg, rgba(255, 252, 246, 0.98) 0%, rgba(241, 245, 239, 0.96) 100%);
  box-shadow:
    0 22px 56px rgba(26, 28, 24, 0.28),
    0 0 0 1px rgba(196, 165, 116, 0.18);
}

.ff-card--company .ff-card__title {
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--ff-green);
}

.ff-card--company .ff-card__text {
  font-size: 14px;
  line-height: 1.55;
}

.ff-company-grid {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ff-company-grid[hidden] {
  display: none !important;
}

.ff-company-grid__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 10px 9px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 77, 58, 0.1);
}

.ff-company-grid__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(31, 77, 58, 0.1);
  color: var(--ff-green);
}

.ff-company-grid__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ff-company-grid__body {
  min-width: 0;
}

.ff-company-grid__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ff-graphite);
  line-height: 1.25;
  margin-bottom: 2px;
}

.ff-company-grid__text {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(42, 42, 40, 0.72);
}

.ff-sheet__head-text {
  min-width: 0;
  flex: 1;
}

.ff-sheet__actions {
  flex-shrink: 0;
}

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

.ff-card__text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.92;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ff-card__media,
.ff-sheet__media {
  margin: 0 0 12px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(28, 42, 36, 0.06);
  aspect-ratio: 3 / 2;
}

.ff-card__media img,
.ff-sheet__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ff-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--ff-green);
  color: #f7f4ee;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.ff-card__cta:hover {
  background: var(--ff-green-hover);
}

.ff-card__cta.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.ff-card__cta.ff-card__cta--icon,
a.ff-card__cta--icon {
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  padding: 0;
  gap: 0;
}

.ff-card__cta.ff-card__cta--icon svg,
a.ff-card__cta--icon svg {
  display: block;
  flex-shrink: 0;
}

.ff-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 36;
  width: 100%;
  max-width: 100%;
  max-height: min(34cqh, 250px);
  min-height: 0;
  padding: 8px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: var(--ff-milk);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
  transform: translateY(110%);
  transition: transform 0.28s ease;
  display: none;
  overflow: hidden;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.ff-sheet.is-open {
  transform: translateY(0);
  display: flex;
}

/* Must follow .ff-sheet — company sheet needs more height for CTAs inside viewport */
.ff-sheet.ff-sheet--company {
  max-height: min(52cqh, 380px);
}

.ff-sheet.ff-sheet--company .ff-sheet__title {
  font-size: 20px;
  color: var(--ff-green);
  letter-spacing: 0.03em;
}

.ff-sheet.ff-sheet--company .ff-sheet__text {
  display: none;
}

.ff-sheet.ff-sheet--company .ff-company-grid {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  gap: 6px;
}

.ff-sheet.ff-sheet--company .ff-company-grid__item {
  padding: 8px;
}

.ff-sheet.ff-sheet--company .ff-company-grid__text {
  display: none;
}

.ff-sheet__handle {
  width: 42px;
  height: 4px;
  margin: 2px auto 4px;
  border-radius: 999px;
  background: rgba(42, 42, 40, 0.22);
  flex-shrink: 0;
}

.ff-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.ff-sheet__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ff-sheet__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ff-sheet__close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.ff-sheet .ff-card__cta,
.ff-sheet__cta {
  flex-shrink: 0;
  align-self: stretch;
  min-height: 44px;
}

.ff-below {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  color: #ece7dc;
}

.ff-below h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.ff-below p {
  margin: 0 0 12px;
  line-height: 1.6;
  opacity: 0.92;
}

.ff-debug {
  display: none;
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #eee;
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
  max-width: min(320px, calc(100% - 24px));
}

.formaf-map-viewport.is-debug .ff-debug {
  display: block;
}

@media (max-width: 820px) {
  .ff-card {
    display: none !important;
  }

  .ff-sheet {
    display: none;
  }

  .ff-sheet.is-open {
    display: flex;
  }

  .ff-marker {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
  }

  .ff-marker__dot {
    width: 13px;
    height: 13px;
  }

  .ff-marker__ring {
    width: 32px;
    height: 32px;
  }

  .ff-tip {
    top: calc(var(--header-h, 64px) + 8px);
    font-size: 13px;
    line-height: 1.35;
    padding: 10px 10px 10px 12px;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-radius: 14px;
    align-items: center;
  }

  .ff-tip__more {
    display: none;
  }

  .ff-tip__more-mobile {
    display: inline;
  }

  .ff-tip__icon {
    width: 24px;
    height: 24px;
  }

  .ff-tip__close {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .ff-marker--formaf .ff-marker__nudge {
    font-size: 11px;
    padding: 6px 8px;
    white-space: nowrap;
    max-width: none;
    text-align: center;
  }

  .ff-controls button {
    width: 48px;
    height: 48px;
    font-size: 22px;
    touch-action: manipulation;
  }

  .formaf-map-stage {
    touch-action: none;
  }

  .formaf-map-viewport.is-sheet-open.ff-company-open .ff-chrome {
    padding-bottom: calc(min(52cqh, 380px) + max(10px, env(safe-area-inset-bottom)));
  }

  .ff-cats-panel {
    width: min(calc(100% - 20px), 300px);
    top: max(10px, env(safe-area-inset-top));
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    max-height: none;
  }

  .ff-svc-panel {
    bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }

  /* While list is open, keep only the close FAB so list can scroll fully */
  .formaf-map-viewport.is-cats-open .ff-svc-fab,
  .formaf-map-viewport.is-svc-open .ff-cats-fab:not(.ff-svc-fab) {
    visibility: hidden;
    pointer-events: none;
  }

  .formaf-map-viewport.is-svc-open .ff-svc-panel {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .ff-cats-panel__btn {
    font-size: 15px;
    padding: 12px 14px;
    min-height: 44px;
  }

  .ff-chrome {
    /* Site FABs / conversion bar on mobile — keep map +/− above them */
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .formaf-map-viewport.is-sheet-open .ff-chrome {
    padding-bottom: calc(min(34cqh, 250px) + max(10px, env(safe-area-inset-bottom)));
    background: transparent;
  }

  .formaf-map-viewport.is-sheet-open .ff-cats-fab,
  .formaf-map-viewport.is-sheet-open .ff-svc-fab {
    display: none;
  }

  .formaf-map-viewport.is-sheet-open .ff-cats-panel,
  .formaf-map-viewport.is-sheet-open .ff-svc-panel {
    display: none;
  }

  .formaf-map-viewport.is-sheet-open .ff-controls {
    margin-bottom: 0;
  }

  .formaf-map-viewport.is-cats-open .ff-tip,
  .formaf-map-viewport.is-svc-open .ff-tip {
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ff-dim,
  .ff-overlay,
  .ff-card,
  .ff-sheet,
  .ff-cats-panel,
  .ff-tip,
  .ff-marker__dot,
  .ff-marker__ring {
    transition: none !important;
    animation: none !important;
  }

  .formaf-map-viewport.is-hinting .ff-marker__ring,
  .formaf-map-viewport.is-hinting .ff-marker__dot {
    animation: none !important;
  }
}
