/* Teljes szélességű / viewport térkép – doxmand-szerű */
.fp-page {
  background: #1a1d22;
  color: #252830;
  height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fp-page > header {
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}

/* Partner / shop-térkép / newsletter / footer HTML ne jelenjen meg (footer.php scriptek igen) */
body.fp-page > footer,
body.fp-page > .container-fluid.white-container,
body.fp-page > .container-fluid.yellowback,
body.fp-page #newsletterform,
body.fp-page .ti-certificate {
  display: none !important;
}

.fp-app {
  flex: 1 1 auto;
  position: relative;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.fp-mapwrap {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #252830;
  box-shadow: none;
}

.fp-map {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.fp-loading {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 29, 34, 0.42);
  pointer-events: all;
  backdrop-filter: blur(1px);
}

.fp-loading[hidden] {
  display: none !important;
}

.fp-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  color: #252830;
  text-align: center;
  max-width: min(22rem, calc(100% - 2rem));
}

.fp-loading-card i {
  font-size: 1.75rem;
  color: #33822b;
}

.fp-loading-card p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.fp-ndvi {
  position: absolute;
  z-index: 5;
  top: 0.85rem;
  right: 0.85rem;
  width: 10.5rem;
  padding: 0.5rem 0.65rem 0.45rem;
  border-radius: 0.5rem;
  border: 1px solid #d0d4dc;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  color: #252830;
  pointer-events: none;
}

.fp-ndvi[hidden] {
  display: none !important;
}

.fp-ndvi strong {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
}

.fp-ndvi-bar {
  display: block;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #c8c882 0%,
    #ccbf33 22%,
    #91bf30 40%,
    #4f892d 62%,
    #0f540a 82%,
    #004400 100%
  );
}

.fp-ndvi-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: #6b7280;
}

.fp-ndvi-labels em {
  font-style: normal;
}

/* Lebegő varázsló panel a térkép fölött (korábbi keresősáv helyén) */
.fp-panel {
  position: absolute;
  z-index: 5;
  top: 0.85rem;
  left: 0.85rem;
  width: min(26.5rem, calc(100% - 1.7rem));
  max-height: calc(100% - 1.7rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

.fp-sheet-handle {
  display: none;
}

.fp-chrome {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0.9rem 1rem 0.55rem;
  background: rgba(255, 255, 255, 0.96);
}

.fp-body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 1rem 1rem;
}

.fp-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.fp-step {
  appearance: none;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #d0d4dc;
  background: #fff;
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.fp-step:hover:not(.is-active):not(.is-locked) {
  border-color: #33822b;
  color: #2a6b24;
}

.fp-step.is-active {
  border-color: #33822b;
  background: #33822b;
  color: #fff;
  cursor: default;
}

.fp-step.is-done {
  border-color: #a7d4a2;
  background: #e8f5e6;
  color: #2a6b24;
}

.fp-step.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 3. lépés + égtájak → a Terv gomb hívogat tovább */
.fp-step.is-nudge {
  position: relative;
  z-index: 1;
  border-color: #33822b;
  color: #2a6b24;
  background: #eef8ec;
  opacity: 1;
  cursor: pointer;
  animation: fp-step-nudge-pulse 1.7s ease-in-out infinite;
}

@keyframes fp-step-nudge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(51, 130, 43, 0.45);
  }
  55% {
    box-shadow: 0 0 0 7px rgba(51, 130, 43, 0);
  }
}

.fp-step-num {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
}

.fp-step.is-active .fp-step-num {
  background: rgba(255, 255, 255, 0.25);
}

.fp-title {
  margin: 0.55rem 0 0.35rem;
  font-size: 1.05rem;
}

.fp-search {
  margin: 0.55rem 0 0.65rem;
}

.fp-search-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d4dc;
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.95rem;
  color: #252830;
  background: #fff;
}

.fp-search-input:focus {
  outline: 2px solid #33822b;
  outline-offset: 1px;
  border-color: #33822b;
}

.fp-text,
.fp-hint {
  margin: 0;
  color: #5c6370;
  font-size: 0.9rem;
  line-height: 1.45;
}

.fp-hint {
  margin-top: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  background: #fff8db;
  border: 1px solid #f0e0a0;
  color: #5c4e10;
}

.fp-saved {
  margin-top: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.55rem;
  border: 1px solid #c5ddf0;
  background: #f3f8fc;
}

