/* ============================================================
   FISHING RESERVATION PLUGIN — Public Styles v2
   Design: Pond map left, reservation panel right
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.fish-app {
  --c-bg: #f5f5f0;
  --c-surface: #ffffff;
  --c-border: #e2e8f0;
  --c-border-dark: #cbd5e0;
  --c-green: #2d5a3d;
  --c-green-light: #3a7a52;
  --c-green-dot: #1a4a2e;
  --c-gold: #c8861a;
  --c-orange: #e8602c;
  --c-orange-hover: #d44e1e;
  --c-red: #e05252;
  --c-text: #1a202c;
  --c-muted: #718096;
  --c-muted-light: #a0aec0;
  --c-placeholder: #b0bec5;
  --c-radius: 12px;
  --c-shadow: 0 4px 20px rgba(0,0,0,.08);

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--c-text);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* ——— Main Layout ——— */
.fish-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  border-radius: var(--c-radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  background: var(--c-surface);
  align-items: start;
}

/* ======= LEFT: MAP COLUMN ======= */
.fish-map-col {
  position: relative;
  background: #1a2d1a;
  display: flex;
  flex-direction: column;
}

.fish-map-wrapper {
  position: relative;
  /* height driven by image — ensures dots sit at correct % coordinates */
}

.fish-pond-img {
  width: 100%;
  height: auto;   /* natural aspect ratio — no cropping, dots stay in place */
  display: block;
  min-height: 180px;
}

.fish-pond-placeholder {
  width: 100%;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #4a7a4a;
  text-align: center;
  padding: 40px;
  box-sizing: border-box;
}

.fish-pond-placeholder span { font-size: 48px; margin-bottom: 12px; }
.fish-pond-placeholder p    { font-size: 14px; color: #6a9a6a; line-height: 1.5; }

/* Sector Dots */
.fish-sector-dot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-green-dot);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: 2.5px solid rgba(255,255,255,.85);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.45);
  z-index: 10;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

.fish-sector-dot-label {
  position: relative;
  z-index: 2;
}

.fish-sector-dot:hover {
  background: var(--c-green-light);
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
  z-index: 20;
}

.fish-sector-dot.selected {
  background: var(--c-gold);
  border-color: #fff;
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 4px 20px rgba(200,134,26,.6);
  z-index: 20;
}

.fish-sector-dot.unavailable {
  background: #4a5568;
  border-color: rgba(255,255,255,.4);
  cursor: not-allowed;
  opacity: .6;
}

.fish-sector-dot.unavailable::before,
.fish-sector-dot.unavailable::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: #e05252;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(255,255,255,.35);
}

.fish-sector-dot.unavailable::before { transform: translateY(-50%) rotate(45deg); }
.fish-sector-dot.unavailable::after  { transform: translateY(-50%) rotate(-45deg); }

.fish-sector-dot.unavailable:hover {
  transform: translate(-50%, -50%);
  background: #4a5568;
  box-shadow: 0 3px 10px rgba(0,0,0,.45);
}

/* Tooltip */
.fish-sector-dot-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.85);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 30;
  transition: opacity .15s;
  font-family: 'Inter', sans-serif;
}

.fish-sector-dot:hover .fish-sector-dot-tooltip { opacity: 1; }

.fish-date-stay-summary {
  margin-top: 8px;
  padding: 10px 12px;
  background: #f0faf4;
  border: 1px solid #b2dfcd;
  border-radius: 8px;
  color: var(--c-green);
  font-size: 12px;
  line-height: 1.45;
}

/* Pond overlay for blocked dates */
.fish-pond-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,20,10,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  backdrop-filter: blur(2px);
}

.fish-pond-overlay-msg {
  text-align: center;
  color: #fff;
}

.fish-pond-overlay-msg span { font-size: 40px; display: block; margin-bottom: 10px; }
.fish-pond-overlay-msg p    { font-size: 15px; font-weight: 500; color: #ffd; }

/* Map legend */
.fish-map-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(0,0,0,.4);
}

.fish-leg-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.8); }
.fish-leg-dot  { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid rgba(255,255,255,.4); }

/* ======= RIGHT: PANEL COLUMN ======= */
.fish-panel-col {
  border-left: 1px solid var(--c-border);
  background: var(--c-surface);
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.fish-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
}

/* Panel header */
.fish-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--c-border);
}

.fish-panel-header h2 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--c-text) !important;
  margin: 0 !important;
  letter-spacing: -.3px;
}

.fish-reset-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}

.fish-reset-btn:hover { color: var(--c-text); border-color: var(--c-border-dark); }

