body {
  background: var(--light);
}

/* Na stronie dodaj ukrywamy przycisk dodawania oferty, zachowując układ */
.desktop-add-offer,
.mobile-add-offer {
  visibility: hidden;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-lite {
  min-width: 280px;
  max-width: 92vw;
  background: #fff;
  color: #0f172a;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,.12),0 3px 6px rgba(0,0,0,.08);
  padding: 12px 14px 12px 12px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  pointer-events: auto;
}
.toast-lite.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-lite .toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #fff;
}
.toast-lite .toast-msg { line-height: 1.45; font-size: .95rem; }
.toast-lite .toast-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #64748b;
  padding: 4px;
}
.toast-lite .toast-close:hover { color: #0f172a; }
.toast-success .toast-icon { background: #16a34a; }
.toast-info .toast-icon { background: #1e6fba; }
.toast-warning .toast-icon { background: #f59e0b; }
.toast-error .toast-icon { background: #dc2626; }
@media (max-width:576px){
  .toast-container { top:10px; right:10px; gap:8px; }
  .toast-lite { padding:10px 12px; }
}

.container-main { display:flex; min-height:100vh; }
.map-container {
  flex: 1;
  position: sticky;
  top: var(--nav-top);
  height: calc(100vh - var(--nav-top));
}
#map { height:100%; width:100%; }

.plot-marker-label {
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 220px;
}

.plot-marker-label__title {
  font-weight: 400;
  margin-bottom: 2px;
}

.plot-marker-label__note {
  font-size: 0.75rem;
  color: #475569;
}

.plot-marker-label__note p {
  margin: 0;
}

.plot-marker-label__note p + p {
  margin-top: 2px;
}

.map-overlay { position:absolute; top:15px; right:15px; z-index:1000; display:flex; flex-direction:column; gap:10px; }

.btn-overlay {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.btn-overlay:hover { transform: translateY(-2px); box-shadow: 0 8px 14px rgba(0,0,0,0.2); }

@media (max-width: 992px) {
  .container-main { flex-direction: column; }
  .map-container {
    position: static;
    top: auto;
    height: 50vh;
    order: 2;
  }
}

#map-mobile { width: 100%; height: 40vh; border-radius: 0; }
@media (min-width: 992px) { #map-mobile { display: none; } }
.map-overlay-mobile { position: absolute; top: 15px; right: 15px; z-index: 2000; display: flex; gap: 10px; }

@media (max-width: 992px) {
  #map { display: none !important; }
  :root { --mobile-map-height: 82vh; }
  .full-bleed-mobile { position: relative; left: 50%; transform: translateX(-50%); width: 100vw; max-width: 100vw; padding: 0; margin: 0 0 16px 0; overflow: hidden; z-index: 0; }
  .lead-over-map { display: block !important; margin: 0 0 8px 0; padding: 0 16px; font-weight: 300; text-align: center; opacity: .95; }
  #map-mobile { display: block; width: 100%; height: var(--mobile-map-height); border-radius: 0; }
  @supports (height: 1dvh) { #map-mobile { height: 82dvh; } }
  .map-overlay-mobile { top: calc(env(safe-area-inset-top, 0px) + 40px); right: calc(env(safe-area-inset-right, 0px) + 12px); z-index: 2; pointer-events: none; }
  .map-overlay-mobile .btn-overlay { pointer-events: auto; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 9999px; line-height: 1; }
}

@media (max-width: 992px) {
  .map-overlay-desktop { display: none !important; }
}
/* Confirm modal */
.confirm-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,0.45);
  z-index: 1300;
  padding: 16px;
}
.confirm-modal.show { display: flex; }
.confirm-box {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 20px 20px 16px;
  transform: scale(0.98);
  opacity: 0;
  transition: transform .15s ease, opacity .15s ease;
}
.confirm-modal.show .confirm-box {
  transform: scale(1);
  opacity: 1;
}
.confirm-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--darker);
}
.confirm-message {
  margin: 0 0 16px;
  color: #475569;
  font-size: .95rem;
  line-height: 1.5;
}
.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.confirm-btn {
  border: none;
  border-radius: 8px;
  padding: .55rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, background .2s ease, color .2s ease;
}
.confirm-btn:hover { transform: translateY(-1px); }
.confirm-cancel {
  background: #eef2f7;
  color: #0f172a;
}
.confirm-cancel:hover { background: #e6ebf3; }
.confirm-yes {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.confirm-yes:hover { box-shadow: var(--shadow-md); }