.fp-saved[hidden] {
  display: none !important;
}

.fp-saved-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1f5f8b;
}

.fp-saved-select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #b7c9d8;
  border-radius: 0.45rem;
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #252830;
  background: #fff;
}

.fp-saved-select:focus {
  outline: 2px solid #1f5f8b;
  outline-offset: 1px;
  border-color: #1f5f8b;
}

.fp-saved-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #5c6370;
}

.fp-saved-actions {
  margin-top: 0.55rem;
}

.fp-label {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #252830;
}

.fp-add .fp-btn {
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
}

.fp-add .fp-btn.is-active {
  background: #33822b;
  border-color: #33822b;
  color: #fff;
}

.fp-export {
  flex-wrap: wrap;
}

.fp-export .fp-btn {
  flex: 1 1 auto;
  justify-content: center;
}

.fp-cart {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.fp-cart-row {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e4e8;
  border-left: 4px solid #33822b;
  background: #f7f8fa;
}

.fp-cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.fp-cart-headline {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 700;
  color: #252830;
}

.fp-cart-headline strong {
  color: #33822b;
  font-weight: 800;
}

.fp-cart-btn {
  flex: 0 0 auto;
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  white-space: nowrap;
  justify-content: center;
}

.fp-cart-empty {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Rejtett shop-csomagok az upsell / getProductsDynamic számára */
.fp-shop-packs {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fp-devui {
  position: absolute;
  z-index: 6;
  display: flex;
  gap: 0.35rem;
  transform: translate(-50%, -100%);
  pointer-events: auto;
}

.fp-devui[hidden] {
  display: none !important;
}

.fp-devbtn {
  appearance: none;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 2px solid #252830;
  border-radius: 50%;
  background: #eed40e;
  color: #252830;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 0;
}

.fp-devbtn[hidden] {
  display: none !important;
}

.fp-devbtn:hover {
  background: #ffe566;
}

.fp-devbtn-del {
  background: #fff;
  color: #c0392b;
  border-color: #c0392b;
}

.fp-devbtn-del:hover {
  background: #fde8e6;
}

.fp-devbtn svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.fp-legend-plan .fp-leg-note {
  margin: 0.4rem 0 0;
  font-size: 0.7rem;
  line-height: 1.3;
  color: #5c6370;
}

.fp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.fp-dir-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.fp-dir-btn {
  appearance: none;
  min-height: 2.55rem;
  padding: 0.4rem 0.2rem;
  border: 2px solid #d0d4dc;
  border-radius: 0.5rem;
  background: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: #252830;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.fp-dir-btn:hover {
  border-color: #eed40e;
  background: linear-gradient(135deg, #fff9d6 0%, rgba(238, 212, 14, 0.22) 100%);
}

.fp-dir-btn.is-on {
  background: #eed40e;
  border-color: #252830;
  box-shadow: 0 2px 8px rgba(238, 212, 14, 0.45);
}

.fp-place-summary {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #cfe4cc;
  background: #f3faf2;
  color: #2a6b24;
  font-size: 0.88rem;
  line-height: 1.4;
}

.fp-place-summary[hidden] {
  display: none !important;
}

.fp-place-summary ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.fp-place-summary li {
  margin: 0.15rem 0;
}

.fp-roi {
  margin: 0.75rem 0 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid #e2e4e8;
  border-left: 4px solid #33822b;
  background: #f7f8fa;
}

.fp-roi-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.fp-roi-headline {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 700;
  color: #252830;
}

.fp-roi-headline strong {
  color: #33822b;
  font-weight: 800;
}

.fp-roi-toggle {
  flex: 0 0 auto;
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  white-space: nowrap;
}

.fp-roi-details {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #d0d4dc;
}

.fp-roi-details[hidden] {
  display: none !important;
}

.fp-roi-status {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  color: #8b919a;
}

.fp-roi-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  color: #5c6370;
}

.fp-roi-meta strong {
  color: #252830;
}

.fp-roi-label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #252830;
}

.fp-roi-select {
  width: 100%;
  margin-bottom: 0.55rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid #d0d4dc;
  border-radius: 0.45rem;
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
  color: #252830;
}

.fp-roi-select:focus {
  outline: 2px solid #33822b;
  outline-offset: 1px;
}

.fp-roi-damage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #252830;
}

.fp-roi-slider {
  width: 100%;
  margin: 0.35rem 0 0.5rem;
  accent-color: #33822b;
}

.fp-roi-loss {
  padding: 0.5rem 0.6rem;
  border-radius: 0.45rem;
  background: rgba(176, 42, 55, 0.06);
  border: 1px solid rgba(176, 42, 55, 0.18);
}

.fp-roi-loss-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b02a37;
}