/* ——— Krok sections ——— */
.fish-krok {
  padding: 20px 24px;
  border-bottom: 1px solid var(--c-border);
}

.fish-krok:last-of-type { border-bottom: none; }

.fish-krok-header {
  margin-bottom: 12px;
}

.fish-krok-num {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fish-krok-header h3 {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--c-text) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.fish-krok-hint {
  background: #fffbf0;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #78530a;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* ——— Date picker ——— */
.fish-date-mini {
  font-size: 13px;
  color: var(--c-green);
  font-weight: 600;
  margin-bottom: 10px;
  padding: 8px 12px;
  background: #f0faf4;
  border: 1px solid #b2dfcd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fish-date-picker-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: #fff;
  border: 1.5px solid var(--c-border-dark);
  border-radius: 9px;
  color: var(--c-text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  text-align: left;
}

.fish-date-picker-btn:hover, .fish-date-picker-btn.active {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(45,90,61,.1);
}

/* Calendar dropdown */
.fish-cal-dropdown {
  background: #fff;
  border: 1.5px solid var(--c-border-dark);
  border-radius: 10px;
  margin-top: 8px;
  overflow: hidden;
  box-shadow: var(--c-shadow);
}

.fish-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border);
  background: #f8faf9;
}

.fish-cal-month-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
}

.fish-cal-nav-btn {
  background: none;
  border: 1px solid var(--c-border);
  width: 28px;
  height: 28px;
  border-radius: 7px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  transition: all .2s;
  padding: 0;
  line-height: 1;
}

