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

.field-planner-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.field-planner-page > footer,
body.field-planner-page > .container-fluid.white-container,
body.field-planner-page > .container-fluid.yellowback,
body.field-planner-page #newsletterform {
  display: none !important;
}

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

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

.field-planner__map {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.field-planner__parcel-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);
}

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

.field-planner__parcel-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));
}

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

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

.field-planner__ndvi-legend {
  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;
}

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

.field-planner__ndvi-legend strong {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 0.3rem;
}

.field-planner__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%
  );
}

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

.field-planner__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-wizard {
  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);
  overflow: auto;
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  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-wizard__steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0;
}

.fp-wizard__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-wizard__step:hover:not(.is-active):not(.is-locked) {
  border-color: #33822b;
  color: #2a6b24;
}

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

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

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

.fp-wizard__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-wizard__step.is-active .fp-wizard__num {
  background: rgba(255, 255, 255, 0.25);
}

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

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

.fp-wizard__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-wizard__search-input:focus {
  outline: 2px solid #33822b;
  outline-offset: 1px;
  border-color: #33822b;
}

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

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

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

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

.fp-saved-wrap__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-wrap__hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #5c6370;
}

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

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

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

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

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

.fp-plan-cart {
  flex-direction: column;
  align-items: stretch;
}

.fp-plan-cart__btn {
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}

.fp-plan-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-device-ui {
  position: absolute;
  z-index: 6;
  display: flex;
  gap: 0.35rem;
  transform: translate(-50%, -100%);
  pointer-events: auto;
}

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

.fp-device-ui__btn {
  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-device-ui__btn[hidden] {
  display: none !important;
}

.fp-device-ui__btn:hover {
  background: #ffe566;
}

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

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

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

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

.fp-wizard__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;
}

.fp-guest-modal .modal-header {
  align-items: center;
  gap: 0.5rem;
}

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

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

.fp-guest-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.fp-guest-modal__footer .fp-btn {
  min-height: 2.4rem;
}

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

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

.field-planner__device-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;
}

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

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

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

.field-planner__device-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);
  }
}

.field-planner__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e8eaee;
}

.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;
}

.field-planner__status {
  margin-left: auto;
  font-size: 0.8rem;
  color: #6b7280;
  max-width: 100%;
}

.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-wizard {
    top: auto;
    bottom: 0.65rem;
    left: 0.65rem;
    right: 0.65rem;
    width: auto;
    max-height: 42vh;
  }

  .field-planner__status {
    margin-left: 0;
    width: 100%;
  }

  .field-planner__device-legend {
    bottom: auto;
    top: 3.35rem;
    right: 0.65rem;
  }
}