.fp-roi-loss-amount {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.15rem;
  color: #252830;
}

.fp-roi-hint {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #6b7280;
}

.fp-roi-payback {
  margin-top: 0.55rem;
}

.fp-roi-detail {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #4b5563;
}

.fp-roi-detail strong {
  color: #252830;
}

.fp-roi-badge {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: #5c6370;
}

.fp-roi-target {
  margin: 0.45rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px dashed #e2e4e8;
  font-size: 0.75rem;
  color: #6b7280;
}

.fp-roi-target strong {
  color: #252830;
}

.fp-roi-payback-empty {
  margin: 0;
  font-size: 0.78rem;
  color: #6b7280;
}

/* Szakértői CTA – vizuálisan elüt a zöld ROI / szürke paneltől */
.fp-expert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1rem 0 0.35rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid #d4b56a;
  background: linear-gradient(145deg, #fff8e8 0%, #f7efd6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.fp-expert-icon {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 0.55rem;
  background: #252830;
  color: #f0c14b;
  font-size: 1.05rem;
}

.fp-expert-body {
  flex: 1 1 auto;
  min-width: 0;
}

.fp-expert-title {
  margin: 0 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.3;
  color: #252830;
}

.fp-expert-text {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #5c5340;
}

.fp-btn-expert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid #1e6b28;
  border-radius: 0.55rem;
  background: #33822b;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 0 #24631f;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, transform 0.12s ease;
}

.fp-btn-expert:hover:not(:disabled) {
  background: #2a6b24;
  border-color: #1f5a1c;
  color: #fff !important;
  box-shadow: 0 3px 0 #1a4f18;
  transform: translateY(-1px);
}

.fp-btn-expert:hover:not(:disabled) > i {
  color: #fff !important;
}

.fp-btn-expert:active:not(:disabled) {
  background: #245c20;
  border-color: #1a4f18;
  color: #fff !important;
  box-shadow: 0 1px 0 #163f14;
  transform: translateY(1px);
}

.fp-btn-expert:active:not(:disabled) > i {
  color: #fff !important;
}

.fp-btn-expert:focus-visible {
  outline: 2px solid #33822b;
  outline-offset: 2px;
}

.fp-btn-expert:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.fp-expert-modal .modal-header {
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.fp-expert-modal .modal-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #252830;
  font-weight: 700;
  font-size: 1rem;
}

.fp-expert-modal .modal-title i {
  color: #33822b;
}

.fp-expert-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.fp-expert-lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #5c6370;
}

.fp-expert-field {
  margin-top: 0.7rem;
}

.fp-expert-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.fp-expert-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d4dc;
  border-radius: 0.45rem;
  padding: 0.45rem 0.65rem;
  font: inherit;
  font-size: 0.9rem;
}

.fp-expert-input:focus {
  outline: none;
  border-color: #33822b;
  box-shadow: 0 0 0 3px rgba(51, 130, 43, 0.18);
}

.fp-expert-error {
  margin: 0.65rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  background: #fdf2f2;
  border: 1px solid #f0c4c4;
  color: #8b2e2e;
  font-size: 0.82rem;
}

.fp-expert-error[hidden] {
  display: none !important;
}

/* Globális .modal-body { height: 400px } kikapcsolása a FP modalokon (modal-nostrech). */
body.fp-page #fp-guest .modal-body.modal-nostrech,
body.fp-page #fp-expert-modal .modal-body.modal-nostrech,
body.fp-page #fp-dialog .modal-body.modal-nostrech,
body.fp-page .modal-body.modal-nostrech {
  height: auto !important;
  max-height: none;
}

body.fp-page #fp-expert-modal .modal-dialog {
  max-height: calc(100dvh - 1.5rem);
  margin: 0.75rem auto;
}

body.fp-page #fp-expert-modal .modal-content {
  max-height: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.fp-page #fp-expert-modal .modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}

body.fp-page #fp-expert-modal .modal-footer {
  flex-shrink: 0;
}