.fish-cal-nav-btn:hover { background: var(--c-green); color: #fff; border-color: var(--c-green); }

.fish-cal-grid { padding: 10px; }

.fish-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.fish-cal-weekday {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 0;
}

.fish-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.fish-cal-day {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .12s;
  border: 1px solid transparent;
  color: var(--c-text);
  min-height: 32px;
  overflow: hidden;
  background: #fff;
}

.fish-cal-num {
  position: relative;
  z-index: 2;
}

.fish-cal-fill {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fish-cal-fill-right {
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.fish-cal-fill-left {
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.fish-cal-fill-full {
  clip-path: none;
}

.fish-cal-fill-selected { background: rgba(45, 90, 61, .9); }
.fish-cal-fill-reserved { background: rgba(224, 82, 82, .46); }
.fish-cal-fill-system   { background: rgba(200, 134, 26, .5); }
.fish-cal-fill-pond     { background: rgba(224, 82, 82, .58); }

.fish-cal-day.avail:hover {
  background: #f0faf4;
  border-color: #b2dfcd;
}

.fish-cal-day.past     { color: var(--c-muted-light); cursor: default; }
.fish-cal-day.blocked  { color: #e0c4c4; cursor: not-allowed; background: #fef7f7; }
.fish-cal-day.empty    { cursor: default; }
.fish-cal-day.today    { font-weight: 700; border-color: var(--c-border-dark); }

.fish-cal-day.selected {
  color: #fff;
  border-color: var(--c-green);
}

.fish-cal-day.in-range {
  border-radius: 0;
  border-color: transparent;
}

.fish-cal-day.range-start { border-radius: 7px 0 0 7px; }
.fish-cal-day.range-end   { border-radius: 0 7px 7px 0; }
.fish-cal-day.range-start.range-end { border-radius: 7px; }

.fish-cal-actions {
  padding: 10px;
  border-top: 1px solid var(--c-border);
  text-align: center;
}

.fish-cal-confirm-btn {
  width: 100%;
  padding: 10px;
  background: var(--c-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  font-family: inherit;
}

.fish-cal-confirm-btn:disabled { background: var(--c-border-dark); cursor: not-allowed; }
.fish-cal-confirm-btn:not(:disabled):hover { background: var(--c-green-light); }

/* ——— Krok 2: Sector selection ——— */
.fish-krok-placeholder {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.5;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  text-align: center;
}

.fish-selected-sector {
  background: #f0faf4;
  border: 1.5px solid #b2dfcd;
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14px;
}

.fish-selected-sector .fish-sect-name { font-weight: 700; color: var(--c-green); font-size: 15px; }
.fish-selected-sector .fish-sect-desc { color: var(--c-muted); font-size: 12px; margin-top: 3px; }
.fish-selected-sector .fish-sect-meta { font-size: 12px; color: var(--c-muted); margin-top: 8px; }

/* ——— Krok 3: Form fields ——— */
.fish-field {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--c-border-dark);
  border-radius: 9px;
  font-size: 14px;
  color: var(--c-text);
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
  box-sizing: border-box;
}

.fish-field:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(45,90,61,.1);
}

.fish-field::placeholder { color: var(--c-placeholder); }
.fish-field:disabled { background: #f8fafc; color: var(--c-muted); cursor: not-allowed; }

.fish-code-field {
  letter-spacing: 6px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.fish-field-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.fish-field-row .fish-field { flex: 1; margin-bottom: 0; }

.fish-field-btn {
  padding: 10px 14px;
  background: var(--c-green);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background .2s;
  flex-shrink: 0;
}

.fish-field-btn:hover:not(:disabled) { background: var(--c-green-light); }
.fish-field-btn:disabled { background: var(--c-border-dark); cursor: not-allowed; }

.fish-verified-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-green);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  background: #f0faf4;
  border: 1px solid #b2dfcd;
  border-radius: 20px;
  margin-bottom: 12px;
}

.fish-fishers-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.fish-field-label {
  font-size: 13px;
  color: var(--c-muted);
  white-space: nowrap;
}

.fish-fishers-btns { display: flex; gap: 6px; }

.fish-fisher-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--c-border-dark);
  background: #fff;
  color: var(--c-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  padding: 0;
}

.fish-fisher-btn:hover { border-color: var(--c-green); color: var(--c-green); }
.fish-fisher-btn.active { background: var(--c-green); border-color: var(--c-green); color: #fff; }

/* Price summary */
.fish-price-summary {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 9px;
  border: 1px solid var(--c-border);
  font-size: 13px;
}

.fish-price-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--c-muted);
}

.fish-price-total {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--c-border);
  font-weight: 700;
  color: var(--c-text);
  font-size: 15px;
}

.fish-price-total span:last-child { color: var(--c-green); font-size: 17px; }

/* Inline message */
.fish-inline-msg {
  margin-top: 10px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  display: none;
  line-height: 1.4;
}

.fish-inline-msg.success { display: block; background: #f0faf4; border: 1px solid #b2dfcd; color: #2d5a3d; }
.fish-inline-msg.error   { display: block; background: #fef2f2; border: 1px solid #fcc; color: #c0392b; }
.fish-inline-msg.info    { display: block; background: #fffbf0; border: 1px solid #fde68a; color: #78530a; }

/* ——— Submit Button ——— */
.fish-submit-btn {
  margin: 16px 24px 24px;
  width: calc(100% - 48px);
  padding: 14px 24px;
  background: var(--c-orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .1s;
  letter-spacing: .2px;
}

.fish-submit-btn:hover:not(:disabled) {
  background: var(--c-orange-hover);
  transform: translateY(-1px);
}

.fish-submit-btn:disabled {
  background: var(--c-border-dark);
  color: var(--c-muted);
  cursor: not-allowed;
  transform: none;
}

/* ——— Step 4: Payment panel ——— */
#fish-payment-panel {
  padding: 0 24px 24px;
  flex: 1;
  overflow-y: auto;
}

.fish-pay-success {
  text-align: center;
  padding: 20px 0 16px;
}

.fish-pay-icon   { font-size: 48px; margin-bottom: 8px; }
.fish-pay-success h3 { font-size: 18px; font-weight: 700; color: var(--c-green); margin: 0 0 6px; }
.fish-pay-success p  { font-size: 13px; color: var(--c-muted); line-height: 1.5; margin: 0; }

.fish-pay-detail {
  background: #f8fafc;
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 14px;
}

.fish-pay-detail h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin: 0 0 10px;
}

.fish-pay-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid var(--c-border);
}

.fish-pay-row:last-child { border-bottom: none; }
.fish-pay-row span:first-child { color: var(--c-muted); }
.fish-pay-row span:last-child  { font-weight: 500; color: var(--c-text); }
.fish-pay-row.total span:last-child { color: var(--c-green); font-size: 16px; font-weight: 700; }

.fish-vs-box {
  background: #fff;
  border: 2px solid var(--c-green);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

.fish-vs-box span:first-child { font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .5px; }
.fish-vs-box span:last-child  { font-size: 18px; font-weight: 800; color: var(--c-green); letter-spacing: 2px; }

.fish-qr-center {
  text-align: center;
  margin: 12px 0 0;
}

.fish-qr-center img {
  border-radius: 8px;
  border: 2px solid var(--c-border);
  display: inline-block;
}

.fish-qr-label { font-size: 11px; color: var(--c-muted); margin-top: 6px; }

/* Mobile wizard elements: hidden on desktop, shown via mobile media query */
.fish-mob-header,
.fish-mob-summary,
.fish-mob-footer,
.fish-mob-map-header { display: none; }

/* ——— Responsive ——— */
@media (max-width: 768px) {
  .fish-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .fish-map-col {
    min-height: 300px;
  }

  .fish-panel-col {
    border-left: none;
    border-top: 1px solid var(--c-border);
  }

  .fish-map-wrapper { min-height: 300px; }
}

@media (max-width: 480px) {
  .fish-krok { padding: 16px; }
  .fish-panel-header { padding: 14px 16px; }
  .fish-submit-btn { margin: 12px 16px 16px; width: calc(100% - 32px); }
}

/* Predator (boat) sector dots */
.fish-sector-dot.fish-sector-boat {
  background: #1a3a6a;
  font-size: 16px;
  border-color: rgba(255,255,255,.9);
}

.fish-sector-dot.fish-sector-boat:hover {
  background: #2c5aa0;
}

.fish-sector-dot.fish-sector-boat.selected {
  background: var(--c-gold);
}

/* ——— Fish type toggle ——— */
.fish-type-toggle {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--c-border);
  background: #f8fafc;
}

.fish-type-btn {
  flex: 1;
  padding: 11px 10px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--c-muted);
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .1px;
}

.fish-type-btn:hover { color: var(--c-text); background: rgba(45,90,61,.04); }

.fish-type-btn.active {
  color: var(--c-green);
  border-bottom-color: var(--c-green);
  background: #fff;
}

/* ——— Boat selector ——— */
.fish-boats-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  background: #f0f8ff;
  border: 1px solid #b2d4ef;
  border-radius: 9px;
}

