/* fechPup – Map Fast v2.1 */
.fp-shell { display: flex; width: 100%; min-height: 460px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.10); background: #fff; }
.fp-map-el { flex: 1 1 auto; min-width: 0; height: 100%; }
.fp-map-el .mapboxgl-ctrl-logo, .fp-map-el .mapboxgl-ctrl-attrib-inner { display: none !important; }

.fp-sidebar { flex: 0 0 296px; max-width: 36%; display: flex; flex-direction: column;
  border-right: 1px solid #eef0ec; background: #fff; height: 100%; }
.fp-side-head { padding: 14px 14px 8px; border-bottom: 1px solid #f0f2ee; }
.fp-geocoder { margin-bottom: 10px; }
.fp-search { width: 100%; padding: 9px 12px; border: 1px solid #e2e6df; border-radius: 10px; font-size: 14px; outline: none; box-sizing: border-box; }
.fp-search:focus { border-color: #85c62a; }
.fp-geocoder .mapboxgl-ctrl-geocoder { width: 100%; max-width: 100%; box-shadow: none;
  border: 1px solid #e2e6df; border-radius: 10px; font-size: 14px; }
.fp-count { font-size: 10px; color: #9aa392; margin-top: 11px; padding-top: 10px; border-top: 1px solid #eef0ec; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }

.fp-cats { position: relative; }
.fp-dd-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border: 1px solid #e2e6df; border-radius: 10px; background: #fff; font-size: 14px; color: #3a4232; cursor: pointer; }
.fp-dd-btn:hover { border-color: #cfd6c8; }
.fp-dd-caret { color: #9aa392; font-size: 12px; }
.fp-dd-panel { display: none; position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid #e2e6df; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.14); padding: 6px; max-height: 280px; overflow-y: auto; }
.fp-cats.open .fp-dd-panel { display: block; }
.fp-dd-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: #4a5344; }
.fp-dd-item:hover { background: #f5f8f1; }
.fp-dd-item input { accent-color: #85c62a; }
.fp-dd-item .fp-dotc { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.fp-dd-name { flex: 1 1 auto; }
.fp-dd-item b { font-weight: 600; color: #9aa392; font-size: 12px; }
.fp-pill { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px;
  padding: 6px 11px; border-radius: 72px; border: 1px solid #eef0ec; background: #f4f6f1; color: #97a08d;
  line-height: 1; transition: all .12s; }
.fp-pill b { font-weight: 700; opacity: .6; font-size: 11px; }
.fp-pill .fp-dotc { width: 9px; height: 9px; border-radius: 50%; background: var(--pc, #85c62a); }
.fp-pill.active { background: #eff4e8; border-color: #d3e3bb; color: #43571f; }
.fp-pill.active b { opacity: .85; }
.fp-pill.active .fp-dotc { background: var(--pc, #85c62a); }

.fp-list { flex: 1 1 auto; overflow-y: auto; padding: 0; }
.fp-card { display: flex; gap: 11px; width: 100%; text-align: left; cursor: pointer; padding: 12px 14px;
  border: 0; border-bottom: 1px solid #f0f2ee; border-radius: 0; background: transparent; transition: background .12s; }
.fp-card:hover { background: #f7f9f4; }
.fp-card.sel { background: #f3f8ea; }
.fp-card-img { flex: 0 0 62px; height: 62px; border-radius: 10px; background-size: cover; background-position: center;
  background-color: #eef2ef; }
.fp-card-img.fp-noimg { background: #eef2ef; }
.fp-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fp-card-title { font-weight: 700; font-size: 14px; color: #1b215c; line-height: 1.25; }
.fp-card-type { font-size: 11.5px; color: #85c62a; font-weight: 600; }
.fp-card-addr { font-size: 12px; color: #8a9382; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-dist { font-size: 11px; color: #b0b8a6; font-weight: 600; margin-top: 2px; }
.fp-empty { padding: 26px 16px; color: #8a9382; font-size: 13px; text-align: center; }

.fp-map-el .mapboxgl-popup-content { padding: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.22); }
.fp-map-el .mapboxgl-popup-close-button { font-size: 22px; padding: 2px 9px; color: #fff; z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.fp-pop { width: 320px; max-width: 100%; }
.fp-pop-img { width: 100%; height: 150px; background-size: cover; background-position: center; background-color: #eef2f0; }
.fp-pop-body { padding: 14px 16px 16px; }
.fp-badge { display: inline-block; background: #eef7e2; color: #5d8a1f; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 72px; margin-bottom: 7px; text-transform: uppercase; letter-spacing: .03em; }
.fp-pop-title { margin: 0 0 9px; font-size: 18px; line-height: 1.25; color: #1b215c; }
.fp-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: #4a5344; margin: 5px 0; line-height: 1.4; }
.fp-row .fp-ic { flex: 0 0 auto; opacity: .85; }
.fp-row a { color: #4E6AF6; text-decoration: none; }
.fp-row a:hover { text-decoration: underline; }
.fp-promo { margin: 9px 0 2px; padding: 9px 11px; background: #fff8e6; border: 1px solid #ffe7a8; border-radius: 9px;
  font-size: 12.5px; color: #7a5b00; line-height: 1.45; }
.fp-pop-actions { display: flex; gap: 8px; margin-top: 13px; }
.fp-pop-btn { flex: 1; text-align: center; display: inline-block; padding: 9px 14px; border-radius: 72px;
  background: #85c62a; color: #fff !important; font-weight: 700; text-decoration: none; font-size: 13.5px; transition: filter .15s; }
.fp-pop-btn:hover { filter: brightness(.93); }
.fp-pop-btn.ghost { background: #fff; color: #4E6AF6 !important; border: 1px solid #d5dcf9; }
.fp-pop-loading, .fp-pop-err { padding: 20px; font-size: 14px; color: #666; }

@media (max-width: 820px) {
  .fp-shell { flex-direction: column; height: auto !important; }
  .fp-sidebar { flex: none; max-width: 100%; width: 100%; order: 2; border-right: none; border-top: 1px solid #eef0ec; }
  .fp-map-el { order: 1; height: 62vh; min-height: 340px; }
  .fp-list { max-height: 46vh; }
}

/* v2.1.5 override theme button styles on list cards */
.fp-shell .fp-list .fp-card { -webkit-appearance: none; appearance: none; box-shadow: none !important; background: transparent !important; border: 0 !important; border-bottom: 1px solid #f0f2ee !important; border-radius: 0 !important; color: inherit !important; font: inherit; text-transform: none; letter-spacing: normal; min-height: 0; margin: 0; }
.fp-shell .fp-list .fp-card:hover { background: #f7f9f4 !important; }
.fp-shell .fp-list .fp-card.sel { background: #f3f8ea !important; }
.fp-shell .fp-card-title { color: #1b215c !important; }
.fp-shell .fp-card-type { color: #85c62a !important; }
.fp-shell .fp-card-addr { color: #8a9382 !important; }
.fp-shell .fp-dd-btn { -webkit-appearance: none; appearance: none; box-shadow: none !important; background: #fff !important; border-radius: 10px !important; color: #3a4232 !important; text-transform: none; }
.fp-shell .fp-dd-panel { border-radius: 12px !important; }
.fp-shell .fp-search { -webkit-appearance: none; appearance: none; box-shadow: none !important; background: #fff !important; border-radius: 10px !important; }
/* v2.1.6 centered detail panel */
.fp-detail-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: transparent; z-index: 6; padding: 22px; pointer-events: none; }
.fp-detail { position: relative; width: 350px; max-width: 100%; max-height: 88%; overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.38); pointer-events: auto; }
.fp-detail-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 32px !important; height: 32px !important; min-height: 0 !important; border-radius: 50% !important; border: 0 !important; background: #fff !important; color: #444 !important; font-size: 19px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 2px 0 !important; box-shadow: 0 2px 10px rgba(0,0,0,.28) !important; -webkit-appearance: none; appearance: none; transition: background .12s; }
.fp-detail-close:hover { background: #eee !important; }
.fp-desc { margin: 10px 0 2px; font-size: 13px; line-height: 1.5; color: #55604c; }
/* v2.1.9 mobile bottom sheet */
@keyframes fpSheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.fp-detail-overlay.fp-mobile { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: flex-end; justify-content: stretch; padding: 0; background: rgba(15,20,10,.45); pointer-events: auto; }
.fp-mobile .fp-detail { width: 100%; max-width: 100%; max-height: 82vh; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.30); animation: fpSheetUp .28s ease-out; padding-bottom: env(safe-area-inset-bottom); pointer-events: auto; }
.fp-mobile .fp-detail::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 3px; background: #d8ddd3; margin: 10px auto 2px; }
.fp-mobile .fp-pop-img { height: 170px; border-radius: 0; }
.fp-mobile .fp-pop-body { padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); }
.fp-mobile .fp-pop-title { font-size: 20px; }
.fp-mobile .fp-row { font-size: 14.5px; margin: 7px 0; }
.fp-mobile .fp-pop-actions { position: sticky; bottom: 0; background: #fff; padding-top: 10px; margin-top: 14px; }
.fp-mobile .fp-pop-btn { padding: 13px 16px; font-size: 15px; }
.fp-mobile .fp-detail-close { top: 14px; right: 14px; width: 36px !important; height: 36px !important; }
/* v2.1.10 ios inset fallback */
.fp-detail-overlay { top: 0; right: 0; bottom: 0; left: 0; }
.fp-detail-overlay.fp-mobile { top: 0; right: 0; bottom: 0; left: 0; }

/* v2.1.11 pretty controls + mobile search-first */
.fp-map-el .mapboxgl-ctrl-group { border-radius: 12px !important; box-shadow: 0 4px 18px rgba(0,0,0,.16) !important; border: 1px solid #eef0ec !important; overflow: hidden; background: #fff !important; }
.fp-map-el .mapboxgl-ctrl-group button { width: 40px !important; height: 40px !important; background-color: #fff !important; border: 0 !important; }
.fp-map-el .mapboxgl-ctrl-group button + button { border-top: 1px solid #f0f2ee !important; }
.fp-map-el .mapboxgl-ctrl-group button:hover { background-color: #f3f8ea !important; }
.fp-map-el .mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b215c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") !important; background-size: 17px 17px !important; background-position: center !important; background-repeat: no-repeat !important; }
.fp-map-el .mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b215c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E") !important; background-size: 17px 17px !important; background-position: center !important; background-repeat: no-repeat !important; }
.fp-map-el .mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b215c' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='6.5'/%3E%3Ccircle cx='12' cy='12' r='2.2' fill='%2385c62a' stroke='none'/%3E%3Cpath d='M12 2.2v3M12 18.8v3M2.2 12h3M18.8 12h3' stroke-linecap='round'/%3E%3C/svg%3E") !important; background-size: 19px 19px !important; background-position: center !important; background-repeat: no-repeat !important; }
.fp-shell .fp-search { background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa392' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-3.8-3.8'/%3E%3C/svg%3E") no-repeat 12px center / 16px 16px !important; padding-left: 38px !important; }
@media (max-width: 820px) {
  .fp-sidebar { display: contents; }
  .fp-side-head { order: 1; background: #fff; padding: 12px 14px 10px; border-bottom: 1px solid #f0f2ee; }
  .fp-map-el { order: 2; }
  .fp-list { order: 3; background: #fff; max-height: 46vh; overflow-y: auto; }
}
/* v2.1.12 no image + centered actions */
.fp-pop-body { padding-top: 20px; }
.fp-pop-actions { justify-content: center !important; }
.fp-pop-btn { flex: 0 1 auto !important; min-width: 130px; padding-left: 22px !important; padding-right: 22px !important; }
.fp-mobile .fp-pop-btn { flex: 1 1 0 !important; max-width: 200px; min-width: 0; }
.fp-detail-close { background: #f3f5f1 !important; color: #4a5344 !important; box-shadow: 0 1px 6px rgba(0,0,0,.14) !important; }
.fp-detail-close:hover { background: #e6eae2 !important; }
/* v2.1.13 balanced centered buttons */
.fp-pop-actions { display: flex !important; justify-content: center !important; align-items: center !important; gap: 10px !important; }
.fp-pop-actions .fp-pop-btn { flex: 1 1 0 !important; max-width: 46% !important; min-width: 0 !important; width: auto !important; padding: 11px 10px !important; text-align: center !important; box-sizing: border-box; }
.fp-pop-actions .fp-pop-btn:only-child { flex: 0 0 auto !important; max-width: none !important; width: 62% !important; }
.fp-mobile .fp-pop-actions .fp-pop-btn { max-width: 46% !important; }
/* v2.1.16 scroll lock */
html.fp-noscroll, body.fp-noscroll { overflow: hidden !important; }
.fp-mobile .fp-detail { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* v2.2.0 single location map + hide editor leftovers */
.fp-single { border-radius: 14px; overflow: hidden; }
.fp-single .mapboxgl-ctrl-logo, .fp-single .mapboxgl-ctrl-attrib-inner { display: none !important; }
.fp-single .mapboxgl-ctrl-group { border-radius: 12px !important; box-shadow: 0 4px 18px rgba(0,0,0,.16) !important; border: 1px solid #eef0ec !important; overflow: hidden; }
#wp-link-wrap, #wp-link-backdrop, #wp-link { display: none !important; }