.fp-guest .modal-header,
.fp-dialog .modal-header {
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Csak a body görögjön – header/footer maradjon látható (BS scrollable + fallback). */
body.fp-page #fp-guest .modal-dialog,
body.fp-page #fp-dialog .modal-dialog {
  max-height: calc(100dvh - 1.5rem);
  margin: 0.75rem auto;
}

body.fp-page #fp-guest .modal-content,
body.fp-page #fp-dialog .modal-content {
  max-height: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.fp-page #fp-guest .modal-body,
body.fp-page #fp-dialog .modal-body,
body.fp-page #fp-expert-modal .modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

body.fp-page #fp-guest .modal-footer,
body.fp-page #fp-dialog .modal-footer {
  flex-shrink: 0;
}

.fp-dialog-box {
  max-width: 22rem;
}

.fp-dialog {
  font-size: 0.9rem;
}

.fp-dialog-body p {
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.fp-dialog-body p:last-child {
  margin-bottom: 0;
}

.fp-dialog-lead {
  font-size: 1rem;
  line-height: 1.45;
  color: #374151;
}

.fp-guest .modal-title,
.fp-dialog .modal-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #252830;
  font-weight: 700;
  font-size: 1rem;
}

.fp-guest .modal-title i,
.fp-dialog .modal-title i {
  color: #33822b;
}

.fp-dialog .modal-title i.fa-check-circle {
  color: #33822b;
}

.fp-dialog .modal-title i.fa-exclamation-triangle {
  color: #b45309;
}

.fp-guest-footer,
.fp-dialog-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.fp-guest-footer .fp-btn,
.fp-dialog-footer .fp-btn {
  min-height: 2.15rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.fp-dialog-inputwrap {
  margin-top: 0.55rem;
}

.fp-dialog-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d4dc;
  border-radius: 0.45rem;
  padding: 0.4rem 0.6rem;
  font: inherit;
  font-size: 0.9rem;
}

.fp-dialog-input:focus {
  outline: none;
  border-color: #33822b;
  box-shadow: 0 0 0 3px rgba(51, 130, 43, 0.18);
}

/* A shop login modal a footer.php-ből jön; a full-viewport layout ne takarja. */
body.fp-page .modal {
  z-index: 1100;
}

body.fp-page .modal-backdrop {
  z-index: 1090;
}

.fp-legend {
  position: absolute;
  z-index: 5;
  top: auto;
  bottom: 0.85rem;
  right: 0.85rem;
  width: min(13.5rem, calc(100% - 1.7rem));
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  font-size: 0.75rem;
  color: #252830;
  line-height: 1.35;
  pointer-events: none;
}

.fp-legend[hidden] {
  display: none !important;
}

.fp-legend strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}

.fp-legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fp-legend li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.2rem 0;
}

.fp-leg-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--c, #999);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.fp-attack-overlay {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.fp-attack-overlay[hidden] {
  display: none !important;
}

.fp-attack-svg {
  display: block;
  overflow: visible;
}

.fp-attack-cross {
  stroke: rgba(73, 80, 87, 0.35);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.fp-attack-ring {
  fill: none;
  stroke: rgba(238, 212, 14, 0.85);
  stroke-width: 2.5;
}

.fp-attack-arrow-line,
.fp-attack-arrow-head {
  stroke: #495057;
  fill: #495057;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fp-attack-arrow.is-on .fp-attack-arrow-line,
.fp-attack-arrow.is-on .fp-attack-arrow-head {
  stroke: #dc3545;
  fill: #dc3545;
  stroke-width: 4;
}

.fp-attack-btns {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fp-attack-btn {
  appearance: none;
  position: absolute;
  z-index: 1;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(73, 80, 87, 0.5);
  background: rgba(255, 255, 255, 0.95);
  color: #343a40;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: background 0.12s, border-color 0.12s, transform 0.12s;
}

.fp-attack-btn:hover {
  border-color: #eed40e;
  background: #fff9d6;
}

.fp-attack-btn.is-on {
  width: 2.3rem;
  height: 2.3rem;
  border: 2px solid #252830;
  background: #eed40e;
  color: #252830;
  font-size: 0.75rem;
}

.fp-attack-overlay:not(.has-selection) .fp-attack-btn {
  animation: fp-attack-pulse 1.8s ease-in-out infinite;
}

@keyframes fp-attack-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(238, 212, 14, 0.55);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(238, 212, 14, 0);
  }
}

.fp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding-top: 0;
  border-top: none;
}