.fish-boats-avail {
  font-size: 11px;
  color: var(--c-muted);
  white-space: nowrap;
}

/* ——— Payment type toggle ——— */
.fish-payment-type {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--c-border);
  border-radius: 9px;
}

.fish-payment-type-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 10px;
}

.fish-pay-type-toggle {
  display: flex;
  gap: 8px;
}

.fish-pay-type-btn {
  flex: 1;
  padding: 9px 10px;
  border: 1.5px solid var(--c-border-dark);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  color: var(--c-muted);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}

.fish-pay-type-btn:hover { border-color: var(--c-green); color: var(--c-green); }

.fish-pay-type-btn.active {
  background: var(--c-green);
  border-color: var(--c-green);
  color: #fff;
}

/* Deposit info line in price summary */
.fish-price-deposit {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  margin-top: 6px;
  border-top: 1px dashed var(--c-border);
  font-weight: 700;
  color: var(--c-orange);
  font-size: 14px;
}

.fish-price-deposit-note {
  font-size: 11px;
  color: var(--c-muted);
  margin-top: 4px;
  font-style: italic;
}

/* ——— Steps progress bar ——— */
.fish-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 8px;
  gap: 0;
}
.fish-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: .4;
  transition: opacity .3s;
}
.fish-step.active, .fish-step.done { opacity: 1; }
.fish-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-muted, #718096);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  transition: background .3s;
}
.fish-step.active .fish-step-num { background: var(--c-green, #1aad5f); }
.fish-step.done .fish-step-num { background: var(--c-green, #1aad5f); }
.fish-step-label { font-size: 10px; color: var(--c-muted, #718096); white-space: nowrap; }
.fish-step.active .fish-step-label { color: var(--c-green, #1aad5f); font-weight: 600; }
.fish-step-line {
  flex: 1;
  height: 2px;
  background: var(--c-border, #e2e8f0);
  min-width: 20px;
  max-width: 40px;
  margin-bottom: 18px;
}

/* Locked step */
.fish-krok.locked {
  opacity: .5;
  pointer-events: none;
}
.fish-krok.locked .fish-krok-header { cursor: default; }

/* ======================================================
   MOBILE WIZARD — screens (≤768px only)
   ====================================================== */

/* Mobile header (progress dots + back + reset) */
.fish-mob-header {
  display: none; /* hidden on desktop */
}

/* Mobile summary strip */
.fish-mob-summary {
  display: none; /* controlled by JS */
}

/* Mobile footer nav */
.fish-mob-footer {
  display: none; /* hidden on desktop */
}

/* Mobile map header */
.fish-mob-map-header {
  display: none;
}

@media (max-width: 768px) {

  /* --- App wrapper: flex column so sticky header/footer work via page scroll --- */
  .fish-app {
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  /* Layout: single column, no clipping overflow (would break position:sticky) */
  .fish-layout {
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  /* All wizard sections hidden by default */
  .fish-app[data-mob-screen] .fish-map-col,
  .fish-app[data-mob-screen] .fish-type-toggle,
  .fish-app[data-mob-screen] #fish-krok-1,
  .fish-app[data-mob-screen] #fish-krok-2,
  .fish-app[data-mob-screen] #fish-krok-3,
  .fish-app[data-mob-screen] .fish-submit-btn,
  .fish-app[data-mob-screen] .fish-steps-bar,
  .fish-app[data-mob-screen] .fish-panel-header { display: none !important; }

  /* Screen 1: type selector + date */
  .fish-app[data-mob-screen="1"] .fish-type-toggle { display: block !important; border-bottom: 1px solid var(--c-border) !important; }
  .fish-app[data-mob-screen="1"] #fish-krok-1 { display: block !important; border-bottom: none; padding: 20px 16px; }

  /* Screen 2: map FIRST (map-col is first in DOM), then sector info below */
  .fish-app[data-mob-screen="2"] .fish-map-col { display: flex !important; flex-direction: column; width: 100%; }
  .fish-app[data-mob-screen="2"] #fish-krok-2 { display: block !important; border-bottom: none; padding: 16px; }

  /* Screen 3: details */
  .fish-app[data-mob-screen="3"] #fish-krok-3 { display: block !important; border-bottom: none; }
  .fish-app[data-mob-screen="3"] .fish-submit-btn { display: none !important; }

  /* Screen 4: payment confirmation */
  .fish-app[data-mob-screen="4"] #fish-payment-panel { display: block !important; }

  /* --- Mobile header (sticky top, outside .fish-layout) --- */
  .fish-mob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface);
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .fish-mob-dots { display: flex; align-items: center; gap: 0; }

  .fish-mob-dot {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--c-border); color: var(--c-muted);
    font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }
  .fish-mob-dot.active { background: var(--c-green); color: #fff; }
  .fish-mob-dot.done   { background: #e0f0e8; color: var(--c-green); }

  .fish-mob-dot-line { width: 24px; height: 2px; background: var(--c-border); display: block; }
  .fish-mob-dot-line.done { background: var(--c-green); }

  .fish-mob-back {
    background: none; border: none; color: var(--c-green);
    font-size: 14px; font-weight: 600; cursor: pointer;
    padding: 4px 0; font-family: inherit; min-width: 60px;
  }

  /* --- Summary strip --- */
  .fish-mob-summary {
    padding: 10px 16px;
    background: #f0faf4;
    border-bottom: 1px solid #b2dfcd;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .fish-mob-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: #fff; border: 1px solid #b2dfcd;
    border-radius: 20px; padding: 4px 10px;
    font-size: 12px; font-weight: 600; color: var(--c-green);
  }

  /* --- Screen 2: map header hint --- */
  .fish-mob-map-header {
    display: block;
    background: rgba(0,0,0,.5);
    color: rgba(255,255,255,.9);
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
  }

  /* Map wrapper takes full width and has natural image height */
  .fish-app[data-mob-screen="2"] .fish-map-wrapper {
    width: 100%;
    position: relative;
  }

  .fish-app[data-mob-screen="2"] .fish-pond-img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 200px;
  }

  /* Sector dots on mobile: slightly larger tap targets */
  .fish-app[data-mob-screen="2"] .fish-sector-dot {
    width: 36px;
    height: 36px;
    font-size: 14px;
    z-index: 20;
  }

  /* Map legend compact on mobile */
  .fish-app[data-mob-screen="2"] .fish-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
    background: #1a2d1a;
  }

  /* Panel col: remove borders, full width */
  .fish-panel-col {
    border-left: none;
    border-top: none;
    max-height: none;
    position: static;
    overflow-y: visible;
  }

  /* --- Mobile footer nav (sticky bottom, outside .fish-layout) --- */
  .fish-mob-footer {
    display: flex;
    gap: 10px;
    padding: 12px 16px 16px;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    position: sticky;
    bottom: 0;
    z-index: 100;
  }

  .fish-mob-btn {
    flex: 1; padding: 13px 16px; border-radius: 10px;
    font-size: 14px; font-weight: 700; font-family: inherit;
    cursor: pointer; border: none; transition: all .2s;
  }
  .fish-mob-btn-pri { background: var(--c-orange); color: #fff; }
  .fish-mob-btn-pri:hover:not(:disabled) { background: var(--c-orange-hover); }
  .fish-mob-btn-pri:disabled { background: var(--c-border-dark); color: var(--c-muted); cursor: not-allowed; }
  .fish-mob-btn-sec { background: #f0faf4; color: var(--c-green); border: 1.5px solid #b2dfcd; flex: 0 0 auto; min-width: 90px; }

  /* Hint text smaller */
  .fish-krok-hint { font-size: 12px; padding: 8px 10px; }

  /* Unlock locked steps on mobile (wizard controls visibility) */
  .fish-krok.locked { opacity: 1; pointer-events: auto; }
}
