/* ── Home button ──────────────────────────────────────────────────────────── */

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255,255,255,0.7);
  border: 1.5px solid #e8ddd0;
  border-radius: 20px;
  text-decoration: none;
  color: #888;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.home-btn:hover { background: rgba(255,255,255,0.95); color: #444; border-color: #d4c4b8; }

/* ── Confirm modal ────────────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.8rem 2rem 1.5rem;
  width: min(360px, 90vw);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.15s;
}
.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-icon { font-size: 1.6rem; margin-bottom: 0.5rem; display: block; }
.modal-title { font-size: 1rem; font-weight: 700; color: #333; margin-bottom: 0.35rem; }
.modal-place {
  font-size: 0.88rem;
  color: #555;
  font-weight: 600;
  margin-bottom: 0.25rem;
  word-break: break-word;
}
.modal-sub { font-size: 0.8rem; color: #bbb; margin-bottom: 1.4rem; }

.modal-actions { display: flex; gap: 0.6rem; justify-content: flex-end; }

.modal-btn-cancel {
  padding: 0.5rem 1.1rem;
  background: #f0e6da;
  color: #666;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: background 0.12s;
}
.modal-btn-cancel:hover { background: #e4d6c6; }

.modal-btn-delete {
  padding: 0.5rem 1.1rem;
  background: #e05c5c;
  color: #fff;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.12s;
}
.modal-btn-delete:hover { background: #c94444; }

/* ── Edit modal ───────────────────────────────────────────────────────────── */

.edit-modal-card {
  width: min(500px, 94vw);
  padding: 0;
  overflow: hidden;
  background: #fdf6ee;
  font-family: sans-serif;
  font-size: 0.88rem;
  color: #333;
}

.edit-modal-header {
  padding: 1.1rem 1.6rem 0.9rem;
  border-bottom: 1px solid #ede4d8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.edit-modal-header .modal-icon { font-size: 1.1rem; margin: 0; }
.edit-modal-header .modal-title { font-size: 1rem; margin: 0; }

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.2rem 1.6rem;
  background: rgba(255,255,255,0.88);
}

.edit-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.edit-field { display: flex; flex-direction: column; gap: 0.25rem; }

.edit-field label {
  font-family: sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #666;
}

.edit-field input,
.edit-field select,
.edit-field textarea {
  -webkit-appearance: none;
  appearance: none;
  font-family: sans-serif;
  font-size: 0.88rem;
  padding: 0.52rem 0.75rem;
  border: 1.5px solid #ddd;
  border-radius: 9px;
  background: #fff;
  color: #333;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.edit-field input:focus,
.edit-field select:focus,
.edit-field textarea:focus { border-color: #f4a5c0; }
.edit-field textarea { resize: vertical; }

.edit-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  padding: 0.9rem 1.6rem 1.1rem;
  border-top: 1px solid #ede4d8;
}

.edit-modal-actions button {
  -webkit-appearance: none;
  appearance: none;
  font-family: sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.12s;
}

.modal-btn-save {
  background: #f4a5c0;
  color: #fff;
}
.modal-btn-save:hover { background: #ee8fab; }
.modal-btn-save:disabled { opacity: 0.6; cursor: default; }