.fp-btn {
  appearance: none;
  border: 1px solid #d0d4dc;
  background: #fff;
  color: #252830;
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.fp-btn > i {
  font-size: 0.9em;
  line-height: 1;
}

.fp-btn:hover:not(:disabled) {
  border-color: #33822b;
  color: #33822b;
}

.fp-btn.is-active {
  background: #33822b;
  border-color: #33822b;
  color: #fff;
}

.fp-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fp-btn-accent {
  background: #1f5f8b;
  border-color: #1f5f8b;
  color: #fff;
}

.fp-btn-accent:hover:not(:disabled) {
  background: #184e72;
  border-color: #184e72;
  color: #fff;
}

.fp-btn-ghost {
  background: #f3f4f6;
}

.fp-btn-draw {
  background: #33822b;
  border-color: #33822b;
  color: #fff;
}

.fp-btn-draw:hover:not(:disabled) {
  background: #2a6b24;
  border-color: #2a6b24;
  color: #fff;
}

.fp-btn-edit {
  background: #eed40e;
  border-color: #d4bc0c;
  color: #252830;
}

.fp-btn-edit:hover:not(:disabled) {
  background: #e0c80c;
  border-color: #c4ae0a;
  color: #252830;
}

.fp-btn-success {
  background: #33822b;
  border-color: #33822b;
  color: #fff;
}

.fp-btn-success:hover:not(:disabled) {
  background: #2a6b24;
  border-color: #2a6b24;
  color: #fff;
}

.fp-btn-success.is-active {
  background: #2a6b24;
  border-color: #2a6b24;
  color: #fff;
}

.fp-btn-danger {
  background: #f8f0f0;
  border-color: #e2b4b4;
  color: #8b2e2e;
}

.fp-btn-danger:hover:not(:disabled) {
  background: #f1dede;
  border-color: #c97878;
  color: #7a2424;
}

.fp-statusline {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0;
  width: 100%;
  max-width: 100%;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(51, 130, 43, 0.72);
}

.fp-statusline > i {
  flex-shrink: 0;
  box-sizing: content-box;
  width: 1em;
  height: 1.4em; /* = szöveg line-height → első sor középvonalához igazít */
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  line-height: 1;
  color: rgba(51, 130, 43, 0.78);
}

.fp-statusline > #fp-status {
  flex: 1 1 auto;
  min-width: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pac-container {
  z-index: 10000 !important;
  border-radius: 0.5rem;
  border: 1px solid #e2e4e8;
  box-shadow: 0 8px 24px rgba(37, 40, 48, 0.14);
  margin-top: 0.25rem;
  font-family: inherit;
}

@media (max-width: 720px) {
  .fp-panel {
    z-index: 6;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    max-height: 70dvh;
    overflow: visible;
    border-radius: 0.85rem 0.85rem 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    transition: max-height 0.22s ease;
  }

  .fp-sheet-handle {
    display: inline-grid;
    place-items: center;
    position: absolute;
    z-index: 7;
    left: 50%;
    top: 0;
    width: 2.4rem;
    height: 2.4rem;
    margin: 0;
    padding: 0;
    transform: translate(-50%, -50%);
    appearance: none;
    border-radius: 50%;
    border: 2.5px solid #33822b;
    background: rgba(255, 255, 255, 0.98);
    color: #33822b;
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
  }

  .fp-sheet-handle:focus-visible {
    outline: 2px solid #33822b;
    outline-offset: 2px;
  }

  .fp-sheet-handle .fas {
    pointer-events: none;
  }

  .fp-chrome {
    padding: 1.7rem 1rem 0.55rem;
    border-radius: 0.85rem 0.85rem 0 0;
  }

  .fp-mapwrap.is-mobile-sheet-collapsed .fp-panel {
    max-height: none;
  }

  .fp-mapwrap.is-mobile-sheet-collapsed .fp-body {
    display: none;
  }

  .fp-statusline {
    width: 100%;
  }

  .fp-ndvi {
    top: 0.65rem;
    right: 0.65rem;
  }

  .fp-legend {
    display: none !important;
  }

  /* iOS Safari: <16px input → auto-zoom, billentyűzet után nem zoomol vissza */
  .fp-search-input,
  .fp-saved-select,
  .fp-dialog-input,
  .fp-expert-input {
    font-size: 16px;
  }
}
