/* Find a Florist map (26 Oct 2026). Goes with fafm.js (locked layout F, variations ?f=1..4); pins and map chrome come from coverage.css (.cvp, .cv-map).
   Header and rows follow the town results page (results_variants.css): centred breadcrumb + title, shop-photo rows, pink names, yellow stars. */
.fafm-top { max-width: 760px; margin: 40px auto 32px; text-align: center; }
.fafm-top__crumbs { display: flex; justify-content: center; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 16px; color: #4f5064; }
.fafm-top__crumbs a { color: #4f5064; text-decoration: none; }
.fafm-top__crumbs a:hover { text-decoration: underline; }
.fafm-top__crumbs li + li::before { content: "›"; margin-right: 8px; color: #8a8b9c; }
.fafm-top__crumbs [aria-current] { color: #23233d; font-weight: 600; }
.fafm-top h1 { margin: 0 0 16px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; font-weight: 600; color: #23233d; }
.fafm-top p { margin: 0; font-size: 16px; line-height: 1.6; color: #4f5064; }

.fafm { --pink: #d0607e; position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 8px; color: #23233d; }
.fafm .cv-map.fafm__map { height: 420px; border-radius: 16px; background: #eef0ee; }
.fafm__mapwrap { position: relative; }
.fafm__area { position: absolute; z-index: 500; top: 14px; left: 50%; transform: translateX(-50%); min-height: 44px; padding: 0 20px; border: 0; border-radius: 22px;
  background: #fff; color: #23233d; font: inherit; font-size: 16px; font-weight: 600; box-shadow: 0 4px 14px rgba(35,35,61,.18); cursor: pointer; }
.fafm__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fafm .fafm__h { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 600; color: #23233d; }
.fafm__h:focus { outline: none; }
.fafm__p { margin: 0; font-size: 16px; line-height: 1.5; color: #4f5064; }
.fafm__sk { display: block; width: 70%; height: 28px; border-radius: 8px; background: #eef0ee; }
.fafm__sk--s { width: 90%; height: 18px; }
.fafm__link { padding: 4px 0; border: 0; background: none; color: #23233d; font: inherit; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.fafm button:focus-visible, .fafm a:focus-visible { outline: 2px solid #23233d; outline-offset: 2px; }

/* florist rows: photo, name, stars, miles, a small yellow Order button on the right */
.fafm__cards { display: grid; gap: 0; margin-top: 8px; }
.fafm__cards:empty { display: none; }
.fafm-row__img { position: relative; display: block; aspect-ratio: 1; text-decoration: none; }
.fafm-row__ph { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: #fbe9ee; }
.fafm-row__ph b { font-size: 32px; font-weight: 600; color: #23233d; }
.fafm-row__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fafm-row__name a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pink); text-decoration: none; }
.fafm-row__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fafm-row__rate { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 16px; line-height: 1.4; color: #4f5064; }
.fafm-row__rate b { color: #23233d; font-weight: 600; }
.fafm-stars { position: relative; display: inline-block; width: 86px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 16'%3E%3Cg fill='%23e3e3e8'%3E%3Cpath id='s' d='M8 .8l2.2 4.7 5.1.6-3.8 3.5 1 5.1L8 12.2 3.5 14.7l1-5.1L.7 6.1l5.1-.6z'/%3E%3Cuse href='%23s' x='17.5'/%3E%3Cuse href='%23s' x='35'/%3E%3Cuse href='%23s' x='52.5'/%3E%3Cuse href='%23s' x='70'/%3E%3C/g%3E%3C/svg%3E") 0 0/86px 16px no-repeat; }
.fafm-stars span { position: absolute; inset: 0 auto 0 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 16'%3E%3Cg fill='%23f5b301'%3E%3Cpath id='s' d='M8 .8l2.2 4.7 5.1.6-3.8 3.5 1 5.1L8 12.2 3.5 14.7l1-5.1L.7 6.1l5.1-.6z'/%3E%3Cuse href='%23s' x='17.5'/%3E%3Cuse href='%23s' x='35'/%3E%3Cuse href='%23s' x='52.5'/%3E%3Cuse href='%23s' x='70'/%3E%3C/g%3E%3C/svg%3E") 0 0/86px 16px no-repeat; }
.fafm-row__where { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 16px; line-height: 1.4; color: #4f5064; }
.fafm-row__where svg { flex: none; width: 16px; height: 16px; fill: none; stroke: #4f5064; stroke-width: 1.4; }
.fafm-row__go:hover { background: #f9ce58; color: #23233d; }
.fafm__more { display: block; min-height: 44px; margin: 16px auto 0; padding: 0 22px; border: 1px solid #23233d; border-radius: 8px; background: #fff; color: #23233d;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.fafm.is-clipped .fafm-row:nth-child(n+7), .fafm__more[hidden] { display: none; }
.fafm-row { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; grid-template-rows: auto auto auto auto; column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 14px 8px; border-bottom: 1px solid #ececf0; border-radius: 12px; transition: background .15s; animation: fafm-in .4s ease both; }
.fafm-row:last-child { border-bottom: 0; }
.fafm-row:hover, .fafm-row.is-sel { background: #f6f6f7; }
.fafm-row__img { grid-row: 1 / 4; align-self: start; }
.fafm-row__tick { position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(20,20,35,.16); box-sizing: border-box; }
.fafm .fafm-row__name { grid-column: 2; margin: 0; font-size: 18px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; min-width: 0; }
.fafm-row__rate, .fafm-row__where { grid-column: 2; }
.fafm-row__go { grid-column: 3; white-space: nowrap; grid-row: 1 / 4; align-self: center; min-height: 44px; padding: 10px 16px; border-radius: 8px; background: #ffd86e; color: #23233d; font-size: 16px; font-weight: 600; text-decoration: none; }

/* pins: the town results page's pink ring, fading in */
.fafm .cvp__av { border: 3px solid #fff; box-shadow: 0 0 0 2px #e77c96, 0 6px 16px rgba(35,35,61,.22); }
.fafm .cvp.is-sel .cvp__av { box-shadow: 0 0 0 3px #e77c96, 0 10px 22px rgba(35,35,61,.3); }
.fafm .cvp { animation: fafm-in .45s ease both; animation-delay: calc(.1s + var(--i) * 45ms); }
@keyframes fafm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* the city pills (no yellow hover; the place showing is dark eucalyptus) */
.fafm-cities { position: relative; margin: 0 0 16px; }
.fafm-cities__row { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-right: 32px; }
.fafm-cities__row::-webkit-scrollbar { display: none; }
.fafm-cities::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); pointer-events: none; }
.fafm-city { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid #d5d6dc; border-radius: 22px; background: #fff; color: #23233d; font: inherit; font-size: 16px; white-space: nowrap; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s; }
.fafm-city:hover { border-color: #23233d; background: #f6f6f7; }
.fafm-city.is-on { border-color: #4d6458; background: #4d6458; color: #fff; }
.fafm-city:focus-visible { outline: 2px solid #23233d; outline-offset: 2px; }
@media (max-width: 1023px) { .fafm-cities { margin-right: -16px; } }
/* 1: centred above the map on wide screens */
@media (min-width: 1280px) { .fafm-cities--above .fafm-cities__row { flex-wrap: wrap; justify-content: center; overflow: visible; padding: 0; } .fafm-cities--above::after { display: none; }
  .fafm-cities--left .fafm-cities__row { justify-content: flex-start; } }

/* the yellow search's town suggestions */
.fafm-sugg { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(35,35,61,.18); }
.fafm-sugg li { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 8px; font-size: 16px; color: #23233d; cursor: pointer; }
.fafm-sugg li span { color: #4f5064; text-align: right; }
.fafm-sugg li:hover, .fafm-sugg li.is-act { background: #f3f4f5; }
html.d2f-faf .faf-header .d2f-rail-nav { display: none !important; }

/* the variation switcher (same pill as the town results page) */
.fafm-switch { position: fixed; right: 16px; bottom: 16px; z-index: 2147483646; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font: 500 13px/1 "Rethink Sans", system-ui, sans-serif; }
.fafm-switch__cap { background: #23233d; color: #fff; padding: 6px 10px; border-radius: 999px; opacity: .9; }
.fafm-switch__links { display: flex; gap: 4px; background: #fff; padding: 5px; border-radius: 999px; box-shadow: 0 8px 24px rgba(20,20,35,.18); }
.fafm-switch a { min-width: 34px; height: 34px; padding: 0 9px; display: grid; place-items: center; border-radius: 999px; color: #23233d; text-decoration: none; font-weight: 600; }
.fafm-switch a:hover { background: #f2f2f2; }
.fafm-switch a[aria-current] { background: #23233d; color: #fff; }
html.rv-shot .fafm-switch { display: none !important; }

/* tablet: map on top, then the list */
@media (min-width: 601px) and (max-width: 1023px) {
  .fafm__mapwrap { order: -1; }
  .fafm .cv-map.fafm__map { height: 520px; }
  .fafm__cards { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}
/* desktop: one big map, the list floats over it in a white panel and scrolls inside */
@media (min-width: 1024px) {
  .fafm { display: block; }
  .fafm .cv-map.fafm__map { height: 680px; }
  .fafm__list { position: absolute; z-index: 600; left: 16px; top: 16px; bottom: 16px; width: 440px; display: flex; flex-direction: column; min-height: 0;
    padding: 24px 12px 12px 24px; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(35,35,61,.18); box-sizing: border-box; }
  .fafm__head { padding-right: 12px; }
  .fafm__cards { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-right: 6px; margin-top: 12px; align-content: start; }
  .fafm__area { left: calc(50% + 228px); }
  /* 2: the pills float along the top of the map, beside the panel */
  .fafm--f2 .fafm__mapwrap .fafm-cities { position: absolute; z-index: 550; left: 472px; right: 16px; top: 16px; margin: 0; }
  .fafm--f2 .fafm-cities::after { background: none; }
  .fafm--f2 .fafm-cities__row { padding: 4px; }
  .fafm--f2 .fafm-city { border-color: transparent; box-shadow: 0 4px 14px rgba(35,35,61,.16); }
  .fafm--f2 .fafm-city:hover { border-color: #23233d; background: #fff; }
  .fafm--f2 .fafm-city.is-on { border-color: #4d6458; background: #4d6458; }
  .fafm--f2 .fafm__area { top: 76px; }
  /* 3: the panel on the right, pills left-aligned above */
  .fafm--f3 .fafm__list { left: auto; right: 16px; }
  .fafm--f3 .fafm__area { left: calc(50% - 228px); }
}
/* 4 everywhere: pills under the panel heading */
.fafm--f4 .fafm-cities { margin: 16px -16px 0 0; }
/* phone: map, then the list */
@media (max-width: 600px) {
  .fafm-top { margin: 24px auto 20px; }
  .fafm { gap: 0; }
  .fafm__mapwrap { order: -1; }
  .fafm .cv-map.fafm__map { height: 320px; border-radius: 12px; }
  .fafm__head { margin-top: 20px; }
  .fafm .fafm__h { font-size: 22px; }
  .fafm-row { grid-template-columns: 72px minmax(0, 1fr) auto; padding: 14px 4px; }
  .fafm .fafm-row__name { font-size: 18px; }
  .fafm-switch { right: 10px; bottom: 10px; }
  .fafm-switch a { min-width: 30px; height: 30px; padding: 0 7px; }
}
/* small phones: the button goes under the details so the name and miles keep their room */
@media (max-width: 420px) { .fafm-row { grid-template-columns: 72px minmax(0, 1fr); } .fafm-row__img { grid-row: 1 / 5; } .fafm-row__go { grid-column: 2; grid-row: 4; justify-self: start; margin-top: 6px; } }
@media (prefers-reduced-motion: reduce) { .fafm .cvp, .fafm-row { animation: none; transition: none; } }

/* 6 Nov 2026: touch screens, one finger scrolls the page past the map, two fingers move it (fafm.js twoFingers). The hint shows during a one-finger drag. */
.fafm .fafm__map--touch.leaflet-container { touch-action: pan-y; }
.fafm-hint { position: absolute; inset: 0; z-index: 750; display: grid; place-items: center; padding: 24px; background: rgba(35,35,61,.5); color: #fff;
  font-size: 18px; font-weight: 600; line-height: 1.3; text-align: center; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.fafm-hint.is-on { opacity: 1; transition-duration: .15s; }
@media (prefers-reduced-motion: reduce) { .fafm-hint { transition: none; } }
