/* Photo modal styles */
#photo-modal,
#gallery-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1050;
}

#photo-modal.show,
#gallery-modal.show {
  display: flex;
}

#photo-modal .photo-content,
#gallery-modal .photo-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  max-height: 90%;
  overflow: auto;
  position: relative;
}

.photo-upload-dropzone {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 92px;
  margin-top: 8px;
  padding: 14px;
  border: 1px dashed #9aa8bd;
  border-radius: 8px;
  color: var(--color-dark);
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
}

.photo-upload-dropzone i {
  font-size: 1.4rem;
  color: var(--color-orange);
}

.photo-upload-dropzone small {
  max-width: 520px;
  color: #5f6c7b;
  line-height: 1.35;
}

.photo-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-upload-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.photo-upload-status.is-success {
  color: #0f6f3d;
  background: #e9f8ef;
  border: 1px solid #bde7cc;
}

.photo-upload-status.is-error {
  color: #9f1d2a;
  background: #fff0f1;
  border: 1px solid #f3b8bf;
}

.photo-upload-status.is-progress {
  color: #725016;
  background: #fff7e6;
  border: 1px solid #f0d69a;
}

#lightbox {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 3500;
}

/* Ensure lightbox becomes visible when toggled */
#lightbox.show {
  display: flex;
}
#lightbox .modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}
#lightbox .modal-content img {
  max-width: 100%;
  max-height: 100%;
}
#lightbox .prev,
#lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}
#lightbox .prev { left: 10px; }
#lightbox .next { right: 10px; }
#lightbox .close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Occupancy modal styles */
#occ-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 3500;
}
#occ-modal.show { display: flex; }
#occ-modal .photo-content { background:#fff; padding:20px; border-radius:10px; width:300px; position:relative; }
#occ-close { position:absolute; top:10px; right:10px; background:none; border:none; font-size:1.2rem; cursor:pointer; }
.occ-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 2px;
}

.occ-item__content {
  flex: 1;
  min-width: 0;
}

#photo-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--color-dark);
}

#photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.photo-item {
  position: relative;
}
.photo-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}
.photo-item button {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 2px #000;
}
.photo-item .delete-photo {
  top: 2px;
  right: 2px;
}

#suggestionsModal .modal-content {
  background-color: #fff;
}

#suggestionsModal #suggestionsList,
#suggestionsModal #suggestionsList li {
  background-color: #fff;
}



.suggest-icon-btn {
  border: none;
  background: none;
  padding: 0;
  color: var(--color-orange);

  outline: none;
  box-shadow: none;
}

.text-muted {
  opacity: 0.5;
}
