/* ======================================================
   STYLES-DODAJ.CSS
   TRYB: SENIOR / HIGH READABILITY / JASNY MOTYW
   ARCHITEKTURA: MOBILE FIRST
====================================================== */


/* ======================================================
   RESET / BAZA
====================================================== */

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, Arial, sans-serif;
  background: #f5f5f5;
}

.btn.is-loading {
  opacity: 0.7;
  cursor: wait;
}

.btn:disabled {
  pointer-events: none;
}


/* ======================================================
   CONTAINER — MOBILE (BAZA)
====================================================== */

.container {
  width: 100%;
  margin: 0;
  padding: 16px;
  box-sizing: border-box;
  background: transparent;
}


/* ======================================================
   TYTUŁ — MOBILE
====================================================== */

h2 {
  font-size: 24px;
  margin: 0 0 20px 0;
  text-align: center;
  color: #000;
  font-weight: 700;
}


/* ======================================================
   FORM — POLA
====================================================== */

.form-add textarea {
  min-height: 150px;
  resize: vertical;
}

/* FOCUS */
.form-add input:focus,
.form-add select:focus,
.form-add textarea:focus {
  outline: none;
  border-color: #0056cc;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,86,204,0.25);
}


/* ======================================================
   MAPA — MOBILE
====================================================== */

#map {
  width: 100%;
  height: 280px;
  margin-top: 14px;
  border-radius: 0;
  border: 2px solid #aaa;
}


/* ======================================================
   PRZYCISK — KANON (MOBILE SAFE)
====================================================== */

.form-add .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 48px;

  font-size: 22px;
  font-weight: bold;

  background: #0056cc;
  color: #ffffff;

  border: none;
  border-radius: 12px;
  cursor: pointer;

  box-sizing: border-box;
  white-space: nowrap;
}

.form-add .btn:hover {
  background: #003f9a;
}


/* ======================================================
   DUŻY PRZYCISK — ZNAJDŹ NA MAPIE
====================================================== */

#findBtn {
  width: 100%;
  padding: 18px;
  margin-top: 10px;

  font-size: 20px;
  font-weight: bold;

  background: #444;
  color: #ffffff;

  border-radius: 40px;
  border: none;
  cursor: pointer;
}

#findBtn:hover {
  background: #222;
}


/* ======================================================
   KLASY OPISOWE
====================================================== */

.req {
  color: red;
  font-weight: bold;
  margin-left: 6px;
}

.auto {
  display: inline-block;
  background: #d8ecff;
  color: #004a99;
  font-size: 14px;
  font-weight: normal;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 8px;
}


/* ======================================================
   PANEL HEADER — MOBILE
====================================================== */

.panel-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;

  margin: 20px auto;
  padding: 16px;

  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.panel-back {
  font-size: 28px;
  text-decoration: none;
  color: #0056cc;
  font-weight: bold;
  transition: .15s;
}

.panel-back:hover {
  transform: translateX(-4px);
  color: #003f9a;
}

.panel-header-text {
  line-height: 1.4;
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}

.panel-title:hover {
  text-decoration: underline;
}

.panel-sub {
  color: #666;
  font-size: 13px;
  margin-top: 2px;
}

.panel-user {
  margin-top: 6px;
  font-size: 13px;
  color: #333;
}


/* ======================================================
   TABLET / DESKTOP (>= 768px)
====================================================== */

@media (min-width: 768px) {

  .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    background: #ffffff;
  }

  h2 {
    font-size: 32px;
    margin-bottom: 28px;
  }

  #map {
    height: 360px;
    border-radius: 14px;
  }

  .panel-header {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin: 40px auto 30px;
    padding: 20px;
  }

  .panel-back {
    font-size: 32px;
  }

  .panel-title {
    font-size: 24px;
  }

  .panel-user {
    font-size: 14px;
  }
}
